2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.602 2005/10/14 01:40:05 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-multiple-precision
1089 multiple precision support for statistics
1090 auto|bignum|gmp [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in auto yes no ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363 withval="$with_threads"
2366 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2367 if test "$withval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374 { (exit 1); exit 1; }; }
2376 ol_with_threads="$ol_arg"
2379 ol_with_threads="auto"
2380 fi; # end --with-threads
2382 # OpenLDAP --with-tls
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2389 for ol_val in auto openssl yes no ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397 { (exit 1); exit 1; }; }
2399 ol_with_tls="$ol_arg"
2403 fi; # end --with-tls
2405 # OpenLDAP --with-yielding_select
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409 withval="$with_yielding_select"
2412 for ol_val in auto yes no manual ; do
2413 if test "$withval" = "$ol_val" ; then
2417 if test "$ol_arg" = "invalid" ; then
2418 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420 { (exit 1); exit 1; }; }
2422 ol_with_yielding_select="$ol_arg"
2425 ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2428 # OpenLDAP --with-multiple_precision
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432 withval="$with_multiple_precision"
2435 for ol_val in auto bignum gmp yes no ; do
2436 if test "$withval" = "$ol_val" ; then
2440 if test "$ol_arg" = "invalid" ; then
2441 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443 { (exit 1); exit 1; }; }
2445 ol_with_multiple_precision="$ol_arg"
2448 ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455 enableval="$enable_xxslapdoptions"
2458 # OpenLDAP --enable-slapd
2460 # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462 enableval="$enable_slapd"
2465 for ol_val in auto yes no ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_enable_slapd="$ol_arg"
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2483 # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485 enableval="$enable_aci"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_aci="$ol_arg"
2504 # OpenLDAP --enable-cleartext
2506 # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508 enableval="$enable_cleartext"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_cleartext="$ol_arg"
2524 ol_enable_cleartext=yes
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2529 # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531 enableval="$enable_crypt"
2534 for ol_val in auto yes no ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_crypt="$ol_arg"
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2552 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554 enableval="$enable_lmpasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_lmpasswd="$ol_arg"
2570 ol_enable_lmpasswd=no
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2575 # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577 enableval="$enable_spasswd"
2580 for ol_val in auto yes no ; do
2581 if test "$enableval" = "$ol_val" ; then
2585 if test "$ol_arg" = "invalid" ; then
2586 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_spasswd="$ol_arg"
2593 ol_enable_spasswd=no
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2598 # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600 enableval="$enable_modules"
2603 for ol_val in auto yes no ; do
2604 if test "$enableval" = "$ol_val" ; then
2608 if test "$ol_arg" = "invalid" ; then
2609 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_modules="$ol_arg"
2616 ol_enable_modules=no
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2622 # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624 enableval="$enable_rewrite"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_rewrite="$ol_arg"
2640 ol_enable_rewrite=auto
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2645 # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647 enableval="$enable_rlookups"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rlookups="$ol_arg"
2663 ol_enable_rlookups=no
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2668 # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670 enableval="$enable_slapi"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_slapi="$ol_arg"
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2691 # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693 enableval="$enable_slp"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_slp="$ol_arg"
2712 # OpenLDAP --enable-wrappers
2714 # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716 enableval="$enable_wrappers"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_wrappers="$ol_arg"
2732 ol_enable_wrappers=no
2734 # end --enable-wrappers
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752 enableval="$enable_xxslapbackends"
2756 # OpenLDAP --enable-backends
2758 # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760 enableval="$enable_backends"
2763 for ol_val in no yes mod ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_backends="$ol_arg"
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2779 # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781 enableval="$enable_bdb"
2784 for ol_val in no yes mod ; do
2785 if test "$enableval" = "$ol_val" ; then
2789 if test "$ol_arg" = "invalid" ; then
2790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792 { (exit 1); exit 1; }; }
2794 ol_enable_bdb="$ol_arg"
2797 ol_enable_bdb=${ol_enable_backends:-yes}
2800 # OpenLDAP --enable-dnssrv
2802 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804 enableval="$enable_dnssrv"
2807 for ol_val in no yes mod ; do
2808 if test "$enableval" = "$ol_val" ; then
2812 if test "$ol_arg" = "invalid" ; then
2813 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_dnssrv="$ol_arg"
2820 ol_enable_dnssrv=${ol_enable_backends:-no}
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2825 # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827 enableval="$enable_hdb"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_hdb="$ol_arg"
2843 ol_enable_hdb=${ol_enable_backends:-yes}
2846 # OpenLDAP --enable-ldap
2848 # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850 enableval="$enable_ldap"
2853 for ol_val in no yes mod ; do
2854 if test "$enableval" = "$ol_val" ; then
2858 if test "$ol_arg" = "invalid" ; then
2859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861 { (exit 1); exit 1; }; }
2863 ol_enable_ldap="$ol_arg"
2866 ol_enable_ldap=${ol_enable_backends:-no}
2869 # OpenLDAP --enable-ldbm
2871 # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873 enableval="$enable_ldbm"
2876 for ol_val in no yes mod ; do
2877 if test "$enableval" = "$ol_val" ; then
2881 if test "$ol_arg" = "invalid" ; then
2882 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884 { (exit 1); exit 1; }; }
2886 ol_enable_ldbm="$ol_arg"
2889 ol_enable_ldbm=${ol_enable_backends:-no}
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895 withval="$with_ldbm_api"
2897 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899 enable_ldbm_api="$with_ldbm_api"
2901 # OpenLDAP --enable-ldbm_api
2903 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905 enableval="$enable_ldbm_api"
2908 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_ldbm_api="$ol_arg"
2921 ol_enable_ldbm_api=auto
2923 # end --enable-ldbm_api
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928 withval="$with_ldbm_type"
2930 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932 enable_ldbm_type="$with_ldbm_type"
2934 # OpenLDAP --enable-ldbm_type
2936 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938 enableval="$enable_ldbm_type"
2941 for ol_val in auto btree hash ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_ldbm_type="$ol_arg"
2954 ol_enable_ldbm_type=auto
2956 # end --enable-ldbm_type
2958 # OpenLDAP --enable-meta
2960 # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962 enableval="$enable_meta"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_meta="$ol_arg"
2978 ol_enable_meta=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-monitor
2983 # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985 enableval="$enable_monitor"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_monitor="$ol_arg"
3001 ol_enable_monitor=${ol_enable_backends:-yes}
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3006 # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008 enableval="$enable_null"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_null="$ol_arg"
3024 ol_enable_null=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-passwd
3029 # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031 enableval="$enable_passwd"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_passwd="$ol_arg"
3047 ol_enable_passwd=${ol_enable_backends:-no}
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3052 # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054 enableval="$enable_perl"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_perl="$ol_arg"
3070 ol_enable_perl=${ol_enable_backends:-no}
3073 # OpenLDAP --enable-relay
3075 # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077 enableval="$enable_relay"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_relay="$ol_arg"
3093 ol_enable_relay=${ol_enable_backends:-yes}
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3098 # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100 enableval="$enable_shell"
3103 for ol_val in no yes mod ; do
3104 if test "$enableval" = "$ol_val" ; then
3108 if test "$ol_arg" = "invalid" ; then
3109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111 { (exit 1); exit 1; }; }
3113 ol_enable_shell="$ol_arg"
3116 ol_enable_shell=${ol_enable_backends:-no}
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3121 # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123 enableval="$enable_sql"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_sql="$ol_arg"
3139 ol_enable_sql=${ol_enable_backends:-no}
3143 Overlays="accesslog \
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160 enableval="$enable_xxslapoverlays"
3164 # OpenLDAP --enable-overlays
3166 # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168 enableval="$enable_overlays"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_overlays="$ol_arg"
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3187 # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189 enableval="$enable_accesslog"
3192 for ol_val in no yes mod ; do
3193 if test "$enableval" = "$ol_val" ; then
3197 if test "$ol_arg" = "invalid" ; then
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200 { (exit 1); exit 1; }; }
3202 ol_enable_accesslog="$ol_arg"
3205 ol_enable_accesslog=${ol_enable_overlays:-no}
3207 # end --enable-accesslog
3209 # OpenLDAP --enable-denyop
3211 # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213 enableval="$enable_denyop"
3216 for ol_val in no yes mod ; do
3217 if test "$enableval" = "$ol_val" ; then
3221 if test "$ol_arg" = "invalid" ; then
3222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ol_enable_denyop="$ol_arg"
3229 ol_enable_denyop=${ol_enable_overlays:-no}
3231 # end --enable-denyop
3233 # OpenLDAP --enable-dyngroup
3235 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237 enableval="$enable_dyngroup"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_dyngroup="$ol_arg"
3253 ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 # end --enable-dyngroup
3257 # OpenLDAP --enable-dynlist
3259 # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261 enableval="$enable_dynlist"
3264 for ol_val in no yes mod ; do
3265 if test "$enableval" = "$ol_val" ; then
3269 if test "$ol_arg" = "invalid" ; then
3270 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272 { (exit 1); exit 1; }; }
3274 ol_enable_dynlist="$ol_arg"
3277 ol_enable_dynlist=${ol_enable_overlays:-no}
3279 # end --enable-dynlist
3281 # OpenLDAP --enable-lastmod
3283 # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285 enableval="$enable_lastmod"
3288 for ol_val in no yes mod ; do
3289 if test "$enableval" = "$ol_val" ; then
3293 if test "$ol_arg" = "invalid" ; then
3294 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296 { (exit 1); exit 1; }; }
3298 ol_enable_lastmod="$ol_arg"
3301 ol_enable_lastmod=${ol_enable_overlays:-no}
3303 # end --enable-lastmod
3305 # OpenLDAP --enable-ppolicy
3307 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309 enableval="$enable_ppolicy"
3312 for ol_val in no yes mod ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_ppolicy="$ol_arg"
3325 ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 # end --enable-ppolicy
3329 # OpenLDAP --enable-proxycache
3331 # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333 enableval="$enable_proxycache"
3336 for ol_val in no yes mod ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_proxycache="$ol_arg"
3349 ol_enable_proxycache=${ol_enable_overlays:-no}
3351 # end --enable-proxycache
3353 # OpenLDAP --enable-refint
3355 # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357 enableval="$enable_refint"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_refint="$ol_arg"
3373 ol_enable_refint=${ol_enable_overlays:-no}
3375 # end --enable-refint
3377 # OpenLDAP --enable-retcode
3379 # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381 enableval="$enable_retcode"
3384 for ol_val in no yes mod ; do
3385 if test "$enableval" = "$ol_val" ; then
3389 if test "$ol_arg" = "invalid" ; then
3390 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392 { (exit 1); exit 1; }; }
3394 ol_enable_retcode="$ol_arg"
3397 ol_enable_retcode=${ol_enable_overlays:-no}
3399 # end --enable-retcode
3401 # OpenLDAP --enable-rwm
3403 # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405 enableval="$enable_rwm"
3408 for ol_val in no yes mod ; do
3409 if test "$enableval" = "$ol_val" ; then
3413 if test "$ol_arg" = "invalid" ; then
3414 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416 { (exit 1); exit 1; }; }
3418 ol_enable_rwm="$ol_arg"
3421 ol_enable_rwm=${ol_enable_overlays:-no}
3425 # OpenLDAP --enable-syncprov
3427 # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429 enableval="$enable_syncprov"
3432 for ol_val in no yes mod ; do
3433 if test "$enableval" = "$ol_val" ; then
3437 if test "$ol_arg" = "invalid" ; then
3438 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440 { (exit 1); exit 1; }; }
3442 ol_enable_syncprov="$ol_arg"
3445 ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 # end --enable-syncprov
3449 # OpenLDAP --enable-translucent
3451 # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453 enableval="$enable_translucent"
3456 for ol_val in no yes mod ; do
3457 if test "$enableval" = "$ol_val" ; then
3461 if test "$ol_arg" = "invalid" ; then
3462 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464 { (exit 1); exit 1; }; }
3466 ol_enable_translucent="$ol_arg"
3469 ol_enable_translucent=${ol_enable_overlays:-no}
3471 # end --enable-translucent
3473 # OpenLDAP --enable-unique
3475 # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477 enableval="$enable_unique"
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_unique="$ol_arg"
3493 ol_enable_unique=${ol_enable_overlays:-no}
3495 # end --enable-unique
3497 # OpenLDAP --enable-valsort
3499 # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501 enableval="$enable_valsort"
3504 for ol_val in no yes mod ; do
3505 if test "$enableval" = "$ol_val" ; then
3509 if test "$ol_arg" = "invalid" ; then
3510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512 { (exit 1); exit 1; }; }
3514 ol_enable_valsort="$ol_arg"
3517 ol_enable_valsort=${ol_enable_overlays:-no}
3519 # end --enable-valsort
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524 enableval="$enable_xxslurpdoptions"
3527 # OpenLDAP --enable-slurpd
3529 # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531 enableval="$enable_slurpd"
3534 for ol_val in auto yes no ; do
3535 if test "$enableval" = "$ol_val" ; then
3539 if test "$ol_arg" = "invalid" ; then
3540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542 { (exit 1); exit 1; }; }
3544 ol_enable_slurpd="$ol_arg"
3547 ol_enable_slurpd=auto
3549 # end --enable-slurpd
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553 enableval="$enable_xxliboptions"
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558 enableval="$enable_static"
3559 p=${PACKAGE-default}
3561 yes) enable_static=yes ;;
3562 no) enable_static=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582 enableval="$enable_shared"
3583 p=${PACKAGE-default}
3585 yes) enable_shared=yes ;;
3586 no) enable_shared=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3607 if test $ol_enable_slapd = no ; then
3608 if test $ol_enable_slapi = yes ; then
3609 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612 case "$ol_enable_backends" in yes | mod)
3613 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616 for i in $Backends; do
3617 eval "ol_tmp=\$ol_enable_$i"
3618 if test $ol_tmp != no ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621 eval "ol_enable_$i=no"
3624 if test $ol_enable_modules = yes ; then
3625 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628 if test $ol_enable_multimaster = yes ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632 if test $ol_enable_wrappers = yes ; then
3633 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636 if test $ol_enable_rlookups = yes ; then
3637 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640 if test $ol_enable_aci = yes ; then
3641 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644 if test $ol_enable_ldbm_api != auto ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648 if test $ol_enable_ldbm_type != auto ; then
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652 if test $ol_enable_slurpd = yes ; then
3653 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655 { (exit 1); exit 1; }; }
3657 if test $ol_enable_rewrite = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661 case "$ol_enable_overlays" in yes | mod)
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665 for i in $Overlays; do
3666 eval "ol_tmp=\$ol_enable_$i"
3667 if test $ol_tmp != no ; then
3668 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670 eval "ol_enable_$i=no"
3674 # force settings to no
3679 ol_enable_modules=no
3680 ol_enable_multimaster=no
3681 ol_enable_rlookups=no
3683 ol_enable_wrappers=no
3685 ol_enable_ldbm_api=no
3686 ol_enable_ldbm_type=no
3690 ol_enable_rewrite=no
3692 elif test $ol_enable_ldbm = no ; then
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3704 if test $ol_enable_modules != yes &&
3705 test $ol_enable_bdb = no &&
3706 test $ol_enable_dnssrv = no &&
3707 test $ol_enable_hdb = no &&
3708 test $ol_enable_ldap = no &&
3709 test $ol_enable_meta = no &&
3710 test $ol_enable_monitor = no &&
3711 test $ol_enable_null = no &&
3712 test $ol_enable_passwd = no &&
3713 test $ol_enable_perl = no &&
3714 test $ol_enable_relay = no &&
3715 test $ol_enable_shell = no &&
3716 test $ol_enable_sql = no ; then
3718 if test $ol_enable_slapd = yes ; then
3719 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3729 ol_enable_ldbm_api=no
3730 ol_enable_ldbm_type=no
3732 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733 ol_enable_ldbm_api=berkeley
3737 if test $ol_enable_ldbm_api = gdbm &&
3738 test $ol_enable_ldbm_type = btree ; then
3739 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741 { (exit 1); exit 1; }; }
3743 if test $ol_enable_ldbm_api = mdbm &&
3744 test $ol_enable_ldbm_type = btree ; then
3745 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747 { (exit 1); exit 1; }; }
3749 if test $ol_enable_ldbm_api = ndbm &&
3750 test $ol_enable_ldbm_type = btree ; then
3751 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753 { (exit 1); exit 1; }; }
3756 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757 if test $ol_enable_ldbm_api = auto ; then
3758 ol_enable_ldbm_api=berkeley
3759 elif test $ol_enable_ldbm_api != berkeley ; then
3760 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762 { (exit 1); exit 1; }; }
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770 { (exit 1); exit 1; }; }
3773 if test $ol_enable_slurpd = yes ; then
3774 if test $ol_with_threads = no ; then
3775 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777 { (exit 1); exit 1; }; }
3781 if test $ol_enable_lmpasswd = yes ; then
3782 if test $ol_with_tls = no ; then
3783 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785 { (exit 1); exit 1; }; }
3789 if test $ol_enable_kbind = yes ; then
3790 if test $ol_with_kerberos = no ; then
3791 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793 { (exit 1); exit 1; }; }
3794 elif test $ol_with_kerberos = auto ; then
3795 ol_with_kerberos=yes
3798 elif test $ol_enable_kbind = no ; then
3799 if test $ol_with_kerberos = auto ; then
3801 elif test $ol_with_kerberos != no ; then
3802 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3808 if test $ol_enable_spasswd = yes ; then
3809 if test $ol_with_cyrus_sasl = no ; then
3810 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812 { (exit 1); exit 1; }; }
3814 ol_with_cyrus_sasl=yes
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3861 BUILD_TRANSLUCENT=no
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3906 *-*-aix*) if test -z "$CC" ; then
3907 case "$ol_with_threads" in
3908 auto | yes | posix) ol_aix_threads=yes ;;
3914 if test $ol_aix_threads = yes ; then
3915 if test -z "${CC}" ; then
3916 for ac_prog in cc_r xlc_r cc
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_CC="$ac_prog"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$CC"; then
3946 echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 test -n "$CC" && break
3957 if test "$CC" = cc ; then
3958 if test $ol_with_threads != auto ; then
3959 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961 { (exit 1); exit 1; }; }
3963 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3970 case ${CC} in cc_r | xlc_r)
3971 ol_with_threads=posix
3972 ol_cv_pthread_create=yes
3977 if test -z "${CC}"; then
3978 for ac_prog in cc gcc
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="$ac_prog"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4015 test -n "$CC" && break
4017 test -n "$CC" || CC="missing"
4020 if test "${CC}" = "missing" ; then
4021 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4023 { (exit 1); exit 1; }; }
4027 if test -z "${AR}"; then
4028 for ac_prog in ar gar
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$AR"; then
4038 ac_cv_prog_AR="$AR" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_AR="$ac_prog"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$AR"; then
4058 echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 test -n "$AR" && break
4067 test -n "$AR" || AR="missing"
4070 if test "${AR}" = "missing" ; then
4071 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4073 { (exit 1); exit 1; }; }
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083 enableval="$enable_fast_install"
4084 p=${PACKAGE-default}
4086 yes) enable_fast_install=yes ;;
4087 no) enable_fast_install=no ;;
4089 enable_fast_install=no
4090 # Look at the argument we got. We use all the common list separators.
4091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092 for pkg in $enableval; do
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4102 enable_fast_install=yes
4105 DEPDIR="${am__leading_dot}deps"
4107 ac_config_commands="$ac_config_commands depfiles"
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136 echo '.include "confinc"' > confmf
4137 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138 am__include=.include
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151 enableval="$enable_dependency_tracking"
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4160 if test "x$enable_dependency_tracking" != xno; then
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4212 if test -z "$ac_cv_prog_CC"; then
4214 # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$ac_ct_CC"; then
4222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_CC="gcc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$CC"; then
4284 echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CC"; then
4421 echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$CC" && break
4431 if test -z "$CC"; then
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$ac_ct_CC" && break
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487 "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490 (eval $ac_compiler --version </dev/null >&5) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495 (eval $ac_compiler -v </dev/null >&5) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500 (eval $ac_compiler -V </dev/null >&5) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529 (eval $ac_link_default) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 # Find the output, starting from the most likely. This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4543 test -f "$ac_file" || continue
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4548 # This is the source file.
4551 # We found the default executable, but exeext='' is most
4555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # FIXME: I believe we export ac_cv_exeext for Libtool,
4557 # but it would be cool to find out if it's true. Does anybody
4558 # maintain Libtool? --akim.
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573 { (exit 77); exit 77; }; }
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4580 # Check the compiler produces executables we can run. If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587 if { ac_try='./$ac_file'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 if test "$cross_compiling" = maybe; then
4598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run. If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4631 for ac_file in conftest.exe conftest conftest.*; do
4632 test -f "$ac_file" || continue
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4642 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822 CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824 if test "$GCC" = yes; then
4830 if test "$GCC" = yes; then
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_cv_prog_cc_stdc=no
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4867 s = g (p, va_arg (v,int));
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873 function prototypes and stuff, but not '\xHH' hex character constants.
4874 These don't provoke an error unfortunately, instead are silently treated
4875 as 'x'. The following induces an error, until -std1 is added to get
4876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877 array size at least. It's necessary to write '\x00'==0 to get something
4878 that's true only with -std1. */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX -qlanglvl=ansi
4898 # Ultrix and OSF/1 -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions -Aa -D_HPUX_SOURCE
4901 # SVR4 -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904 CC="$ac_save_CC $ac_arg"
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_prog_cc_stdc=$ac_arg
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f conftest.err conftest.$ac_objext
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4941 case "x$ac_cv_prog_cc_stdc" in
4943 echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948 CC="$CC $ac_cv_prog_cc_stdc" ;;
4951 # Some people use a C++ compiler to compile C. Since we use `exit',
4952 # in C++ we need to declare it. In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 if test -n "$ac_declaration"; then
5083 echo '#ifdef __cplusplus' >>confdefs.h
5084 echo $ac_declaration >>confdefs.h
5085 echo '#endif' >>confdefs.h
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 depcc="$CC" am_compiler_list=
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108 # We make a subdir and do the tests there. Otherwise we can end up
5109 # making bogus files that we don't know about and never remove. For
5110 # instance it was reported that on HP-UX the gcc test will end up
5111 # making a dummy file named `D' -- because `-MD' means `put the output
5114 # Copy depcomp to subdir because otherwise we won't find it if we're
5115 # using a relative directory.
5116 cp "$am_depcomp" conftest.dir
5118 # We will build objects and dependencies in a subdirectory because
5119 # it helps to detect inapplicable dependency modes. For instance
5120 # both Tru64's cc and ICC support -MD to output dependencies as a
5121 # side effect of compilation, but ICC will put the dependencies in
5122 # the current directory while Tru64 will put them in the object
5126 am_cv_CC_dependencies_compiler_type=none
5127 if test "$am_compiler_list" = ""; then
5128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149 # after this tag, mechanisms are not by side-effect, so they'll
5150 # only be used when explicitly requested
5151 if test "x$enable_dependency_tracking" = xyes; then
5159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160 # mode. It turns out that the SunPro C++ compiler does not properly
5161 # handle `-M -o', and we need to detect this.
5162 if depmode=$depmode \
5163 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166 >/dev/null 2>conftest.err &&
5167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170 # icc doesn't choke on unknown options, it will just issue warnings
5171 # or remarks (even with -Werror). So we grep stderr for any message
5172 # that says an option was ignored or not supported.
5173 # When given -MP, icc 7.0 and 7.1 complain thusly:
5174 # icc: Command line warning: ignoring option '-M'; no argument required
5175 # The diagnosis changed in icc 8.0:
5176 # icc: Command line remark: option '-MP' not supported
5177 if (grep 'ignoring option' conftest.err ||
5178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179 am_cv_CC_dependencies_compiler_type=$depmode
5188 am_cv_CC_dependencies_compiler_type=none
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_FALSE='#'
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for lt_ac_prog in sed gsed; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234 test ! -f $lt_ac_sed && continue
5235 cat /dev/null > conftest.in
5237 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238 # Check for GNU sed and select it if it is found.
5239 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240 lt_cv_path_SED=$lt_ac_sed
5244 cat conftest.in conftest.in >conftest.tmp
5245 mv conftest.tmp conftest.in
5246 cp conftest.in conftest.nl
5248 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249 cmp -s conftest.out conftest.nl || break
5250 # 10000 chars as input seems more than enough
5251 test $lt_ac_count -gt 10 && break
5252 lt_ac_count=`expr $lt_ac_count + 1`
5253 if test $lt_ac_count -gt $lt_ac_max; then
5254 lt_ac_max=$lt_ac_count
5255 lt_cv_path_SED=$lt_ac_sed
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272 then ac_cv_prog_egrep='grep -E'
5273 else ac_cv_prog_egrep='egrep'
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278 EGREP=$ac_cv_prog_egrep
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284 withval="$with_gnu_ld"
5285 test "$withval" = no || with_gnu_ld=yes
5290 if test "$GCC" = yes; then
5291 # Check if gcc -print-prog-name=ld gives a path.
5292 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5296 # gcc leaves a trailing carriage return which upsets mingw
5297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302 # Accept absolute paths.
5304 re_direlt='/[^/][^/]*/\.\./'
5305 # Canonicalize the pathname of ld
5306 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5310 test -z "$LD" && LD="$ac_prog"
5313 # If it fails, then pretend we aren't using GCC.
5317 # If it is relative, then search for the first ld in PATH.
5321 elif test "$with_gnu_ld" = yes; then
5322 echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5325 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5328 if test "${lt_cv_path_LD+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -z "$LD"; then
5332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD="$ac_dir/$ac_prog"
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some variants of GNU ld 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 lds 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 all BSDs
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 MSVC,
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 linker 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}\{0,1\} :&$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* | pgf95*)
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='-Bstatic'
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}\{0,1\} :&$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}\{0,1\} :&$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* | pgf95*) # 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 its 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 lds
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 lds
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 chmod a+x \$dldir/$dlname'
9144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9145 dlpath=$dir/\$dldll~
9147 shlibpath_overrides_runpath=yes
9151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9156 # MinGW DLLs use traditional 'lib' prefix
9157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9160 # It is most probably a Windows format PATH printed by
9161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9162 # path with ; separators, and with drive letters. We can handle the
9163 # drive letters (cygwin fileutils understands them), so leave them,
9164 # especially as we might pass files found there to a mingw objdump,
9165 # which wouldn't understand a cygwinified path. Ahh.
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 # pw32 DLLs use 'pw' prefix rather than 'lib'
9173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9182 dynamic_linker='Win32 ld.exe'
9183 # FIXME: first we should search . and the directory the executable is in
9187 darwin* | rhapsody*)
9188 dynamic_linker="$host_os dyld"
9192 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9193 soname_spec='${libname}${release}${major}$shared_ext'
9194 shlibpath_overrides_runpath=yes
9195 shlibpath_var=DYLD_LIBRARY_PATH
9196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9197 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9198 if test "$GCC" = yes; then
9199 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"`
9201 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9228 dynamic_linker='GNU ld.so'
9231 freebsd* | dragonfly*)
9232 # DragonFly does not have aout. When/if they implement a new
9233 # versioning mechanism, adjust this.
9234 if test -x /usr/bin/objformat; then
9235 objformat=`/usr/bin/objformat`
9238 freebsd[123]*) objformat=aout ;;
9242 version_type=freebsd-$objformat
9243 case $version_type in
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9254 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9259 freebsd3.[01]* | freebsdelf3.[01]*)
9260 shlibpath_overrides_runpath=yes
9261 hardcode_into_libs=yes
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 hardcode_into_libs=yes
9280 hpux9* | hpux10* | hpux11*)
9281 # Give a soname corresponding to the major version so that dld.sl refuses to
9282 # link against other versions.
9289 hardcode_into_libs=yes
9290 dynamic_linker="$host_os dld.so"
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 if test "X$HPUX_IA64_MODE" = X32; then
9296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.sl"
9306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9315 dynamic_linker="$host_os dld.sl"
9316 shlibpath_var=SHLIB_PATH
9317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323 postinstall_cmds='chmod 555 $lib'
9326 irix5* | irix6* | nonstopux*)
9328 nonstopux*) version_type=nonstopux ;;
9330 if test "$lt_cv_prog_gnu_ld" = yes; then
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9341 irix5* | nonstopux*)
9345 case $LD in # libtool.m4 will add one of these switches to LD
9346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9347 libsuff= shlibsuff= libmagic=32-bit;;
9348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9349 libsuff=32 shlibsuff=N32 libmagic=N32;;
9350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9352 *) libsuff= shlibsuff= libmagic=never-match;;
9356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9357 shlibpath_overrides_runpath=no
9358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9360 hardcode_into_libs=yes
9363 # No shared lib support for Linux oldld, aout, or coff.
9364 linux*oldld* | linux*aout* | linux*coff*)
9368 # This must be Linux ELF.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=no
9378 # This implies no fast_install, which is unacceptable.
9379 # Some rework will be needed to allow for fast_install
9380 # before this can be enabled.
9381 hardcode_into_libs=yes
9383 # Append ld.so.conf contents to the search path
9384 if test -f /etc/ld.so.conf; then
9385 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' ' '`
9386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9389 # We used to test for /lib/ld.so.1 and disable shared libraries on
9390 # powerpc, because MkLinux only supported shared libraries with the
9391 # GNU dynamic linker. Since this was broken with cross compilers,
9392 # most powerpc-linux boxes support dynamic linking these days and
9393 # people can always --disable-shared, the test was removed, and we
9394 # assume the GNU/Linux dynamic linker is in use.
9395 dynamic_linker='GNU/Linux ld.so'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9407 dynamic_linker='GNU ld.so'
9414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417 dynamic_linker='NetBSD (a.out) ld.so'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 dynamic_linker='NetBSD ld.elf_so'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451 *) need_version=no ;;
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9458 openbsd2.[89] | openbsd2.[89].*)
9459 shlibpath_overrides_runpath=no
9462 shlibpath_overrides_runpath=yes
9466 shlibpath_overrides_runpath=yes
9471 libname_spec='$name'
9474 library_names_spec='$libname${shared_ext} $libname.a'
9475 dynamic_linker='OS/2 ld.exe'
9476 shlibpath_var=LIBPATH
9479 osf3* | osf4* | osf5*)
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 shlibpath_var=LD_LIBRARY_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath=yes
9505 hardcode_into_libs=yes
9506 # ldd complains unless libraries are executable
9507 postinstall_cmds='chmod +x $lib'
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 shlibpath_overrides_runpath=yes
9516 if test "$with_gnu_ld" = yes; then
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 case $host_vendor in
9529 shlibpath_overrides_runpath=no
9531 export_dynamic_flag_spec='${wl}-Blargedynsym'
9532 runpath_var=LD_RUN_PATH
9540 shlibpath_overrides_runpath=no
9541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9547 if test -d /usr/nec ;then
9549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9550 soname_spec='$libname${shared_ext}.$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9567 echo "${ECHO_T}$dynamic_linker" >&6
9568 test "$dynamic_linker" = no && can_build_shared=no
9570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9573 if test -n "$hardcode_libdir_flag_spec" || \
9574 test -n "$runpath_var" || \
9575 test "X$hardcode_automatic" = "Xyes" ; then
9577 # We can hardcode non-existant directories.
9578 if test "$hardcode_direct" != no &&
9579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580 # have to relink, otherwise we might link with an installed library
9581 # when we should be linking with a yet-to-be-installed one
9582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583 test "$hardcode_minus_L" != no; then
9584 # Linking always hardcodes the temporary library directory.
9585 hardcode_action=relink
9587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588 hardcode_action=immediate
9591 # We cannot hardcode anything, or else we can only hardcode existing
9593 hardcode_action=unsupported
9595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596 echo "${ECHO_T}$hardcode_action" >&6
9598 if test "$hardcode_action" = relink; then
9599 # Fast installation is not supported
9600 enable_fast_install=no
9601 elif test "$shlibpath_overrides_runpath" = yes ||
9602 test "$enable_shared" = no; then
9603 # Fast installation is not necessary
9604 enable_fast_install=needless
9609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614 echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9617 # FIXME - insert some real tests, host_os isn't really good enough
9620 if test -n "$STRIP" ; then
9621 striplib="$STRIP -x"
9622 echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9630 echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9636 if test "x$enable_dlopen" != xyes; then
9637 enable_dlopen=unknown
9638 enable_dlopen_self=unknown
9639 enable_dlopen_self_static=unknown
9646 lt_cv_dlopen="load_add_on"
9648 lt_cv_dlopen_self=yes
9652 lt_cv_dlopen="LoadLibrary"
9657 lt_cv_dlopen="dlopen"
9662 # if libdl is installed we need to link against it
9663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_dl_dlopen=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_dl_dlopen=no
9721 rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9727 if test $ac_cv_lib_dl_dlopen = yes; then
9728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733 lt_cv_dlopen_self=yes
9740 echo "$as_me:$LINENO: checking for shl_load" >&5
9741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9742 if test "${ac_cv_func_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9753 #define shl_load innocuous_shl_load
9755 /* System header to define __stub macros and hopefully few prototypes,
9756 which can conflict with char shl_load (); below.
9757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 <limits.h> exists even on freestanding compilers. */
9761 # include <limits.h>
9763 # include <assert.h>
9768 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9776 /* The GNU C library defines this for functions which it implements
9777 to always fail with ENOSYS. Some functions are actually named
9778 something starting with __ and the normal name is an alias. */
9779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9782 char (*f) () = shl_load;
9791 return f != shl_load;
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_func_shl_load=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_func_shl_load=no
9825 rm -f conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9830 if test $ac_cv_func_shl_load = yes; then
9831 lt_cv_dlopen="shl_load"
9833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_lib_dld_shl_load=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_cv_lib_dld_shl_load=no
9891 rm -f conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9897 if test $ac_cv_lib_dld_shl_load = yes; then
9898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9900 echo "$as_me:$LINENO: checking for dlopen" >&5
9901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9902 if test "${ac_cv_func_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define dlopen innocuous_dlopen
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char dlopen (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9928 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9942 char (*f) () = dlopen;
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_func_dlopen=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_dlopen=no
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9990 if test $ac_cv_func_dlopen = yes; then
9991 lt_cv_dlopen="dlopen"
9993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_check_lib_save_LIBS=$LIBS
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_lib_dl_dlopen=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_dl_dlopen=no
10051 rm -f conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lsvld $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10074 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_svld_dlopen=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_svld_dlopen=no
10118 rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 ac_check_lib_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10141 /* Override any gcc2 internal prototype to avoid an error. */
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_dld_dld_link=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_dld_dld_link=no
10185 rm -f conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10191 if test $ac_cv_lib_dld_dld_link = yes; then
10192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10213 if test "x$lt_cv_dlopen" != xno; then
10219 case $lt_cv_dlopen in
10221 save_CPPFLAGS="$CPPFLAGS"
10222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224 save_LDFLAGS="$LDFLAGS"
10225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10228 LIBS="$lt_cv_dlopen_libs $LIBS"
10230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10232 if test "${lt_cv_dlopen_self+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 if test "$cross_compiling" = yes; then :
10236 lt_cv_dlopen_self=cross
10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239 lt_status=$lt_dlunknown
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10251 # define LT_DLGLOBAL RTLD_GLOBAL
10254 # define LT_DLGLOBAL DL_GLOBAL
10256 # define LT_DLGLOBAL 0
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261 find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10267 # define LT_DLLAZY_OR_NOW DL_LAZY
10270 # define LT_DLLAZY_OR_NOW RTLD_NOW
10273 # define LT_DLLAZY_OR_NOW DL_NOW
10275 # define LT_DLLAZY_OR_NOW 0
10283 extern "C" void exit (int);
10286 void fnord() { int i=42;}
10289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290 int status = $lt_dlunknown;
10294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10296 /* dlclose (self); */
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307 (./conftest; exit; ) >&5 2>/dev/null
10309 case x$lt_status in
10310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10315 # compilation failed
10316 lt_cv_dlopen_self=no
10323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326 if test "x$lt_cv_dlopen_self" = xyes; then
10327 LDFLAGS="$LDFLAGS $link_static_flag"
10328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10330 if test "${lt_cv_dlopen_self_static+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 if test "$cross_compiling" = yes; then :
10334 lt_cv_dlopen_self_static=cross
10336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337 lt_status=$lt_dlunknown
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10349 # define LT_DLGLOBAL RTLD_GLOBAL
10352 # define LT_DLGLOBAL DL_GLOBAL
10354 # define LT_DLGLOBAL 0
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359 find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10365 # define LT_DLLAZY_OR_NOW DL_LAZY
10368 # define LT_DLLAZY_OR_NOW RTLD_NOW
10371 # define LT_DLLAZY_OR_NOW DL_NOW
10373 # define LT_DLLAZY_OR_NOW 0
10381 extern "C" void exit (int);
10384 void fnord() { int i=42;}
10387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10388 int status = $lt_dlunknown;
10392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10394 /* dlclose (self); */
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405 (./conftest; exit; ) >&5 2>/dev/null
10407 case x$lt_status in
10408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10413 # compilation failed
10414 lt_cv_dlopen_self_static=no
10421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10425 CPPFLAGS="$save_CPPFLAGS"
10426 LDFLAGS="$save_LDFLAGS"
10431 case $lt_cv_dlopen_self in
10432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10433 *) enable_dlopen_self=unknown ;;
10436 case $lt_cv_dlopen_self_static in
10437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10438 *) enable_dlopen_self_static=unknown ;;
10443 # Report which librarie types wil actually be built
10444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10447 echo "${ECHO_T}$can_build_shared" >&6
10449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10451 test "$can_build_shared" = "no" && enable_shared=no
10453 # On AIX, shared libraries and static libraries use the same namespace, and
10454 # are all built from PIC.
10457 test "$enable_shared" = yes && enable_static=no
10458 if test -n "$RANLIB"; then
10459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10460 postinstall_cmds='$RANLIB $lib'
10465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10466 test "$enable_shared" = yes && enable_static=no
10470 echo "$as_me:$LINENO: result: $enable_shared" >&5
10471 echo "${ECHO_T}$enable_shared" >&6
10473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10475 # Make sure either enable_shared or enable_static is yes.
10476 test "$enable_shared" = yes || enable_static=yes
10477 echo "$as_me:$LINENO: result: $enable_static" >&5
10478 echo "${ECHO_T}$enable_static" >&6
10480 # The else clause should only fire when bootstrapping the
10481 # libtool distribution, otherwise you forgot to ship ltmain.sh
10482 # with your package, and you will get complaints that there are
10483 # no rules to generate ltmain.sh.
10484 if test -f "$ltmain"; then
10485 # See if we are running on zsh, and set the options which allow our commands through
10486 # without removal of \ escapes.
10487 if test -n "${ZSH_VERSION+set}" ; then
10488 setopt NO_GLOB_SUBST
10490 # Now quote all the things that may contain metacharacters while being
10491 # careful not to overquote the AC_SUBSTed values. We take copies of the
10492 # variables and quote the copies for generation of the libtool script.
10493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10497 deplibs_check_method reload_flag reload_cmds need_locks \
10498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10499 lt_cv_sys_global_symbol_to_c_name_address \
10500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10501 old_postinstall_cmds old_postuninstall_cmds \
10505 lt_prog_compiler_wl \
10506 lt_prog_compiler_pic \
10507 lt_prog_compiler_static \
10508 lt_prog_compiler_no_builtin_flag \
10509 export_dynamic_flag_spec \
10510 thread_safe_flag_spec \
10511 whole_archive_flag_spec \
10512 enable_shared_with_static_runtimes \
10514 old_archive_from_new_cmds \
10519 compiler_lib_search_path \
10521 archive_expsym_cmds \
10523 postuninstall_cmds \
10524 old_archive_from_expsyms_cmds \
10525 allow_undefined_flag \
10526 no_undefined_flag \
10527 export_symbols_cmds \
10528 hardcode_libdir_flag_spec \
10529 hardcode_libdir_flag_spec_ld \
10530 hardcode_libdir_separator \
10531 hardcode_automatic \
10533 module_expsym_cmds \
10534 lt_cv_prog_compiler_c_o \
10536 include_expsyms; do
10539 old_archive_cmds | \
10540 old_archive_from_new_cmds | \
10542 archive_expsym_cmds | \
10544 module_expsym_cmds | \
10545 old_archive_from_expsyms_cmds | \
10546 export_symbols_cmds | \
10547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10548 postinstall_cmds | postuninstall_cmds | \
10549 old_postinstall_cmds | old_postuninstall_cmds | \
10550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10551 # Double-quote double-evaled strings.
10552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10561 *'\$0 --fallback-echo"')
10562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10566 cfgfile="${ofile}T"
10567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10569 { echo "$as_me:$LINENO: creating $ofile" >&5
10570 echo "$as_me: creating $ofile" >&6;}
10572 cat <<__EOF__ >> "$cfgfile"
10575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10580 # Free Software Foundation, Inc.
10582 # This file is part of GNU Libtool:
10583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10585 # This program is free software; you can redistribute it and/or modify
10586 # it under the terms of the GNU General Public License as published by
10587 # the Free Software Foundation; either version 2 of the License, or
10588 # (at your option) any later version.
10590 # This program is distributed in the hope that it will be useful, but
10591 # WITHOUT ANY WARRANTY; without even the implied warranty of
10592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10593 # General Public License for more details.
10595 # You should have received a copy of the GNU General Public License
10596 # along with this program; if not, write to the Free Software
10597 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10599 # As a special exception to the GNU General Public License, if you
10600 # distribute this file as part of a program that contains a
10601 # configuration script generated by Autoconf, you may include it under
10602 # the same distribution terms that you use for the rest of that program.
10604 # A sed program that does not truncate output.
10607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10608 Xsed="$SED -e 1s/^X//"
10610 # The HP-UX ksh and POSIX shell print the target directory to stdout
10611 # if CDPATH is set.
10612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10614 # The names of the tagged configurations supported by this script.
10617 # ### BEGIN LIBTOOL CONFIG
10619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10621 # Shell to use when invoking shell scripts.
10624 # Whether or not to build shared libraries.
10625 build_libtool_libs=$enable_shared
10627 # Whether or not to build static libraries.
10628 build_old_libs=$enable_static
10630 # Whether or not to add -lc for building shared libraries.
10631 build_libtool_need_lc=$archive_cmds_need_lc
10633 # Whether or not to disallow shared libs when runtime libs are static
10634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10636 # Whether or not to optimize for fast installation.
10637 fast_install=$enable_fast_install
10640 host_alias=$host_alias
10644 # The build system.
10645 build_alias=$build_alias
10649 # An echo program that does not interpret backslashes.
10654 AR_FLAGS=$lt_AR_FLAGS
10659 # A language-specific compiler.
10662 # Is the compiler the GNU C compiler?
10668 # The linker used to build libraries.
10671 # Whether we need hard or soft links.
10674 # A BSD-compatible nm program.
10677 # A symbol stripping program
10680 # Used to examine libraries when file_magic_cmd begins "file"
10681 MAGIC_CMD=$MAGIC_CMD
10683 # Used on cygwin: DLL creation program.
10686 # Used on cygwin: object dumper.
10689 # Used on cygwin: assembler.
10692 # The name of the directory that contains temporary libtool files.
10695 # How to create reloadable object files.
10696 reload_flag=$lt_reload_flag
10697 reload_cmds=$lt_reload_cmds
10699 # How to pass a linker flag through the compiler.
10700 wl=$lt_lt_prog_compiler_wl
10702 # Object file suffix (normally "o").
10703 objext="$ac_objext"
10705 # Old archive suffix (normally "a").
10708 # Shared library suffix (normally ".so").
10709 shrext_cmds='$shrext_cmds'
10711 # Executable file suffix (normally "").
10714 # Additional compiler flags for building library objects.
10715 pic_flag=$lt_lt_prog_compiler_pic
10718 # What is the maximum length of a command?
10719 max_cmd_len=$lt_cv_sys_max_cmd_len
10721 # Does compiler simultaneously support -c and -o options?
10722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10724 # Must we lock files when doing compilation?
10725 need_locks=$lt_need_locks
10727 # Do we need the lib prefix for modules?
10728 need_lib_prefix=$need_lib_prefix
10730 # Do we need a version for libraries?
10731 need_version=$need_version
10733 # Whether dlopen is supported.
10734 dlopen_support=$enable_dlopen
10736 # Whether dlopen of programs is supported.
10737 dlopen_self=$enable_dlopen_self
10739 # Whether dlopen of statically linked programs is supported.
10740 dlopen_self_static=$enable_dlopen_self_static
10742 # Compiler flag to prevent dynamic linking.
10743 link_static_flag=$lt_lt_prog_compiler_static
10745 # Compiler flag to turn off builtin functions.
10746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10748 # Compiler flag to allow reflexive dlopens.
10749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10751 # Compiler flag to generate shared objects directly from archives.
10752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10754 # Compiler flag to generate thread-safe objects.
10755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10757 # Library versioning type.
10758 version_type=$version_type
10760 # Format of library name prefix.
10761 libname_spec=$lt_libname_spec
10763 # List of archive names. First name is the real one, the rest are links.
10764 # The last name is the one that the linker finds with -lNAME.
10765 library_names_spec=$lt_library_names_spec
10767 # The coded name of the library, if different from the real name.
10768 soname_spec=$lt_soname_spec
10770 # Commands used to build and install an old-style archive.
10772 old_archive_cmds=$lt_old_archive_cmds
10773 old_postinstall_cmds=$lt_old_postinstall_cmds
10774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10776 # Create an old-style archive from a shared archive.
10777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10779 # Create a temporary old-style archive to link instead of a shared archive.
10780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10782 # Commands used to build and install a shared archive.
10783 archive_cmds=$lt_archive_cmds
10784 archive_expsym_cmds=$lt_archive_expsym_cmds
10785 postinstall_cmds=$lt_postinstall_cmds
10786 postuninstall_cmds=$lt_postuninstall_cmds
10788 # Commands used to build a loadable module (assumed same as above if empty)
10789 module_cmds=$lt_module_cmds
10790 module_expsym_cmds=$lt_module_expsym_cmds
10792 # Commands to strip libraries.
10793 old_striplib=$lt_old_striplib
10794 striplib=$lt_striplib
10796 # Dependencies to place before the objects being linked to create a
10798 predep_objects=$lt_predep_objects
10800 # Dependencies to place after the objects being linked to create a
10802 postdep_objects=$lt_postdep_objects
10804 # Dependencies to place before the objects being linked to create a
10806 predeps=$lt_predeps
10808 # Dependencies to place after the objects being linked to create a
10810 postdeps=$lt_postdeps
10812 # The library search path used internally by the compiler when linking
10813 # a shared library.
10814 compiler_lib_search_path=$lt_compiler_lib_search_path
10816 # Method to check whether dependent libraries are shared objects.
10817 deplibs_check_method=$lt_deplibs_check_method
10819 # Command to use when deplibs_check_method == file_magic.
10820 file_magic_cmd=$lt_file_magic_cmd
10822 # Flag that allows shared libraries with undefined symbols to be built.
10823 allow_undefined_flag=$lt_allow_undefined_flag
10825 # Flag that forces no undefined symbols.
10826 no_undefined_flag=$lt_no_undefined_flag
10828 # Commands used to finish a libtool library installation in a directory.
10829 finish_cmds=$lt_finish_cmds
10831 # Same as above, but a single script fragment to be evaled but not shown.
10832 finish_eval=$lt_finish_eval
10834 # Take the output of nm and produce a listing of raw symbols and C names.
10835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10837 # Transform the output of nm in a proper C declaration
10838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10840 # Transform the output of nm in a C name address pair
10841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10843 # This is the shared library runtime path variable.
10844 runpath_var=$runpath_var
10846 # This is the shared library path variable.
10847 shlibpath_var=$shlibpath_var
10849 # Is shlibpath searched before the hard-coded library search path?
10850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10852 # How to hardcode a shared library path into an executable.
10853 hardcode_action=$hardcode_action
10855 # Whether we should hardcode library paths into libraries.
10856 hardcode_into_libs=$hardcode_into_libs
10858 # Flag to hardcode \$libdir into a binary during linking.
10859 # This must work even if \$libdir does not exist.
10860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10862 # If ld is used when linking, flag to hardcode \$libdir into
10863 # a binary during linking. This must work even if \$libdir does
10865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10867 # Whether we need a single -rpath flag with a separated argument.
10868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10871 # resulting binary.
10872 hardcode_direct=$hardcode_direct
10874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10875 # resulting binary.
10876 hardcode_minus_L=$hardcode_minus_L
10878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10879 # the resulting binary.
10880 hardcode_shlibpath_var=$hardcode_shlibpath_var
10882 # Set to yes if building a shared library automatically hardcodes DIR into the library
10883 # and all subsequent libraries and executables linked against it.
10884 hardcode_automatic=$hardcode_automatic
10886 # Variables whose values should be saved in libtool wrapper scripts and
10887 # restored at relink time.
10888 variables_saved_for_relink="$variables_saved_for_relink"
10890 # Whether libtool must link a program against all its dependency libraries.
10891 link_all_deplibs=$link_all_deplibs
10893 # Compile-time system search path for libraries
10894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10896 # Run-time system search path for libraries
10897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10899 # Fix the shell variable \$srcfile for the compiler.
10900 fix_srcfile_path="$fix_srcfile_path"
10902 # Set to yes if exported symbols are required.
10903 always_export_symbols=$always_export_symbols
10905 # The commands to list exported symbols.
10906 export_symbols_cmds=$lt_export_symbols_cmds
10908 # The commands to extract the exported symbol list from a shared archive.
10909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10911 # Symbols that should not be listed in the preloaded symbols.
10912 exclude_expsyms=$lt_exclude_expsyms
10914 # Symbols that must always be exported.
10915 include_expsyms=$lt_include_expsyms
10917 # ### END LIBTOOL CONFIG
10924 cat <<\EOF >> "$cfgfile"
10926 # AIX sometimes has problems with the GCC collect2 program. For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10931 export COLLECT_NAMES
10937 # We use sed instead of cat because bash on DJGPP gets confused if
10938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10939 # text mode, it properly converts lines to CR/LF. This bash problem
10940 # is reportedly fixed, but why not run on old versions too?
10941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10943 mv -f "$cfgfile" "$ofile" || \
10944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10948 # If there is no Makefile yet, we rely on a make rule to execute
10949 # `config.status --recheck' to rerun these tests and create the
10950 # libtool script then.
10951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10952 if test -f "$ltmain_in"; then
10953 test -f Makefile && make "$ltmain"
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10967 # Check whether --with-tags or --without-tags was given.
10968 if test "${with_tags+set}" = set; then
10969 withval="$with_tags"
10970 tagnames="$withval"
10973 if test -f "$ltmain" && test -n "$tagnames"; then
10974 if test ! -f "${ofile}"; then
10975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10979 if test -z "$LTCC"; then
10980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10981 if test -z "$LTCC"; then
10982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10990 # Extract list of available tagged configurations in $ofile.
10991 # Note that this assumes the entire list is on one line.
10992 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10995 for tagname in $tagnames; do
10997 # Check whether tagname contains only valid characters
10998 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11000 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11001 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11002 { (exit 1); exit 1; }; }
11006 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11008 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11009 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11010 { (exit 1); exit 1; }; }
11013 # Update the list of available tags.
11014 if test -n "$tagname"; then
11015 echo appending configuration tag \"$tagname\" to $ofile
11019 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11020 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11021 (test "X$CXX" != "Xg++"))) ; then
11029 if test -n "$F77" && test "X$F77" != "Xno"; then
11037 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11048 # Source file extension for RC test sources.
11051 # Object file extension for compiled RC test sources.
11055 # Code to be used in simple compile tests
11056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11058 # Code to be used in simple link tests
11059 lt_simple_link_test_code="$lt_simple_compile_test_code"
11061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11063 # If no C compiler was specified, use CC.
11066 # Allow CC to be a program name with arguments.
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11084 # Allow CC to be a program name with arguments.
11089 for cc_temp in $compiler""; do
11091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099 lt_cv_prog_compiler_c_o_RC=yes
11101 # The else clause should only fire when bootstrapping the
11102 # libtool distribution, otherwise you forgot to ship ltmain.sh
11103 # with your package, and you will get complaints that there are
11104 # no rules to generate ltmain.sh.
11105 if test -f "$ltmain"; then
11106 # See if we are running on zsh, and set the options which allow our commands through
11107 # without removal of \ escapes.
11108 if test -n "${ZSH_VERSION+set}" ; then
11109 setopt NO_GLOB_SUBST
11111 # Now quote all the things that may contain metacharacters while being
11112 # careful not to overquote the AC_SUBSTed values. We take copies of the
11113 # variables and quote the copies for generation of the libtool script.
11114 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11118 deplibs_check_method reload_flag reload_cmds need_locks \
11119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11120 lt_cv_sys_global_symbol_to_c_name_address \
11121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11122 old_postinstall_cmds old_postuninstall_cmds \
11126 lt_prog_compiler_wl_RC \
11127 lt_prog_compiler_pic_RC \
11128 lt_prog_compiler_static_RC \
11129 lt_prog_compiler_no_builtin_flag_RC \
11130 export_dynamic_flag_spec_RC \
11131 thread_safe_flag_spec_RC \
11132 whole_archive_flag_spec_RC \
11133 enable_shared_with_static_runtimes_RC \
11134 old_archive_cmds_RC \
11135 old_archive_from_new_cmds_RC \
11136 predep_objects_RC \
11137 postdep_objects_RC \
11140 compiler_lib_search_path_RC \
11142 archive_expsym_cmds_RC \
11143 postinstall_cmds_RC \
11144 postuninstall_cmds_RC \
11145 old_archive_from_expsyms_cmds_RC \
11146 allow_undefined_flag_RC \
11147 no_undefined_flag_RC \
11148 export_symbols_cmds_RC \
11149 hardcode_libdir_flag_spec_RC \
11150 hardcode_libdir_flag_spec_ld_RC \
11151 hardcode_libdir_separator_RC \
11152 hardcode_automatic_RC \
11154 module_expsym_cmds_RC \
11155 lt_cv_prog_compiler_c_o_RC \
11156 exclude_expsyms_RC \
11157 include_expsyms_RC; do
11160 old_archive_cmds_RC | \
11161 old_archive_from_new_cmds_RC | \
11162 archive_cmds_RC | \
11163 archive_expsym_cmds_RC | \
11165 module_expsym_cmds_RC | \
11166 old_archive_from_expsyms_cmds_RC | \
11167 export_symbols_cmds_RC | \
11168 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11169 postinstall_cmds | postuninstall_cmds | \
11170 old_postinstall_cmds | old_postuninstall_cmds | \
11171 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11172 # Double-quote double-evaled strings.
11173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11182 *'\$0 --fallback-echo"')
11183 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11189 cat <<__EOF__ >> "$cfgfile"
11190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11194 # Shell to use when invoking shell scripts.
11197 # Whether or not to build shared libraries.
11198 build_libtool_libs=$enable_shared
11200 # Whether or not to build static libraries.
11201 build_old_libs=$enable_static
11203 # Whether or not to add -lc for building shared libraries.
11204 build_libtool_need_lc=$archive_cmds_need_lc_RC
11206 # Whether or not to disallow shared libs when runtime libs are static
11207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11209 # Whether or not to optimize for fast installation.
11210 fast_install=$enable_fast_install
11213 host_alias=$host_alias
11217 # The build system.
11218 build_alias=$build_alias
11222 # An echo program that does not interpret backslashes.
11227 AR_FLAGS=$lt_AR_FLAGS
11232 # A language-specific compiler.
11235 # Is the compiler the GNU C compiler?
11241 # The linker used to build libraries.
11244 # Whether we need hard or soft links.
11247 # A BSD-compatible nm program.
11250 # A symbol stripping program
11253 # Used to examine libraries when file_magic_cmd begins "file"
11254 MAGIC_CMD=$MAGIC_CMD
11256 # Used on cygwin: DLL creation program.
11259 # Used on cygwin: object dumper.
11262 # Used on cygwin: assembler.
11265 # The name of the directory that contains temporary libtool files.
11268 # How to create reloadable object files.
11269 reload_flag=$lt_reload_flag
11270 reload_cmds=$lt_reload_cmds
11272 # How to pass a linker flag through the compiler.
11273 wl=$lt_lt_prog_compiler_wl_RC
11275 # Object file suffix (normally "o").
11276 objext="$ac_objext"
11278 # Old archive suffix (normally "a").
11281 # Shared library suffix (normally ".so").
11282 shrext_cmds='$shrext_cmds'
11284 # Executable file suffix (normally "").
11287 # Additional compiler flags for building library objects.
11288 pic_flag=$lt_lt_prog_compiler_pic_RC
11291 # What is the maximum length of a command?
11292 max_cmd_len=$lt_cv_sys_max_cmd_len
11294 # Does compiler simultaneously support -c and -o options?
11295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11297 # Must we lock files when doing compilation?
11298 need_locks=$lt_need_locks
11300 # Do we need the lib prefix for modules?
11301 need_lib_prefix=$need_lib_prefix
11303 # Do we need a version for libraries?
11304 need_version=$need_version
11306 # Whether dlopen is supported.
11307 dlopen_support=$enable_dlopen
11309 # Whether dlopen of programs is supported.
11310 dlopen_self=$enable_dlopen_self
11312 # Whether dlopen of statically linked programs is supported.
11313 dlopen_self_static=$enable_dlopen_self_static
11315 # Compiler flag to prevent dynamic linking.
11316 link_static_flag=$lt_lt_prog_compiler_static_RC
11318 # Compiler flag to turn off builtin functions.
11319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11321 # Compiler flag to allow reflexive dlopens.
11322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11324 # Compiler flag to generate shared objects directly from archives.
11325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11327 # Compiler flag to generate thread-safe objects.
11328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11330 # Library versioning type.
11331 version_type=$version_type
11333 # Format of library name prefix.
11334 libname_spec=$lt_libname_spec
11336 # List of archive names. First name is the real one, the rest are links.
11337 # The last name is the one that the linker finds with -lNAME.
11338 library_names_spec=$lt_library_names_spec
11340 # The coded name of the library, if different from the real name.
11341 soname_spec=$lt_soname_spec
11343 # Commands used to build and install an old-style archive.
11345 old_archive_cmds=$lt_old_archive_cmds_RC
11346 old_postinstall_cmds=$lt_old_postinstall_cmds
11347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11349 # Create an old-style archive from a shared archive.
11350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11352 # Create a temporary old-style archive to link instead of a shared archive.
11353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11355 # Commands used to build and install a shared archive.
11356 archive_cmds=$lt_archive_cmds_RC
11357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11358 postinstall_cmds=$lt_postinstall_cmds
11359 postuninstall_cmds=$lt_postuninstall_cmds
11361 # Commands used to build a loadable module (assumed same as above if empty)
11362 module_cmds=$lt_module_cmds_RC
11363 module_expsym_cmds=$lt_module_expsym_cmds_RC
11365 # Commands to strip libraries.
11366 old_striplib=$lt_old_striplib
11367 striplib=$lt_striplib
11369 # Dependencies to place before the objects being linked to create a
11371 predep_objects=$lt_predep_objects_RC
11373 # Dependencies to place after the objects being linked to create a
11375 postdep_objects=$lt_postdep_objects_RC
11377 # Dependencies to place before the objects being linked to create a
11379 predeps=$lt_predeps_RC
11381 # Dependencies to place after the objects being linked to create a
11383 postdeps=$lt_postdeps_RC
11385 # The library search path used internally by the compiler when linking
11386 # a shared library.
11387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11389 # Method to check whether dependent libraries are shared objects.
11390 deplibs_check_method=$lt_deplibs_check_method
11392 # Command to use when deplibs_check_method == file_magic.
11393 file_magic_cmd=$lt_file_magic_cmd
11395 # Flag that allows shared libraries with undefined symbols to be built.
11396 allow_undefined_flag=$lt_allow_undefined_flag_RC
11398 # Flag that forces no undefined symbols.
11399 no_undefined_flag=$lt_no_undefined_flag_RC
11401 # Commands used to finish a libtool library installation in a directory.
11402 finish_cmds=$lt_finish_cmds
11404 # Same as above, but a single script fragment to be evaled but not shown.
11405 finish_eval=$lt_finish_eval
11407 # Take the output of nm and produce a listing of raw symbols and C names.
11408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11410 # Transform the output of nm in a proper C declaration
11411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11413 # Transform the output of nm in a C name address pair
11414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11416 # This is the shared library runtime path variable.
11417 runpath_var=$runpath_var
11419 # This is the shared library path variable.
11420 shlibpath_var=$shlibpath_var
11422 # Is shlibpath searched before the hard-coded library search path?
11423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11425 # How to hardcode a shared library path into an executable.
11426 hardcode_action=$hardcode_action_RC
11428 # Whether we should hardcode library paths into libraries.
11429 hardcode_into_libs=$hardcode_into_libs
11431 # Flag to hardcode \$libdir into a binary during linking.
11432 # This must work even if \$libdir does not exist.
11433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11435 # If ld is used when linking, flag to hardcode \$libdir into
11436 # a binary during linking. This must work even if \$libdir does
11438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11440 # Whether we need a single -rpath flag with a separated argument.
11441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11444 # resulting binary.
11445 hardcode_direct=$hardcode_direct_RC
11447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11448 # resulting binary.
11449 hardcode_minus_L=$hardcode_minus_L_RC
11451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11452 # the resulting binary.
11453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11455 # Set to yes if building a shared library automatically hardcodes DIR into the library
11456 # and all subsequent libraries and executables linked against it.
11457 hardcode_automatic=$hardcode_automatic_RC
11459 # Variables whose values should be saved in libtool wrapper scripts and
11460 # restored at relink time.
11461 variables_saved_for_relink="$variables_saved_for_relink"
11463 # Whether libtool must link a program against all its dependency libraries.
11464 link_all_deplibs=$link_all_deplibs_RC
11466 # Compile-time system search path for libraries
11467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11469 # Run-time system search path for libraries
11470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11472 # Fix the shell variable \$srcfile for the compiler.
11473 fix_srcfile_path="$fix_srcfile_path_RC"
11475 # Set to yes if exported symbols are required.
11476 always_export_symbols=$always_export_symbols_RC
11478 # The commands to list exported symbols.
11479 export_symbols_cmds=$lt_export_symbols_cmds_RC
11481 # The commands to extract the exported symbol list from a shared archive.
11482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11484 # Symbols that should not be listed in the preloaded symbols.
11485 exclude_expsyms=$lt_exclude_expsyms_RC
11487 # Symbols that must always be exported.
11488 include_expsyms=$lt_include_expsyms_RC
11490 # ### END LIBTOOL TAG CONFIG: $tagname
11496 # If there is no Makefile yet, we rely on a make rule to execute
11497 # `config.status --recheck' to rerun these tests and create the
11498 # libtool script then.
11499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500 if test -f "$ltmain_in"; then
11501 test -f Makefile && make "$ltmain"
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11519 { (exit 1); exit 1; }; }
11523 # Append the new tag name to the list of available tags.
11524 if test -n "$tagname" ; then
11525 available_tags="$available_tags $tagname"
11531 # Now substitute the updated list of available tags.
11532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11533 mv "${ofile}T" "$ofile"
11537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11539 { (exit 1); exit 1; }; }
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11551 # Prevent multiple expansion
11563 if test $ol_enable_perl != no ; then
11564 # Extract the first word of "perl", so it can be a program name with args.
11565 set dummy perl; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_path_PERLBIN+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11594 PERLBIN=$ac_cv_path_PERLBIN
11596 if test -n "$PERLBIN"; then
11597 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11598 echo "${ECHO_T}$PERLBIN" >&6
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11605 if test "no$PERLBIN" = "no" ; then
11606 if test $ol_enable_perl = yes ; then
11607 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11608 echo "$as_me: error: could not locate perl" >&2;}
11609 { (exit 1); exit 1; }; }
11613 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11614 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11616 if test x"$ol_enable_perl" = "xyes" ; then
11617 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11619 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11632 # On Suns, sometimes $CPP names a directory.
11633 if test -n "$CPP" && test -d "$CPP"; then
11636 if test -z "$CPP"; then
11637 if test "${ac_cv_prog_CPP+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 # Double quotes because CPP needs to be expanded
11641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11643 ac_preproc_ok=false
11644 for ac_c_preproc_warn_flag in '' yes
11646 # Use a header file that comes with gcc, so configuring glibc
11647 # with a fresh cross-compiler works.
11648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 # <limits.h> exists even on freestanding compilers.
11650 # On the NeXT, cc -E runs the code through the compiler's parser,
11651 # not just through cpp. "Syntax error" is here to catch this case.
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 # include <limits.h>
11661 # include <assert.h>
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 if test -z "$ac_cpp_err"; then
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 # Broken: fails on valid input.
11691 rm -f conftest.err conftest.$ac_ext
11693 # OK, works on sane cases. Now check whether non-existent headers
11694 # can be detected and how.
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <ac_nonexistent.h>
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11720 if test -z "$ac_cpp_err"; then
11721 # Broken: success on invalid input.
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 # Passes both tests.
11731 rm -f conftest.err conftest.$ac_ext
11734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11735 rm -f conftest.err conftest.$ac_ext
11736 if $ac_preproc_ok; then
11741 ac_cv_prog_CPP=$CPP
11744 CPP=$ac_cv_prog_CPP
11746 ac_cv_prog_CPP=$CPP
11748 echo "$as_me:$LINENO: result: $CPP" >&5
11749 echo "${ECHO_T}$CPP" >&6
11750 ac_preproc_ok=false
11751 for ac_c_preproc_warn_flag in '' yes
11753 # Use a header file that comes with gcc, so configuring glibc
11754 # with a fresh cross-compiler works.
11755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 # <limits.h> exists even on freestanding compilers.
11757 # On the NeXT, cc -E runs the code through the compiler's parser,
11758 # not just through cpp. "Syntax error" is here to catch this case.
11759 cat >conftest.$ac_ext <<_ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 # include <limits.h>
11768 # include <assert.h>
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } >/dev/null; then
11780 if test -s conftest.err; then
11781 ac_cpp_err=$ac_c_preproc_warn_flag
11782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11789 if test -z "$ac_cpp_err"; then
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 # Broken: fails on valid input.
11798 rm -f conftest.err conftest.$ac_ext
11800 # OK, works on sane cases. Now check whether non-existent headers
11801 # can be detected and how.
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <ac_nonexistent.h>
11810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } >/dev/null; then
11818 if test -s conftest.err; then
11819 ac_cpp_err=$ac_c_preproc_warn_flag
11820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11827 if test -z "$ac_cpp_err"; then
11828 # Broken: success on invalid input.
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 # Passes both tests.
11838 rm -f conftest.err conftest.$ac_ext
11841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11842 rm -f conftest.err conftest.$ac_ext
11843 if $ac_preproc_ok; then
11846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11847 See \`config.log' for more details." >&5
11848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&2;}
11850 { (exit 1); exit 1; }; }
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861 *mingw32* ) ac_cv_mingw32=yes ;;
11862 *cygwin* ) ac_cv_cygwin=yes ;;
11868 cat >>confdefs.h <<_ACEOF
11869 #define EXEEXT "${EXEEXT}"
11873 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11874 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11875 if test "${ac_cv_lib_be_be_app+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lbe -lroot -lnet $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_be_be_app=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_be_be_app=no
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11936 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11937 if test $ac_cv_lib_be_be_app = yes; then
11938 LIBS="$LIBS -lbe -lroot -lnet"
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 if test -n "$ac_tool_prefix"; then
11950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11952 echo "$as_me:$LINENO: checking for $ac_word" >&5
11953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954 if test "${ac_cv_prog_CC+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 if test -n "$CC"; then
11958 ac_cv_prog_CC="$CC" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 if test -n "$CC"; then
11978 echo "$as_me:$LINENO: result: $CC" >&5
11979 echo "${ECHO_T}$CC" >&6
11981 echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11986 if test -z "$ac_cv_prog_CC"; then
11988 # Extract the first word of "gcc", so it can be a program name with args.
11989 set dummy gcc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test -n "$ac_ct_CC"; then
11996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_ac_ct_CC="gcc"
12006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12015 if test -n "$ac_ct_CC"; then
12016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12017 echo "${ECHO_T}$ac_ct_CC" >&6
12019 echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12025 CC="$ac_cv_prog_CC"
12028 if test -z "$CC"; then
12029 if test -n "$ac_tool_prefix"; then
12030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}cc; ac_word=$2
12032 echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034 if test "${ac_cv_prog_CC+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 if test -n "$CC"; then
12038 ac_cv_prog_CC="$CC" # Let the user override the test.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_CC="${ac_tool_prefix}cc"
12048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 if test -n "$CC"; then
12058 echo "$as_me:$LINENO: result: $CC" >&5
12059 echo "${ECHO_T}$CC" >&6
12061 echo "$as_me:$LINENO: result: no" >&5
12062 echo "${ECHO_T}no" >&6
12066 if test -z "$ac_cv_prog_CC"; then
12068 # Extract the first word of "cc", so it can be a program name with args.
12069 set dummy cc; ac_word=$2
12070 echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 if test -n "$ac_ct_CC"; then
12076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085 ac_cv_prog_ac_ct_CC="cc"
12086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097 echo "${ECHO_T}$ac_ct_CC" >&6
12099 echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6
12105 CC="$ac_cv_prog_CC"
12109 if test -z "$CC"; then
12110 # Extract the first word of "cc", so it can be a program name with args.
12111 set dummy cc; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_prog_CC+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 if test -n "$CC"; then
12118 ac_cv_prog_CC="$CC" # Let the user override the test.
12120 ac_prog_rejected=no
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12129 ac_prog_rejected=yes
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 if test $ac_prog_rejected = yes; then
12140 # We found a bogon in the path, so make sure we never use it.
12141 set dummy $ac_cv_prog_CC
12143 if test $# != 0; then
12144 # We chose a different compiler from the bogus one.
12145 # However, it has the same basename, so the bogon will be chosen
12146 # first if we set CC to just the basename; use the full file name.
12148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12154 if test -n "$CC"; then
12155 echo "$as_me:$LINENO: result: $CC" >&5
12156 echo "${ECHO_T}$CC" >&6
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12163 if test -z "$CC"; then
12164 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_prog_CC+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 if test -n "$CC"; then
12175 ac_cv_prog_CC="$CC" # Let the user override the test.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 if test -n "$CC"; then
12195 echo "$as_me:$LINENO: result: $CC" >&5
12196 echo "${ECHO_T}$CC" >&6
12198 echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12202 test -n "$CC" && break
12205 if test -z "$CC"; then
12209 # Extract the first word of "$ac_prog", so it can be a program name with args.
12210 set dummy $ac_prog; ac_word=$2
12211 echo "$as_me:$LINENO: checking for $ac_word" >&5
12212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 if test -n "$ac_ct_CC"; then
12217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_prog_ac_ct_CC="$ac_prog"
12227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12236 if test -n "$ac_ct_CC"; then
12237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12238 echo "${ECHO_T}$ac_ct_CC" >&6
12240 echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12244 test -n "$ac_ct_CC" && break
12253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&2;}
12257 { (exit 1); exit 1; }; }
12259 # Provide some information about the compiler.
12260 echo "$as_me:$LINENO:" \
12261 "checking for C compiler version" >&5
12262 ac_compiler=`set X $ac_compile; echo $2`
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12264 (eval $ac_compiler --version </dev/null >&5) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }
12268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12269 (eval $ac_compiler -v </dev/null >&5) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }
12273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12274 (eval $ac_compiler -V </dev/null >&5) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }
12279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_compiler_gnu=yes
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12335 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12336 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12337 GCC=`test $ac_compiler_gnu = yes && echo yes`
12338 ac_test_CFLAGS=${CFLAGS+set}
12339 ac_save_CFLAGS=$CFLAGS
12341 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12343 if test "${ac_cv_prog_cc_g+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_prog_cc_g=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12394 if test "$ac_test_CFLAGS" = set; then
12395 CFLAGS=$ac_save_CFLAGS
12396 elif test $ac_cv_prog_cc_g = yes; then
12397 if test "$GCC" = yes; then
12403 if test "$GCC" = yes; then
12409 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12410 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12411 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 ac_cv_prog_cc_stdc=no
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <stdarg.h>
12424 #include <sys/types.h>
12425 #include <sys/stat.h>
12426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12427 struct buf { int x; };
12428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12429 static char *e (p, i)
12435 static char *f (char * (*g) (char **, int), char **p, ...)
12440 s = g (p, va_arg (v,int));
12445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12446 function prototypes and stuff, but not '\xHH' hex character constants.
12447 These don't provoke an error unfortunately, instead are silently treated
12448 as 'x'. The following induces an error, until -std1 is added to get
12449 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12450 array size at least. It's necessary to write '\x00'==0 to get something
12451 that's true only with -std1. */
12452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12454 int test (int i, double x);
12455 struct s1 {int (*f) (int a);};
12456 struct s2 {int (*f) (double a);};
12457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12468 # Don't try gcc -ansi; that turns off useful extensions and
12469 # breaks some systems' header files.
12470 # AIX -qlanglvl=ansi
12471 # Ultrix and OSF/1 -std1
12472 # HP-UX 10.20 and later -Ae
12473 # HP-UX older versions -Aa -D_HPUX_SOURCE
12474 # SVR4 -Xc -D__EXTENSIONS__
12475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12477 CC="$ac_save_CC $ac_arg"
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest.$ac_objext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_prog_cc_stdc=$ac_arg
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12507 rm -f conftest.err conftest.$ac_objext
12509 rm -f conftest.$ac_ext conftest.$ac_objext
12514 case "x$ac_cv_prog_cc_stdc" in
12516 echo "$as_me:$LINENO: result: none needed" >&5
12517 echo "${ECHO_T}none needed" >&6 ;;
12519 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12521 CC="$CC $ac_cv_prog_cc_stdc" ;;
12524 # Some people use a C++ compiler to compile C. Since we use `exit',
12525 # in C++ we need to declare it. In case someone uses the same compiler
12526 # for both compiling C and C++ we need to have the C++ compiler decide
12527 # the declaration of exit, since it's the most demanding environment.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #ifndef __cplusplus
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 for ac_declaration in \
12557 'extern "C" void std::exit (int) throw (); using std::exit;' \
12558 'extern "C" void std::exit (int); using std::exit;' \
12559 'extern "C" void exit (int) throw ();' \
12560 'extern "C" void exit (int);' \
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 #include <stdlib.h>
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag"
12589 || test ! -s conftest.err'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 if test -n "$ac_declaration"; then
12656 echo '#ifdef __cplusplus' >>confdefs.h
12657 echo $ac_declaration >>confdefs.h
12658 echo '#endif' >>confdefs.h
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673 depcc="$CC" am_compiler_list=
12675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12681 # We make a subdir and do the tests there. Otherwise we can end up
12682 # making bogus files that we don't know about and never remove. For
12683 # instance it was reported that on HP-UX the gcc test will end up
12684 # making a dummy file named `D' -- because `-MD' means `put the output
12687 # Copy depcomp to subdir because otherwise we won't find it if we're
12688 # using a relative directory.
12689 cp "$am_depcomp" conftest.dir
12691 # We will build objects and dependencies in a subdirectory because
12692 # it helps to detect inapplicable dependency modes. For instance
12693 # both Tru64's cc and ICC support -MD to output dependencies as a
12694 # side effect of compilation, but ICC will put the dependencies in
12695 # the current directory while Tru64 will put them in the object
12699 am_cv_CC_dependencies_compiler_type=none
12700 if test "$am_compiler_list" = ""; then
12701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12703 for depmode in $am_compiler_list; do
12704 # Setup a source with many dependencies, because some compilers
12705 # like to wrap large dependency lists on column 80 (with \), and
12706 # we should not choose a depcomp mode which is confused by this.
12708 # We need to recreate these files for each test, as the compiler may
12709 # overwrite some of them when testing with obscure command lines.
12710 # This happens at least with the AIX C compiler.
12712 for i in 1 2 3 4 5 6; do
12713 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12714 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12715 # Solaris 8's {/usr,}/bin/sh.
12716 touch sub/conftst$i.h
12718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12722 # after this tag, mechanisms are not by side-effect, so they'll
12723 # only be used when explicitly requested
12724 if test "x$enable_dependency_tracking" = xyes; then
12732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12733 # mode. It turns out that the SunPro C++ compiler does not properly
12734 # handle `-M -o', and we need to detect this.
12735 if depmode=$depmode \
12736 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12738 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12739 >/dev/null 2>conftest.err &&
12740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743 # icc doesn't choke on unknown options, it will just issue warnings
12744 # or remarks (even with -Werror). So we grep stderr for any message
12745 # that says an option was ignored or not supported.
12746 # When given -MP, icc 7.0 and 7.1 complain thusly:
12747 # icc: Command line warning: ignoring option '-M'; no argument required
12748 # The diagnosis changed in icc 8.0:
12749 # icc: Command line remark: option '-MP' not supported
12750 if (grep 'ignoring option' conftest.err ||
12751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752 am_cv_CC_dependencies_compiler_type=$depmode
12759 rm -rf conftest.dir
12761 am_cv_CC_dependencies_compiler_type=none
12765 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12766 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12772 test "x$enable_dependency_tracking" != xno \
12773 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12774 am__fastdepCC_TRUE=
12775 am__fastdepCC_FALSE='#'
12777 am__fastdepCC_TRUE='#'
12778 am__fastdepCC_FALSE=
12782 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12783 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12784 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12785 { (exit 1); exit 1; }; }
12788 # test for make depend flag
12791 if test -z "${MKDEP}"; then
12792 OL_MKDEP="${CC-cc}"
12793 if test -z "${MKDEP_FLAGS}"; then
12794 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12795 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12796 if test "${ol_cv_mkdep+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 for flag in "-M" "-xM"; do
12802 cat > conftest.c <<EOF
12805 if { ac_try='$OL_MKDEP $flag conftest.c'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } \
12811 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12813 if test ! -f conftest."${ac_object}" ; then
12815 OL_MKDEP_FLAGS="$flag"
12823 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12824 echo "${ECHO_T}$ol_cv_mkdep" >&6
12827 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12831 OL_MKDEP="${MKDEP}"
12832 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12837 if test "${ol_cv_mkdep}" = no ; then
12838 # this will soon become an error
12839 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12840 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12843 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12844 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12845 if test "${ac_cv_lib_s_afopen+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_s_afopen=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_s_afopen=no
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12906 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12907 if test $ac_cv_lib_s_afopen = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_AIX_SECURITY 1
12921 ac_cv_func_getopt=no
12923 cat >>confdefs.h <<\_ACEOF
12924 #define BOTH_STRINGS_H 1
12931 WITH_MODULES_ENABLED=no
12932 if test $ol_enable_modules != no ; then
12934 for ac_header in ltdl.h
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 $ac_includes_default
12956 #include <$ac_header>
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag"
12968 || test ! -s conftest.err'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest.$ac_objext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 ac_header_compiler=yes
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 ac_header_compiler=no
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12989 echo "${ECHO_T}$ac_header_compiler" >&6
12991 # Is the header present?
12992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 #include <$ac_header>
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_c_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13019 if test -z "$ac_cpp_err"; then
13020 ac_header_preproc=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_header_preproc=no
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13031 # So? What about this header?
13032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13038 ac_header_preproc=yes
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13055 ## ------------------------------------------ ##
13056 ## Report this to the AC_PACKAGE_NAME lists. ##
13057 ## ------------------------------------------ ##
13060 sed "s/^/$as_me: WARNING: /" >&2
13063 echo "$as_me:$LINENO: checking for $ac_header" >&5
13064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 eval "$as_ac_Header=\$ac_header_preproc"
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084 if test $ac_cv_header_ltdl_h = no ; then
13085 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13086 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13087 { (exit 1); exit 1; }; }
13090 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13091 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13092 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lltdl $LIBS"
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 /* Override any gcc2 internal prototype to avoid an error. */
13108 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag"
13129 || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_cv_lib_ltdl_lt_dlinit=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_cv_lib_ltdl_lt_dlinit=no
13148 rm -f conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13153 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13154 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13156 MODULES_LIBS=-lltdl
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_LIBLTDL 1
13166 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13167 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13169 { (exit 1); exit 1; }; }
13171 ol_link_modules=yes
13172 WITH_MODULES_ENABLED=yes
13175 for i in $Backends; do
13176 eval "ol_tmp=\$ol_enable_$i"
13177 if test $ol_tmp = mod ; then
13178 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13179 echo "$as_me: WARNING: building static $i backend" >&2;}
13180 eval "ol_enable_$i=yes"
13183 for i in $Overlays; do
13184 eval "ol_tmp=\$ol_enable_$i"
13185 if test $ol_tmp = mod ; then
13186 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13187 echo "$as_me: WARNING: building static $i overlay" >&2;}
13188 eval "ol_enable_$i=yes"
13194 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13195 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13196 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13208 #include <__ASCII__/generate_error.h>
13212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } >/dev/null; then
13220 if test -s conftest.err; then
13221 ac_cpp_err=$ac_c_preproc_warn_flag
13222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13229 if test -z "$ac_cpp_err"; then
13230 ol_cv_cpp_ebcdic=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ol_cv_cpp_ebcdic=no
13237 rm -f conftest.err conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13240 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13241 if test $ol_cv_cpp_ebcdic = yes ; then
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_EBCDIC 1
13249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13251 if test "${ol_cv_header_stdc+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <stdlib.h>
13261 #include <stdarg.h>
13262 #include <string.h>
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13282 if test -z "$ac_cpp_err"; then
13283 ol_cv_header_stdc=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ol_cv_header_stdc=no
13290 rm -f conftest.err conftest.$ac_ext
13292 if test $ol_cv_header_stdc = yes; then
13293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <string.h>
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304 $EGREP "memchr" >/dev/null 2>&1; then
13307 ol_cv_header_stdc=no
13313 if test $ol_cv_header_stdc = yes; then
13314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <stdlib.h>
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "free" >/dev/null 2>&1; then
13328 ol_cv_header_stdc=no
13334 if test $ol_cv_header_stdc = yes; then
13335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13346 #ifndef HAVE_EBCDIC
13347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13350 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13351 || ('j' <= (c) && (c) <= 'r') \
13352 || ('s' <= (c) && (c) <= 'z'))
13353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 int main () { int i; for (i = 0; i < 256; i++)
13357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13374 echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ( exit $ac_status )
13379 ol_cv_header_stdc=no
13381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13386 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13387 if test $ol_cv_header_stdc = yes; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13393 ac_cv_header_stdc=disable
13396 if test $ol_cv_header_stdc != yes; then
13397 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13398 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13406 ac_header_dirent=no
13407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13408 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <sys/types.h>
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 eval "$as_ac_Header=yes"
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 eval "$as_ac_Header=no"
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13470 ac_header_dirent=$ac_hdr; break
13474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13475 if test $ac_header_dirent = dirent.h; then
13476 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13478 if test "${ac_cv_search_opendir+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 ac_func_search_save_LIBS=$LIBS
13482 ac_cv_search_opendir=no
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_search_opendir="none required"
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13533 rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 if test "$ac_cv_search_opendir" = no; then
13536 for ac_lib in dir; do
13537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_search_opendir="-l$ac_lib"
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13589 rm -f conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_func_search_save_LIBS
13595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13597 if test "$ac_cv_search_opendir" != no; then
13598 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13603 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13605 if test "${ac_cv_search_opendir+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_func_search_save_LIBS=$LIBS
13609 ac_cv_search_opendir=no
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 /* Override any gcc2 internal prototype to avoid an error. */
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_opendir="none required"
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13660 rm -f conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 if test "$ac_cv_search_opendir" = no; then
13663 for ac_lib in x; do
13664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689 (eval $ac_link) 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_search_opendir="-l$ac_lib"
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13716 rm -f conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_func_search_save_LIBS
13722 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13723 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13724 if test "$ac_cv_search_opendir" != no; then
13725 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include <sys/types.h>
13743 #include <sys/wait.h>
13744 #ifndef WEXITSTATUS
13745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13756 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_header_sys_wait_h=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_header_sys_wait_h=no
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13794 if test $ac_cv_header_sys_wait_h = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_SYS_WAIT_H 1
13802 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13803 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13804 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <sys/types.h>
13814 #include <termios.h>
13820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13821 $EGREP "yes" >/dev/null 2>&1; then
13822 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13824 ac_cv_sys_tiocgwinsz_in_termios_h=no
13829 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13830 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13832 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13833 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13834 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13835 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <sys/types.h>
13845 #include <sys/ioctl.h>
13851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13852 $EGREP "yes" >/dev/null 2>&1; then
13853 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13855 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13860 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13861 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13863 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define GWINSZ_IN_SYS_IOCTL 1
13970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972 echo "$as_me:$LINENO: checking for $ac_header" >&5
13973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980 # Is the header compilable?
13981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13990 #include <$ac_header>
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994 (eval $ac_compile) 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_header_compiler=yes
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_header_compiler=no
14021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14023 echo "${ECHO_T}$ac_header_compiler" >&6
14025 # Is the header present?
14026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 #include <$ac_header>
14036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } >/dev/null; then
14044 if test -s conftest.err; then
14045 ac_cpp_err=$ac_c_preproc_warn_flag
14046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14053 if test -z "$ac_cpp_err"; then
14054 ac_header_preproc=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_header_preproc=no
14061 rm -f conftest.err conftest.$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14072 ac_header_preproc=yes
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089 ## ------------------------------------------ ##
14090 ## Report this to the AC_PACKAGE_NAME lists. ##
14091 ## ------------------------------------------ ##
14094 sed "s/^/$as_me: WARNING: /" >&2
14097 echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 eval "$as_ac_Header=\$ac_header_preproc"
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14109 cat >>confdefs.h <<_ACEOF
14110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14119 for ac_header in resolv.h
14121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14134 #include <netinet/in.h>
14137 #include <$ac_header>
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 eval "$as_ac_Header=yes"
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 eval "$as_ac_Header=no"
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14183 for ac_header in sys/ucred.h
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 #ifdef HAVE_SYS_PARAM_H
14199 #include <sys/param.h>
14203 #include <$ac_header>
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 eval "$as_ac_Header=yes"
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 eval "$as_ac_Header=no"
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239 cat >>confdefs.h <<_ACEOF
14240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14251 for ac_func in sigaction sigset
14253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14254 echo "$as_me:$LINENO: checking for $ac_func" >&5
14255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14256 if eval "test \"\${$as_ac_var+set}\" = set"; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14267 #define $ac_func innocuous_$ac_func
14269 /* System header to define __stub macros and hopefully few prototypes,
14270 which can conflict with char $ac_func (); below.
14271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272 <limits.h> exists even on freestanding compilers. */
14275 # include <limits.h>
14277 # include <assert.h>
14282 /* Override any gcc2 internal prototype to avoid an error. */
14287 /* We use char because int might match the return type of a gcc2
14288 builtin and then its argument prototype would still apply. */
14290 /* The GNU C library defines this for functions which it implements
14291 to always fail with ENOSYS. Some functions are actually named
14292 something starting with __ and the normal name is an alias. */
14293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14296 char (*f) () = $ac_func;
14305 return f != $ac_func;
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312 (eval $ac_link) 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 eval "$as_ac_var=yes"
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 eval "$as_ac_var=no"
14339 rm -f conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14344 if test `eval echo '${'$as_ac_var'}'` = yes; then
14345 cat >>confdefs.h <<_ACEOF
14346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14353 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14355 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14356 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14357 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 ac_check_lib_save_LIBS=$LIBS
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14369 /* Override any gcc2 internal prototype to avoid an error. */
14373 /* We use char because int might match the return type of a gcc2
14374 builtin and then its argument prototype would still apply. */
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386 (eval $ac_link) 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest$ac_exeext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_cv_lib_V3_sigset=yes
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_cv_lib_V3_sigset=no
14413 rm -f conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS
14417 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14418 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14419 if test $ac_cv_lib_V3_sigset = yes; then
14420 cat >>confdefs.h <<_ACEOF
14421 #define HAVE_LIBV3 1
14430 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14431 echo "$as_me:$LINENO: checking for winsock" >&5
14432 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14433 if test "${ol_cv_winsock+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 for curlib in ws2_32 wsock32; do
14438 LIBS="$LIBS -l$curlib"
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <winsock.h>
14452 select(0,NULL,NULL,NULL,NULL);
14454 gethostname(NULL,0);
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14489 rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14492 if test $ol_cv_winsock = yes; then
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_WINSOCK 1
14498 ac_cv_func_socket=yes
14499 ac_cv_func_select=yes
14500 ac_cv_func_closesocket=yes
14501 ac_cv_func_gethostname=yes
14502 if test $curlib = ws2_32; then
14503 ol_cv_winsock=winsock2
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_WINSOCK2 1
14515 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14516 echo "${ECHO_T}$ol_cv_winsock" >&6
14520 echo "$as_me:$LINENO: checking for socket" >&5
14521 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14522 if test "${ac_cv_func_socket+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14533 #define socket innocuous_socket
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char socket (); below.
14537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14538 <limits.h> exists even on freestanding compilers. */
14541 # include <limits.h>
14543 # include <assert.h>
14548 /* Override any gcc2 internal prototype to avoid an error. */
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub_socket) || defined (__stub___socket)
14562 char (*f) () = socket;
14571 return f != socket;
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -z "$ac_c_werror_flag"
14586 || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_func_socket=yes
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 ac_cv_func_socket=no
14605 rm -f conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
14608 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14609 echo "${ECHO_T}$ac_cv_func_socket" >&6
14610 if test $ac_cv_func_socket = yes; then
14615 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14616 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14617 if test "${ac_cv_lib_socket_main+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lsocket $LIBS"
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag"
14648 || test ! -s conftest.err'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_lib_socket_main=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_cv_lib_socket_main=no
14667 rm -f conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14671 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14672 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14673 if test $ac_cv_lib_socket_main = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_LIBSOCKET 1
14678 LIBS="-lsocket $LIBS"
14683 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14684 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14685 if test "${ac_cv_lib_net_main+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 ac_check_lib_save_LIBS=$LIBS
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708 (eval $ac_link) 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_cv_lib_net_main=yes
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_lib_net_main=no
14735 rm -f conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14739 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14740 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14741 if test $ac_cv_lib_net_main = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define HAVE_LIBNET 1
14751 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14752 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14753 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-lnsl_s $LIBS"
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_cv_lib_nsl_s_main=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_lib_nsl_s_main=no
14803 rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_check_lib_save_LIBS
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14808 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14809 if test $ac_cv_lib_nsl_s_main = yes; then
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_LIBNSL_S 1
14814 LIBS="-lnsl_s $LIBS"
14819 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14820 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14821 if test "${ac_cv_lib_nsl_main+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 ac_check_lib_save_LIBS=$LIBS
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844 (eval $ac_link) 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
14851 { ac_try='test -z "$ac_c_werror_flag"
14852 || test ! -s conftest.err'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest$ac_exeext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_lib_nsl_main=yes
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_lib_nsl_main=no
14871 rm -f conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14876 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14877 if test $ac_cv_lib_nsl_main = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define HAVE_LIBNSL 1
14887 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14888 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14889 if test "${ac_cv_lib_inet_socket+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-linet $LIBS"
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14901 /* Override any gcc2 internal prototype to avoid an error. */
14905 /* We use char because int might match the return type of a gcc2
14906 builtin and then its argument prototype would still apply. */
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918 (eval $ac_link) 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest$ac_exeext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_cv_lib_inet_socket=yes
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_cv_lib_inet_socket=no
14945 rm -f conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14947 LIBS=$ac_check_lib_save_LIBS
14949 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14950 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14951 if test $ac_cv_lib_inet_socket = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_LIBINET 1
14956 LIBS="-linet $LIBS"
14961 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14962 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14963 if test "${ac_cv_lib_gen_main+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 ac_check_lib_save_LIBS=$LIBS
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_cv_lib_gen_main=yes
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_cv_lib_gen_main=no
15013 rm -f conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15017 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15018 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15019 if test $ac_cv_lib_gen_main = yes; then
15020 cat >>confdefs.h <<_ACEOF
15021 #define HAVE_LIBGEN 1
15032 echo "$as_me:$LINENO: checking for select" >&5
15033 echo $ECHO_N "checking for select... $ECHO_C" >&6
15034 if test "${ac_cv_func_select+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 cat >conftest.$ac_ext <<_ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 /* Define select to an innocuous variant, in case <limits.h> declares select.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045 #define select innocuous_select
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char select (); below.
15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050 <limits.h> exists even on freestanding compilers. */
15053 # include <limits.h>
15055 # include <assert.h>
15060 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15068 /* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071 #if defined (__stub_select) || defined (__stub___select)
15074 char (*f) () = select;
15083 return f != select;
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_func_select=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_cv_func_select=no
15117 rm -f conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15121 echo "${ECHO_T}$ac_cv_func_select" >&6
15122 if test $ac_cv_func_select = yes; then
15125 { { echo "$as_me:$LINENO: error: select() required." >&5
15126 echo "$as_me: error: select() required." >&2;}
15127 { (exit 1); exit 1; }; }
15131 if test "${ac_cv_header_winsock_h}" != yes; then
15134 for ac_header in sys/select.h sys/socket.h
15136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138 echo "$as_me:$LINENO: checking for $ac_header" >&5
15139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15146 # Is the header compilable?
15147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 $ac_includes_default
15156 #include <$ac_header>
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>conftest.er1
15162 grep -v '^ *+' conftest.er1 >conftest.err
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag"
15168 || test ! -s conftest.err'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15180 ac_header_compiler=yes
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_header_compiler=no
15187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189 echo "${ECHO_T}$ac_header_compiler" >&6
15191 # Is the header present?
15192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <$ac_header>
15202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15205 grep -v '^ *+' conftest.er1 >conftest.err
15207 cat conftest.err >&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } >/dev/null; then
15210 if test -s conftest.err; then
15211 ac_cpp_err=$ac_c_preproc_warn_flag
15212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15219 if test -z "$ac_cpp_err"; then
15220 ac_header_preproc=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_header_preproc=no
15227 rm -f conftest.err conftest.$ac_ext
15228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15229 echo "${ECHO_T}$ac_header_preproc" >&6
15231 # So? What about this header?
15232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15238 ac_header_preproc=yes
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15255 ## ------------------------------------------ ##
15256 ## Report this to the AC_PACKAGE_NAME lists. ##
15257 ## ------------------------------------------ ##
15260 sed "s/^/$as_me: WARNING: /" >&2
15263 echo "$as_me:$LINENO: checking for $ac_header" >&5
15264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 eval "$as_ac_Header=\$ac_header_preproc"
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15275 cat >>confdefs.h <<_ACEOF
15276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15283 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15284 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15285 if test "${ac_cv_func_select_args+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15289 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15290 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15298 #if HAVE_SYS_SELECT_H
15299 # include <sys/select.h>
15301 #if HAVE_SYS_SOCKET_H
15302 # include <sys/socket.h>
15308 extern int select ($ac_arg1,
15309 $ac_arg234, $ac_arg234, $ac_arg234,
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -z "$ac_c_werror_flag"
15325 || test ! -s conftest.err'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15347 # Provide a safe default value.
15348 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15351 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15352 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15353 ac_save_IFS=$IFS; IFS=','
15354 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15358 cat >>confdefs.h <<_ACEOF
15359 #define SELECT_TYPE_ARG1 $1
15363 cat >>confdefs.h <<_ACEOF
15364 #define SELECT_TYPE_ARG234 ($2)
15368 cat >>confdefs.h <<_ACEOF
15369 #define SELECT_TYPE_ARG5 ($3)
15378 for ac_func in poll
15380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15381 echo "$as_me:$LINENO: checking for $ac_func" >&5
15382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_var+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15394 #define $ac_func innocuous_$ac_func
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func (); below.
15398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399 <limits.h> exists even on freestanding compilers. */
15402 # include <limits.h>
15404 # include <assert.h>
15409 /* Override any gcc2 internal prototype to avoid an error. */
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15417 /* The GNU C library defines this for functions which it implements
15418 to always fail with ENOSYS. Some functions are actually named
15419 something starting with __ and the normal name is an alias. */
15420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 char (*f) () = $ac_func;
15432 return f != $ac_func;
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_c_werror_flag"
15447 || test ! -s conftest.err'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 eval "$as_ac_var=yes"
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 eval "$as_ac_var=no"
15466 rm -f conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15471 if test `eval echo '${'$as_ac_var'}'` = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15480 for ac_header in poll.h
15482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15484 echo "$as_me:$LINENO: checking for $ac_header" >&5
15485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15492 # Is the header compilable?
15493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 $ac_includes_default
15502 #include <$ac_header>
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506 (eval $ac_compile) 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest.$ac_objext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_header_compiler=yes
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_header_compiler=no
15533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15535 echo "${ECHO_T}$ac_header_compiler" >&6
15537 # Is the header present?
15538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 #include <$ac_header>
15548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } >/dev/null; then
15556 if test -s conftest.err; then
15557 ac_cpp_err=$ac_c_preproc_warn_flag
15558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15565 if test -z "$ac_cpp_err"; then
15566 ac_header_preproc=yes
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15573 rm -f conftest.err conftest.$ac_ext
15574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15575 echo "${ECHO_T}$ac_header_preproc" >&6
15577 # So? What about this header?
15578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15584 ac_header_preproc=yes
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601 ## ------------------------------------------ ##
15602 ## Report this to the AC_PACKAGE_NAME lists. ##
15603 ## ------------------------------------------ ##
15606 sed "s/^/$as_me: WARNING: /" >&2
15609 echo "$as_me:$LINENO: checking for $ac_header" >&5
15610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 eval "$as_ac_Header=\$ac_header_preproc"
15616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 for ac_header in sys/epoll.h
15633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635 echo "$as_me:$LINENO: checking for $ac_header" >&5
15636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15643 # Is the header compilable?
15644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 $ac_includes_default
15653 #include <$ac_header>
15655 rm -f conftest.$ac_objext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657 (eval $ac_compile) 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_header_compiler=yes
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_header_compiler=no
15684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 echo "${ECHO_T}$ac_header_compiler" >&6
15688 # Is the header present?
15689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <$ac_header>
15699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15702 grep -v '^ *+' conftest.er1 >conftest.err
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } >/dev/null; then
15707 if test -s conftest.err; then
15708 ac_cpp_err=$ac_c_preproc_warn_flag
15709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15716 if test -z "$ac_cpp_err"; then
15717 ac_header_preproc=yes
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 ac_header_preproc=no
15724 rm -f conftest.err conftest.$ac_ext
15725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 echo "${ECHO_T}$ac_header_preproc" >&6
15728 # So? What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752 ## ------------------------------------------ ##
15753 ## Report this to the AC_PACKAGE_NAME lists. ##
15754 ## ------------------------------------------ ##
15757 sed "s/^/$as_me: WARNING: /" >&2
15760 echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 eval "$as_ac_Header=\$ac_header_preproc"
15767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15781 echo "$as_me:$LINENO: checking for epoll system call" >&5
15782 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15783 if test "$cross_compiling" = yes; then
15784 echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6
15787 cat >conftest.$ac_ext <<_ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 int main(int argc, char *argv)
15795 int epfd = epoll_create(256);
15796 exit (epfd == -1 ? 1 : 0);
15799 rm -f conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801 (eval $ac_link) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 echo "$as_me:$LINENO: result: yes" >&5
15811 echo "${ECHO_T}yes" >&6
15813 cat >>confdefs.h <<\_ACEOF
15814 #define HAVE_EPOLL 1
15818 echo "$as_me: program exited with status $ac_status" >&5
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ( exit $ac_status )
15823 echo "$as_me:$LINENO: result: no" >&5
15824 echo "${ECHO_T}no" >&6
15826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15831 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15832 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15833 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15845 #include <sys/types.h>
15848 #include <stdlib.h>
15853 char *c = (char *) *sys_errlist
15858 rm -f conftest.$ac_objext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15860 (eval $ac_compile) 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } &&
15867 { ac_try='test -z "$ac_c_werror_flag"
15868 || test ! -s conftest.err'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 ol_cv_dcl_sys_errlist=yes
15881 ol_cv_have_sys_errlist=yes
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 ol_cv_dcl_sys_errlist=no
15888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15890 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15891 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15893 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15894 if test $ol_cv_dcl_sys_errlist = no ; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define DECL_SYS_ERRLIST 1
15901 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15902 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15903 if test "${ol_cv_have_sys_errlist+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15917 char *c = (char *) *sys_errlist
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15924 (eval $ac_link) 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag"
15932 || test ! -s conftest.err'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest$ac_exeext'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ol_cv_have_sys_errlist=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ol_cv_have_sys_errlist=no
15951 rm -f conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15955 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15957 if test $ol_cv_have_sys_errlist = yes ; then
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE_SYS_ERRLIST 1
15966 for ac_func in strerror strerror_r
15968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15969 echo "$as_me:$LINENO: checking for $ac_func" >&5
15970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15971 if eval "test \"\${$as_ac_var+set}\" = set"; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15982 #define $ac_func innocuous_$ac_func
15984 /* System header to define __stub macros and hopefully few prototypes,
15985 which can conflict with char $ac_func (); below.
15986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15987 <limits.h> exists even on freestanding compilers. */
15990 # include <limits.h>
15992 # include <assert.h>
15997 /* Override any gcc2 internal prototype to avoid an error. */
16002 /* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16005 /* The GNU C library defines this for functions which it implements
16006 to always fail with ENOSYS. Some functions are actually named
16007 something starting with __ and the normal name is an alias. */
16008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16011 char (*f) () = $ac_func;
16020 return f != $ac_func;
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 eval "$as_ac_var=yes"
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 eval "$as_ac_var=no"
16054 rm -f conftest.err conftest.$ac_objext \
16055 conftest$ac_exeext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16059 if test `eval echo '${'$as_ac_var'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16067 ol_cv_func_strerror_r=no
16068 if test "${ac_cv_func_strerror_r}" = yes ; then
16069 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16070 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16071 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <string.h>
16083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16084 $EGREP "strerror_r" >/dev/null 2>&1; then
16085 ol_decl_strerror_r=yes
16087 ol_decl_strerror_r=no
16091 if test $ol_decl_strerror_r = yes ; then
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 #include <string.h>
16102 /* from autoconf 2.59 */
16104 char x = *strerror_r (0, buf, sizeof buf);
16105 char *p = strerror_r (0, buf, sizeof buf);
16111 rm -f conftest.$ac_objext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16113 (eval $ac_compile) 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -z "$ac_c_werror_flag"
16121 || test ! -s conftest.err'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; } &&
16127 { ac_try='test -s conftest.$ac_objext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ol_cv_nonposix_strerror_r=yes
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 ol_cv_nonposix_strerror_r=no
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16142 if test "$cross_compiling" = yes; then
16143 ol_cv_nonposix_strerror=no
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16155 strerror_r( 1, buf, sizeof buf );
16156 exit( buf[0] == 0 );
16160 rm -f conftest$ac_exeext
16161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16162 (eval $ac_link) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16171 ol_cv_nonposix_strerror_r=yes
16173 echo "$as_me: program exited with status $ac_status" >&5
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 ( exit $ac_status )
16178 ol_cv_nonposix_strerror=no
16180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16185 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16186 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16187 if test $ol_cv_nonposix_strerror_r = yes ; then
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_NONPOSIX_STRERROR_R 1
16195 elif test "${ac_cv_func_strerror}" = no ; then
16196 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16197 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16198 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16210 #include <sys/types.h>
16213 #include <stdlib.h>
16218 char *c = (char *) *sys_errlist
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ol_cv_dcl_sys_errlist=yes
16246 ol_cv_have_sys_errlist=yes
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ol_cv_dcl_sys_errlist=no
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16258 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16259 if test $ol_cv_dcl_sys_errlist = no ; then
16261 cat >>confdefs.h <<\_ACEOF
16262 #define DECL_SYS_ERRLIST 1
16266 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16267 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16268 if test "${ol_cv_have_sys_errlist+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16282 char *c = (char *) *sys_errlist
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -z "$ac_c_werror_flag"
16297 || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest$ac_exeext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ol_cv_have_sys_errlist=yes
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ol_cv_have_sys_errlist=no
16316 rm -f conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16320 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16322 if test $ol_cv_have_sys_errlist = yes ; then
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_SYS_ERRLIST 1
16334 for ac_header in regex.h
16336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16338 echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16346 # Is the header compilable?
16347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <$ac_header>
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_header_compiler=yes
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ac_header_compiler=no
16387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6
16391 # Is the header present?
16392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <$ac_header>
16402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } >/dev/null; then
16410 if test -s conftest.err; then
16411 ac_cpp_err=$ac_c_preproc_warn_flag
16412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16419 if test -z "$ac_cpp_err"; then
16420 ac_header_preproc=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_header_preproc=no
16427 rm -f conftest.err conftest.$ac_ext
16428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16429 echo "${ECHO_T}$ac_header_preproc" >&6
16431 # So? What about this header?
16432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16438 ac_header_preproc=yes
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16455 ## ------------------------------------------ ##
16456 ## Report this to the AC_PACKAGE_NAME lists. ##
16457 ## ------------------------------------------ ##
16460 sed "s/^/$as_me: WARNING: /" >&2
16463 echo "$as_me:$LINENO: checking for $ac_header" >&5
16464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 eval "$as_ac_Header=\$ac_header_preproc"
16470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16483 if test "$ac_cv_header_regex_h" != yes ; then
16484 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16485 echo "$as_me: error: POSIX regex.h required." >&2;}
16486 { (exit 1); exit 1; }; }
16488 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16489 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16490 if test "${ac_cv_search_regfree+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_func_search_save_LIBS=$LIBS
16494 ac_cv_search_regfree=no
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16502 /* Override any gcc2 internal prototype to avoid an error. */
16506 /* We use char because int might match the return type of a gcc2
16507 builtin and then its argument prototype would still apply. */
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519 (eval $ac_link) 2>conftest.er1
16521 grep -v '^ *+' conftest.er1 >conftest.err
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest$ac_exeext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_search_regfree="none required"
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16545 rm -f conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 if test "$ac_cv_search_regfree" = no; then
16548 for ac_lib in regex gnuregex; do
16549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16557 /* Override any gcc2 internal prototype to avoid an error. */
16561 /* We use char because int might match the return type of a gcc2
16562 builtin and then its argument prototype would still apply. */
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_search_regfree="-l$ac_lib"
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16601 rm -f conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_func_search_save_LIBS
16607 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16608 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16609 if test "$ac_cv_search_regfree" != no; then
16610 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16613 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16614 echo "$as_me: error: POSIX regex required." >&2;}
16615 { (exit 1); exit 1; }; }
16620 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16621 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16622 if test "${ol_cv_c_posix_regex+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 if test "$cross_compiling" = yes; then
16627 ol_cv_c_posix_regex=cross
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16636 #include <sys/types.h>
16638 static char *pattern, *string;
16646 if(regcomp(&re, pattern, 0)) {
16650 string = "ALL MATCH";
16652 rc = regexec(&re, string, 0, (void*)0, 0);
16659 rm -f conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ol_cv_c_posix_regex=yes
16672 echo "$as_me: program exited with status $ac_status" >&5
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ( exit $ac_status )
16677 ol_cv_c_posix_regex=no
16679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16682 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16683 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16685 if test "$ol_cv_c_posix_regex" = no ; then
16686 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16687 echo "$as_me: error: broken POSIX regex!" >&2;}
16688 { (exit 1); exit 1; }; }
16694 for ac_header in sys/uuid.h
16696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16698 echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16706 # Is the header compilable?
16707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 $ac_includes_default
16716 #include <$ac_header>
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag"
16728 || test ! -s conftest.err'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_header_compiler=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_compiler=no
16747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16749 echo "${ECHO_T}$ac_header_compiler" >&6
16751 # Is the header present?
16752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16754 cat >conftest.$ac_ext <<_ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 #include <$ac_header>
16762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } >/dev/null; then
16770 if test -s conftest.err; then
16771 ac_cpp_err=$ac_c_preproc_warn_flag
16772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16779 if test -z "$ac_cpp_err"; then
16780 ac_header_preproc=yes
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16815 ## ------------------------------------------ ##
16816 ## Report this to the AC_PACKAGE_NAME lists. ##
16817 ## ------------------------------------------ ##
16820 sed "s/^/$as_me: WARNING: /" >&2
16823 echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 eval "$as_ac_Header=\$ac_header_preproc"
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16835 cat >>confdefs.h <<_ACEOF
16836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 if test $ac_cv_header_sys_uuid_h = yes ; then
16845 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16846 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16847 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 ac_func_search_save_LIBS=$LIBS
16851 ac_cv_search_uuid_to_str=no
16852 cat >conftest.$ac_ext <<_ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16859 /* Override any gcc2 internal prototype to avoid an error. */
16863 /* We use char because int might match the return type of a gcc2
16864 builtin and then its argument prototype would still apply. */
16865 char uuid_to_str ();
16874 rm -f conftest.$ac_objext conftest$ac_exeext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876 (eval $ac_link) 2>conftest.er1
16878 grep -v '^ *+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -z "$ac_c_werror_flag"
16884 || test ! -s conftest.err'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest$ac_exeext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_search_uuid_to_str="none required"
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16902 rm -f conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16904 if test "$ac_cv_search_uuid_to_str" = no; then
16905 for ac_lib in uuid; do
16906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16907 cat >conftest.$ac_ext <<_ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16914 /* Override any gcc2 internal prototype to avoid an error. */
16918 /* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16920 char uuid_to_str ();
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931 (eval $ac_link) 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -z "$ac_c_werror_flag"
16939 || test ! -s conftest.err'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_search_uuid_to_str="-l$ac_lib"
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16958 rm -f conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16962 LIBS=$ac_func_search_save_LIBS
16964 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16965 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16966 if test "$ac_cv_search_uuid_to_str" != no; then
16967 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16975 if test have_uuid = yes ; then
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_UUID_TO_STR 1
16982 test "$ac_cv_search_uuid_to_str" = "none required" || \
16983 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16987 if test $have_uuid = no ; then
16988 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16989 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16991 LIBS="$LIBS -lrpcrt4"
16992 cat >conftest.$ac_ext <<_ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16999 int __stdcall UuidCreate(void *);
17000 int __stdcall UuidToStringA(void *,void **);
17007 UuidToStringA(0,0);
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17042 rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044 if test $need_rpcrt = yes; then
17045 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17048 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17049 echo "${ECHO_T}$need_rpcrt" >&6
17052 ol_cv_lib_resolver=no
17053 if test $ol_cv_lib_resolver = no ; then
17054 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17055 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17056 if test "${ol_cv_resolver_none+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 LIBS="$ol_RESOLVER_LIB $LIBS"
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 #ifdef HAVE_SYS_TYPES_H
17072 # include <sys/types.h>
17074 #include <netinet/in.h>
17075 #ifdef HAVE_ARPA_NAMESER_H
17076 # include <arpa/nameser.h>
17078 #ifdef HAVE_RESOLV_H
17079 # include <resolv.h>
17087 char *request = NULL;
17088 unsigned char reply[64*1024];
17089 unsigned char host[64*1024];
17093 /* Bind 8/9 interface */
17094 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17096 /* Bind 4 interface */
17100 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17104 /* Bind 8/9 interface */
17106 #elif defined(HFIXEDSZ)
17107 /* Bind 4 interface w/ HFIXEDSZ */
17110 /* Bind 4 interface w/o HFIXEDSZ */
17111 p += sizeof(HEADER);
17113 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag"
17129 || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ol_cv_resolver_none=yes
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ol_cv_resolver_none=no
17148 rm -f conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17154 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17155 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17157 if test $ol_cv_resolver_none = yes ; then
17158 ol_cv_lib_resolver=yes
17162 if test $ol_cv_lib_resolver = no ; then
17163 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17164 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17165 if test "${ol_cv_resolver_resolv+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 ol_RESOLVER_LIB=-lresolv
17171 LIBS="$ol_RESOLVER_LIB $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 #ifdef HAVE_SYS_TYPES_H
17181 # include <sys/types.h>
17183 #include <netinet/in.h>
17184 #ifdef HAVE_ARPA_NAMESER_H
17185 # include <arpa/nameser.h>
17187 #ifdef HAVE_RESOLV_H
17188 # include <resolv.h>
17196 char *request = NULL;
17197 unsigned char reply[64*1024];
17198 unsigned char host[64*1024];
17202 /* Bind 8/9 interface */
17203 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17205 /* Bind 4 interface */
17209 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17213 /* Bind 8/9 interface */
17215 #elif defined(HFIXEDSZ)
17216 /* Bind 4 interface w/ HFIXEDSZ */
17219 /* Bind 4 interface w/o HFIXEDSZ */
17220 p += sizeof(HEADER);
17222 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17230 (eval $ac_link) 2>conftest.er1
17232 grep -v '^ *+' conftest.er1 >conftest.err
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag"
17238 || test ! -s conftest.err'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try='test -s conftest$ac_exeext'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ol_cv_resolver_resolv=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ol_cv_resolver_resolv=no
17257 rm -f conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17264 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17266 if test $ol_cv_resolver_resolv = yes ; then
17267 ol_cv_lib_resolver=-lresolv
17271 if test $ol_cv_lib_resolver = no ; then
17272 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17273 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17274 if test "${ol_cv_resolver_bind+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 ol_RESOLVER_LIB=-lbind
17280 LIBS="$ol_RESOLVER_LIB $LIBS"
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17289 #ifdef HAVE_SYS_TYPES_H
17290 # include <sys/types.h>
17292 #include <netinet/in.h>
17293 #ifdef HAVE_ARPA_NAMESER_H
17294 # include <arpa/nameser.h>
17296 #ifdef HAVE_RESOLV_H
17297 # include <resolv.h>
17305 char *request = NULL;
17306 unsigned char reply[64*1024];
17307 unsigned char host[64*1024];
17311 /* Bind 8/9 interface */
17312 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17314 /* Bind 4 interface */
17318 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17322 /* Bind 8/9 interface */
17324 #elif defined(HFIXEDSZ)
17325 /* Bind 4 interface w/ HFIXEDSZ */
17328 /* Bind 4 interface w/o HFIXEDSZ */
17329 p += sizeof(HEADER);
17331 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339 (eval $ac_link) 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest$ac_exeext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ol_cv_resolver_bind=yes
17361 echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17364 ol_cv_resolver_bind=no
17366 rm -f conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17372 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17373 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17375 if test $ol_cv_resolver_bind = yes ; then
17376 ol_cv_lib_resolver=-lbind
17383 if test "$ol_cv_lib_resolver" != no ; then
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_RES_QUERY 1
17390 if test "$ol_enable_dnssrv" != no ; then
17394 if test "$ol_cv_lib_resolver" != yes ; then
17395 LIBS="$ol_cv_lib_resolver $LIBS"
17399 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17400 if test "$ol_link_dnssrv" = no ; then
17401 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17402 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17403 { (exit 1); exit 1; }; }
17406 ol_enable_dnssrv=no
17410 for ac_func in hstrerror
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17415 if eval "test \"\${$as_ac_var+set}\" = set"; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426 #define $ac_func innocuous_$ac_func
17428 /* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17434 # include <limits.h>
17436 # include <assert.h>
17441 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17449 /* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17455 char (*f) () = $ac_func;
17464 return f != $ac_func;
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 eval "$as_ac_var=no"
17498 rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17503 if test `eval echo '${'$as_ac_var'}'` = yes; then
17504 cat >>confdefs.h <<_ACEOF
17505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17516 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17519 echo "$as_me:$LINENO: checking for $ac_func" >&5
17520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17521 if eval "test \"\${$as_ac_var+set}\" = set"; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17532 #define $ac_func innocuous_$ac_func
17534 /* System header to define __stub macros and hopefully few prototypes,
17535 which can conflict with char $ac_func (); below.
17536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17537 <limits.h> exists even on freestanding compilers. */
17540 # include <limits.h>
17542 # include <assert.h>
17547 /* Override any gcc2 internal prototype to avoid an error. */
17552 /* We use char because int might match the return type of a gcc2
17553 builtin and then its argument prototype would still apply. */
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17561 char (*f) () = $ac_func;
17570 return f != $ac_func;
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577 (eval $ac_link) 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 eval "$as_ac_var=yes"
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 eval "$as_ac_var=no"
17604 rm -f conftest.err conftest.$ac_objext \
17605 conftest$ac_exeext conftest.$ac_ext
17607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17609 if test `eval echo '${'$as_ac_var'}'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17619 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17620 if test $ol_enable_ipv6 = yes ; then
17621 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17622 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17623 { (exit 1); exit 1; }; }
17625 elif test $ol_enable_ipv6 != no ; then
17626 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17627 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17628 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 # include <netinet/in.h>
17640 # ifdef INET6_ADDRSTRLEN
17641 __has_inet6_addrstrlen__;
17645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17646 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17647 ol_cv_inet6_addrstrlen=yes
17649 ol_cv_inet6_addrstrlen=no
17654 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17655 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17658 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17659 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17660 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17671 #include <sys/types.h>
17672 #include <sys/socket.h>
17678 struct sockaddr_storage ss;
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ol_cv_struct_sockaddr_storage=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ol_cv_struct_sockaddr_storage=no
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17715 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17716 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17718 if test $ol_cv_inet6_addrstrlen = yes &&
17719 test $ol_cv_struct_sockaddr_storage = yes ; then
17721 elif test $ol_enable_ipv6 = yes &&
17722 test $ol_cv_inet6_addrstrlen = no ; then
17723 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17724 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17725 { (exit 1); exit 1; }; }
17726 elif test $ol_enable_ipv6 = yes &&
17727 test $ol_cv_struct_sockaddr_storage = no ; then
17728 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17729 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17730 { (exit 1); exit 1; }; }
17734 if test $ol_enable_local != no ; then
17736 for ac_header in sys/un.h
17738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17740 echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17743 echo $ECHO_N "(cached) $ECHO_C" >&6
17745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17748 # Is the header compilable?
17749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 $ac_includes_default
17758 #include <$ac_header>
17760 rm -f conftest.$ac_objext
17761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17762 (eval $ac_compile) 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag"
17770 || test ! -s conftest.err'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_header_compiler=yes
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_header_compiler=no
17789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17791 echo "${ECHO_T}$ac_header_compiler" >&6
17793 # Is the header present?
17794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <$ac_header>
17804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17807 grep -v '^ *+' conftest.er1 >conftest.err
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } >/dev/null; then
17812 if test -s conftest.err; then
17813 ac_cpp_err=$ac_c_preproc_warn_flag
17814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17821 if test -z "$ac_cpp_err"; then
17822 ac_header_preproc=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_header_preproc=no
17829 rm -f conftest.err conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17831 echo "${ECHO_T}$ac_header_preproc" >&6
17833 # So? What about this header?
17834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17840 ac_header_preproc=yes
17843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17857 ## ------------------------------------------ ##
17858 ## Report this to the AC_PACKAGE_NAME lists. ##
17859 ## ------------------------------------------ ##
17862 sed "s/^/$as_me: WARNING: /" >&2
17865 echo "$as_me:$LINENO: checking for $ac_header" >&5
17866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 eval "$as_ac_Header=\$ac_header_preproc"
17872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17877 cat >>confdefs.h <<_ACEOF
17878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17886 if test $ol_enable_local = auto ; then
17887 ol_enable_local=$ac_cv_header_sys_un_h
17888 elif test $ac_cv_header_sys_un_h = no ; then
17889 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17890 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17891 { (exit 1); exit 1; }; }
17899 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17902 for ac_header in krb5.h
17904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17906 echo "$as_me:$LINENO: checking for $ac_header" >&5
17907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17914 # Is the header compilable?
17915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 $ac_includes_default
17924 #include <$ac_header>
17926 rm -f conftest.$ac_objext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17928 (eval $ac_compile) 2>conftest.er1
17930 grep -v '^ *+' conftest.er1 >conftest.err
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag"
17936 || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest.$ac_objext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_header_compiler=yes
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_header_compiler=no
17955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17957 echo "${ECHO_T}$ac_header_compiler" >&6
17959 # Is the header present?
17960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 #include <$ac_header>
17970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } >/dev/null; then
17978 if test -s conftest.err; then
17979 ac_cpp_err=$ac_c_preproc_warn_flag
17980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17987 if test -z "$ac_cpp_err"; then
17988 ac_header_preproc=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_header_preproc=no
17995 rm -f conftest.err conftest.$ac_ext
17996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17997 echo "${ECHO_T}$ac_header_preproc" >&6
17999 # So? What about this header?
18000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18006 ac_header_preproc=yes
18009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18023 ## ------------------------------------------ ##
18024 ## Report this to the AC_PACKAGE_NAME lists. ##
18025 ## ------------------------------------------ ##
18028 sed "s/^/$as_me: WARNING: /" >&2
18031 echo "$as_me:$LINENO: checking for $ac_header" >&5
18032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 eval "$as_ac_Header=\$ac_header_preproc"
18038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18043 cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18052 if test $ac_cv_header_krb5_h = yes ; then
18054 for ac_header in heim_err.h
18056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18058 echo "$as_me:$LINENO: checking for $ac_header" >&5
18059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18066 # Is the header compilable?
18067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18069 cat >conftest.$ac_ext <<_ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 $ac_includes_default
18076 #include <$ac_header>
18078 rm -f conftest.$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_header_compiler=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_header_compiler=no
18107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18109 echo "${ECHO_T}$ac_header_compiler" >&6
18111 # Is the header present?
18112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <$ac_header>
18122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18125 grep -v '^ *+' conftest.er1 >conftest.err
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } >/dev/null; then
18130 if test -s conftest.err; then
18131 ac_cpp_err=$ac_c_preproc_warn_flag
18132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18139 if test -z "$ac_cpp_err"; then
18140 ac_header_preproc=yes
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_header_preproc=no
18147 rm -f conftest.err conftest.$ac_ext
18148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18149 echo "${ECHO_T}$ac_header_preproc" >&6
18151 # So? What about this header?
18152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18158 ac_header_preproc=yes
18161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18175 ## ------------------------------------------ ##
18176 ## Report this to the AC_PACKAGE_NAME lists. ##
18177 ## ------------------------------------------ ##
18180 sed "s/^/$as_me: WARNING: /" >&2
18183 echo "$as_me:$LINENO: checking for $ac_header" >&5
18184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 eval "$as_ac_Header=\$ac_header_preproc"
18190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18195 cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18203 if test $ac_cv_header_heim_err_h = yes ; then
18209 if test $krb5_impl = mit; then
18210 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18211 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18212 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 ac_check_lib_save_LIBS=$LIBS
18216 LIBS="-lk5crypto $LIBS"
18217 cat >conftest.$ac_ext <<_ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18235 (eval $ac_link) 2>conftest.er1
18237 grep -v '^ *+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -z "$ac_c_werror_flag"
18243 || test ! -s conftest.err'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; } &&
18249 { ac_try='test -s conftest$ac_exeext'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_cv_lib_k5crypto_main=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_cv_lib_k5crypto_main=no
18262 rm -f conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18264 LIBS=$ac_check_lib_save_LIBS
18266 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18267 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18268 if test $ac_cv_lib_k5crypto_main = yes; then
18269 krb5crypto=k5crypto
18275 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18276 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18277 if test "${ac_cv_lib_krb5_main+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18298 rm -f conftest.$ac_objext conftest$ac_exeext
18299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18300 (eval $ac_link) 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest$ac_exeext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_cv_lib_krb5_main=yes
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_cv_lib_krb5_main=no
18327 rm -f conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18331 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18332 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18333 if test $ac_cv_lib_krb5_main = yes; then
18335 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18341 elif test $krb5_impl = heimdal; then
18342 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18343 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18344 if test "${ac_cv_lib_des_main+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 ac_check_lib_save_LIBS=$LIBS
18349 cat >conftest.$ac_ext <<_ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag"
18375 || test ! -s conftest.err'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_des_main=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18392 ac_cv_lib_des_main=no
18394 rm -f conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18399 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18400 if test $ac_cv_lib_des_main = yes; then
18407 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18408 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18409 if test "${ac_cv_lib_krb5_main+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 ac_check_lib_save_LIBS=$LIBS
18413 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18414 cat >conftest.$ac_ext <<_ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h. */
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18432 (eval $ac_link) 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag"
18440 || test ! -s conftest.err'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
18452 ac_cv_lib_krb5_main=yes
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ac_cv_lib_krb5_main=no
18459 rm -f conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18463 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18464 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18465 if test $ac_cv_lib_krb5_main = yes; then
18467 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18474 cat >>confdefs.h <<\_ACEOF
18475 #define HAVE_HEIMDAL_KERBEROS 1
18481 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18482 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18485 if test $have_krb5 = yes ; then
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE_KRB5 1
18494 if test $ol_with_kerberos = k5only ; then
18495 ol_with_kerberos=found
18498 elif test $ol_with_kerberos != auto ; then
18499 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18500 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18501 { (exit 1); exit 1; }; }
18508 if test $ol_link_krb5 = yes &&
18509 { test $ol_with_kerberos = yes ||
18510 test $ol_with_kerberos = auto ||
18511 test $ol_with_kerberos = k425; }; then
18515 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18519 echo "$as_me:$LINENO: checking for $ac_header" >&5
18520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18527 # Is the header compilable?
18528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 $ac_includes_default
18537 #include <$ac_header>
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541 (eval $ac_compile) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_header_compiler=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_header_compiler=no
18568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18570 echo "${ECHO_T}$ac_header_compiler" >&6
18572 # Is the header present?
18573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <$ac_header>
18583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18586 grep -v '^ *+' conftest.er1 >conftest.err
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } >/dev/null; then
18591 if test -s conftest.err; then
18592 ac_cpp_err=$ac_c_preproc_warn_flag
18593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18600 if test -z "$ac_cpp_err"; then
18601 ac_header_preproc=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_header_preproc=no
18608 rm -f conftest.err conftest.$ac_ext
18609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18610 echo "${ECHO_T}$ac_header_preproc" >&6
18612 # So? What about this header?
18613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18619 ac_header_preproc=yes
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18636 ## ------------------------------------------ ##
18637 ## Report this to the AC_PACKAGE_NAME lists. ##
18638 ## ------------------------------------------ ##
18641 sed "s/^/$as_me: WARNING: /" >&2
18644 echo "$as_me:$LINENO: checking for $ac_header" >&5
18645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 eval "$as_ac_Header=\$ac_header_preproc"
18651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18665 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18666 if test $krb5_impl = mit; then
18667 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18668 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18669 if test "${ac_cv_lib_krb4_main+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 ac_check_lib_save_LIBS=$LIBS
18673 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18692 (eval $ac_link) 2>conftest.er1
18694 grep -v '^ *+' conftest.er1 >conftest.err
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } &&
18699 { ac_try='test -z "$ac_c_werror_flag"
18700 || test ! -s conftest.err'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_cv_lib_krb4_main=yes
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 ac_cv_lib_krb4_main=no
18719 rm -f conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18724 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18725 if test $ac_cv_lib_krb4_main = yes; then
18727 KRB4_LIBS="-lkrb4 -ldes425"
18733 elif test $krb5_impl = heimdal; then
18734 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18735 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18736 if test "${ac_cv_lib_krb4_main+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18759 (eval $ac_link) 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_c_werror_flag"
18767 || test ! -s conftest.err'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_krb4_main=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_krb4_main=no
18786 rm -f conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18791 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18792 if test $ac_cv_lib_krb4_main = yes; then
18802 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18803 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18806 if test $have_k425 = yes ; then
18807 ol_with_kerberos=found
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_KRB425 1
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_KRB4 1
18821 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18822 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18823 if test "${ol_cv_var_des_debug+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18836 #include <kerberosIV/krb.h>
18837 #include <kerberosIV/des.h>
18838 extern int des_debug;
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18852 (eval $ac_link) 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -z "$ac_c_werror_flag"
18860 || test ! -s conftest.err'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest$ac_exeext'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ol_cv_var_des_debug=yes
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ol_cv_var_des_debug=no
18879 rm -f conftest.err conftest.$ac_objext \
18880 conftest$ac_exeext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18885 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18887 if test $ol_cv_var_des_debug = yes ; then
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_DES_DEBUG 1
18900 if test $ol_link_krb5 = yes ; then
18901 ol_with_kerberos=found
18904 case $ol_with_kerberos in yes | auto | k4 | kth)
18909 for ac_header in krb.h des.h krb-archaeology.h
18911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913 echo "$as_me:$LINENO: checking for $ac_header" >&5
18914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18921 # Is the header compilable?
18922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 $ac_includes_default
18931 #include <$ac_header>
18933 rm -f conftest.$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935 (eval $ac_compile) 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_header_compiler=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_header_compiler=no
18962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18964 echo "${ECHO_T}$ac_header_compiler" >&6
18966 # Is the header present?
18967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <$ac_header>
18977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1 >conftest.err
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } >/dev/null; then
18985 if test -s conftest.err; then
18986 ac_cpp_err=$ac_c_preproc_warn_flag
18987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18994 if test -z "$ac_cpp_err"; then
18995 ac_header_preproc=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19002 rm -f conftest.err conftest.$ac_ext
19003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19004 echo "${ECHO_T}$ac_header_preproc" >&6
19006 # So? What about this header?
19007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19013 ac_header_preproc=yes
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19030 ## ------------------------------------------ ##
19031 ## Report this to the AC_PACKAGE_NAME lists. ##
19032 ## ------------------------------------------ ##
19035 sed "s/^/$as_me: WARNING: /" >&2
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 eval "$as_ac_Header=\$ac_header_preproc"
19045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 if test $ac_cv_header_krb_h = yes ; then
19060 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19061 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19062 if test "${ac_cv_lib_krb_main+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lkrb -ldes $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19083 rm -f conftest.$ac_objext conftest$ac_exeext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085 (eval $ac_link) 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag"
19093 || test ! -s conftest.err'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_cv_lib_krb_main=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_cv_lib_krb_main=no
19112 rm -f conftest.err conftest.$ac_objext \
19113 conftest$ac_exeext conftest.$ac_ext
19114 LIBS=$ac_check_lib_save_LIBS
19116 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19117 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19118 if test $ac_cv_lib_krb_main = yes; then
19125 if test $have_k4 = yes ; then
19126 ol_with_kerberos=found
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_KRB4 1
19135 KRB4_LIBS="-lkrb -ldes"
19137 if test $ac_cv_header_krb_archaeology_h = yes ; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_KTH_KERBEROS 1
19149 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19152 elif test $ol_enable_kbind = yes ; then
19153 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19154 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19155 { (exit 1); exit 1; }; }
19158 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_KERBEROS 1
19165 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19166 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19167 echo "$as_me: error: Kerberos detection failed" >&2;}
19168 { (exit 1); exit 1; }; }
19173 if test $ol_with_tls != no ; then
19175 for ac_header in openssl/ssl.h
19177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179 echo "$as_me:$LINENO: checking for $ac_header" >&5
19180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19187 # Is the header compilable?
19188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19197 #include <$ac_header>
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_header_compiler=yes
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_header_compiler=no
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19230 echo "${ECHO_T}$ac_header_compiler" >&6
19232 # Is the header present?
19233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 #include <$ac_header>
19243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } >/dev/null; then
19251 if test -s conftest.err; then
19252 ac_cpp_err=$ac_c_preproc_warn_flag
19253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19260 if test -z "$ac_cpp_err"; then
19261 ac_header_preproc=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_header_preproc=no
19268 rm -f conftest.err conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19270 echo "${ECHO_T}$ac_header_preproc" >&6
19272 # So? What about this header?
19273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19279 ac_header_preproc=yes
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19296 ## ------------------------------------------ ##
19297 ## Report this to the AC_PACKAGE_NAME lists. ##
19298 ## ------------------------------------------ ##
19301 sed "s/^/$as_me: WARNING: /" >&2
19304 echo "$as_me:$LINENO: checking for $ac_header" >&5
19305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 eval "$as_ac_Header=\$ac_header_preproc"
19311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19325 if test $ac_cv_header_openssl_ssl_h = yes ; then
19326 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19327 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19328 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lssl -lcrypto $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19340 /* Override any gcc2 internal prototype to avoid an error. */
19344 /* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19346 char SSL_library_init ();
19350 SSL_library_init ();
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
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); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_lib_ssl_SSL_library_init=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_lib_ssl_SSL_library_init=no
19384 rm -f conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19388 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19389 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19390 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19398 if test $have_openssl = no ; then
19399 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19400 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19401 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any gcc2 internal prototype to avoid an error. */
19417 /* We use char because int might match the return type of a gcc2
19418 builtin and then its argument prototype would still apply. */
19419 char ssl3_accept ();
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19430 (eval $ac_link) 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag"
19438 || test ! -s conftest.err'
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); }; } &&
19444 { ac_try='test -s conftest$ac_exeext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_cv_lib_ssl_ssl3_accept=yes
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_lib_ssl_ssl3_accept=no
19457 rm -f conftest.err conftest.$ac_objext \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19472 if test $have_openssl = yes ; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19482 if test $need_rsaref = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19489 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19491 TLS_LIBS="-lssl -lcrypto"
19494 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19513 /* Require 0.9.7d+ */
19514 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19515 char *__ssl_compat = "0.9.7d";
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19521 ol_cv_ssl_crl_compat=yes
19523 ol_cv_ssl_crl_compat=no
19528 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19529 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19531 if test $ol_cv_ssl_crl_compat = no ; then
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_OPENSSL_CRL 1
19543 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19544 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19548 if test $ol_link_tls = yes ; then
19550 cat >>confdefs.h <<\_ACEOF
19556 elif test $ol_with_tls = auto ; then
19557 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19558 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19560 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19562 elif test $ol_with_tls != no ; then
19563 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19564 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19565 { (exit 1); exit 1; }; }
19568 if test $ol_enable_lmpasswd != no; then
19569 if test $ol_link_tls != yes ; then
19570 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19571 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19572 { (exit 1); exit 1; }; }
19576 cat >>confdefs.h <<\_ACEOF
19577 #define SLAPD_LMHASH 1
19584 case $ol_with_threads in auto | yes | nt)
19587 echo "$as_me:$LINENO: checking for _beginthread" >&5
19588 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19589 if test "${ac_cv_func__beginthread+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19600 #define _beginthread innocuous__beginthread
19602 /* System header to define __stub macros and hopefully few prototypes,
19603 which can conflict with char _beginthread (); below.
19604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19605 <limits.h> exists even on freestanding compilers. */
19608 # include <limits.h>
19610 # include <assert.h>
19613 #undef _beginthread
19615 /* Override any gcc2 internal prototype to avoid an error. */
19620 /* We use char because int might match the return type of a gcc2
19621 builtin and then its argument prototype would still apply. */
19622 char _beginthread ();
19623 /* The GNU C library defines this for functions which it implements
19624 to always fail with ENOSYS. Some functions are actually named
19625 something starting with __ and the normal name is an alias. */
19626 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19629 char (*f) () = _beginthread;
19638 return f != _beginthread;
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645 (eval $ac_link) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest$ac_exeext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_cv_func__beginthread=yes
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_cv_func__beginthread=no
19672 rm -f conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19675 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19676 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19679 if test $ac_cv_func__beginthread = yes ; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_NT_THREADS 1
19685 ol_cv_nt_threads=yes
19689 if test "$ol_cv_nt_threads" = yes ; then
19691 ol_with_threads=found
19692 ol_with_yielding_select=yes
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_NT_SERVICE_MANAGER 1
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_NT_EVENT_LOG 1
19706 if test $ol_with_threads = nt ; then
19707 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19708 echo "$as_me: error: could not locate NT Threads" >&2;}
19709 { (exit 1); exit 1; }; }
19714 case $ol_with_threads in auto | yes | posix)
19717 for ac_header in pthread.h
19719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo "$as_me:$LINENO: checking for $ac_header" >&5
19722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729 # Is the header compilable?
19730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 $ac_includes_default
19739 #include <$ac_header>
19741 rm -f conftest.$ac_objext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19743 (eval $ac_compile) 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag"
19751 || test ! -s conftest.err'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_header_compiler=yes
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_header_compiler=no
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19772 echo "${ECHO_T}$ac_header_compiler" >&6
19774 # Is the header present?
19775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 #include <$ac_header>
19785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } >/dev/null; then
19793 if test -s conftest.err; then
19794 ac_cpp_err=$ac_c_preproc_warn_flag
19795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19802 if test -z "$ac_cpp_err"; then
19803 ac_header_preproc=yes
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_preproc=no
19810 rm -f conftest.err conftest.$ac_ext
19811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19812 echo "${ECHO_T}$ac_header_preproc" >&6
19814 # So? What about this header?
19815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19821 ac_header_preproc=yes
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19838 ## ------------------------------------------ ##
19839 ## Report this to the AC_PACKAGE_NAME lists. ##
19840 ## ------------------------------------------ ##
19843 sed "s/^/$as_me: WARNING: /" >&2
19846 echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 eval "$as_ac_Header=\$ac_header_preproc"
19853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 if test $ac_cv_header_pthread_h = yes ; then
19868 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19869 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19870 if test "${ol_cv_pthread_version+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19881 # include <pthread.h>
19887 int i = PTHREAD_CREATE_JOINABLE;
19893 rm -f conftest.$ac_objext
19894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19895 (eval $ac_compile) 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_c_werror_flag"
19903 || test ! -s conftest.err'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <pthread.h>
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926 $EGREP "pthread_detach" >/dev/null 2>&1; then
19927 ol_cv_pthread_version=10
19929 ol_cv_pthread_version=8
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19945 # include <pthread.h>
19946 # ifdef PTHREAD_CREATE_UNDETACHED
19951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19952 $EGREP "draft7" >/dev/null 2>&1; then
19953 ol_cv_pthread_version=7
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 #include <pthread.h>
19965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19966 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19967 ol_cv_pthread_version=6
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 # include <pthread.h>
19978 #ifdef PTHREAD_MUTEX_INITIALIZER
19983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19984 $EGREP "draft5" >/dev/null 2>&1; then
19985 ol_cv_pthread_version=5
19987 ol_cv_pthread_version=4
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20002 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20005 if test $ol_cv_pthread_version != 0 ; then
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_PTHREADS $ol_cv_pthread_version
20012 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20013 echo "$as_me: error: unknown pthread version" >&2;}
20014 { (exit 1); exit 1; }; }
20017 # consider threads found
20018 ol_with_threads=found
20021 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20022 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20023 if test "${ol_cv_header_linux_threads+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <pthread.h>
20034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20035 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20036 ol_cv_header_linux_threads=yes
20038 ol_cv_header_linux_threads=no
20044 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20045 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20046 if test $ol_cv_header_linux_threads = yes; then
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_LINUX_THREADS 1
20055 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20056 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20057 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <pthread.h>
20067 #ifdef _POSIX_THREAD_IS_GNU_PTH
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20074 ol_cv_header_gnu_pth_pthread_h=yes
20076 ol_cv_header_gnu_pth_pthread_h=no
20082 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20083 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20086 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20088 for ac_header in sched.h
20090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo "$as_me:$LINENO: checking for $ac_header" >&5
20093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20100 # Is the header compilable?
20101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 #include <$ac_header>
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114 (eval $ac_compile) 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_header_compiler=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_header_compiler=no
20141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20143 echo "${ECHO_T}$ac_header_compiler" >&6
20145 # Is the header present?
20146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20154 #include <$ac_header>
20156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } >/dev/null; then
20164 if test -s conftest.err; then
20165 ac_cpp_err=$ac_c_preproc_warn_flag
20166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20173 if test -z "$ac_cpp_err"; then
20174 ac_header_preproc=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_header_preproc=no
20181 rm -f conftest.err conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20183 echo "${ECHO_T}$ac_header_preproc" >&6
20185 # So? What about this header?
20186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20192 ac_header_preproc=yes
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20209 ## ------------------------------------------ ##
20210 ## Report this to the AC_PACKAGE_NAME lists. ##
20211 ## ------------------------------------------ ##
20214 sed "s/^/$as_me: WARNING: /" >&2
20217 echo "$as_me:$LINENO: checking for $ac_header" >&5
20218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 eval "$as_ac_Header=\$ac_header_preproc"
20224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20240 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20241 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20242 if test "${ol_cv_pthread_create+set}" = set; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 if test "$cross_compiling" = yes; then
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20254 /* pthread test headers */
20255 #include <pthread.h>
20256 #if HAVE_PTHREADS < 7
20260 #define NULL (void*)0
20263 static void *task(p)
20266 return (void *) (p == NULL);
20273 /* pthread test function */
20274 #ifndef PTHREAD_CREATE_DETACHED
20275 #define PTHREAD_CREATE_DETACHED 1
20279 int detach = PTHREAD_CREATE_DETACHED;
20281 #if HAVE_PTHREADS > 4
20282 /* Final pthreads */
20283 pthread_attr_t attr;
20285 status = pthread_attr_init(&attr);
20286 if( status ) return status;
20288 #if HAVE_PTHREADS < 7
20289 status = pthread_attr_setdetachstate(&attr, &detach);
20290 if( status < 0 ) status = errno;
20292 status = pthread_attr_setdetachstate(&attr, detach);
20294 if( status ) return status;
20295 status = pthread_create( &t, &attr, task, NULL );
20296 #if HAVE_PTHREADS < 7
20297 if( status < 0 ) status = errno;
20299 if( status ) return status;
20301 /* Draft 4 pthreads */
20302 status = pthread_create( &t, pthread_attr_default, task, NULL );
20303 if( status ) return errno;
20305 /* give thread a chance to complete */
20306 /* it should remain joinable and hence detachable */
20309 status = pthread_detach( &t );
20310 if( status ) return errno;
20313 #ifdef HAVE_LINUX_THREADS
20314 pthread_kill_other_threads_np();
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325 (eval $ac_link) 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag"
20333 || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ol_cv_pthread_create=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ol_cv_pthread_create=no
20352 rm -f conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20362 /* pthread test headers */
20363 #include <pthread.h>
20364 #if HAVE_PTHREADS < 7
20368 #define NULL (void*)0
20371 static void *task(p)
20374 return (void *) (p == NULL);
20378 int main(argc, argv)
20383 /* pthread test function */
20384 #ifndef PTHREAD_CREATE_DETACHED
20385 #define PTHREAD_CREATE_DETACHED 1
20389 int detach = PTHREAD_CREATE_DETACHED;
20391 #if HAVE_PTHREADS > 4
20392 /* Final pthreads */
20393 pthread_attr_t attr;
20395 status = pthread_attr_init(&attr);
20396 if( status ) return status;
20398 #if HAVE_PTHREADS < 7
20399 status = pthread_attr_setdetachstate(&attr, &detach);
20400 if( status < 0 ) status = errno;
20402 status = pthread_attr_setdetachstate(&attr, detach);
20404 if( status ) return status;
20405 status = pthread_create( &t, &attr, task, NULL );
20406 #if HAVE_PTHREADS < 7
20407 if( status < 0 ) status = errno;
20409 if( status ) return status;
20411 /* Draft 4 pthreads */
20412 status = pthread_create( &t, pthread_attr_default, task, NULL );
20413 if( status ) return errno;
20415 /* give thread a chance to complete */
20416 /* it should remain joinable and hence detachable */
20419 status = pthread_detach( &t );
20420 if( status ) return errno;
20423 #ifdef HAVE_LINUX_THREADS
20424 pthread_kill_other_threads_np();
20432 rm -f conftest$ac_exeext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20434 (eval $ac_link) 2>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ol_cv_pthread_create=yes
20445 echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ( exit $ac_status )
20450 ol_cv_pthread_create=no
20452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20456 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20458 if test $ol_cv_pthread_create != no ; then
20459 ol_link_threads=posix
20460 ol_link_pthreads=""
20463 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20464 if test "$ol_link_threads" = no ; then
20466 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20467 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20468 if test "${ol_cv_pthread_kthread+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 LIBS="-kthread $LIBS"
20476 if test "$cross_compiling" = yes; then
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 /* pthread test headers */
20485 #include <pthread.h>
20486 #if HAVE_PTHREADS < 7
20490 #define NULL (void*)0
20493 static void *task(p)
20496 return (void *) (p == NULL);
20503 /* pthread test function */
20504 #ifndef PTHREAD_CREATE_DETACHED
20505 #define PTHREAD_CREATE_DETACHED 1
20509 int detach = PTHREAD_CREATE_DETACHED;
20511 #if HAVE_PTHREADS > 4
20512 /* Final pthreads */
20513 pthread_attr_t attr;
20515 status = pthread_attr_init(&attr);
20516 if( status ) return status;
20518 #if HAVE_PTHREADS < 7
20519 status = pthread_attr_setdetachstate(&attr, &detach);
20520 if( status < 0 ) status = errno;
20522 status = pthread_attr_setdetachstate(&attr, detach);
20524 if( status ) return status;
20525 status = pthread_create( &t, &attr, task, NULL );
20526 #if HAVE_PTHREADS < 7
20527 if( status < 0 ) status = errno;
20529 if( status ) return status;
20531 /* Draft 4 pthreads */
20532 status = pthread_create( &t, pthread_attr_default, task, NULL );
20533 if( status ) return errno;
20535 /* give thread a chance to complete */
20536 /* it should remain joinable and hence detachable */
20539 status = pthread_detach( &t );
20540 if( status ) return errno;
20543 #ifdef HAVE_LINUX_THREADS
20544 pthread_kill_other_threads_np();
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555 (eval $ac_link) 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -z "$ac_c_werror_flag"
20563 || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest$ac_exeext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ol_cv_pthread_kthread=yes
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ol_cv_pthread_kthread=no
20582 rm -f conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20592 /* pthread test headers */
20593 #include <pthread.h>
20594 #if HAVE_PTHREADS < 7
20598 #define NULL (void*)0
20601 static void *task(p)
20604 return (void *) (p == NULL);
20608 int main(argc, argv)
20613 /* pthread test function */
20614 #ifndef PTHREAD_CREATE_DETACHED
20615 #define PTHREAD_CREATE_DETACHED 1
20619 int detach = PTHREAD_CREATE_DETACHED;
20621 #if HAVE_PTHREADS > 4
20622 /* Final pthreads */
20623 pthread_attr_t attr;
20625 status = pthread_attr_init(&attr);
20626 if( status ) return status;
20628 #if HAVE_PTHREADS < 7
20629 status = pthread_attr_setdetachstate(&attr, &detach);
20630 if( status < 0 ) status = errno;
20632 status = pthread_attr_setdetachstate(&attr, detach);
20634 if( status ) return status;
20635 status = pthread_create( &t, &attr, task, NULL );
20636 #if HAVE_PTHREADS < 7
20637 if( status < 0 ) status = errno;
20639 if( status ) return status;
20641 /* Draft 4 pthreads */
20642 status = pthread_create( &t, pthread_attr_default, task, NULL );
20643 if( status ) return errno;
20645 /* give thread a chance to complete */
20646 /* it should remain joinable and hence detachable */
20649 status = pthread_detach( &t );
20650 if( status ) return errno;
20653 #ifdef HAVE_LINUX_THREADS
20654 pthread_kill_other_threads_np();
20662 rm -f conftest$ac_exeext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20664 (eval $ac_link) 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ol_cv_pthread_kthread=yes
20675 echo "$as_me: program exited with status $ac_status" >&5
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ( exit $ac_status )
20680 ol_cv_pthread_kthread=no
20682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20689 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20690 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20692 if test $ol_cv_pthread_kthread = yes ; then
20693 ol_link_pthreads="-kthread"
20694 ol_link_threads=posix
20698 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20699 if test "$ol_link_threads" = no ; then
20701 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20702 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20703 if test "${ol_cv_pthread_pthread+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 LIBS="-pthread $LIBS"
20711 if test "$cross_compiling" = yes; then
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 /* pthread test headers */
20720 #include <pthread.h>
20721 #if HAVE_PTHREADS < 7
20725 #define NULL (void*)0
20728 static void *task(p)
20731 return (void *) (p == NULL);
20738 /* pthread test function */
20739 #ifndef PTHREAD_CREATE_DETACHED
20740 #define PTHREAD_CREATE_DETACHED 1
20744 int detach = PTHREAD_CREATE_DETACHED;
20746 #if HAVE_PTHREADS > 4
20747 /* Final pthreads */
20748 pthread_attr_t attr;
20750 status = pthread_attr_init(&attr);
20751 if( status ) return status;
20753 #if HAVE_PTHREADS < 7
20754 status = pthread_attr_setdetachstate(&attr, &detach);
20755 if( status < 0 ) status = errno;
20757 status = pthread_attr_setdetachstate(&attr, detach);
20759 if( status ) return status;
20760 status = pthread_create( &t, &attr, task, NULL );
20761 #if HAVE_PTHREADS < 7
20762 if( status < 0 ) status = errno;
20764 if( status ) return status;
20766 /* Draft 4 pthreads */
20767 status = pthread_create( &t, pthread_attr_default, task, NULL );
20768 if( status ) return errno;
20770 /* give thread a chance to complete */
20771 /* it should remain joinable and hence detachable */
20774 status = pthread_detach( &t );
20775 if( status ) return errno;
20778 #ifdef HAVE_LINUX_THREADS
20779 pthread_kill_other_threads_np();
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790 (eval $ac_link) 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
20797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest$ac_exeext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ol_cv_pthread_pthread=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ol_cv_pthread_pthread=no
20817 rm -f conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 /* pthread test headers */
20828 #include <pthread.h>
20829 #if HAVE_PTHREADS < 7
20833 #define NULL (void*)0
20836 static void *task(p)
20839 return (void *) (p == NULL);
20843 int main(argc, argv)
20848 /* pthread test function */
20849 #ifndef PTHREAD_CREATE_DETACHED
20850 #define PTHREAD_CREATE_DETACHED 1
20854 int detach = PTHREAD_CREATE_DETACHED;
20856 #if HAVE_PTHREADS > 4
20857 /* Final pthreads */
20858 pthread_attr_t attr;
20860 status = pthread_attr_init(&attr);
20861 if( status ) return status;
20863 #if HAVE_PTHREADS < 7
20864 status = pthread_attr_setdetachstate(&attr, &detach);
20865 if( status < 0 ) status = errno;
20867 status = pthread_attr_setdetachstate(&attr, detach);
20869 if( status ) return status;
20870 status = pthread_create( &t, &attr, task, NULL );
20871 #if HAVE_PTHREADS < 7
20872 if( status < 0 ) status = errno;
20874 if( status ) return status;
20876 /* Draft 4 pthreads */
20877 status = pthread_create( &t, pthread_attr_default, task, NULL );
20878 if( status ) return errno;
20880 /* give thread a chance to complete */
20881 /* it should remain joinable and hence detachable */
20884 status = pthread_detach( &t );
20885 if( status ) return errno;
20888 #ifdef HAVE_LINUX_THREADS
20889 pthread_kill_other_threads_np();
20897 rm -f conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ol_cv_pthread_pthread=yes
20910 echo "$as_me: program exited with status $ac_status" >&5
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ( exit $ac_status )
20915 ol_cv_pthread_pthread=no
20917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20925 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20927 if test $ol_cv_pthread_pthread = yes ; then
20928 ol_link_pthreads="-pthread"
20929 ol_link_threads=posix
20933 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20934 if test "$ol_link_threads" = no ; then
20936 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20937 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20938 if test "${ol_cv_pthread_pthreads+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 LIBS="-pthreads $LIBS"
20946 if test "$cross_compiling" = yes; then
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20954 /* pthread test headers */
20955 #include <pthread.h>
20956 #if HAVE_PTHREADS < 7
20960 #define NULL (void*)0
20963 static void *task(p)
20966 return (void *) (p == NULL);
20973 /* pthread test function */
20974 #ifndef PTHREAD_CREATE_DETACHED
20975 #define PTHREAD_CREATE_DETACHED 1
20979 int detach = PTHREAD_CREATE_DETACHED;
20981 #if HAVE_PTHREADS > 4
20982 /* Final pthreads */
20983 pthread_attr_t attr;
20985 status = pthread_attr_init(&attr);
20986 if( status ) return status;
20988 #if HAVE_PTHREADS < 7
20989 status = pthread_attr_setdetachstate(&attr, &detach);
20990 if( status < 0 ) status = errno;
20992 status = pthread_attr_setdetachstate(&attr, detach);
20994 if( status ) return status;
20995 status = pthread_create( &t, &attr, task, NULL );
20996 #if HAVE_PTHREADS < 7
20997 if( status < 0 ) status = errno;
20999 if( status ) return status;
21001 /* Draft 4 pthreads */
21002 status = pthread_create( &t, pthread_attr_default, task, NULL );
21003 if( status ) return errno;
21005 /* give thread a chance to complete */
21006 /* it should remain joinable and hence detachable */
21009 status = pthread_detach( &t );
21010 if( status ) return errno;
21013 #ifdef HAVE_LINUX_THREADS
21014 pthread_kill_other_threads_np();
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ol_cv_pthread_pthreads=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ol_cv_pthread_pthreads=no
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21062 /* pthread test headers */
21063 #include <pthread.h>
21064 #if HAVE_PTHREADS < 7
21068 #define NULL (void*)0
21071 static void *task(p)
21074 return (void *) (p == NULL);
21078 int main(argc, argv)
21083 /* pthread test function */
21084 #ifndef PTHREAD_CREATE_DETACHED
21085 #define PTHREAD_CREATE_DETACHED 1
21089 int detach = PTHREAD_CREATE_DETACHED;
21091 #if HAVE_PTHREADS > 4
21092 /* Final pthreads */
21093 pthread_attr_t attr;
21095 status = pthread_attr_init(&attr);
21096 if( status ) return status;
21098 #if HAVE_PTHREADS < 7
21099 status = pthread_attr_setdetachstate(&attr, &detach);
21100 if( status < 0 ) status = errno;
21102 status = pthread_attr_setdetachstate(&attr, detach);
21104 if( status ) return status;
21105 status = pthread_create( &t, &attr, task, NULL );
21106 #if HAVE_PTHREADS < 7
21107 if( status < 0 ) status = errno;
21109 if( status ) return status;
21111 /* Draft 4 pthreads */
21112 status = pthread_create( &t, pthread_attr_default, task, NULL );
21113 if( status ) return errno;
21115 /* give thread a chance to complete */
21116 /* it should remain joinable and hence detachable */
21119 status = pthread_detach( &t );
21120 if( status ) return errno;
21123 #ifdef HAVE_LINUX_THREADS
21124 pthread_kill_other_threads_np();
21132 rm -f conftest$ac_exeext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21134 (eval $ac_link) 2>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 ol_cv_pthread_pthreads=yes
21145 echo "$as_me: program exited with status $ac_status" >&5
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 ( exit $ac_status )
21150 ol_cv_pthread_pthreads=no
21152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21159 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21160 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21162 if test $ol_cv_pthread_pthreads = yes ; then
21163 ol_link_pthreads="-pthreads"
21164 ol_link_threads=posix
21168 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21169 if test "$ol_link_threads" = no ; then
21171 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21172 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21173 if test "${ol_cv_pthread_mthreads+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 LIBS="-mthreads $LIBS"
21181 if test "$cross_compiling" = yes; then
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 /* pthread test headers */
21190 #include <pthread.h>
21191 #if HAVE_PTHREADS < 7
21195 #define NULL (void*)0
21198 static void *task(p)
21201 return (void *) (p == NULL);
21208 /* pthread test function */
21209 #ifndef PTHREAD_CREATE_DETACHED
21210 #define PTHREAD_CREATE_DETACHED 1
21214 int detach = PTHREAD_CREATE_DETACHED;
21216 #if HAVE_PTHREADS > 4
21217 /* Final pthreads */
21218 pthread_attr_t attr;
21220 status = pthread_attr_init(&attr);
21221 if( status ) return status;
21223 #if HAVE_PTHREADS < 7
21224 status = pthread_attr_setdetachstate(&attr, &detach);
21225 if( status < 0 ) status = errno;
21227 status = pthread_attr_setdetachstate(&attr, detach);
21229 if( status ) return status;
21230 status = pthread_create( &t, &attr, task, NULL );
21231 #if HAVE_PTHREADS < 7
21232 if( status < 0 ) status = errno;
21234 if( status ) return status;
21236 /* Draft 4 pthreads */
21237 status = pthread_create( &t, pthread_attr_default, task, NULL );
21238 if( status ) return errno;
21240 /* give thread a chance to complete */
21241 /* it should remain joinable and hence detachable */
21244 status = pthread_detach( &t );
21245 if( status ) return errno;
21248 #ifdef HAVE_LINUX_THREADS
21249 pthread_kill_other_threads_np();
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 (eval $ac_link) 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_c_werror_flag"
21268 || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ol_cv_pthread_mthreads=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ol_cv_pthread_mthreads=no
21287 rm -f conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21297 /* pthread test headers */
21298 #include <pthread.h>
21299 #if HAVE_PTHREADS < 7
21303 #define NULL (void*)0
21306 static void *task(p)
21309 return (void *) (p == NULL);
21313 int main(argc, argv)
21318 /* pthread test function */
21319 #ifndef PTHREAD_CREATE_DETACHED
21320 #define PTHREAD_CREATE_DETACHED 1
21324 int detach = PTHREAD_CREATE_DETACHED;
21326 #if HAVE_PTHREADS > 4
21327 /* Final pthreads */
21328 pthread_attr_t attr;
21330 status = pthread_attr_init(&attr);
21331 if( status ) return status;
21333 #if HAVE_PTHREADS < 7
21334 status = pthread_attr_setdetachstate(&attr, &detach);
21335 if( status < 0 ) status = errno;
21337 status = pthread_attr_setdetachstate(&attr, detach);
21339 if( status ) return status;
21340 status = pthread_create( &t, &attr, task, NULL );
21341 #if HAVE_PTHREADS < 7
21342 if( status < 0 ) status = errno;
21344 if( status ) return status;
21346 /* Draft 4 pthreads */
21347 status = pthread_create( &t, pthread_attr_default, task, NULL );
21348 if( status ) return errno;
21350 /* give thread a chance to complete */
21351 /* it should remain joinable and hence detachable */
21354 status = pthread_detach( &t );
21355 if( status ) return errno;
21358 #ifdef HAVE_LINUX_THREADS
21359 pthread_kill_other_threads_np();
21367 rm -f conftest$ac_exeext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369 (eval $ac_link) 2>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ol_cv_pthread_mthreads=yes
21380 echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ( exit $ac_status )
21385 ol_cv_pthread_mthreads=no
21387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21394 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21395 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21397 if test $ol_cv_pthread_mthreads = yes ; then
21398 ol_link_pthreads="-mthreads"
21399 ol_link_threads=posix
21403 # Pthread try link: -thread (ol_cv_pthread_thread)
21404 if test "$ol_link_threads" = no ; then
21406 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21407 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21408 if test "${ol_cv_pthread_thread+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 LIBS="-thread $LIBS"
21416 if test "$cross_compiling" = yes; then
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21424 /* pthread test headers */
21425 #include <pthread.h>
21426 #if HAVE_PTHREADS < 7
21430 #define NULL (void*)0
21433 static void *task(p)
21436 return (void *) (p == NULL);
21443 /* pthread test function */
21444 #ifndef PTHREAD_CREATE_DETACHED
21445 #define PTHREAD_CREATE_DETACHED 1
21449 int detach = PTHREAD_CREATE_DETACHED;
21451 #if HAVE_PTHREADS > 4
21452 /* Final pthreads */
21453 pthread_attr_t attr;
21455 status = pthread_attr_init(&attr);
21456 if( status ) return status;
21458 #if HAVE_PTHREADS < 7
21459 status = pthread_attr_setdetachstate(&attr, &detach);
21460 if( status < 0 ) status = errno;
21462 status = pthread_attr_setdetachstate(&attr, detach);
21464 if( status ) return status;
21465 status = pthread_create( &t, &attr, task, NULL );
21466 #if HAVE_PTHREADS < 7
21467 if( status < 0 ) status = errno;
21469 if( status ) return status;
21471 /* Draft 4 pthreads */
21472 status = pthread_create( &t, pthread_attr_default, task, NULL );
21473 if( status ) return errno;
21475 /* give thread a chance to complete */
21476 /* it should remain joinable and hence detachable */
21479 status = pthread_detach( &t );
21480 if( status ) return errno;
21483 #ifdef HAVE_LINUX_THREADS
21484 pthread_kill_other_threads_np();
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21495 (eval $ac_link) 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } &&
21502 { ac_try='test -z "$ac_c_werror_flag"
21503 || test ! -s conftest.err'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; } &&
21509 { ac_try='test -s conftest$ac_exeext'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; }; then
21515 ol_cv_pthread_thread=yes
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ol_cv_pthread_thread=no
21522 rm -f conftest.err conftest.$ac_objext \
21523 conftest$ac_exeext conftest.$ac_ext
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21532 /* pthread test headers */
21533 #include <pthread.h>
21534 #if HAVE_PTHREADS < 7
21538 #define NULL (void*)0
21541 static void *task(p)
21544 return (void *) (p == NULL);
21548 int main(argc, argv)
21553 /* pthread test function */
21554 #ifndef PTHREAD_CREATE_DETACHED
21555 #define PTHREAD_CREATE_DETACHED 1
21559 int detach = PTHREAD_CREATE_DETACHED;
21561 #if HAVE_PTHREADS > 4
21562 /* Final pthreads */
21563 pthread_attr_t attr;
21565 status = pthread_attr_init(&attr);
21566 if( status ) return status;
21568 #if HAVE_PTHREADS < 7
21569 status = pthread_attr_setdetachstate(&attr, &detach);
21570 if( status < 0 ) status = errno;
21572 status = pthread_attr_setdetachstate(&attr, detach);
21574 if( status ) return status;
21575 status = pthread_create( &t, &attr, task, NULL );
21576 #if HAVE_PTHREADS < 7
21577 if( status < 0 ) status = errno;
21579 if( status ) return status;
21581 /* Draft 4 pthreads */
21582 status = pthread_create( &t, pthread_attr_default, task, NULL );
21583 if( status ) return errno;
21585 /* give thread a chance to complete */
21586 /* it should remain joinable and hence detachable */
21589 status = pthread_detach( &t );
21590 if( status ) return errno;
21593 #ifdef HAVE_LINUX_THREADS
21594 pthread_kill_other_threads_np();
21602 rm -f conftest$ac_exeext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604 (eval $ac_link) 2>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ol_cv_pthread_thread=yes
21615 echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ( exit $ac_status )
21620 ol_cv_pthread_thread=no
21622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21630 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21632 if test $ol_cv_pthread_thread = yes ; then
21633 ol_link_pthreads="-thread"
21634 ol_link_threads=posix
21639 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21640 if test "$ol_link_threads" = no ; then
21641 # try -lpthread -lmach -lexc -lc_r
21642 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21643 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21644 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21652 if test "$cross_compiling" = yes; then
21653 cat >conftest.$ac_ext <<_ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21660 /* pthread test headers */
21661 #include <pthread.h>
21662 #if HAVE_PTHREADS < 7
21666 #define NULL (void*)0
21669 static void *task(p)
21672 return (void *) (p == NULL);
21679 /* pthread test function */
21680 #ifndef PTHREAD_CREATE_DETACHED
21681 #define PTHREAD_CREATE_DETACHED 1
21685 int detach = PTHREAD_CREATE_DETACHED;
21687 #if HAVE_PTHREADS > 4
21688 /* Final pthreads */
21689 pthread_attr_t attr;
21691 status = pthread_attr_init(&attr);
21692 if( status ) return status;
21694 #if HAVE_PTHREADS < 7
21695 status = pthread_attr_setdetachstate(&attr, &detach);
21696 if( status < 0 ) status = errno;
21698 status = pthread_attr_setdetachstate(&attr, detach);
21700 if( status ) return status;
21701 status = pthread_create( &t, &attr, task, NULL );
21702 #if HAVE_PTHREADS < 7
21703 if( status < 0 ) status = errno;
21705 if( status ) return status;
21707 /* Draft 4 pthreads */
21708 status = pthread_create( &t, pthread_attr_default, task, NULL );
21709 if( status ) return errno;
21711 /* give thread a chance to complete */
21712 /* it should remain joinable and hence detachable */
21715 status = pthread_detach( &t );
21716 if( status ) return errno;
21719 #ifdef HAVE_LINUX_THREADS
21720 pthread_kill_other_threads_np();
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest$ac_exeext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21758 rm -f conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext conftest.$ac_ext
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21768 /* pthread test headers */
21769 #include <pthread.h>
21770 #if HAVE_PTHREADS < 7
21774 #define NULL (void*)0
21777 static void *task(p)
21780 return (void *) (p == NULL);
21784 int main(argc, argv)
21789 /* pthread test function */
21790 #ifndef PTHREAD_CREATE_DETACHED
21791 #define PTHREAD_CREATE_DETACHED 1
21795 int detach = PTHREAD_CREATE_DETACHED;
21797 #if HAVE_PTHREADS > 4
21798 /* Final pthreads */
21799 pthread_attr_t attr;
21801 status = pthread_attr_init(&attr);
21802 if( status ) return status;
21804 #if HAVE_PTHREADS < 7
21805 status = pthread_attr_setdetachstate(&attr, &detach);
21806 if( status < 0 ) status = errno;
21808 status = pthread_attr_setdetachstate(&attr, detach);
21810 if( status ) return status;
21811 status = pthread_create( &t, &attr, task, NULL );
21812 #if HAVE_PTHREADS < 7
21813 if( status < 0 ) status = errno;
21815 if( status ) return status;
21817 /* Draft 4 pthreads */
21818 status = pthread_create( &t, pthread_attr_default, task, NULL );
21819 if( status ) return errno;
21821 /* give thread a chance to complete */
21822 /* it should remain joinable and hence detachable */
21825 status = pthread_detach( &t );
21826 if( status ) return errno;
21829 #ifdef HAVE_LINUX_THREADS
21830 pthread_kill_other_threads_np();
21838 rm -f conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21851 echo "$as_me: program exited with status $ac_status" >&5
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ( exit $ac_status )
21856 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21866 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21868 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21869 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21870 ol_link_threads=posix
21874 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21875 if test "$ol_link_threads" = no ; then
21876 # try -lpthread -lmach -lexc
21877 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21878 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21879 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 LIBS="-lpthread -lmach -lexc $LIBS"
21887 if test "$cross_compiling" = yes; then
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21895 /* pthread test headers */
21896 #include <pthread.h>
21897 #if HAVE_PTHREADS < 7
21901 #define NULL (void*)0
21904 static void *task(p)
21907 return (void *) (p == NULL);
21914 /* pthread test function */
21915 #ifndef PTHREAD_CREATE_DETACHED
21916 #define PTHREAD_CREATE_DETACHED 1
21920 int detach = PTHREAD_CREATE_DETACHED;
21922 #if HAVE_PTHREADS > 4
21923 /* Final pthreads */
21924 pthread_attr_t attr;
21926 status = pthread_attr_init(&attr);
21927 if( status ) return status;
21929 #if HAVE_PTHREADS < 7
21930 status = pthread_attr_setdetachstate(&attr, &detach);
21931 if( status < 0 ) status = errno;
21933 status = pthread_attr_setdetachstate(&attr, detach);
21935 if( status ) return status;
21936 status = pthread_create( &t, &attr, task, NULL );
21937 #if HAVE_PTHREADS < 7
21938 if( status < 0 ) status = errno;
21940 if( status ) return status;
21942 /* Draft 4 pthreads */
21943 status = pthread_create( &t, pthread_attr_default, task, NULL );
21944 if( status ) return errno;
21946 /* give thread a chance to complete */
21947 /* it should remain joinable and hence detachable */
21950 status = pthread_detach( &t );
21951 if( status ) return errno;
21954 #ifdef HAVE_LINUX_THREADS
21955 pthread_kill_other_threads_np();
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21966 (eval $ac_link) 2>conftest.er1
21968 grep -v '^ *+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try='test -z "$ac_c_werror_flag"
21974 || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest$ac_exeext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ol_cv_pthread_lpthread_lmach_lexc=yes
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ol_cv_pthread_lpthread_lmach_lexc=no
21993 rm -f conftest.err conftest.$ac_objext \
21994 conftest$ac_exeext conftest.$ac_ext
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22003 /* pthread test headers */
22004 #include <pthread.h>
22005 #if HAVE_PTHREADS < 7
22009 #define NULL (void*)0
22012 static void *task(p)
22015 return (void *) (p == NULL);
22019 int main(argc, argv)
22024 /* pthread test function */
22025 #ifndef PTHREAD_CREATE_DETACHED
22026 #define PTHREAD_CREATE_DETACHED 1
22030 int detach = PTHREAD_CREATE_DETACHED;
22032 #if HAVE_PTHREADS > 4
22033 /* Final pthreads */
22034 pthread_attr_t attr;
22036 status = pthread_attr_init(&attr);
22037 if( status ) return status;
22039 #if HAVE_PTHREADS < 7
22040 status = pthread_attr_setdetachstate(&attr, &detach);
22041 if( status < 0 ) status = errno;
22043 status = pthread_attr_setdetachstate(&attr, detach);
22045 if( status ) return status;
22046 status = pthread_create( &t, &attr, task, NULL );
22047 #if HAVE_PTHREADS < 7
22048 if( status < 0 ) status = errno;
22050 if( status ) return status;
22052 /* Draft 4 pthreads */
22053 status = pthread_create( &t, pthread_attr_default, task, NULL );
22054 if( status ) return errno;
22056 /* give thread a chance to complete */
22057 /* it should remain joinable and hence detachable */
22060 status = pthread_detach( &t );
22061 if( status ) return errno;
22064 #ifdef HAVE_LINUX_THREADS
22065 pthread_kill_other_threads_np();
22073 rm -f conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075 (eval $ac_link) 2>&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 ol_cv_pthread_lpthread_lmach_lexc=yes
22086 echo "$as_me: program exited with status $ac_status" >&5
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ( exit $ac_status )
22091 ol_cv_pthread_lpthread_lmach_lexc=no
22093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22101 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22103 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22104 ol_link_pthreads="-lpthread -lmach -lexc"
22105 ol_link_threads=posix
22110 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22111 if test "$ol_link_threads" = no ; then
22112 # try -lpthread -Wl,-woff,85
22113 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22114 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22115 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22123 if test "$cross_compiling" = yes; then
22124 cat >conftest.$ac_ext <<_ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22131 /* pthread test headers */
22132 #include <pthread.h>
22133 #if HAVE_PTHREADS < 7
22137 #define NULL (void*)0
22140 static void *task(p)
22143 return (void *) (p == NULL);
22150 /* pthread test function */
22151 #ifndef PTHREAD_CREATE_DETACHED
22152 #define PTHREAD_CREATE_DETACHED 1
22156 int detach = PTHREAD_CREATE_DETACHED;
22158 #if HAVE_PTHREADS > 4
22159 /* Final pthreads */
22160 pthread_attr_t attr;
22162 status = pthread_attr_init(&attr);
22163 if( status ) return status;
22165 #if HAVE_PTHREADS < 7
22166 status = pthread_attr_setdetachstate(&attr, &detach);
22167 if( status < 0 ) status = errno;
22169 status = pthread_attr_setdetachstate(&attr, detach);
22171 if( status ) return status;
22172 status = pthread_create( &t, &attr, task, NULL );
22173 #if HAVE_PTHREADS < 7
22174 if( status < 0 ) status = errno;
22176 if( status ) return status;
22178 /* Draft 4 pthreads */
22179 status = pthread_create( &t, pthread_attr_default, task, NULL );
22180 if( status ) return errno;
22182 /* give thread a chance to complete */
22183 /* it should remain joinable and hence detachable */
22186 status = pthread_detach( &t );
22187 if( status ) return errno;
22190 #ifdef HAVE_LINUX_THREADS
22191 pthread_kill_other_threads_np();
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202 (eval $ac_link) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ol_cv_pthread_lib_lpthread_woff=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ol_cv_pthread_lib_lpthread_woff=no
22229 rm -f conftest.err conftest.$ac_objext \
22230 conftest$ac_exeext conftest.$ac_ext
22232 cat >conftest.$ac_ext <<_ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22239 /* pthread test headers */
22240 #include <pthread.h>
22241 #if HAVE_PTHREADS < 7
22245 #define NULL (void*)0
22248 static void *task(p)
22251 return (void *) (p == NULL);
22255 int main(argc, argv)
22260 /* pthread test function */
22261 #ifndef PTHREAD_CREATE_DETACHED
22262 #define PTHREAD_CREATE_DETACHED 1
22266 int detach = PTHREAD_CREATE_DETACHED;
22268 #if HAVE_PTHREADS > 4
22269 /* Final pthreads */
22270 pthread_attr_t attr;
22272 status = pthread_attr_init(&attr);
22273 if( status ) return status;
22275 #if HAVE_PTHREADS < 7
22276 status = pthread_attr_setdetachstate(&attr, &detach);
22277 if( status < 0 ) status = errno;
22279 status = pthread_attr_setdetachstate(&attr, detach);
22281 if( status ) return status;
22282 status = pthread_create( &t, &attr, task, NULL );
22283 #if HAVE_PTHREADS < 7
22284 if( status < 0 ) status = errno;
22286 if( status ) return status;
22288 /* Draft 4 pthreads */
22289 status = pthread_create( &t, pthread_attr_default, task, NULL );
22290 if( status ) return errno;
22292 /* give thread a chance to complete */
22293 /* it should remain joinable and hence detachable */
22296 status = pthread_detach( &t );
22297 if( status ) return errno;
22300 #ifdef HAVE_LINUX_THREADS
22301 pthread_kill_other_threads_np();
22309 rm -f conftest$ac_exeext
22310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22311 (eval $ac_link) 2>&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ol_cv_pthread_lib_lpthread_woff=yes
22322 echo "$as_me: program exited with status $ac_status" >&5
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ( exit $ac_status )
22327 ol_cv_pthread_lib_lpthread_woff=no
22329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22336 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22337 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22339 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22340 ol_link_pthreads="-lpthread -Wl,-woff,85"
22341 ol_link_threads=posix
22346 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22347 if test "$ol_link_threads" = no ; then
22349 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22350 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22351 if test "${ol_cv_pthread_lpthread+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 LIBS="-lpthread $LIBS"
22359 if test "$cross_compiling" = yes; then
22360 cat >conftest.$ac_ext <<_ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22367 /* pthread test headers */
22368 #include <pthread.h>
22369 #if HAVE_PTHREADS < 7
22373 #define NULL (void*)0
22376 static void *task(p)
22379 return (void *) (p == NULL);
22386 /* pthread test function */
22387 #ifndef PTHREAD_CREATE_DETACHED
22388 #define PTHREAD_CREATE_DETACHED 1
22392 int detach = PTHREAD_CREATE_DETACHED;
22394 #if HAVE_PTHREADS > 4
22395 /* Final pthreads */
22396 pthread_attr_t attr;
22398 status = pthread_attr_init(&attr);
22399 if( status ) return status;
22401 #if HAVE_PTHREADS < 7
22402 status = pthread_attr_setdetachstate(&attr, &detach);
22403 if( status < 0 ) status = errno;
22405 status = pthread_attr_setdetachstate(&attr, detach);
22407 if( status ) return status;
22408 status = pthread_create( &t, &attr, task, NULL );
22409 #if HAVE_PTHREADS < 7
22410 if( status < 0 ) status = errno;
22412 if( status ) return status;
22414 /* Draft 4 pthreads */
22415 status = pthread_create( &t, pthread_attr_default, task, NULL );
22416 if( status ) return errno;
22418 /* give thread a chance to complete */
22419 /* it should remain joinable and hence detachable */
22422 status = pthread_detach( &t );
22423 if( status ) return errno;
22426 #ifdef HAVE_LINUX_THREADS
22427 pthread_kill_other_threads_np();
22436 rm -f conftest.$ac_objext conftest$ac_exeext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438 (eval $ac_link) 2>conftest.er1
22440 grep -v '^ *+' conftest.er1 >conftest.err
22442 cat conftest.err >&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } &&
22445 { ac_try='test -z "$ac_c_werror_flag"
22446 || test ! -s conftest.err'
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try='test -s conftest$ac_exeext'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 ol_cv_pthread_lpthread=yes
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22463 ol_cv_pthread_lpthread=no
22465 rm -f conftest.err conftest.$ac_objext \
22466 conftest$ac_exeext conftest.$ac_ext
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22475 /* pthread test headers */
22476 #include <pthread.h>
22477 #if HAVE_PTHREADS < 7
22481 #define NULL (void*)0
22484 static void *task(p)
22487 return (void *) (p == NULL);
22491 int main(argc, argv)
22496 /* pthread test function */
22497 #ifndef PTHREAD_CREATE_DETACHED
22498 #define PTHREAD_CREATE_DETACHED 1
22502 int detach = PTHREAD_CREATE_DETACHED;
22504 #if HAVE_PTHREADS > 4
22505 /* Final pthreads */
22506 pthread_attr_t attr;
22508 status = pthread_attr_init(&attr);
22509 if( status ) return status;
22511 #if HAVE_PTHREADS < 7
22512 status = pthread_attr_setdetachstate(&attr, &detach);
22513 if( status < 0 ) status = errno;
22515 status = pthread_attr_setdetachstate(&attr, detach);
22517 if( status ) return status;
22518 status = pthread_create( &t, &attr, task, NULL );
22519 #if HAVE_PTHREADS < 7
22520 if( status < 0 ) status = errno;
22522 if( status ) return status;
22524 /* Draft 4 pthreads */
22525 status = pthread_create( &t, pthread_attr_default, task, NULL );
22526 if( status ) return errno;
22528 /* give thread a chance to complete */
22529 /* it should remain joinable and hence detachable */
22532 status = pthread_detach( &t );
22533 if( status ) return errno;
22536 #ifdef HAVE_LINUX_THREADS
22537 pthread_kill_other_threads_np();
22545 rm -f conftest$ac_exeext
22546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22547 (eval $ac_link) 2>&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 ol_cv_pthread_lpthread=yes
22558 echo "$as_me: program exited with status $ac_status" >&5
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ( exit $ac_status )
22563 ol_cv_pthread_lpthread=no
22565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22573 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22575 if test $ol_cv_pthread_lpthread = yes ; then
22576 ol_link_pthreads="-lpthread"
22577 ol_link_threads=posix
22581 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22582 if test "$ol_link_threads" = no ; then
22584 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22585 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22586 if test "${ol_cv_pthread_lc_r+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 if test "$cross_compiling" = yes; then
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22602 /* pthread test headers */
22603 #include <pthread.h>
22604 #if HAVE_PTHREADS < 7
22608 #define NULL (void*)0
22611 static void *task(p)
22614 return (void *) (p == NULL);
22621 /* pthread test function */
22622 #ifndef PTHREAD_CREATE_DETACHED
22623 #define PTHREAD_CREATE_DETACHED 1
22627 int detach = PTHREAD_CREATE_DETACHED;
22629 #if HAVE_PTHREADS > 4
22630 /* Final pthreads */
22631 pthread_attr_t attr;
22633 status = pthread_attr_init(&attr);
22634 if( status ) return status;
22636 #if HAVE_PTHREADS < 7
22637 status = pthread_attr_setdetachstate(&attr, &detach);
22638 if( status < 0 ) status = errno;
22640 status = pthread_attr_setdetachstate(&attr, detach);
22642 if( status ) return status;
22643 status = pthread_create( &t, &attr, task, NULL );
22644 #if HAVE_PTHREADS < 7
22645 if( status < 0 ) status = errno;
22647 if( status ) return status;
22649 /* Draft 4 pthreads */
22650 status = pthread_create( &t, pthread_attr_default, task, NULL );
22651 if( status ) return errno;
22653 /* give thread a chance to complete */
22654 /* it should remain joinable and hence detachable */
22657 status = pthread_detach( &t );
22658 if( status ) return errno;
22661 #ifdef HAVE_LINUX_THREADS
22662 pthread_kill_other_threads_np();
22671 rm -f conftest.$ac_objext conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673 (eval $ac_link) 2>conftest.er1
22675 grep -v '^ *+' conftest.er1 >conftest.err
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } &&
22680 { ac_try='test -z "$ac_c_werror_flag"
22681 || test ! -s conftest.err'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; } &&
22687 { ac_try='test -s conftest$ac_exeext'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }; then
22693 ol_cv_pthread_lc_r=yes
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22698 ol_cv_pthread_lc_r=no
22700 rm -f conftest.err conftest.$ac_objext \
22701 conftest$ac_exeext conftest.$ac_ext
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22710 /* pthread test headers */
22711 #include <pthread.h>
22712 #if HAVE_PTHREADS < 7
22716 #define NULL (void*)0
22719 static void *task(p)
22722 return (void *) (p == NULL);
22726 int main(argc, argv)
22731 /* pthread test function */
22732 #ifndef PTHREAD_CREATE_DETACHED
22733 #define PTHREAD_CREATE_DETACHED 1
22737 int detach = PTHREAD_CREATE_DETACHED;
22739 #if HAVE_PTHREADS > 4
22740 /* Final pthreads */
22741 pthread_attr_t attr;
22743 status = pthread_attr_init(&attr);
22744 if( status ) return status;
22746 #if HAVE_PTHREADS < 7
22747 status = pthread_attr_setdetachstate(&attr, &detach);
22748 if( status < 0 ) status = errno;
22750 status = pthread_attr_setdetachstate(&attr, detach);
22752 if( status ) return status;
22753 status = pthread_create( &t, &attr, task, NULL );
22754 #if HAVE_PTHREADS < 7
22755 if( status < 0 ) status = errno;
22757 if( status ) return status;
22759 /* Draft 4 pthreads */
22760 status = pthread_create( &t, pthread_attr_default, task, NULL );
22761 if( status ) return errno;
22763 /* give thread a chance to complete */
22764 /* it should remain joinable and hence detachable */
22767 status = pthread_detach( &t );
22768 if( status ) return errno;
22771 #ifdef HAVE_LINUX_THREADS
22772 pthread_kill_other_threads_np();
22780 rm -f conftest$ac_exeext
22781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782 (eval $ac_link) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22791 ol_cv_pthread_lc_r=yes
22793 echo "$as_me: program exited with status $ac_status" >&5
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ( exit $ac_status )
22798 ol_cv_pthread_lc_r=no
22800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22808 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22810 if test $ol_cv_pthread_lc_r = yes ; then
22811 ol_link_pthreads="-lc_r"
22812 ol_link_threads=posix
22817 # Pthread try link: -threads (ol_cv_pthread_threads)
22818 if test "$ol_link_threads" = no ; then
22820 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22821 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22822 if test "${ol_cv_pthread_threads+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 LIBS="-threads $LIBS"
22830 if test "$cross_compiling" = yes; then
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 /* pthread test headers */
22839 #include <pthread.h>
22840 #if HAVE_PTHREADS < 7
22844 #define NULL (void*)0
22847 static void *task(p)
22850 return (void *) (p == NULL);
22857 /* pthread test function */
22858 #ifndef PTHREAD_CREATE_DETACHED
22859 #define PTHREAD_CREATE_DETACHED 1
22863 int detach = PTHREAD_CREATE_DETACHED;
22865 #if HAVE_PTHREADS > 4
22866 /* Final pthreads */
22867 pthread_attr_t attr;
22869 status = pthread_attr_init(&attr);
22870 if( status ) return status;
22872 #if HAVE_PTHREADS < 7
22873 status = pthread_attr_setdetachstate(&attr, &detach);
22874 if( status < 0 ) status = errno;
22876 status = pthread_attr_setdetachstate(&attr, detach);
22878 if( status ) return status;
22879 status = pthread_create( &t, &attr, task, NULL );
22880 #if HAVE_PTHREADS < 7
22881 if( status < 0 ) status = errno;
22883 if( status ) return status;
22885 /* Draft 4 pthreads */
22886 status = pthread_create( &t, pthread_attr_default, task, NULL );
22887 if( status ) return errno;
22889 /* give thread a chance to complete */
22890 /* it should remain joinable and hence detachable */
22893 status = pthread_detach( &t );
22894 if( status ) return errno;
22897 #ifdef HAVE_LINUX_THREADS
22898 pthread_kill_other_threads_np();
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909 (eval $ac_link) 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
22916 { ac_try='test -z "$ac_c_werror_flag"
22917 || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest$ac_exeext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 ol_cv_pthread_threads=yes
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ol_cv_pthread_threads=no
22936 rm -f conftest.err conftest.$ac_objext \
22937 conftest$ac_exeext conftest.$ac_ext
22939 cat >conftest.$ac_ext <<_ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22946 /* pthread test headers */
22947 #include <pthread.h>
22948 #if HAVE_PTHREADS < 7
22952 #define NULL (void*)0
22955 static void *task(p)
22958 return (void *) (p == NULL);
22962 int main(argc, argv)
22967 /* pthread test function */
22968 #ifndef PTHREAD_CREATE_DETACHED
22969 #define PTHREAD_CREATE_DETACHED 1
22973 int detach = PTHREAD_CREATE_DETACHED;
22975 #if HAVE_PTHREADS > 4
22976 /* Final pthreads */
22977 pthread_attr_t attr;
22979 status = pthread_attr_init(&attr);
22980 if( status ) return status;
22982 #if HAVE_PTHREADS < 7
22983 status = pthread_attr_setdetachstate(&attr, &detach);
22984 if( status < 0 ) status = errno;
22986 status = pthread_attr_setdetachstate(&attr, detach);
22988 if( status ) return status;
22989 status = pthread_create( &t, &attr, task, NULL );
22990 #if HAVE_PTHREADS < 7
22991 if( status < 0 ) status = errno;
22993 if( status ) return status;
22995 /* Draft 4 pthreads */
22996 status = pthread_create( &t, pthread_attr_default, task, NULL );
22997 if( status ) return errno;
22999 /* give thread a chance to complete */
23000 /* it should remain joinable and hence detachable */
23003 status = pthread_detach( &t );
23004 if( status ) return errno;
23007 #ifdef HAVE_LINUX_THREADS
23008 pthread_kill_other_threads_np();
23016 rm -f conftest$ac_exeext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018 (eval $ac_link) 2>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ol_cv_pthread_threads=yes
23029 echo "$as_me: program exited with status $ac_status" >&5
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ( exit $ac_status )
23034 ol_cv_pthread_threads=no
23036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23043 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23044 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23046 if test $ol_cv_pthread_threads = yes ; then
23047 ol_link_pthreads="-threads"
23048 ol_link_threads=posix
23053 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23054 if test "$ol_link_threads" = no ; then
23055 # try -lpthreads -lmach -lexc -lc_r
23056 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23057 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23058 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23064 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23066 if test "$cross_compiling" = yes; then
23067 cat >conftest.$ac_ext <<_ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23074 /* pthread test headers */
23075 #include <pthread.h>
23076 #if HAVE_PTHREADS < 7
23080 #define NULL (void*)0
23083 static void *task(p)
23086 return (void *) (p == NULL);
23093 /* pthread test function */
23094 #ifndef PTHREAD_CREATE_DETACHED
23095 #define PTHREAD_CREATE_DETACHED 1
23099 int detach = PTHREAD_CREATE_DETACHED;
23101 #if HAVE_PTHREADS > 4
23102 /* Final pthreads */
23103 pthread_attr_t attr;
23105 status = pthread_attr_init(&attr);
23106 if( status ) return status;
23108 #if HAVE_PTHREADS < 7
23109 status = pthread_attr_setdetachstate(&attr, &detach);
23110 if( status < 0 ) status = errno;
23112 status = pthread_attr_setdetachstate(&attr, detach);
23114 if( status ) return status;
23115 status = pthread_create( &t, &attr, task, NULL );
23116 #if HAVE_PTHREADS < 7
23117 if( status < 0 ) status = errno;
23119 if( status ) return status;
23121 /* Draft 4 pthreads */
23122 status = pthread_create( &t, pthread_attr_default, task, NULL );
23123 if( status ) return errno;
23125 /* give thread a chance to complete */
23126 /* it should remain joinable and hence detachable */
23129 status = pthread_detach( &t );
23130 if( status ) return errno;
23133 #ifdef HAVE_LINUX_THREADS
23134 pthread_kill_other_threads_np();
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23145 (eval $ac_link) 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } &&
23152 { ac_try='test -z "$ac_c_werror_flag"
23153 || test ! -s conftest.err'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest$ac_exeext'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23170 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23172 rm -f conftest.err conftest.$ac_objext \
23173 conftest$ac_exeext conftest.$ac_ext
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23182 /* pthread test headers */
23183 #include <pthread.h>
23184 #if HAVE_PTHREADS < 7
23188 #define NULL (void*)0
23191 static void *task(p)
23194 return (void *) (p == NULL);
23198 int main(argc, argv)
23203 /* pthread test function */
23204 #ifndef PTHREAD_CREATE_DETACHED
23205 #define PTHREAD_CREATE_DETACHED 1
23209 int detach = PTHREAD_CREATE_DETACHED;
23211 #if HAVE_PTHREADS > 4
23212 /* Final pthreads */
23213 pthread_attr_t attr;
23215 status = pthread_attr_init(&attr);
23216 if( status ) return status;
23218 #if HAVE_PTHREADS < 7
23219 status = pthread_attr_setdetachstate(&attr, &detach);
23220 if( status < 0 ) status = errno;
23222 status = pthread_attr_setdetachstate(&attr, detach);
23224 if( status ) return status;
23225 status = pthread_create( &t, &attr, task, NULL );
23226 #if HAVE_PTHREADS < 7
23227 if( status < 0 ) status = errno;
23229 if( status ) return status;
23231 /* Draft 4 pthreads */
23232 status = pthread_create( &t, pthread_attr_default, task, NULL );
23233 if( status ) return errno;
23235 /* give thread a chance to complete */
23236 /* it should remain joinable and hence detachable */
23239 status = pthread_detach( &t );
23240 if( status ) return errno;
23243 #ifdef HAVE_LINUX_THREADS
23244 pthread_kill_other_threads_np();
23252 rm -f conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254 (eval $ac_link) 2>&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; }; then
23263 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23265 echo "$as_me: program exited with status $ac_status" >&5
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 ( exit $ac_status )
23270 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23279 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23280 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23282 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23283 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23284 ol_link_threads=posix
23288 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23289 if test "$ol_link_threads" = no ; then
23290 # try -lpthreads -lmach -lexc
23291 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23292 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23293 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 LIBS="-lpthreads -lmach -lexc $LIBS"
23301 if test "$cross_compiling" = yes; then
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23309 /* pthread test headers */
23310 #include <pthread.h>
23311 #if HAVE_PTHREADS < 7
23315 #define NULL (void*)0
23318 static void *task(p)
23321 return (void *) (p == NULL);
23328 /* pthread test function */
23329 #ifndef PTHREAD_CREATE_DETACHED
23330 #define PTHREAD_CREATE_DETACHED 1
23334 int detach = PTHREAD_CREATE_DETACHED;
23336 #if HAVE_PTHREADS > 4
23337 /* Final pthreads */
23338 pthread_attr_t attr;
23340 status = pthread_attr_init(&attr);
23341 if( status ) return status;
23343 #if HAVE_PTHREADS < 7
23344 status = pthread_attr_setdetachstate(&attr, &detach);
23345 if( status < 0 ) status = errno;
23347 status = pthread_attr_setdetachstate(&attr, detach);
23349 if( status ) return status;
23350 status = pthread_create( &t, &attr, task, NULL );
23351 #if HAVE_PTHREADS < 7
23352 if( status < 0 ) status = errno;
23354 if( status ) return status;
23356 /* Draft 4 pthreads */
23357 status = pthread_create( &t, pthread_attr_default, task, NULL );
23358 if( status ) return errno;
23360 /* give thread a chance to complete */
23361 /* it should remain joinable and hence detachable */
23364 status = pthread_detach( &t );
23365 if( status ) return errno;
23368 #ifdef HAVE_LINUX_THREADS
23369 pthread_kill_other_threads_np();
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380 (eval $ac_link) 2>conftest.er1
23382 grep -v '^ *+' conftest.er1 >conftest.err
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
23387 { ac_try='test -z "$ac_c_werror_flag"
23388 || test ! -s conftest.err'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest$ac_exeext'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 ol_cv_pthread_lpthreads_lmach_lexc=yes
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 ol_cv_pthread_lpthreads_lmach_lexc=no
23407 rm -f conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23417 /* pthread test headers */
23418 #include <pthread.h>
23419 #if HAVE_PTHREADS < 7
23423 #define NULL (void*)0
23426 static void *task(p)
23429 return (void *) (p == NULL);
23433 int main(argc, argv)
23438 /* pthread test function */
23439 #ifndef PTHREAD_CREATE_DETACHED
23440 #define PTHREAD_CREATE_DETACHED 1
23444 int detach = PTHREAD_CREATE_DETACHED;
23446 #if HAVE_PTHREADS > 4
23447 /* Final pthreads */
23448 pthread_attr_t attr;
23450 status = pthread_attr_init(&attr);
23451 if( status ) return status;
23453 #if HAVE_PTHREADS < 7
23454 status = pthread_attr_setdetachstate(&attr, &detach);
23455 if( status < 0 ) status = errno;
23457 status = pthread_attr_setdetachstate(&attr, detach);
23459 if( status ) return status;
23460 status = pthread_create( &t, &attr, task, NULL );
23461 #if HAVE_PTHREADS < 7
23462 if( status < 0 ) status = errno;
23464 if( status ) return status;
23466 /* Draft 4 pthreads */
23467 status = pthread_create( &t, pthread_attr_default, task, NULL );
23468 if( status ) return errno;
23470 /* give thread a chance to complete */
23471 /* it should remain joinable and hence detachable */
23474 status = pthread_detach( &t );
23475 if( status ) return errno;
23478 #ifdef HAVE_LINUX_THREADS
23479 pthread_kill_other_threads_np();
23487 rm -f conftest$ac_exeext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489 (eval $ac_link) 2>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ol_cv_pthread_lpthreads_lmach_lexc=yes
23500 echo "$as_me: program exited with status $ac_status" >&5
23501 echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23504 ( exit $ac_status )
23505 ol_cv_pthread_lpthreads_lmach_lexc=no
23507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23514 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23515 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23517 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23518 ol_link_pthreads="-lpthreads -lmach -lexc"
23519 ol_link_threads=posix
23523 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23524 if test "$ol_link_threads" = no ; then
23525 # try -lpthreads -lexc
23526 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23527 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23528 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 LIBS="-lpthreads -lexc $LIBS"
23536 if test "$cross_compiling" = yes; then
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23544 /* pthread test headers */
23545 #include <pthread.h>
23546 #if HAVE_PTHREADS < 7
23550 #define NULL (void*)0
23553 static void *task(p)
23556 return (void *) (p == NULL);
23563 /* pthread test function */
23564 #ifndef PTHREAD_CREATE_DETACHED
23565 #define PTHREAD_CREATE_DETACHED 1
23569 int detach = PTHREAD_CREATE_DETACHED;
23571 #if HAVE_PTHREADS > 4
23572 /* Final pthreads */
23573 pthread_attr_t attr;
23575 status = pthread_attr_init(&attr);
23576 if( status ) return status;
23578 #if HAVE_PTHREADS < 7
23579 status = pthread_attr_setdetachstate(&attr, &detach);
23580 if( status < 0 ) status = errno;
23582 status = pthread_attr_setdetachstate(&attr, detach);
23584 if( status ) return status;
23585 status = pthread_create( &t, &attr, task, NULL );
23586 #if HAVE_PTHREADS < 7
23587 if( status < 0 ) status = errno;
23589 if( status ) return status;
23591 /* Draft 4 pthreads */
23592 status = pthread_create( &t, pthread_attr_default, task, NULL );
23593 if( status ) return errno;
23595 /* give thread a chance to complete */
23596 /* it should remain joinable and hence detachable */
23599 status = pthread_detach( &t );
23600 if( status ) return errno;
23603 #ifdef HAVE_LINUX_THREADS
23604 pthread_kill_other_threads_np();
23613 rm -f conftest.$ac_objext conftest$ac_exeext
23614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23615 (eval $ac_link) 2>conftest.er1
23617 grep -v '^ *+' conftest.er1 >conftest.err
23619 cat conftest.err >&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } &&
23622 { ac_try='test -z "$ac_c_werror_flag"
23623 || test ! -s conftest.err'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; } &&
23629 { ac_try='test -s conftest$ac_exeext'
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; }; then
23635 ol_cv_pthread_lpthreads_lexc=yes
23637 echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23640 ol_cv_pthread_lpthreads_lexc=no
23642 rm -f conftest.err conftest.$ac_objext \
23643 conftest$ac_exeext conftest.$ac_ext
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23652 /* pthread test headers */
23653 #include <pthread.h>
23654 #if HAVE_PTHREADS < 7
23658 #define NULL (void*)0
23661 static void *task(p)
23664 return (void *) (p == NULL);
23668 int main(argc, argv)
23673 /* pthread test function */
23674 #ifndef PTHREAD_CREATE_DETACHED
23675 #define PTHREAD_CREATE_DETACHED 1
23679 int detach = PTHREAD_CREATE_DETACHED;
23681 #if HAVE_PTHREADS > 4
23682 /* Final pthreads */
23683 pthread_attr_t attr;
23685 status = pthread_attr_init(&attr);
23686 if( status ) return status;
23688 #if HAVE_PTHREADS < 7
23689 status = pthread_attr_setdetachstate(&attr, &detach);
23690 if( status < 0 ) status = errno;
23692 status = pthread_attr_setdetachstate(&attr, detach);
23694 if( status ) return status;
23695 status = pthread_create( &t, &attr, task, NULL );
23696 #if HAVE_PTHREADS < 7
23697 if( status < 0 ) status = errno;
23699 if( status ) return status;
23701 /* Draft 4 pthreads */
23702 status = pthread_create( &t, pthread_attr_default, task, NULL );
23703 if( status ) return errno;
23705 /* give thread a chance to complete */
23706 /* it should remain joinable and hence detachable */
23709 status = pthread_detach( &t );
23710 if( status ) return errno;
23713 #ifdef HAVE_LINUX_THREADS
23714 pthread_kill_other_threads_np();
23722 rm -f conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729 (eval $ac_try) 2>&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; }; then
23733 ol_cv_pthread_lpthreads_lexc=yes
23735 echo "$as_me: program exited with status $ac_status" >&5
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ( exit $ac_status )
23740 ol_cv_pthread_lpthreads_lexc=no
23742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23749 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23750 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23752 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23753 ol_link_pthreads="-lpthreads -lexc"
23754 ol_link_threads=posix
23759 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23760 if test "$ol_link_threads" = no ; then
23762 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23763 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23764 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 LIBS="-lpthreads $LIBS"
23772 if test "$cross_compiling" = yes; then
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23780 /* pthread test headers */
23781 #include <pthread.h>
23782 #if HAVE_PTHREADS < 7
23786 #define NULL (void*)0
23789 static void *task(p)
23792 return (void *) (p == NULL);
23799 /* pthread test function */
23800 #ifndef PTHREAD_CREATE_DETACHED
23801 #define PTHREAD_CREATE_DETACHED 1
23805 int detach = PTHREAD_CREATE_DETACHED;
23807 #if HAVE_PTHREADS > 4
23808 /* Final pthreads */
23809 pthread_attr_t attr;
23811 status = pthread_attr_init(&attr);
23812 if( status ) return status;
23814 #if HAVE_PTHREADS < 7
23815 status = pthread_attr_setdetachstate(&attr, &detach);
23816 if( status < 0 ) status = errno;
23818 status = pthread_attr_setdetachstate(&attr, detach);
23820 if( status ) return status;
23821 status = pthread_create( &t, &attr, task, NULL );
23822 #if HAVE_PTHREADS < 7
23823 if( status < 0 ) status = errno;
23825 if( status ) return status;
23827 /* Draft 4 pthreads */
23828 status = pthread_create( &t, pthread_attr_default, task, NULL );
23829 if( status ) return errno;
23831 /* give thread a chance to complete */
23832 /* it should remain joinable and hence detachable */
23835 status = pthread_detach( &t );
23836 if( status ) return errno;
23839 #ifdef HAVE_LINUX_THREADS
23840 pthread_kill_other_threads_np();
23849 rm -f conftest.$ac_objext conftest$ac_exeext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851 (eval $ac_link) 2>conftest.er1
23853 grep -v '^ *+' conftest.er1 >conftest.err
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } &&
23858 { ac_try='test -z "$ac_c_werror_flag"
23859 || test ! -s conftest.err'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest$ac_exeext'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23871 ol_cv_pthread_lib_lpthreads=yes
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 ol_cv_pthread_lib_lpthreads=no
23878 rm -f conftest.err conftest.$ac_objext \
23879 conftest$ac_exeext conftest.$ac_ext
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23888 /* pthread test headers */
23889 #include <pthread.h>
23890 #if HAVE_PTHREADS < 7
23894 #define NULL (void*)0
23897 static void *task(p)
23900 return (void *) (p == NULL);
23904 int main(argc, argv)
23909 /* pthread test function */
23910 #ifndef PTHREAD_CREATE_DETACHED
23911 #define PTHREAD_CREATE_DETACHED 1
23915 int detach = PTHREAD_CREATE_DETACHED;
23917 #if HAVE_PTHREADS > 4
23918 /* Final pthreads */
23919 pthread_attr_t attr;
23921 status = pthread_attr_init(&attr);
23922 if( status ) return status;
23924 #if HAVE_PTHREADS < 7
23925 status = pthread_attr_setdetachstate(&attr, &detach);
23926 if( status < 0 ) status = errno;
23928 status = pthread_attr_setdetachstate(&attr, detach);
23930 if( status ) return status;
23931 status = pthread_create( &t, &attr, task, NULL );
23932 #if HAVE_PTHREADS < 7
23933 if( status < 0 ) status = errno;
23935 if( status ) return status;
23937 /* Draft 4 pthreads */
23938 status = pthread_create( &t, pthread_attr_default, task, NULL );
23939 if( status ) return errno;
23941 /* give thread a chance to complete */
23942 /* it should remain joinable and hence detachable */
23945 status = pthread_detach( &t );
23946 if( status ) return errno;
23949 #ifdef HAVE_LINUX_THREADS
23950 pthread_kill_other_threads_np();
23958 rm -f conftest$ac_exeext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23960 (eval $ac_link) 2>&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; }; then
23969 ol_cv_pthread_lib_lpthreads=yes
23971 echo "$as_me: program exited with status $ac_status" >&5
23972 echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23975 ( exit $ac_status )
23976 ol_cv_pthread_lib_lpthreads=no
23978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23985 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23986 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23988 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23989 ol_link_pthreads="-lpthreads"
23990 ol_link_threads=posix
23995 if test $ol_link_threads != no ; then
23996 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23998 save_CPPFLAGS="$CPPFLAGS"
24000 LIBS="$LTHREAD_LIBS $LIBS"
24005 for ac_func in sched_yield pthread_yield thr_yield
24007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24008 echo "$as_me:$LINENO: checking for $ac_func" >&5
24009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24010 if eval "test \"\${$as_ac_var+set}\" = set"; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24013 cat >conftest.$ac_ext <<_ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24021 #define $ac_func innocuous_$ac_func
24023 /* System header to define __stub macros and hopefully few prototypes,
24024 which can conflict with char $ac_func (); below.
24025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24026 <limits.h> exists even on freestanding compilers. */
24029 # include <limits.h>
24031 # include <assert.h>
24036 /* Override any gcc2 internal prototype to avoid an error. */
24041 /* We use char because int might match the return type of a gcc2
24042 builtin and then its argument prototype would still apply. */
24044 /* The GNU C library defines this for functions which it implements
24045 to always fail with ENOSYS. Some functions are actually named
24046 something starting with __ and the normal name is an alias. */
24047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24050 char (*f) () = $ac_func;
24059 return f != $ac_func;
24064 rm -f conftest.$ac_objext conftest$ac_exeext
24065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24066 (eval $ac_link) 2>conftest.er1
24068 grep -v '^ *+' conftest.er1 >conftest.err
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } &&
24073 { ac_try='test -z "$ac_c_werror_flag"
24074 || test ! -s conftest.err'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; } &&
24080 { ac_try='test -s conftest$ac_exeext'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; }; then
24086 eval "$as_ac_var=yes"
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 eval "$as_ac_var=no"
24093 rm -f conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
24096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24098 if test `eval echo '${'$as_ac_var'}'` = yes; then
24099 cat >>confdefs.h <<_ACEOF
24100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24107 if test $ac_cv_func_sched_yield = no &&
24108 test $ac_cv_func_pthread_yield = no &&
24109 test $ac_cv_func_thr_yield = no ; then
24110 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24111 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24112 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
24115 ac_check_lib_save_LIBS=$LIBS
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24124 /* Override any gcc2 internal prototype to avoid an error. */
24128 /* We use char because int might match the return type of a gcc2
24129 builtin and then its argument prototype would still apply. */
24130 char sched_yield ();
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24141 (eval $ac_link) 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -z "$ac_c_werror_flag"
24149 || test ! -s conftest.err'
24150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151 (eval $ac_try) 2>&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; } &&
24155 { ac_try='test -s conftest$ac_exeext'
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; }; then
24161 ac_cv_lib_rt_sched_yield=yes
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ac_cv_lib_rt_sched_yield=no
24168 rm -f conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24172 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24173 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24174 if test $ac_cv_lib_rt_sched_yield = yes; then
24175 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24177 cat >>confdefs.h <<\_ACEOF
24178 #define HAVE_SCHED_YIELD 1
24181 ac_cv_func_sched_yield=yes
24183 ac_cv_func_sched_yield=no
24187 if test $ac_cv_func_sched_yield = no &&
24188 test $ac_cv_func_pthread_yield = no &&
24189 test "$ac_cv_func_thr_yield" = no ; then
24190 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24191 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24196 for ac_func in pthread_kill pthread_rwlock_destroy
24198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24199 echo "$as_me:$LINENO: checking for $ac_func" >&5
24200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24201 if eval "test \"\${$as_ac_var+set}\" = set"; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 cat >conftest.$ac_ext <<_ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24212 #define $ac_func innocuous_$ac_func
24214 /* System header to define __stub macros and hopefully few prototypes,
24215 which can conflict with char $ac_func (); below.
24216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24217 <limits.h> exists even on freestanding compilers. */
24220 # include <limits.h>
24222 # include <assert.h>
24227 /* Override any gcc2 internal prototype to avoid an error. */
24232 /* We use char because int might match the return type of a gcc2
24233 builtin and then its argument prototype would still apply. */
24235 /* The GNU C library defines this for functions which it implements
24236 to always fail with ENOSYS. Some functions are actually named
24237 something starting with __ and the normal name is an alias. */
24238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24241 char (*f) () = $ac_func;
24250 return f != $ac_func;
24255 rm -f conftest.$ac_objext conftest$ac_exeext
24256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24257 (eval $ac_link) 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } &&
24264 { ac_try='test -z "$ac_c_werror_flag"
24265 || test ! -s conftest.err'
24266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 (eval $ac_try) 2>&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); }; } &&
24271 { ac_try='test -s conftest$ac_exeext'
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; }; then
24277 eval "$as_ac_var=yes"
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24282 eval "$as_ac_var=no"
24284 rm -f conftest.err conftest.$ac_objext \
24285 conftest$ac_exeext conftest.$ac_ext
24287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24289 if test `eval echo '${'$as_ac_var'}'` = yes; then
24290 cat >>confdefs.h <<_ACEOF
24291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24298 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24299 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24300 if test "${ol_cv_func_pthread_detach+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24304 cat >conftest.$ac_ext <<_ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24311 #include <pthread.h>
24313 #define NULL (void*)0
24319 pthread_detach(NULL);
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326 (eval $ac_link) 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag"
24334 || test ! -s conftest.err'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; } &&
24340 { ac_try='test -s conftest$ac_exeext'
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 ol_cv_func_pthread_detach=yes
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24351 ol_cv_func_pthread_detach=no
24353 rm -f conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24357 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24358 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24360 if test $ol_cv_func_pthread_detach = no ; then
24361 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24362 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24363 { (exit 1); exit 1; }; }
24367 cat >>confdefs.h <<\_ACEOF
24368 #define HAVE_PTHREAD_DETACH 1
24377 pthread_setconcurrency \
24378 pthread_getconcurrency \
24379 thr_setconcurrency \
24380 thr_getconcurrency \
24383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24384 echo "$as_me:$LINENO: checking for $ac_func" >&5
24385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24386 if eval "test \"\${$as_ac_var+set}\" = set"; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 cat >conftest.$ac_ext <<_ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24397 #define $ac_func innocuous_$ac_func
24399 /* System header to define __stub macros and hopefully few prototypes,
24400 which can conflict with char $ac_func (); below.
24401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24402 <limits.h> exists even on freestanding compilers. */
24405 # include <limits.h>
24407 # include <assert.h>
24412 /* Override any gcc2 internal prototype to avoid an error. */
24417 /* We use char because int might match the return type of a gcc2
24418 builtin and then its argument prototype would still apply. */
24420 /* The GNU C library defines this for functions which it implements
24421 to always fail with ENOSYS. Some functions are actually named
24422 something starting with __ and the normal name is an alias. */
24423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24426 char (*f) () = $ac_func;
24435 return f != $ac_func;
24440 rm -f conftest.$ac_objext conftest$ac_exeext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442 (eval $ac_link) 2>conftest.er1
24444 grep -v '^ *+' conftest.er1 >conftest.err
24446 cat conftest.err >&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } &&
24449 { ac_try='test -z "$ac_c_werror_flag"
24450 || test ! -s conftest.err'
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; } &&
24456 { ac_try='test -s conftest$ac_exeext'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; }; then
24462 eval "$as_ac_var=yes"
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24467 eval "$as_ac_var=no"
24469 rm -f conftest.err conftest.$ac_objext \
24470 conftest$ac_exeext conftest.$ac_ext
24472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24474 if test `eval echo '${'$as_ac_var'}'` = yes; then
24475 cat >>confdefs.h <<_ACEOF
24476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24485 for ac_func in pthread_kill_other_threads_np
24487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24488 echo "$as_me:$LINENO: checking for $ac_func" >&5
24489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24490 if eval "test \"\${$as_ac_var+set}\" = set"; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24493 cat >conftest.$ac_ext <<_ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24501 #define $ac_func innocuous_$ac_func
24503 /* System header to define __stub macros and hopefully few prototypes,
24504 which can conflict with char $ac_func (); below.
24505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24506 <limits.h> exists even on freestanding compilers. */
24509 # include <limits.h>
24511 # include <assert.h>
24516 /* Override any gcc2 internal prototype to avoid an error. */
24521 /* We use char because int might match the return type of a gcc2
24522 builtin and then its argument prototype would still apply. */
24524 /* The GNU C library defines this for functions which it implements
24525 to always fail with ENOSYS. Some functions are actually named
24526 something starting with __ and the normal name is an alias. */
24527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24530 char (*f) () = $ac_func;
24539 return f != $ac_func;
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24546 (eval $ac_link) 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } &&
24553 { ac_try='test -z "$ac_c_werror_flag"
24554 || test ! -s conftest.err'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; } &&
24560 { ac_try='test -s conftest$ac_exeext'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 eval "$as_ac_var=yes"
24568 echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24571 eval "$as_ac_var=no"
24573 rm -f conftest.err conftest.$ac_objext \
24574 conftest$ac_exeext conftest.$ac_ext
24576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24578 if test `eval echo '${'$as_ac_var'}'` = yes; then
24579 cat >>confdefs.h <<_ACEOF
24580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24586 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24587 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24588 if test "${ol_cv_sys_linux_threads+set}" = set; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24591 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24593 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24594 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24599 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24600 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24601 if test "${ol_cv_linux_threads+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 if test $ol_cv_header_linux_threads = yes &&
24606 test $ol_cv_sys_linux_threads = yes; then
24607 ol_cv_linux_threads=yes
24608 elif test $ol_cv_header_linux_threads = no &&
24609 test $ol_cv_sys_linux_threads = no; then
24610 ol_cv_linux_threads=no
24612 ol_cv_linux_threads=error
24616 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24617 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24620 if test $ol_cv_linux_threads = error; then
24621 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24622 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24623 { (exit 1); exit 1; }; };
24626 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24627 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24628 if test "${ol_cv_pthread_create_works+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 if test "$cross_compiling" = yes; then
24633 ol_cv_pthread_create_works=yes
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24642 /* pthread test headers */
24643 #include <pthread.h>
24644 #if HAVE_PTHREADS < 7
24648 #define NULL (void*)0
24651 static void *task(p)
24654 return (void *) (p == NULL);
24658 int main(argc, argv)
24663 /* pthread test function */
24664 #ifndef PTHREAD_CREATE_DETACHED
24665 #define PTHREAD_CREATE_DETACHED 1
24669 int detach = PTHREAD_CREATE_DETACHED;
24671 #if HAVE_PTHREADS > 4
24672 /* Final pthreads */
24673 pthread_attr_t attr;
24675 status = pthread_attr_init(&attr);
24676 if( status ) return status;
24678 #if HAVE_PTHREADS < 7
24679 status = pthread_attr_setdetachstate(&attr, &detach);
24680 if( status < 0 ) status = errno;
24682 status = pthread_attr_setdetachstate(&attr, detach);
24684 if( status ) return status;
24685 status = pthread_create( &t, &attr, task, NULL );
24686 #if HAVE_PTHREADS < 7
24687 if( status < 0 ) status = errno;
24689 if( status ) return status;
24691 /* Draft 4 pthreads */
24692 status = pthread_create( &t, pthread_attr_default, task, NULL );
24693 if( status ) return errno;
24695 /* give thread a chance to complete */
24696 /* it should remain joinable and hence detachable */
24699 status = pthread_detach( &t );
24700 if( status ) return errno;
24703 #ifdef HAVE_LINUX_THREADS
24704 pthread_kill_other_threads_np();
24712 rm -f conftest$ac_exeext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24714 (eval $ac_link) 2>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ol_cv_pthread_create_works=yes
24725 echo "$as_me: program exited with status $ac_status" >&5
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ( exit $ac_status )
24730 ol_cv_pthread_create_works=no
24732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24736 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24738 if test $ol_cv_pthread_create_works = no ; then
24739 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24740 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24741 { (exit 1); exit 1; }; }
24744 if test $ol_with_yielding_select = auto ; then
24745 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24746 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24747 if test "${ol_cv_pthread_select_yields+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 if test "$cross_compiling" = yes; then
24752 ol_cv_pthread_select_yields=cross
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24761 #include <sys/types.h>
24762 #include <sys/time.h>
24763 #include <unistd.h>
24764 #include <pthread.h>
24766 #define NULL (void*) 0
24769 static int fildes[2];
24771 static void *task(p)
24783 FD_SET(fildes[0], &rfds);
24785 /* we're not interested in any fds */
24786 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24793 exit(0); /* if we exit here, the select blocked the whole process */
24796 int main(argc, argv)
24802 /* create a pipe to select */
24803 if(pipe(&fildes[0])) {
24808 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24809 (void) pthread_setconcurrency(2);
24811 #ifdef HAVE_THR_SETCONCURRENCY
24812 /* Set Solaris LWP concurrency to 2 */
24813 thr_setconcurrency(2);
24817 #if HAVE_PTHREADS < 6
24818 pthread_create(&t, pthread_attr_default, task, NULL);
24820 pthread_create(&t, NULL, task, NULL);
24823 /* make sure task runs first */
24826 #elif defined( HAVE_SCHED_YIELD )
24828 #elif defined( HAVE_PTHREAD_YIELD )
24835 rm -f conftest$ac_exeext
24836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24837 (eval $ac_link) 2>&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ol_cv_pthread_select_yields=no
24848 echo "$as_me: program exited with status $ac_status" >&5
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ( exit $ac_status )
24853 ol_cv_pthread_select_yields=yes
24855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24858 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24859 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24861 if test $ol_cv_pthread_select_yields = cross ; then
24862 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24863 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24864 { (exit 1); exit 1; }; }
24867 if test $ol_cv_pthread_select_yields = yes ; then
24868 ol_with_yielding_select=yes
24872 CPPFLAGS="$save_CPPFLAGS"
24875 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24876 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24877 { (exit 1); exit 1; }; }
24881 if test $ol_with_threads = posix ; then
24882 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24883 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24884 { (exit 1); exit 1; }; }
24889 case $ol_with_threads in auto | yes | mach)
24893 for ac_header in mach/cthreads.h cthreads.h
24895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24897 echo "$as_me:$LINENO: checking for $ac_header" >&5
24898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24905 # Is the header compilable?
24906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 $ac_includes_default
24915 #include <$ac_header>
24917 rm -f conftest.$ac_objext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24919 (eval $ac_compile) 2>conftest.er1
24921 grep -v '^ *+' conftest.er1 >conftest.err
24923 cat conftest.err >&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
24926 { ac_try='test -z "$ac_c_werror_flag"
24927 || test ! -s conftest.err'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest.$ac_objext'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_header_compiler=yes
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ac_header_compiler=no
24946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24948 echo "${ECHO_T}$ac_header_compiler" >&6
24950 # Is the header present?
24951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24953 cat >conftest.$ac_ext <<_ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 #include <$ac_header>
24961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24964 grep -v '^ *+' conftest.er1 >conftest.err
24966 cat conftest.err >&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } >/dev/null; then
24969 if test -s conftest.err; then
24970 ac_cpp_err=$ac_c_preproc_warn_flag
24971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24978 if test -z "$ac_cpp_err"; then
24979 ac_header_preproc=yes
24981 echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24984 ac_header_preproc=no
24986 rm -f conftest.err conftest.$ac_ext
24987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24988 echo "${ECHO_T}$ac_header_preproc" >&6
24990 # So? What about this header?
24991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24997 ac_header_preproc=yes
25000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25014 ## ------------------------------------------ ##
25015 ## Report this to the AC_PACKAGE_NAME lists. ##
25016 ## ------------------------------------------ ##
25019 sed "s/^/$as_me: WARNING: /" >&2
25022 echo "$as_me:$LINENO: checking for $ac_header" >&5
25023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 eval "$as_ac_Header=\$ac_header_preproc"
25029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25034 cat >>confdefs.h <<_ACEOF
25035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25042 if test $ac_cv_header_mach_cthreads_h = yes ; then
25043 ol_with_threads=found
25045 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25046 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25047 if test "${ac_cv_func_cthread_fork+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 cat >conftest.$ac_ext <<_ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h. */
25056 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25058 #define cthread_fork innocuous_cthread_fork
25060 /* System header to define __stub macros and hopefully few prototypes,
25061 which can conflict with char cthread_fork (); below.
25062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25063 <limits.h> exists even on freestanding compilers. */
25066 # include <limits.h>
25068 # include <assert.h>
25071 #undef cthread_fork
25073 /* Override any gcc2 internal prototype to avoid an error. */
25078 /* We use char because int might match the return type of a gcc2
25079 builtin and then its argument prototype would still apply. */
25080 char cthread_fork ();
25081 /* The GNU C library defines this for functions which it implements
25082 to always fail with ENOSYS. Some functions are actually named
25083 something starting with __ and the normal name is an alias. */
25084 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25087 char (*f) () = cthread_fork;
25096 return f != cthread_fork;
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103 (eval $ac_link) 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
25110 { ac_try='test -z "$ac_c_werror_flag"
25111 || test ! -s conftest.err'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; } &&
25117 { ac_try='test -s conftest$ac_exeext'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; }; then
25123 ac_cv_func_cthread_fork=yes
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ac_cv_func_cthread_fork=no
25130 rm -f conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
25133 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25134 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25135 if test $ac_cv_func_cthread_fork = yes; then
25136 ol_link_threads=yes
25140 if test $ol_link_threads = no ; then
25141 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25142 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25143 if test "${ol_cv_cthread_all_load+set}" = set; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
25148 LIBS="-all_load $LIBS"
25149 cat >conftest.$ac_ext <<_ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 #include <mach/cthreads.h>
25160 cthread_fork((void *)0, (void *)0);
25166 rm -f conftest.$ac_objext conftest$ac_exeext
25167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25168 (eval $ac_link) 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
25175 { ac_try='test -z "$ac_c_werror_flag"
25176 || test ! -s conftest.err'
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; } &&
25182 { ac_try='test -s conftest$ac_exeext'
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; }; then
25188 ol_cv_cthread_all_load=yes
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ol_cv_cthread_all_load=no
25195 rm -f conftest.err conftest.$ac_objext \
25196 conftest$ac_exeext conftest.$ac_ext
25200 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25201 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25203 if test $ol_cv_cthread_all_load = yes ; then
25204 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25205 ol_link_threads=mach
25206 ol_with_threads=found
25210 elif test $ac_cv_header_cthreads_h = yes ; then
25212 ol_with_threads=found
25215 LIBS="$LIBS -lthreads"
25216 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25217 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25218 if test "${ac_cv_func_cthread_fork+set}" = set; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25221 cat >conftest.$ac_ext <<_ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h. */
25227 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25229 #define cthread_fork innocuous_cthread_fork
25231 /* System header to define __stub macros and hopefully few prototypes,
25232 which can conflict with char cthread_fork (); below.
25233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25234 <limits.h> exists even on freestanding compilers. */
25237 # include <limits.h>
25239 # include <assert.h>
25242 #undef cthread_fork
25244 /* Override any gcc2 internal prototype to avoid an error. */
25249 /* We use char because int might match the return type of a gcc2
25250 builtin and then its argument prototype would still apply. */
25251 char cthread_fork ();
25252 /* The GNU C library defines this for functions which it implements
25253 to always fail with ENOSYS. Some functions are actually named
25254 something starting with __ and the normal name is an alias. */
25255 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25258 char (*f) () = cthread_fork;
25267 return f != cthread_fork;
25272 rm -f conftest.$ac_objext conftest$ac_exeext
25273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25274 (eval $ac_link) 2>conftest.er1
25276 grep -v '^ *+' conftest.er1 >conftest.err
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } &&
25281 { ac_try='test -z "$ac_c_werror_flag"
25282 || test ! -s conftest.err'
25283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284 (eval $ac_try) 2>&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); }; } &&
25288 { ac_try='test -s conftest$ac_exeext'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; }; then
25294 ac_cv_func_cthread_fork=yes
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ac_cv_func_cthread_fork=no
25301 rm -f conftest.err conftest.$ac_objext \
25302 conftest$ac_exeext conftest.$ac_ext
25304 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25305 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25306 if test $ac_cv_func_cthread_fork = yes; then
25307 ol_link_threads=yes
25312 if test $ol_link_threads = yes ; then
25313 LTHREAD_LIBS="-lthreads"
25314 ol_link_threads=mach
25315 ol_with_threads=found
25317 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25318 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25319 { (exit 1); exit 1; }; }
25322 elif test $ol_with_threads = mach ; then
25323 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25324 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25325 { (exit 1); exit 1; }; }
25328 if test $ol_link_threads = mach ; then
25330 cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_MACH_CTHREADS 1
25334 elif test $ol_with_threads = found ; then
25335 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25336 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25337 { (exit 1); exit 1; }; }
25342 case $ol_with_threads in auto | yes | pth)
25345 for ac_header in pth.h
25347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25349 echo "$as_me:$LINENO: checking for $ac_header" >&5
25350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25357 # Is the header compilable?
25358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25360 cat >conftest.$ac_ext <<_ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 $ac_includes_default
25367 #include <$ac_header>
25369 rm -f conftest.$ac_objext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25371 (eval $ac_compile) 2>conftest.er1
25373 grep -v '^ *+' conftest.er1 >conftest.err
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } &&
25378 { ac_try='test -z "$ac_c_werror_flag"
25379 || test ! -s conftest.err'
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; } &&
25385 { ac_try='test -s conftest.$ac_objext'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
25391 ac_header_compiler=yes
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25396 ac_header_compiler=no
25398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25400 echo "${ECHO_T}$ac_header_compiler" >&6
25402 # Is the header present?
25403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25405 cat >conftest.$ac_ext <<_ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 #include <$ac_header>
25413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25416 grep -v '^ *+' conftest.er1 >conftest.err
25418 cat conftest.err >&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } >/dev/null; then
25421 if test -s conftest.err; then
25422 ac_cpp_err=$ac_c_preproc_warn_flag
25423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25430 if test -z "$ac_cpp_err"; then
25431 ac_header_preproc=yes
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 ac_header_preproc=no
25438 rm -f conftest.err conftest.$ac_ext
25439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25440 echo "${ECHO_T}$ac_header_preproc" >&6
25442 # So? What about this header?
25443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25449 ac_header_preproc=yes
25452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25466 ## ------------------------------------------ ##
25467 ## Report this to the AC_PACKAGE_NAME lists. ##
25468 ## ------------------------------------------ ##
25471 sed "s/^/$as_me: WARNING: /" >&2
25474 echo "$as_me:$LINENO: checking for $ac_header" >&5
25475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25479 eval "$as_ac_Header=\$ac_header_preproc"
25481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25486 cat >>confdefs.h <<_ACEOF
25487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25495 if test $ac_cv_header_pth_h = yes ; then
25496 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25497 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25498 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25501 ac_check_lib_save_LIBS=$LIBS
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25510 /* Override any gcc2 internal prototype to avoid an error. */
25514 /* We use char because int might match the return type of a gcc2
25515 builtin and then its argument prototype would still apply. */
25516 char pth_version ();
25525 rm -f conftest.$ac_objext conftest$ac_exeext
25526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527 (eval $ac_link) 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -z "$ac_c_werror_flag"
25535 || test ! -s conftest.err'
25536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537 (eval $ac_try) 2>&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); }; } &&
25541 { ac_try='test -s conftest$ac_exeext'
25542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543 (eval $ac_try) 2>&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); }; }; then
25547 ac_cv_lib_pth_pth_version=yes
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25552 ac_cv_lib_pth_pth_version=no
25554 rm -f conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
25556 LIBS=$ac_check_lib_save_LIBS
25558 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25559 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25560 if test $ac_cv_lib_pth_pth_version = yes; then
25567 if test $have_pth = yes ; then
25569 cat >>confdefs.h <<\_ACEOF
25570 #define HAVE_GNU_PTH 1
25573 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25574 ol_link_threads=pth
25575 ol_with_threads=found
25577 if test $ol_with_yielding_select = auto ; then
25578 ol_with_yielding_select=yes
25585 case $ol_with_threads in auto | yes | lwp)
25589 for ac_header in thread.h synch.h
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25593 echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25601 # Is the header compilable?
25602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25604 cat >conftest.$ac_ext <<_ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610 $ac_includes_default
25611 #include <$ac_header>
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615 (eval $ac_compile) 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest.$ac_objext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_header_compiler=yes
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_compiler=no
25642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25644 echo "${ECHO_T}$ac_header_compiler" >&6
25646 # Is the header present?
25647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 #include <$ac_header>
25657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } >/dev/null; then
25665 if test -s conftest.err; then
25666 ac_cpp_err=$ac_c_preproc_warn_flag
25667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25674 if test -z "$ac_cpp_err"; then
25675 ac_header_preproc=yes
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680 ac_header_preproc=no
25682 rm -f conftest.err conftest.$ac_ext
25683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25684 echo "${ECHO_T}$ac_header_preproc" >&6
25686 # So? What about this header?
25687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25693 ac_header_preproc=yes
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25710 ## ------------------------------------------ ##
25711 ## Report this to the AC_PACKAGE_NAME lists. ##
25712 ## ------------------------------------------ ##
25715 sed "s/^/$as_me: WARNING: /" >&2
25718 echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 eval "$as_ac_Header=\$ac_header_preproc"
25725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25730 cat >>confdefs.h <<_ACEOF
25731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25738 if test $ac_cv_header_thread_h = yes &&
25739 test $ac_cv_header_synch_h = yes ; then
25740 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25741 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25742 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25745 ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lthread $LIBS"
25747 cat >conftest.$ac_ext <<_ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h. */
25754 /* Override any gcc2 internal prototype to avoid an error. */
25758 /* We use char because int might match the return type of a gcc2
25759 builtin and then its argument prototype would still apply. */
25760 char thr_create ();
25769 rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25771 (eval $ac_link) 2>conftest.er1
25773 grep -v '^ *+' conftest.er1 >conftest.err
25775 cat conftest.err >&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
25778 { ac_try='test -z "$ac_c_werror_flag"
25779 || test ! -s conftest.err'
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; } &&
25785 { ac_try='test -s conftest$ac_exeext'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 ac_cv_lib_thread_thr_create=yes
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25796 ac_cv_lib_thread_thr_create=no
25798 rm -f conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
25800 LIBS=$ac_check_lib_save_LIBS
25802 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25803 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25804 if test $ac_cv_lib_thread_thr_create = yes; then
25811 if test $have_thr = yes ; then
25813 cat >>confdefs.h <<\_ACEOF
25817 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25818 ol_link_threads=thr
25820 if test $ol_with_yielding_select = auto ; then
25821 ol_with_yielding_select=yes
25827 thr_setconcurrency \
25828 thr_getconcurrency \
25831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25832 echo "$as_me:$LINENO: checking for $ac_func" >&5
25833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25834 if eval "test \"\${$as_ac_var+set}\" = set"; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25845 #define $ac_func innocuous_$ac_func
25847 /* System header to define __stub macros and hopefully few prototypes,
25848 which can conflict with char $ac_func (); below.
25849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25850 <limits.h> exists even on freestanding compilers. */
25853 # include <limits.h>
25855 # include <assert.h>
25860 /* Override any gcc2 internal prototype to avoid an error. */
25865 /* We use char because int might match the return type of a gcc2
25866 builtin and then its argument prototype would still apply. */
25868 /* The GNU C library defines this for functions which it implements
25869 to always fail with ENOSYS. Some functions are actually named
25870 something starting with __ and the normal name is an alias. */
25871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25874 char (*f) () = $ac_func;
25883 return f != $ac_func;
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890 (eval $ac_link) 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } &&
25897 { ac_try='test -z "$ac_c_werror_flag"
25898 || test ! -s conftest.err'
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; } &&
25904 { ac_try='test -s conftest$ac_exeext'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; }; then
25910 eval "$as_ac_var=yes"
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 eval "$as_ac_var=no"
25917 rm -f conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25922 if test `eval echo '${'$as_ac_var'}'` = yes; then
25923 cat >>confdefs.h <<_ACEOF
25924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25934 for ac_header in lwp/lwp.h
25936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25938 echo "$as_me:$LINENO: checking for $ac_header" >&5
25939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25941 echo $ECHO_N "(cached) $ECHO_C" >&6
25943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25946 # Is the header compilable?
25947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25949 cat >conftest.$ac_ext <<_ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955 $ac_includes_default
25956 #include <$ac_header>
25958 rm -f conftest.$ac_objext
25959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25960 (eval $ac_compile) 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } &&
25967 { ac_try='test -z "$ac_c_werror_flag"
25968 || test ! -s conftest.err'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; } &&
25974 { ac_try='test -s conftest.$ac_objext'
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; }; then
25980 ac_header_compiler=yes
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 ac_header_compiler=no
25987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25989 echo "${ECHO_T}$ac_header_compiler" >&6
25991 # Is the header present?
25992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25994 cat >conftest.$ac_ext <<_ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h. */
26000 #include <$ac_header>
26002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26005 grep -v '^ *+' conftest.er1 >conftest.err
26007 cat conftest.err >&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } >/dev/null; then
26010 if test -s conftest.err; then
26011 ac_cpp_err=$ac_c_preproc_warn_flag
26012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26019 if test -z "$ac_cpp_err"; then
26020 ac_header_preproc=yes
26022 echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26025 ac_header_preproc=no
26027 rm -f conftest.err conftest.$ac_ext
26028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26029 echo "${ECHO_T}$ac_header_preproc" >&6
26031 # So? What about this header?
26032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26038 ac_header_preproc=yes
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26055 ## ------------------------------------------ ##
26056 ## Report this to the AC_PACKAGE_NAME lists. ##
26057 ## ------------------------------------------ ##
26060 sed "s/^/$as_me: WARNING: /" >&2
26063 echo "$as_me:$LINENO: checking for $ac_header" >&5
26064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 eval "$as_ac_Header=\$ac_header_preproc"
26070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26075 cat >>confdefs.h <<_ACEOF
26076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26083 if test $ac_cv_header_lwp_lwp_h = yes ; then
26084 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26085 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26086 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26087 echo $ECHO_N "(cached) $ECHO_C" >&6
26089 ac_check_lib_save_LIBS=$LIBS
26091 cat >conftest.$ac_ext <<_ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26098 /* Override any gcc2 internal prototype to avoid an error. */
26102 /* We use char because int might match the return type of a gcc2
26103 builtin and then its argument prototype would still apply. */
26104 char lwp_create ();
26113 rm -f conftest.$ac_objext conftest$ac_exeext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26115 (eval $ac_link) 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
26122 { ac_try='test -z "$ac_c_werror_flag"
26123 || test ! -s conftest.err'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest$ac_exeext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 ac_cv_lib_lwp_lwp_create=yes
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_cv_lib_lwp_lwp_create=no
26142 rm -f conftest.err conftest.$ac_objext \
26143 conftest$ac_exeext conftest.$ac_ext
26144 LIBS=$ac_check_lib_save_LIBS
26146 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26147 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26148 if test $ac_cv_lib_lwp_lwp_create = yes; then
26155 if test $have_lwp = yes ; then
26157 cat >>confdefs.h <<\_ACEOF
26161 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26162 ol_link_threads=lwp
26164 if test $ol_with_yielding_select = auto ; then
26165 ol_with_yielding_select=no
26172 if test $ol_with_yielding_select = yes ; then
26174 cat >>confdefs.h <<\_ACEOF
26175 #define HAVE_YIELDING_SELECT 1
26180 if test $ol_with_threads = manual ; then
26181 ol_link_threads=yes
26183 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26184 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26188 for ac_header in pthread.h sched.h
26190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26192 echo "$as_me:$LINENO: checking for $ac_header" >&5
26193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26200 # Is the header compilable?
26201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26203 cat >conftest.$ac_ext <<_ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h. */
26209 $ac_includes_default
26210 #include <$ac_header>
26212 rm -f conftest.$ac_objext
26213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26214 (eval $ac_compile) 2>conftest.er1
26216 grep -v '^ *+' conftest.er1 >conftest.err
26218 cat conftest.err >&5
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); } &&
26221 { ac_try='test -z "$ac_c_werror_flag"
26222 || test ! -s conftest.err'
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; } &&
26228 { ac_try='test -s conftest.$ac_objext'
26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); }; }; then
26234 ac_header_compiler=yes
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26239 ac_header_compiler=no
26241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26243 echo "${ECHO_T}$ac_header_compiler" >&6
26245 # Is the header present?
26246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26248 cat >conftest.$ac_ext <<_ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h. */
26254 #include <$ac_header>
26256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26259 grep -v '^ *+' conftest.er1 >conftest.err
26261 cat conftest.err >&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } >/dev/null; then
26264 if test -s conftest.err; then
26265 ac_cpp_err=$ac_c_preproc_warn_flag
26266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26273 if test -z "$ac_cpp_err"; then
26274 ac_header_preproc=yes
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 ac_header_preproc=no
26281 rm -f conftest.err conftest.$ac_ext
26282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26283 echo "${ECHO_T}$ac_header_preproc" >&6
26285 # So? What about this header?
26286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26292 ac_header_preproc=yes
26295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26309 ## ------------------------------------------ ##
26310 ## Report this to the AC_PACKAGE_NAME lists. ##
26311 ## ------------------------------------------ ##
26314 sed "s/^/$as_me: WARNING: /" >&2
26317 echo "$as_me:$LINENO: checking for $ac_header" >&5
26318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 eval "$as_ac_Header=\$ac_header_preproc"
26324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26329 cat >>confdefs.h <<_ACEOF
26330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26339 for ac_func in sched_yield pthread_yield
26341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26342 echo "$as_me:$LINENO: checking for $ac_func" >&5
26343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26344 if eval "test \"\${$as_ac_var+set}\" = set"; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26355 #define $ac_func innocuous_$ac_func
26357 /* System header to define __stub macros and hopefully few prototypes,
26358 which can conflict with char $ac_func (); below.
26359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26360 <limits.h> exists even on freestanding compilers. */
26363 # include <limits.h>
26365 # include <assert.h>
26370 /* Override any gcc2 internal prototype to avoid an error. */
26375 /* We use char because int might match the return type of a gcc2
26376 builtin and then its argument prototype would still apply. */
26378 /* The GNU C library defines this for functions which it implements
26379 to always fail with ENOSYS. Some functions are actually named
26380 something starting with __ and the normal name is an alias. */
26381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26384 char (*f) () = $ac_func;
26393 return f != $ac_func;
26398 rm -f conftest.$ac_objext conftest$ac_exeext
26399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26400 (eval $ac_link) 2>conftest.er1
26402 grep -v '^ *+' conftest.er1 >conftest.err
26404 cat conftest.err >&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); } &&
26407 { ac_try='test -z "$ac_c_werror_flag"
26408 || test ! -s conftest.err'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; } &&
26414 { ac_try='test -s conftest$ac_exeext'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 eval "$as_ac_var=yes"
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 eval "$as_ac_var=no"
26427 rm -f conftest.err conftest.$ac_objext \
26428 conftest$ac_exeext conftest.$ac_ext
26430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26432 if test `eval echo '${'$as_ac_var'}'` = yes; then
26433 cat >>confdefs.h <<_ACEOF
26434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26441 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26442 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26443 if test "${ol_cv_header_linux_threads+set}" = set; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 #include <pthread.h>
26454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26455 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26456 ol_cv_header_linux_threads=yes
26458 ol_cv_header_linux_threads=no
26464 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26465 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26466 if test $ol_cv_header_linux_threads = yes; then
26468 cat >>confdefs.h <<\_ACEOF
26469 #define HAVE_LINUX_THREADS 1
26476 for ac_header in mach/cthreads.h
26478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26488 # Is the header compilable?
26489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 $ac_includes_default
26498 #include <$ac_header>
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_header_compiler=yes
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_header_compiler=no
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26531 echo "${ECHO_T}$ac_header_compiler" >&6
26533 # Is the header present?
26534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 #include <$ac_header>
26544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } >/dev/null; then
26552 if test -s conftest.err; then
26553 ac_cpp_err=$ac_c_preproc_warn_flag
26554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26561 if test -z "$ac_cpp_err"; then
26562 ac_header_preproc=yes
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_header_preproc=no
26569 rm -f conftest.err conftest.$ac_ext
26570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26571 echo "${ECHO_T}$ac_header_preproc" >&6
26573 # So? What about this header?
26574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26580 ac_header_preproc=yes
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26597 ## ------------------------------------------ ##
26598 ## Report this to the AC_PACKAGE_NAME lists. ##
26599 ## ------------------------------------------ ##
26602 sed "s/^/$as_me: WARNING: /" >&2
26605 echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 eval "$as_ac_Header=\$ac_header_preproc"
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26626 for ac_header in lwp/lwp.h
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26638 # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26648 #include <$ac_header>
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652 (eval $ac_compile) 2>conftest.er1
26654 grep -v '^ *+' conftest.er1 >conftest.err
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag"
26660 || test ! -s conftest.err'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; } &&
26666 { ac_try='test -s conftest.$ac_objext'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
26672 ac_header_compiler=yes
26674 echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26677 ac_header_compiler=no
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 #include <$ac_header>
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } >/dev/null; then
26702 if test -s conftest.err; then
26703 ac_cpp_err=$ac_c_preproc_warn_flag
26704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26711 if test -z "$ac_cpp_err"; then
26712 ac_header_preproc=yes
26714 echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717 ac_header_preproc=no
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26723 # So? What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730 ac_header_preproc=yes
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26747 ## ------------------------------------------ ##
26748 ## Report this to the AC_PACKAGE_NAME lists. ##
26749 ## ------------------------------------------ ##
26752 sed "s/^/$as_me: WARNING: /" >&2
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 eval "$as_ac_Header=\$ac_header_preproc"
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767 cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26777 for ac_header in thread.h synch.h
26779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26781 echo "$as_me:$LINENO: checking for $ac_header" >&5
26782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26789 # Is the header compilable?
26790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26792 cat >conftest.$ac_ext <<_ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h. */
26798 $ac_includes_default
26799 #include <$ac_header>
26801 rm -f conftest.$ac_objext
26802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26803 (eval $ac_compile) 2>conftest.er1
26805 grep -v '^ *+' conftest.er1 >conftest.err
26807 cat conftest.err >&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } &&
26810 { ac_try='test -z "$ac_c_werror_flag"
26811 || test ! -s conftest.err'
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; } &&
26817 { ac_try='test -s conftest.$ac_objext'
26818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819 (eval $ac_try) 2>&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); }; }; then
26823 ac_header_compiler=yes
26825 echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26828 ac_header_compiler=no
26830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26832 echo "${ECHO_T}$ac_header_compiler" >&6
26834 # Is the header present?
26835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26837 cat >conftest.$ac_ext <<_ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h. */
26843 #include <$ac_header>
26845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26848 grep -v '^ *+' conftest.er1 >conftest.err
26850 cat conftest.err >&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } >/dev/null; then
26853 if test -s conftest.err; then
26854 ac_cpp_err=$ac_c_preproc_warn_flag
26855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26862 if test -z "$ac_cpp_err"; then
26863 ac_header_preproc=yes
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26868 ac_header_preproc=no
26870 rm -f conftest.err conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26872 echo "${ECHO_T}$ac_header_preproc" >&6
26874 # So? What about this header?
26875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26881 ac_header_preproc=yes
26884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26898 ## ------------------------------------------ ##
26899 ## Report this to the AC_PACKAGE_NAME lists. ##
26900 ## ------------------------------------------ ##
26903 sed "s/^/$as_me: WARNING: /" >&2
26906 echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26911 eval "$as_ac_Header=\$ac_header_preproc"
26913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26918 cat >>confdefs.h <<_ACEOF
26919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26928 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26929 cat >>confdefs.h <<\_ACEOF
26930 #define REENTRANT 1
26933 cat >>confdefs.h <<\_ACEOF
26934 #define _REENTRANT 1
26937 cat >>confdefs.h <<\_ACEOF
26938 #define THREAD_SAFE 1
26941 cat >>confdefs.h <<\_ACEOF
26942 #define _THREAD_SAFE 1
26945 cat >>confdefs.h <<\_ACEOF
26946 #define THREADSAFE 1
26949 cat >>confdefs.h <<\_ACEOF
26950 #define _THREADSAFE 1
26953 cat >>confdefs.h <<\_ACEOF
26954 #define _SGI_MP_SOURCE 1
26958 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26959 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26960 if test "${ol_cv_errno_thread_specific+set}" = set; then
26961 echo $ECHO_N "(cached) $ECHO_C" >&6
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26979 rm -f conftest.$ac_objext conftest$ac_exeext
26980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26981 (eval $ac_link) 2>conftest.er1
26983 grep -v '^ *+' conftest.er1 >conftest.err
26985 cat conftest.err >&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } &&
26988 { ac_try='test -z "$ac_c_werror_flag"
26989 || test ! -s conftest.err'
26990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991 (eval $ac_try) 2>&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; } &&
26995 { ac_try='test -s conftest$ac_exeext'
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 ol_cv_errno_thread_specific=yes
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ol_cv_errno_thread_specific=no
27008 rm -f conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
27012 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27013 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27015 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27016 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27017 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 cat >conftest.$ac_ext <<_ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27038 (eval $ac_link) 2>conftest.er1
27040 grep -v '^ *+' conftest.er1 >conftest.err
27042 cat conftest.err >&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } &&
27045 { ac_try='test -z "$ac_c_werror_flag"
27046 || test ! -s conftest.err'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; } &&
27052 { ac_try='test -s conftest$ac_exeext'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; }; then
27058 ol_cv_h_errno_thread_specific=yes
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27063 ol_cv_h_errno_thread_specific=no
27065 rm -f conftest.err conftest.$ac_objext \
27066 conftest$ac_exeext conftest.$ac_ext
27069 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27070 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27072 if test $ol_cv_errno_thread_specific != yes ||
27073 test $ol_cv_h_errno_thread_specific != yes ; then
27074 LIBS="$LTHREAD_LIBS $LIBS"
27080 if test $ol_link_threads = no ; then
27081 if test $ol_with_threads = yes ; then
27082 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27083 echo "$as_me: error: no suitable thread support" >&2;}
27084 { (exit 1); exit 1; }; }
27087 if test $ol_with_threads = auto ; then
27088 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27089 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27094 cat >>confdefs.h <<\_ACEOF
27095 #define NO_THREADS 1
27101 if test $ol_link_threads != no ; then
27103 cat >>confdefs.h <<\_ACEOF
27104 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27114 gethostbyname_r gethostbyaddr_r \
27117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27118 echo "$as_me:$LINENO: checking for $ac_func" >&5
27119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27120 if eval "test \"\${$as_ac_var+set}\" = set"; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 cat >conftest.$ac_ext <<_ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h. */
27129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27131 #define $ac_func innocuous_$ac_func
27133 /* System header to define __stub macros and hopefully few prototypes,
27134 which can conflict with char $ac_func (); below.
27135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27136 <limits.h> exists even on freestanding compilers. */
27139 # include <limits.h>
27141 # include <assert.h>
27146 /* Override any gcc2 internal prototype to avoid an error. */
27151 /* We use char because int might match the return type of a gcc2
27152 builtin and then its argument prototype would still apply. */
27154 /* The GNU C library defines this for functions which it implements
27155 to always fail with ENOSYS. Some functions are actually named
27156 something starting with __ and the normal name is an alias. */
27157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27160 char (*f) () = $ac_func;
27169 return f != $ac_func;
27174 rm -f conftest.$ac_objext conftest$ac_exeext
27175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27176 (eval $ac_link) 2>conftest.er1
27178 grep -v '^ *+' conftest.er1 >conftest.err
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } &&
27183 { ac_try='test -z "$ac_c_werror_flag"
27184 || test ! -s conftest.err'
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest$ac_exeext'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; }; then
27196 eval "$as_ac_var=yes"
27198 echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 eval "$as_ac_var=no"
27203 rm -f conftest.err conftest.$ac_objext \
27204 conftest$ac_exeext conftest.$ac_ext
27206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27208 if test `eval echo '${'$as_ac_var'}'` = yes; then
27209 cat >>confdefs.h <<_ACEOF
27210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27217 if test "$ac_cv_func_ctime_r" = no ; then
27218 ol_cv_func_ctime_r_nargs=0
27220 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27221 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27222 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27235 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27240 rm -f conftest.$ac_objext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242 (eval $ac_compile) 2>conftest.er1
27244 grep -v '^ *+' conftest.er1 >conftest.err
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ol_cv_func_ctime_r_nargs3=yes
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 ol_cv_func_ctime_r_nargs3=no
27269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27271 cat >conftest.$ac_ext <<_ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h. */
27281 time_t ti; char *buffer; ctime_r(&ti,buffer);
27286 rm -f conftest.$ac_objext
27287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27288 (eval $ac_compile) 2>conftest.er1
27290 grep -v '^ *+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } &&
27295 { ac_try='test -z "$ac_c_werror_flag"
27296 || test ! -s conftest.err'
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest.$ac_objext'
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 ol_cv_func_ctime_r_nargs2=yes
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 ol_cv_func_ctime_r_nargs2=no
27315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27317 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27318 test $ol_cv_func_ctime_r_nargs2 = no ; then
27320 ol_cv_func_ctime_r_nargs=3
27322 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27323 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27325 ol_cv_func_ctime_r_nargs=2
27328 ol_cv_func_ctime_r_nargs=0
27332 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27333 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27335 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27337 cat >>confdefs.h <<_ACEOF
27338 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27345 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27346 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27347 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27348 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 #include <sys/types.h>
27358 #include <sys/socket.h>
27359 #include <netinet/in.h>
27361 #define BUFSIZE (sizeof(struct hostent)+10)
27365 struct hostent hent; char buffer[BUFSIZE];
27366 int bufsize=BUFSIZE;int h_errno;
27367 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27368 buffer, bufsize, &h_errno);
27373 rm -f conftest.$ac_objext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27375 (eval $ac_compile) 2>conftest.er1
27377 grep -v '^ *+' conftest.er1 >conftest.err
27379 cat conftest.err >&5
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } &&
27382 { ac_try='test -z "$ac_c_werror_flag"
27383 || test ! -s conftest.err'
27384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385 (eval $ac_try) 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest.$ac_objext'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; }; then
27395 ol_cv_func_gethostbyname_r_nargs5=yes
27397 echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27400 ol_cv_func_gethostbyname_r_nargs5=no
27402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27404 cat >conftest.$ac_ext <<_ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h. */
27410 #include <sys/types.h>
27411 #include <sys/socket.h>
27412 #include <netinet/in.h>
27414 #define BUFSIZE (sizeof(struct hostent)+10)
27418 struct hostent hent;struct hostent *rhent;
27419 char buffer[BUFSIZE];
27420 int bufsize=BUFSIZE;int h_errno;
27421 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27427 rm -f conftest.$ac_objext
27428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27429 (eval $ac_compile) 2>conftest.er1
27431 grep -v '^ *+' conftest.er1 >conftest.err
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } &&
27436 { ac_try='test -z "$ac_c_werror_flag"
27437 || test ! -s conftest.err'
27438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439 (eval $ac_try) 2>&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; } &&
27443 { ac_try='test -s conftest.$ac_objext'
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; }; then
27449 ol_cv_func_gethostbyname_r_nargs6=yes
27451 echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27454 ol_cv_func_gethostbyname_r_nargs6=no
27456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27458 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27459 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27461 ol_cv_func_gethostbyname_r_nargs=5
27463 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27464 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27466 ol_cv_func_gethostbyname_r_nargs=6
27469 ol_cv_func_gethostbyname_r_nargs=0
27473 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27474 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27475 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27477 cat >>confdefs.h <<_ACEOF
27478 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27484 ol_cv_func_gethostbyname_r_nargs=0
27487 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27488 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27489 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27490 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 #include <sys/types.h>
27500 #include <sys/socket.h>
27501 #include <netinet/in.h>
27503 #define BUFSIZE (sizeof(struct hostent)+10)
27507 struct hostent hent; char buffer[BUFSIZE];
27508 struct in_addr add;
27509 size_t alen=sizeof(struct in_addr);
27510 int bufsize=BUFSIZE;int h_errno;
27511 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27512 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27517 rm -f conftest.$ac_objext
27518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27519 (eval $ac_compile) 2>conftest.er1
27521 grep -v '^ *+' conftest.er1 >conftest.err
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
27526 { ac_try='test -z "$ac_c_werror_flag"
27527 || test ! -s conftest.err'
27528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529 (eval $ac_try) 2>&5
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; } &&
27533 { ac_try='test -s conftest.$ac_objext'
27534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535 (eval $ac_try) 2>&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 ol_cv_func_gethostbyaddr_r_nargs7=yes
27541 echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27544 ol_cv_func_gethostbyaddr_r_nargs7=no
27546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27548 cat >conftest.$ac_ext <<_ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <sys/types.h>
27555 #include <sys/socket.h>
27556 #include <netinet/in.h>
27558 #define BUFSIZE (sizeof(struct hostent)+10)
27562 struct hostent hent;
27563 struct hostent *rhent; char buffer[BUFSIZE];
27564 struct in_addr add;
27565 size_t alen=sizeof(struct in_addr);
27566 int bufsize=BUFSIZE;int h_errno;
27567 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27568 alen, AF_INET, &hent, buffer, bufsize,
27574 rm -f conftest.$ac_objext
27575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27576 (eval $ac_compile) 2>conftest.er1
27578 grep -v '^ *+' conftest.er1 >conftest.err
27580 cat conftest.err >&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } &&
27583 { ac_try='test -z "$ac_c_werror_flag"
27584 || test ! -s conftest.err'
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest.$ac_objext'
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
27596 ol_cv_func_gethostbyaddr_r_nargs8=yes
27598 echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27601 ol_cv_func_gethostbyaddr_r_nargs8=no
27603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27605 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27606 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27608 ol_cv_func_gethostbyaddr_r_nargs=7
27610 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27611 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27613 ol_cv_func_gethostbyaddr_r_nargs=8
27616 ol_cv_func_gethostbyaddr_r_nargs=0
27620 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27621 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27622 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27631 ol_cv_func_gethostbyaddr_r_nargs=0
27636 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27638 if test $ol_enable_ldbm_api = bcompat; then \
27641 for ac_header in db_185.h db.h
27643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27645 echo "$as_me:$LINENO: checking for $ac_header" >&5
27646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27653 # Is the header compilable?
27654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 $ac_includes_default
27663 #include <$ac_header>
27665 rm -f conftest.$ac_objext
27666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27667 (eval $ac_compile) 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } &&
27674 { ac_try='test -z "$ac_c_werror_flag"
27675 || test ! -s conftest.err'
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest.$ac_objext'
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ac_header_compiler=yes
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 ac_header_compiler=no
27694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27696 echo "${ECHO_T}$ac_header_compiler" >&6
27698 # Is the header present?
27699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27701 cat >conftest.$ac_ext <<_ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27707 #include <$ac_header>
27709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27712 grep -v '^ *+' conftest.er1 >conftest.err
27714 cat conftest.err >&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } >/dev/null; then
27717 if test -s conftest.err; then
27718 ac_cpp_err=$ac_c_preproc_warn_flag
27719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27726 if test -z "$ac_cpp_err"; then
27727 ac_header_preproc=yes
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27732 ac_header_preproc=no
27734 rm -f conftest.err conftest.$ac_ext
27735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27736 echo "${ECHO_T}$ac_header_preproc" >&6
27738 # So? What about this header?
27739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27745 ac_header_preproc=yes
27748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27762 ## ------------------------------------------ ##
27763 ## Report this to the AC_PACKAGE_NAME lists. ##
27764 ## ------------------------------------------ ##
27767 sed "s/^/$as_me: WARNING: /" >&2
27770 echo "$as_me:$LINENO: checking for $ac_header" >&5
27771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 eval "$as_ac_Header=\$ac_header_preproc"
27777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27782 cat >>confdefs.h <<_ACEOF
27783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27790 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27791 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27792 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27793 if test "${ol_cv_header_db1+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27797 cat >conftest.$ac_ext <<_ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h. */
27805 # include <db_185.h>
27810 /* this check could be improved */
27811 #ifndef DB_VERSION_MAJOR
27812 # define DB_VERSION_MAJOR 1
27815 #if DB_VERSION_MAJOR == 1
27820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27821 $EGREP "__db_version_1" >/dev/null 2>&1; then
27822 ol_cv_header_db1=yes
27824 ol_cv_header_db1=no
27829 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27830 echo "${ECHO_T}$ol_cv_header_db1" >&6
27832 if test $ol_cv_header_db1 = yes ; then
27834 if test $ol_cv_lib_db = no ; then
27835 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27836 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27837 if test "${ol_cv_db_none+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27843 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27845 cat >conftest.$ac_ext <<_ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h. */
27852 #ifdef HAVE_DB_185_H
27853 # include <db_185.h>
27858 #ifndef DB_VERSION_MAJOR
27859 # define DB_VERSION_MAJOR 1
27863 #define NULL ((void*)0)
27870 #if DB_VERSION_MAJOR > 1
27873 int major, minor, patch;
27875 version = db_version( &major, &minor, &patch );
27877 if( major != DB_VERSION_MAJOR ||
27878 minor < DB_VERSION_MINOR )
27880 printf("Berkeley DB version mismatch\n"
27881 "\theader: %s\n\tlibrary: %s\n",
27882 DB_VERSION_STRING, version);
27888 #if DB_VERSION_MAJOR > 2
27889 db_env_create( NULL, 0 );
27890 #elif DB_VERSION_MAJOR > 1
27891 db_appexit( NULL );
27893 (void) dbopen( NULL, 0, 0, 0, NULL);
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902 (eval $ac_link) 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag"
27910 || test ! -s conftest.err'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; } &&
27916 { ac_try='test -s conftest$ac_exeext'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; }; then
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27929 rm -f conftest.err conftest.$ac_objext \
27930 conftest$ac_exeext conftest.$ac_ext
27935 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
27936 echo "${ECHO_T}$ol_cv_db_none" >&6
27938 if test $ol_cv_db_none = yes ; then
27943 if test $ol_cv_lib_db = no ; then
27944 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27945 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27946 if test "${ol_cv_db_db43+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27954 cat >conftest.$ac_ext <<_ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h. */
27961 #ifdef HAVE_DB_185_H
27962 # include <db_185.h>
27967 #ifndef DB_VERSION_MAJOR
27968 # define DB_VERSION_MAJOR 1
27972 #define NULL ((void*)0)
27979 #if DB_VERSION_MAJOR > 1
27982 int major, minor, patch;
27984 version = db_version( &major, &minor, &patch );
27986 if( major != DB_VERSION_MAJOR ||
27987 minor < DB_VERSION_MINOR )
27989 printf("Berkeley DB version mismatch\n"
27990 "\theader: %s\n\tlibrary: %s\n",
27991 DB_VERSION_STRING, version);
27997 #if DB_VERSION_MAJOR > 2
27998 db_env_create( NULL, 0 );
27999 #elif DB_VERSION_MAJOR > 1
28000 db_appexit( NULL );
28002 (void) dbopen( NULL, 0, 0, 0, NULL);
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28011 (eval $ac_link) 2>conftest.er1
28013 grep -v '^ *+' conftest.er1 >conftest.err
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag"
28019 || test ! -s conftest.err'
28020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; } &&
28025 { ac_try='test -s conftest$ac_exeext'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
28033 echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28038 rm -f conftest.err conftest.$ac_objext \
28039 conftest$ac_exeext conftest.$ac_ext
28044 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28045 echo "${ECHO_T}$ol_cv_db_db43" >&6
28047 if test $ol_cv_db_db43 = yes ; then
28048 ol_cv_lib_db=-ldb43
28052 if test $ol_cv_lib_db = no ; then
28053 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28054 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28055 if test "${ol_cv_db_db_43+set}" = set; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28070 #ifdef HAVE_DB_185_H
28071 # include <db_185.h>
28076 #ifndef DB_VERSION_MAJOR
28077 # define DB_VERSION_MAJOR 1
28081 #define NULL ((void*)0)
28088 #if DB_VERSION_MAJOR > 1
28091 int major, minor, patch;
28093 version = db_version( &major, &minor, &patch );
28095 if( major != DB_VERSION_MAJOR ||
28096 minor < DB_VERSION_MINOR )
28098 printf("Berkeley DB version mismatch\n"
28099 "\theader: %s\n\tlibrary: %s\n",
28100 DB_VERSION_STRING, version);
28106 #if DB_VERSION_MAJOR > 2
28107 db_env_create( NULL, 0 );
28108 #elif DB_VERSION_MAJOR > 1
28109 db_appexit( NULL );
28111 (void) dbopen( NULL, 0, 0, 0, NULL);
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120 (eval $ac_link) 2>conftest.er1
28122 grep -v '^ *+' conftest.er1 >conftest.err
28124 cat conftest.err >&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
28127 { ac_try='test -z "$ac_c_werror_flag"
28128 || test ! -s conftest.err'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest$ac_exeext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28147 rm -f conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
28153 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28154 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28156 if test $ol_cv_db_db_43 = yes ; then
28157 ol_cv_lib_db=-ldb-43
28161 if test $ol_cv_lib_db = no ; then
28162 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28163 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28164 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28170 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28172 cat >conftest.$ac_ext <<_ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h. */
28179 #ifdef HAVE_DB_185_H
28180 # include <db_185.h>
28185 #ifndef DB_VERSION_MAJOR
28186 # define DB_VERSION_MAJOR 1
28190 #define NULL ((void*)0)
28197 #if DB_VERSION_MAJOR > 1
28200 int major, minor, patch;
28202 version = db_version( &major, &minor, &patch );
28204 if( major != DB_VERSION_MAJOR ||
28205 minor < DB_VERSION_MINOR )
28207 printf("Berkeley DB version mismatch\n"
28208 "\theader: %s\n\tlibrary: %s\n",
28209 DB_VERSION_STRING, version);
28215 #if DB_VERSION_MAJOR > 2
28216 db_env_create( NULL, 0 );
28217 #elif DB_VERSION_MAJOR > 1
28218 db_appexit( NULL );
28220 (void) dbopen( NULL, 0, 0, 0, NULL);
28227 rm -f conftest.$ac_objext conftest$ac_exeext
28228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28229 (eval $ac_link) 2>conftest.er1
28231 grep -v '^ *+' conftest.er1 >conftest.err
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
28236 { ac_try='test -z "$ac_c_werror_flag"
28237 || test ! -s conftest.err'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; } &&
28243 { ac_try='test -s conftest$ac_exeext'
28244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245 (eval $ac_try) 2>&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; }; then
28249 ol_cv_db_db_4_dot_3=yes
28251 echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 ol_cv_db_db_4_dot_3=no
28256 rm -f conftest.err conftest.$ac_objext \
28257 conftest$ac_exeext conftest.$ac_ext
28262 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28263 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28265 if test $ol_cv_db_db_4_dot_3 = yes ; then
28266 ol_cv_lib_db=-ldb-4.3
28270 if test $ol_cv_lib_db = no ; then
28271 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28272 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28273 if test "${ol_cv_db_db_4_3+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28279 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28281 cat >conftest.$ac_ext <<_ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28288 #ifdef HAVE_DB_185_H
28289 # include <db_185.h>
28294 #ifndef DB_VERSION_MAJOR
28295 # define DB_VERSION_MAJOR 1
28299 #define NULL ((void*)0)
28306 #if DB_VERSION_MAJOR > 1
28309 int major, minor, patch;
28311 version = db_version( &major, &minor, &patch );
28313 if( major != DB_VERSION_MAJOR ||
28314 minor < DB_VERSION_MINOR )
28316 printf("Berkeley DB version mismatch\n"
28317 "\theader: %s\n\tlibrary: %s\n",
28318 DB_VERSION_STRING, version);
28324 #if DB_VERSION_MAJOR > 2
28325 db_env_create( NULL, 0 );
28326 #elif DB_VERSION_MAJOR > 1
28327 db_appexit( NULL );
28329 (void) dbopen( NULL, 0, 0, 0, NULL);
28336 rm -f conftest.$ac_objext conftest$ac_exeext
28337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28338 (eval $ac_link) 2>conftest.er1
28340 grep -v '^ *+' conftest.er1 >conftest.err
28342 cat conftest.err >&5
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } &&
28345 { ac_try='test -z "$ac_c_werror_flag"
28346 || test ! -s conftest.err'
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest$ac_exeext'
28353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354 (eval $ac_try) 2>&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; }; then
28358 ol_cv_db_db_4_3=yes
28360 echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28365 rm -f conftest.err conftest.$ac_objext \
28366 conftest$ac_exeext conftest.$ac_ext
28371 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28372 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28374 if test $ol_cv_db_db_4_3 = yes ; then
28375 ol_cv_lib_db=-ldb-4-3
28379 if test $ol_cv_lib_db = no ; then
28380 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28381 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28382 if test "${ol_cv_db_db42+set}" = set; then
28383 echo $ECHO_N "(cached) $ECHO_C" >&6
28388 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28390 cat >conftest.$ac_ext <<_ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h. */
28397 #ifdef HAVE_DB_185_H
28398 # include <db_185.h>
28403 #ifndef DB_VERSION_MAJOR
28404 # define DB_VERSION_MAJOR 1
28408 #define NULL ((void*)0)
28415 #if DB_VERSION_MAJOR > 1
28418 int major, minor, patch;
28420 version = db_version( &major, &minor, &patch );
28422 if( major != DB_VERSION_MAJOR ||
28423 minor < DB_VERSION_MINOR )
28425 printf("Berkeley DB version mismatch\n"
28426 "\theader: %s\n\tlibrary: %s\n",
28427 DB_VERSION_STRING, version);
28433 #if DB_VERSION_MAJOR > 2
28434 db_env_create( NULL, 0 );
28435 #elif DB_VERSION_MAJOR > 1
28436 db_appexit( NULL );
28438 (void) dbopen( NULL, 0, 0, 0, NULL);
28445 rm -f conftest.$ac_objext conftest$ac_exeext
28446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28447 (eval $ac_link) 2>conftest.er1
28449 grep -v '^ *+' conftest.er1 >conftest.err
28451 cat conftest.err >&5
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } &&
28454 { ac_try='test -z "$ac_c_werror_flag"
28455 || test ! -s conftest.err'
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest$ac_exeext'
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28469 echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28474 rm -f conftest.err conftest.$ac_objext \
28475 conftest$ac_exeext conftest.$ac_ext
28480 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28481 echo "${ECHO_T}$ol_cv_db_db42" >&6
28483 if test $ol_cv_db_db42 = yes ; then
28484 ol_cv_lib_db=-ldb42
28488 if test $ol_cv_lib_db = no ; then
28489 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28490 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28491 if test "${ol_cv_db_db_42+set}" = set; then
28492 echo $ECHO_N "(cached) $ECHO_C" >&6
28497 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28499 cat >conftest.$ac_ext <<_ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h. */
28506 #ifdef HAVE_DB_185_H
28507 # include <db_185.h>
28512 #ifndef DB_VERSION_MAJOR
28513 # define DB_VERSION_MAJOR 1
28517 #define NULL ((void*)0)
28524 #if DB_VERSION_MAJOR > 1
28527 int major, minor, patch;
28529 version = db_version( &major, &minor, &patch );
28531 if( major != DB_VERSION_MAJOR ||
28532 minor < DB_VERSION_MINOR )
28534 printf("Berkeley DB version mismatch\n"
28535 "\theader: %s\n\tlibrary: %s\n",
28536 DB_VERSION_STRING, version);
28542 #if DB_VERSION_MAJOR > 2
28543 db_env_create( NULL, 0 );
28544 #elif DB_VERSION_MAJOR > 1
28545 db_appexit( NULL );
28547 (void) dbopen( NULL, 0, 0, 0, NULL);
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28556 (eval $ac_link) 2>conftest.er1
28558 grep -v '^ *+' conftest.er1 >conftest.err
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag"
28564 || test ! -s conftest.err'
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; } &&
28570 { ac_try='test -s conftest$ac_exeext'
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; }; then
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28583 rm -f conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
28589 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28590 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28592 if test $ol_cv_db_db_42 = yes ; then
28593 ol_cv_lib_db=-ldb-42
28597 if test $ol_cv_lib_db = no ; then
28598 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28599 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28600 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28601 echo $ECHO_N "(cached) $ECHO_C" >&6
28606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28608 cat >conftest.$ac_ext <<_ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h. */
28615 #ifdef HAVE_DB_185_H
28616 # include <db_185.h>
28621 #ifndef DB_VERSION_MAJOR
28622 # define DB_VERSION_MAJOR 1
28626 #define NULL ((void*)0)
28633 #if DB_VERSION_MAJOR > 1
28636 int major, minor, patch;
28638 version = db_version( &major, &minor, &patch );
28640 if( major != DB_VERSION_MAJOR ||
28641 minor < DB_VERSION_MINOR )
28643 printf("Berkeley DB version mismatch\n"
28644 "\theader: %s\n\tlibrary: %s\n",
28645 DB_VERSION_STRING, version);
28651 #if DB_VERSION_MAJOR > 2
28652 db_env_create( NULL, 0 );
28653 #elif DB_VERSION_MAJOR > 1
28654 db_appexit( NULL );
28656 (void) dbopen( NULL, 0, 0, 0, NULL);
28663 rm -f conftest.$ac_objext conftest$ac_exeext
28664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28665 (eval $ac_link) 2>conftest.er1
28667 grep -v '^ *+' conftest.er1 >conftest.err
28669 cat conftest.err >&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
28672 { ac_try='test -z "$ac_c_werror_flag"
28673 || test ! -s conftest.err'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest$ac_exeext'
28680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ol_cv_db_db_4_dot_2=yes
28687 echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28690 ol_cv_db_db_4_dot_2=no
28692 rm -f conftest.err conftest.$ac_objext \
28693 conftest$ac_exeext conftest.$ac_ext
28698 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28699 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28701 if test $ol_cv_db_db_4_dot_2 = yes ; then
28702 ol_cv_lib_db=-ldb-4.2
28706 if test $ol_cv_lib_db = no ; then
28707 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28708 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28709 if test "${ol_cv_db_db_4_2+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28717 cat >conftest.$ac_ext <<_ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28724 #ifdef HAVE_DB_185_H
28725 # include <db_185.h>
28730 #ifndef DB_VERSION_MAJOR
28731 # define DB_VERSION_MAJOR 1
28735 #define NULL ((void*)0)
28742 #if DB_VERSION_MAJOR > 1
28745 int major, minor, patch;
28747 version = db_version( &major, &minor, &patch );
28749 if( major != DB_VERSION_MAJOR ||
28750 minor < DB_VERSION_MINOR )
28752 printf("Berkeley DB version mismatch\n"
28753 "\theader: %s\n\tlibrary: %s\n",
28754 DB_VERSION_STRING, version);
28760 #if DB_VERSION_MAJOR > 2
28761 db_env_create( NULL, 0 );
28762 #elif DB_VERSION_MAJOR > 1
28763 db_appexit( NULL );
28765 (void) dbopen( NULL, 0, 0, 0, NULL);
28772 rm -f conftest.$ac_objext conftest$ac_exeext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28774 (eval $ac_link) 2>conftest.er1
28776 grep -v '^ *+' conftest.er1 >conftest.err
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try='test -z "$ac_c_werror_flag"
28782 || test ! -s conftest.err'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest$ac_exeext'
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ol_cv_db_db_4_2=yes
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28801 rm -f conftest.err conftest.$ac_objext \
28802 conftest$ac_exeext conftest.$ac_ext
28807 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28808 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28810 if test $ol_cv_db_db_4_2 = yes ; then
28811 ol_cv_lib_db=-ldb-4-2
28815 if test $ol_cv_lib_db = no ; then
28816 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28817 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28818 if test "${ol_cv_db_db_4+set}" = set; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
28824 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28826 cat >conftest.$ac_ext <<_ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28833 #ifdef HAVE_DB_185_H
28834 # include <db_185.h>
28839 #ifndef DB_VERSION_MAJOR
28840 # define DB_VERSION_MAJOR 1
28844 #define NULL ((void*)0)
28851 #if DB_VERSION_MAJOR > 1
28854 int major, minor, patch;
28856 version = db_version( &major, &minor, &patch );
28858 if( major != DB_VERSION_MAJOR ||
28859 minor < DB_VERSION_MINOR )
28861 printf("Berkeley DB version mismatch\n"
28862 "\theader: %s\n\tlibrary: %s\n",
28863 DB_VERSION_STRING, version);
28869 #if DB_VERSION_MAJOR > 2
28870 db_env_create( NULL, 0 );
28871 #elif DB_VERSION_MAJOR > 1
28872 db_appexit( NULL );
28874 (void) dbopen( NULL, 0, 0, 0, NULL);
28881 rm -f conftest.$ac_objext conftest$ac_exeext
28882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28883 (eval $ac_link) 2>conftest.er1
28885 grep -v '^ *+' conftest.er1 >conftest.err
28887 cat conftest.err >&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
28890 { ac_try='test -z "$ac_c_werror_flag"
28891 || test ! -s conftest.err'
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; } &&
28897 { ac_try='test -s conftest$ac_exeext'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28905 echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28910 rm -f conftest.err conftest.$ac_objext \
28911 conftest$ac_exeext conftest.$ac_ext
28916 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28917 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28919 if test $ol_cv_db_db_4 = yes ; then
28920 ol_cv_lib_db=-ldb-4
28924 if test $ol_cv_lib_db = no ; then
28925 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28926 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28927 if test "${ol_cv_db_db4+set}" = set; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28935 cat >conftest.$ac_ext <<_ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h. */
28942 #ifdef HAVE_DB_185_H
28943 # include <db_185.h>
28948 #ifndef DB_VERSION_MAJOR
28949 # define DB_VERSION_MAJOR 1
28953 #define NULL ((void*)0)
28960 #if DB_VERSION_MAJOR > 1
28963 int major, minor, patch;
28965 version = db_version( &major, &minor, &patch );
28967 if( major != DB_VERSION_MAJOR ||
28968 minor < DB_VERSION_MINOR )
28970 printf("Berkeley DB version mismatch\n"
28971 "\theader: %s\n\tlibrary: %s\n",
28972 DB_VERSION_STRING, version);
28978 #if DB_VERSION_MAJOR > 2
28979 db_env_create( NULL, 0 );
28980 #elif DB_VERSION_MAJOR > 1
28981 db_appexit( NULL );
28983 (void) dbopen( NULL, 0, 0, 0, NULL);
28990 rm -f conftest.$ac_objext conftest$ac_exeext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28992 (eval $ac_link) 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_c_werror_flag"
29000 || test ! -s conftest.err'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; } &&
29006 { ac_try='test -s conftest$ac_exeext'
29007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; }; then
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29019 rm -f conftest.err conftest.$ac_objext \
29020 conftest$ac_exeext conftest.$ac_ext
29025 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29026 echo "${ECHO_T}$ol_cv_db_db4" >&6
29028 if test $ol_cv_db_db4 = yes ; then
29033 if test $ol_cv_lib_db = no ; then
29034 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29035 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29036 if test "${ol_cv_db_db+set}" = set; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29042 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29044 cat >conftest.$ac_ext <<_ACEOF
29047 cat confdefs.h >>conftest.$ac_ext
29048 cat >>conftest.$ac_ext <<_ACEOF
29049 /* end confdefs.h. */
29051 #ifdef HAVE_DB_185_H
29052 # include <db_185.h>
29057 #ifndef DB_VERSION_MAJOR
29058 # define DB_VERSION_MAJOR 1
29062 #define NULL ((void*)0)
29069 #if DB_VERSION_MAJOR > 1
29072 int major, minor, patch;
29074 version = db_version( &major, &minor, &patch );
29076 if( major != DB_VERSION_MAJOR ||
29077 minor < DB_VERSION_MINOR )
29079 printf("Berkeley DB version mismatch\n"
29080 "\theader: %s\n\tlibrary: %s\n",
29081 DB_VERSION_STRING, version);
29087 #if DB_VERSION_MAJOR > 2
29088 db_env_create( NULL, 0 );
29089 #elif DB_VERSION_MAJOR > 1
29090 db_appexit( NULL );
29092 (void) dbopen( NULL, 0, 0, 0, NULL);
29099 rm -f conftest.$ac_objext conftest$ac_exeext
29100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29101 (eval $ac_link) 2>conftest.er1
29103 grep -v '^ *+' conftest.er1 >conftest.err
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } &&
29108 { ac_try='test -z "$ac_c_werror_flag"
29109 || test ! -s conftest.err'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; } &&
29115 { ac_try='test -s conftest$ac_exeext'
29116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29117 (eval $ac_try) 2>&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29128 rm -f conftest.err conftest.$ac_objext \
29129 conftest$ac_exeext conftest.$ac_ext
29134 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29135 echo "${ECHO_T}$ol_cv_db_db" >&6
29137 if test $ol_cv_db_db = yes ; then
29142 if test $ol_cv_lib_db = no ; then
29143 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29144 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29145 if test "${ol_cv_db_db41+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29151 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29153 cat >conftest.$ac_ext <<_ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29160 #ifdef HAVE_DB_185_H
29161 # include <db_185.h>
29166 #ifndef DB_VERSION_MAJOR
29167 # define DB_VERSION_MAJOR 1
29171 #define NULL ((void*)0)
29178 #if DB_VERSION_MAJOR > 1
29181 int major, minor, patch;
29183 version = db_version( &major, &minor, &patch );
29185 if( major != DB_VERSION_MAJOR ||
29186 minor < DB_VERSION_MINOR )
29188 printf("Berkeley DB version mismatch\n"
29189 "\theader: %s\n\tlibrary: %s\n",
29190 DB_VERSION_STRING, version);
29196 #if DB_VERSION_MAJOR > 2
29197 db_env_create( NULL, 0 );
29198 #elif DB_VERSION_MAJOR > 1
29199 db_appexit( NULL );
29201 (void) dbopen( NULL, 0, 0, 0, NULL);
29208 rm -f conftest.$ac_objext conftest$ac_exeext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29210 (eval $ac_link) 2>conftest.er1
29212 grep -v '^ *+' conftest.er1 >conftest.err
29214 cat conftest.err >&5
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); } &&
29217 { ac_try='test -z "$ac_c_werror_flag"
29218 || test ! -s conftest.err'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; } &&
29224 { ac_try='test -s conftest$ac_exeext'
29225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226 (eval $ac_try) 2>&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); }; }; then
29232 echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29237 rm -f conftest.err conftest.$ac_objext \
29238 conftest$ac_exeext conftest.$ac_ext
29243 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29244 echo "${ECHO_T}$ol_cv_db_db41" >&6
29246 if test $ol_cv_db_db41 = yes ; then
29247 ol_cv_lib_db=-ldb41
29251 if test $ol_cv_lib_db = no ; then
29252 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29253 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29254 if test "${ol_cv_db_db_41+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29260 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29269 #ifdef HAVE_DB_185_H
29270 # include <db_185.h>
29275 #ifndef DB_VERSION_MAJOR
29276 # define DB_VERSION_MAJOR 1
29280 #define NULL ((void*)0)
29287 #if DB_VERSION_MAJOR > 1
29290 int major, minor, patch;
29292 version = db_version( &major, &minor, &patch );
29294 if( major != DB_VERSION_MAJOR ||
29295 minor < DB_VERSION_MINOR )
29297 printf("Berkeley DB version mismatch\n"
29298 "\theader: %s\n\tlibrary: %s\n",
29299 DB_VERSION_STRING, version);
29305 #if DB_VERSION_MAJOR > 2
29306 db_env_create( NULL, 0 );
29307 #elif DB_VERSION_MAJOR > 1
29308 db_appexit( NULL );
29310 (void) dbopen( NULL, 0, 0, 0, NULL);
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319 (eval $ac_link) 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_c_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest$ac_exeext'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29341 echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29346 rm -f conftest.err conftest.$ac_objext \
29347 conftest$ac_exeext conftest.$ac_ext
29352 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29353 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29355 if test $ol_cv_db_db_41 = yes ; then
29356 ol_cv_lib_db=-ldb-41
29360 if test $ol_cv_lib_db = no ; then
29361 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29362 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29363 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29378 #ifdef HAVE_DB_185_H
29379 # include <db_185.h>
29384 #ifndef DB_VERSION_MAJOR
29385 # define DB_VERSION_MAJOR 1
29389 #define NULL ((void*)0)
29396 #if DB_VERSION_MAJOR > 1
29399 int major, minor, patch;
29401 version = db_version( &major, &minor, &patch );
29403 if( major != DB_VERSION_MAJOR ||
29404 minor < DB_VERSION_MINOR )
29406 printf("Berkeley DB version mismatch\n"
29407 "\theader: %s\n\tlibrary: %s\n",
29408 DB_VERSION_STRING, version);
29414 #if DB_VERSION_MAJOR > 2
29415 db_env_create( NULL, 0 );
29416 #elif DB_VERSION_MAJOR > 1
29417 db_appexit( NULL );
29419 (void) dbopen( NULL, 0, 0, 0, NULL);
29426 rm -f conftest.$ac_objext conftest$ac_exeext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29428 (eval $ac_link) 2>conftest.er1
29430 grep -v '^ *+' conftest.er1 >conftest.err
29432 cat conftest.err >&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
29435 { ac_try='test -z "$ac_c_werror_flag"
29436 || test ! -s conftest.err'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest$ac_exeext'
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 ol_cv_db_db_4_dot_1=yes
29450 echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29453 ol_cv_db_db_4_dot_1=no
29455 rm -f conftest.err conftest.$ac_objext \
29456 conftest$ac_exeext conftest.$ac_ext
29461 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29462 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29464 if test $ol_cv_db_db_4_dot_1 = yes ; then
29465 ol_cv_lib_db=-ldb-4.1
29469 if test $ol_cv_lib_db = no ; then
29470 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29471 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29472 if test "${ol_cv_db_db_4_1+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29478 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29480 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29487 #ifdef HAVE_DB_185_H
29488 # include <db_185.h>
29493 #ifndef DB_VERSION_MAJOR
29494 # define DB_VERSION_MAJOR 1
29498 #define NULL ((void*)0)
29505 #if DB_VERSION_MAJOR > 1
29508 int major, minor, patch;
29510 version = db_version( &major, &minor, &patch );
29512 if( major != DB_VERSION_MAJOR ||
29513 minor < DB_VERSION_MINOR )
29515 printf("Berkeley DB version mismatch\n"
29516 "\theader: %s\n\tlibrary: %s\n",
29517 DB_VERSION_STRING, version);
29523 #if DB_VERSION_MAJOR > 2
29524 db_env_create( NULL, 0 );
29525 #elif DB_VERSION_MAJOR > 1
29526 db_appexit( NULL );
29528 (void) dbopen( NULL, 0, 0, 0, NULL);
29535 rm -f conftest.$ac_objext conftest$ac_exeext
29536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29537 (eval $ac_link) 2>conftest.er1
29539 grep -v '^ *+' conftest.er1 >conftest.err
29541 cat conftest.err >&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); } &&
29544 { ac_try='test -z "$ac_c_werror_flag"
29545 || test ! -s conftest.err'
29546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547 (eval $ac_try) 2>&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; } &&
29551 { ac_try='test -s conftest$ac_exeext'
29552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553 (eval $ac_try) 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
29557 ol_cv_db_db_4_1=yes
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29564 rm -f conftest.err conftest.$ac_objext \
29565 conftest$ac_exeext conftest.$ac_ext
29570 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29571 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29573 if test $ol_cv_db_db_4_1 = yes ; then
29574 ol_cv_lib_db=-ldb-4-1
29578 if test $ol_cv_lib_db = no ; then
29579 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29580 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29581 if test "${ol_cv_db_db3+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29587 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29589 cat >conftest.$ac_ext <<_ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h. */
29596 #ifdef HAVE_DB_185_H
29597 # include <db_185.h>
29602 #ifndef DB_VERSION_MAJOR
29603 # define DB_VERSION_MAJOR 1
29607 #define NULL ((void*)0)
29614 #if DB_VERSION_MAJOR > 1
29617 int major, minor, patch;
29619 version = db_version( &major, &minor, &patch );
29621 if( major != DB_VERSION_MAJOR ||
29622 minor < DB_VERSION_MINOR )
29624 printf("Berkeley DB version mismatch\n"
29625 "\theader: %s\n\tlibrary: %s\n",
29626 DB_VERSION_STRING, version);
29632 #if DB_VERSION_MAJOR > 2
29633 db_env_create( NULL, 0 );
29634 #elif DB_VERSION_MAJOR > 1
29635 db_appexit( NULL );
29637 (void) dbopen( NULL, 0, 0, 0, NULL);
29644 rm -f conftest.$ac_objext conftest$ac_exeext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29646 (eval $ac_link) 2>conftest.er1
29648 grep -v '^ *+' conftest.er1 >conftest.err
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
29653 { ac_try='test -z "$ac_c_werror_flag"
29654 || test ! -s conftest.err'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest$ac_exeext'
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29673 rm -f conftest.err conftest.$ac_objext \
29674 conftest$ac_exeext conftest.$ac_ext
29679 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29680 echo "${ECHO_T}$ol_cv_db_db3" >&6
29682 if test $ol_cv_db_db3 = yes ; then
29687 if test $ol_cv_lib_db = no ; then
29688 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29689 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29690 if test "${ol_cv_db_db_3+set}" = set; then
29691 echo $ECHO_N "(cached) $ECHO_C" >&6
29696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29698 cat >conftest.$ac_ext <<_ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h. */
29705 #ifdef HAVE_DB_185_H
29706 # include <db_185.h>
29711 #ifndef DB_VERSION_MAJOR
29712 # define DB_VERSION_MAJOR 1
29716 #define NULL ((void*)0)
29723 #if DB_VERSION_MAJOR > 1
29726 int major, minor, patch;
29728 version = db_version( &major, &minor, &patch );
29730 if( major != DB_VERSION_MAJOR ||
29731 minor < DB_VERSION_MINOR )
29733 printf("Berkeley DB version mismatch\n"
29734 "\theader: %s\n\tlibrary: %s\n",
29735 DB_VERSION_STRING, version);
29741 #if DB_VERSION_MAJOR > 2
29742 db_env_create( NULL, 0 );
29743 #elif DB_VERSION_MAJOR > 1
29744 db_appexit( NULL );
29746 (void) dbopen( NULL, 0, 0, 0, NULL);
29753 rm -f conftest.$ac_objext conftest$ac_exeext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29755 (eval $ac_link) 2>conftest.er1
29757 grep -v '^ *+' conftest.er1 >conftest.err
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
29762 { ac_try='test -z "$ac_c_werror_flag"
29763 || test ! -s conftest.err'
29764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765 (eval $ac_try) 2>&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest$ac_exeext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29777 echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29782 rm -f conftest.err conftest.$ac_objext \
29783 conftest$ac_exeext conftest.$ac_ext
29788 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29789 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29791 if test $ol_cv_db_db_3 = yes ; then
29792 ol_cv_lib_db=-ldb-3
29796 if test $ol_cv_lib_db = no ; then
29797 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29798 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29799 if test "${ol_cv_db_db2+set}" = set; then
29800 echo $ECHO_N "(cached) $ECHO_C" >&6
29805 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29807 cat >conftest.$ac_ext <<_ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29814 #ifdef HAVE_DB_185_H
29815 # include <db_185.h>
29820 #ifndef DB_VERSION_MAJOR
29821 # define DB_VERSION_MAJOR 1
29825 #define NULL ((void*)0)
29832 #if DB_VERSION_MAJOR > 1
29835 int major, minor, patch;
29837 version = db_version( &major, &minor, &patch );
29839 if( major != DB_VERSION_MAJOR ||
29840 minor < DB_VERSION_MINOR )
29842 printf("Berkeley DB version mismatch\n"
29843 "\theader: %s\n\tlibrary: %s\n",
29844 DB_VERSION_STRING, version);
29850 #if DB_VERSION_MAJOR > 2
29851 db_env_create( NULL, 0 );
29852 #elif DB_VERSION_MAJOR > 1
29853 db_appexit( NULL );
29855 (void) dbopen( NULL, 0, 0, 0, NULL);
29862 rm -f conftest.$ac_objext conftest$ac_exeext
29863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29864 (eval $ac_link) 2>conftest.er1
29866 grep -v '^ *+' conftest.er1 >conftest.err
29868 cat conftest.err >&5
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); } &&
29871 { ac_try='test -z "$ac_c_werror_flag"
29872 || test ! -s conftest.err'
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; } &&
29878 { ac_try='test -s conftest$ac_exeext'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29886 echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29891 rm -f conftest.err conftest.$ac_objext \
29892 conftest$ac_exeext conftest.$ac_ext
29897 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29898 echo "${ECHO_T}$ol_cv_db_db2" >&6
29900 if test $ol_cv_db_db2 = yes ; then
29905 if test $ol_cv_lib_db = no ; then
29906 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29907 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29908 if test "${ol_cv_db_db_2+set}" = set; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29916 cat >conftest.$ac_ext <<_ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h. */
29923 #ifdef HAVE_DB_185_H
29924 # include <db_185.h>
29929 #ifndef DB_VERSION_MAJOR
29930 # define DB_VERSION_MAJOR 1
29934 #define NULL ((void*)0)
29941 #if DB_VERSION_MAJOR > 1
29944 int major, minor, patch;
29946 version = db_version( &major, &minor, &patch );
29948 if( major != DB_VERSION_MAJOR ||
29949 minor < DB_VERSION_MINOR )
29951 printf("Berkeley DB version mismatch\n"
29952 "\theader: %s\n\tlibrary: %s\n",
29953 DB_VERSION_STRING, version);
29959 #if DB_VERSION_MAJOR > 2
29960 db_env_create( NULL, 0 );
29961 #elif DB_VERSION_MAJOR > 1
29962 db_appexit( NULL );
29964 (void) dbopen( NULL, 0, 0, 0, NULL);
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29973 (eval $ac_link) 2>conftest.er1
29975 grep -v '^ *+' conftest.er1 >conftest.err
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
29980 { ac_try='test -z "$ac_c_werror_flag"
29981 || test ! -s conftest.err'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest$ac_exeext'
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
30000 rm -f conftest.err conftest.$ac_objext \
30001 conftest$ac_exeext conftest.$ac_ext
30006 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30007 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30009 if test $ol_cv_db_db_2 = yes ; then
30010 ol_cv_lib_db=-ldb-2
30014 if test $ol_cv_lib_db = no ; then
30015 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30016 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30017 if test "${ol_cv_db_db1+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30025 cat >conftest.$ac_ext <<_ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h. */
30032 #ifdef HAVE_DB_185_H
30033 # include <db_185.h>
30038 #ifndef DB_VERSION_MAJOR
30039 # define DB_VERSION_MAJOR 1
30043 #define NULL ((void*)0)
30050 #if DB_VERSION_MAJOR > 1
30053 int major, minor, patch;
30055 version = db_version( &major, &minor, &patch );
30057 if( major != DB_VERSION_MAJOR ||
30058 minor < DB_VERSION_MINOR )
30060 printf("Berkeley DB version mismatch\n"
30061 "\theader: %s\n\tlibrary: %s\n",
30062 DB_VERSION_STRING, version);
30068 #if DB_VERSION_MAJOR > 2
30069 db_env_create( NULL, 0 );
30070 #elif DB_VERSION_MAJOR > 1
30071 db_appexit( NULL );
30073 (void) dbopen( NULL, 0, 0, 0, NULL);
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082 (eval $ac_link) 2>conftest.er1
30084 grep -v '^ *+' conftest.er1 >conftest.err
30086 cat conftest.err >&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } &&
30089 { ac_try='test -z "$ac_c_werror_flag"
30090 || test ! -s conftest.err'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest$ac_exeext'
30097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098 (eval $ac_try) 2>&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; }; then
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30109 rm -f conftest.err conftest.$ac_objext \
30110 conftest$ac_exeext conftest.$ac_ext
30115 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30116 echo "${ECHO_T}$ol_cv_db_db1" >&6
30118 if test $ol_cv_db_db1 = yes ; then
30123 if test $ol_cv_lib_db = no ; then
30124 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30125 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30126 if test "${ol_cv_db_db_1+set}" = set; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30132 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30134 cat >conftest.$ac_ext <<_ACEOF
30137 cat confdefs.h >>conftest.$ac_ext
30138 cat >>conftest.$ac_ext <<_ACEOF
30139 /* end confdefs.h. */
30141 #ifdef HAVE_DB_185_H
30142 # include <db_185.h>
30147 #ifndef DB_VERSION_MAJOR
30148 # define DB_VERSION_MAJOR 1
30152 #define NULL ((void*)0)
30159 #if DB_VERSION_MAJOR > 1
30162 int major, minor, patch;
30164 version = db_version( &major, &minor, &patch );
30166 if( major != DB_VERSION_MAJOR ||
30167 minor < DB_VERSION_MINOR )
30169 printf("Berkeley DB version mismatch\n"
30170 "\theader: %s\n\tlibrary: %s\n",
30171 DB_VERSION_STRING, version);
30177 #if DB_VERSION_MAJOR > 2
30178 db_env_create( NULL, 0 );
30179 #elif DB_VERSION_MAJOR > 1
30180 db_appexit( NULL );
30182 (void) dbopen( NULL, 0, 0, 0, NULL);
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191 (eval $ac_link) 2>conftest.er1
30193 grep -v '^ *+' conftest.er1 >conftest.err
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -z "$ac_c_werror_flag"
30199 || test ! -s conftest.err'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest$ac_exeext'
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30218 rm -f conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
30224 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30225 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30227 if test $ol_cv_db_db_1 = yes ; then
30228 ol_cv_lib_db=-ldb-1
30233 if test "$ol_cv_lib_db" != no ; then
30234 ol_cv_berkeley_db=yes
30240 ol_cv_berkeley_db=no
30242 for ac_header in db.h
30244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30246 echo "$as_me:$LINENO: checking for $ac_header" >&5
30247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30254 # Is the header compilable?
30255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30257 cat >conftest.$ac_ext <<_ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30263 $ac_includes_default
30264 #include <$ac_header>
30266 rm -f conftest.$ac_objext
30267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30268 (eval $ac_compile) 2>conftest.er1
30270 grep -v '^ *+' conftest.er1 >conftest.err
30272 cat conftest.err >&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } &&
30275 { ac_try='test -z "$ac_c_werror_flag"
30276 || test ! -s conftest.err'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest.$ac_objext'
30283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284 (eval $ac_try) 2>&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 ac_header_compiler=yes
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 ac_header_compiler=no
30295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30297 echo "${ECHO_T}$ac_header_compiler" >&6
30299 # Is the header present?
30300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30302 cat >conftest.$ac_ext <<_ACEOF
30305 cat confdefs.h >>conftest.$ac_ext
30306 cat >>conftest.$ac_ext <<_ACEOF
30307 /* end confdefs.h. */
30308 #include <$ac_header>
30310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30313 grep -v '^ *+' conftest.er1 >conftest.err
30315 cat conftest.err >&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); } >/dev/null; then
30318 if test -s conftest.err; then
30319 ac_cpp_err=$ac_c_preproc_warn_flag
30320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30327 if test -z "$ac_cpp_err"; then
30328 ac_header_preproc=yes
30330 echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30333 ac_header_preproc=no
30335 rm -f conftest.err conftest.$ac_ext
30336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30337 echo "${ECHO_T}$ac_header_preproc" >&6
30339 # So? What about this header?
30340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30346 ac_header_preproc=yes
30349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30363 ## ------------------------------------------ ##
30364 ## Report this to the AC_PACKAGE_NAME lists. ##
30365 ## ------------------------------------------ ##
30368 sed "s/^/$as_me: WARNING: /" >&2
30371 echo "$as_me:$LINENO: checking for $ac_header" >&5
30372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30374 echo $ECHO_N "(cached) $ECHO_C" >&6
30376 eval "$as_ac_Header=\$ac_header_preproc"
30378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30391 if test $ac_cv_header_db_h = yes; then
30393 if test $ol_cv_lib_db = no ; then
30394 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30395 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30396 if test "${ol_cv_db_none+set}" = set; then
30397 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30411 #ifdef HAVE_DB_185_H
30412 # include <db_185.h>
30417 #ifndef DB_VERSION_MAJOR
30418 # define DB_VERSION_MAJOR 1
30422 #define NULL ((void*)0)
30429 #if DB_VERSION_MAJOR > 1
30432 int major, minor, patch;
30434 version = db_version( &major, &minor, &patch );
30436 if( major != DB_VERSION_MAJOR ||
30437 minor < DB_VERSION_MINOR )
30439 printf("Berkeley DB version mismatch\n"
30440 "\theader: %s\n\tlibrary: %s\n",
30441 DB_VERSION_STRING, version);
30447 #if DB_VERSION_MAJOR > 2
30448 db_env_create( NULL, 0 );
30449 #elif DB_VERSION_MAJOR > 1
30450 db_appexit( NULL );
30452 (void) dbopen( NULL, 0, 0, 0, NULL);
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30461 (eval $ac_link) 2>conftest.er1
30463 grep -v '^ *+' conftest.er1 >conftest.err
30465 cat conftest.err >&5
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } &&
30468 { ac_try='test -z "$ac_c_werror_flag"
30469 || test ! -s conftest.err'
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30483 echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30488 rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
30494 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30495 echo "${ECHO_T}$ol_cv_db_none" >&6
30497 if test $ol_cv_db_none = yes ; then
30502 if test $ol_cv_lib_db = no ; then
30503 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30504 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30505 if test "${ol_cv_db_db43+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30513 cat >conftest.$ac_ext <<_ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30520 #ifdef HAVE_DB_185_H
30521 # include <db_185.h>
30526 #ifndef DB_VERSION_MAJOR
30527 # define DB_VERSION_MAJOR 1
30531 #define NULL ((void*)0)
30538 #if DB_VERSION_MAJOR > 1
30541 int major, minor, patch;
30543 version = db_version( &major, &minor, &patch );
30545 if( major != DB_VERSION_MAJOR ||
30546 minor < DB_VERSION_MINOR )
30548 printf("Berkeley DB version mismatch\n"
30549 "\theader: %s\n\tlibrary: %s\n",
30550 DB_VERSION_STRING, version);
30556 #if DB_VERSION_MAJOR > 2
30557 db_env_create( NULL, 0 );
30558 #elif DB_VERSION_MAJOR > 1
30559 db_appexit( NULL );
30561 (void) dbopen( NULL, 0, 0, 0, NULL);
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30570 (eval $ac_link) 2>conftest.er1
30572 grep -v '^ *+' conftest.er1 >conftest.err
30574 cat conftest.err >&5
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); } &&
30577 { ac_try='test -z "$ac_c_werror_flag"
30578 || test ! -s conftest.err'
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
30584 { ac_try='test -s conftest$ac_exeext'
30585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586 (eval $ac_try) 2>&5
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); }; }; then
30592 echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30597 rm -f conftest.err conftest.$ac_objext \
30598 conftest$ac_exeext conftest.$ac_ext
30603 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30604 echo "${ECHO_T}$ol_cv_db_db43" >&6
30606 if test $ol_cv_db_db43 = yes ; then
30607 ol_cv_lib_db=-ldb43
30611 if test $ol_cv_lib_db = no ; then
30612 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30613 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30614 if test "${ol_cv_db_db_43+set}" = set; then
30615 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30622 cat >conftest.$ac_ext <<_ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30629 #ifdef HAVE_DB_185_H
30630 # include <db_185.h>
30635 #ifndef DB_VERSION_MAJOR
30636 # define DB_VERSION_MAJOR 1
30640 #define NULL ((void*)0)
30647 #if DB_VERSION_MAJOR > 1
30650 int major, minor, patch;
30652 version = db_version( &major, &minor, &patch );
30654 if( major != DB_VERSION_MAJOR ||
30655 minor < DB_VERSION_MINOR )
30657 printf("Berkeley DB version mismatch\n"
30658 "\theader: %s\n\tlibrary: %s\n",
30659 DB_VERSION_STRING, version);
30665 #if DB_VERSION_MAJOR > 2
30666 db_env_create( NULL, 0 );
30667 #elif DB_VERSION_MAJOR > 1
30668 db_appexit( NULL );
30670 (void) dbopen( NULL, 0, 0, 0, NULL);
30677 rm -f conftest.$ac_objext conftest$ac_exeext
30678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30679 (eval $ac_link) 2>conftest.er1
30681 grep -v '^ *+' conftest.er1 >conftest.err
30683 cat conftest.err >&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
30686 { ac_try='test -z "$ac_c_werror_flag"
30687 || test ! -s conftest.err'
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; } &&
30693 { ac_try='test -s conftest$ac_exeext'
30694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30695 (eval $ac_try) 2>&5
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; }; then
30701 echo "$as_me: failed program was:" >&5
30702 sed 's/^/| /' conftest.$ac_ext >&5
30706 rm -f conftest.err conftest.$ac_objext \
30707 conftest$ac_exeext conftest.$ac_ext
30712 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30713 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30715 if test $ol_cv_db_db_43 = yes ; then
30716 ol_cv_lib_db=-ldb-43
30720 if test $ol_cv_lib_db = no ; then
30721 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30722 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30723 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30729 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30731 cat >conftest.$ac_ext <<_ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h. */
30738 #ifdef HAVE_DB_185_H
30739 # include <db_185.h>
30744 #ifndef DB_VERSION_MAJOR
30745 # define DB_VERSION_MAJOR 1
30749 #define NULL ((void*)0)
30756 #if DB_VERSION_MAJOR > 1
30759 int major, minor, patch;
30761 version = db_version( &major, &minor, &patch );
30763 if( major != DB_VERSION_MAJOR ||
30764 minor < DB_VERSION_MINOR )
30766 printf("Berkeley DB version mismatch\n"
30767 "\theader: %s\n\tlibrary: %s\n",
30768 DB_VERSION_STRING, version);
30774 #if DB_VERSION_MAJOR > 2
30775 db_env_create( NULL, 0 );
30776 #elif DB_VERSION_MAJOR > 1
30777 db_appexit( NULL );
30779 (void) dbopen( NULL, 0, 0, 0, NULL);
30786 rm -f conftest.$ac_objext conftest$ac_exeext
30787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30788 (eval $ac_link) 2>conftest.er1
30790 grep -v '^ *+' conftest.er1 >conftest.err
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
30795 { ac_try='test -z "$ac_c_werror_flag"
30796 || test ! -s conftest.err'
30797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798 (eval $ac_try) 2>&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; } &&
30802 { ac_try='test -s conftest$ac_exeext'
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; }; then
30808 ol_cv_db_db_4_dot_3=yes
30810 echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30813 ol_cv_db_db_4_dot_3=no
30815 rm -f conftest.err conftest.$ac_objext \
30816 conftest$ac_exeext conftest.$ac_ext
30821 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30822 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30824 if test $ol_cv_db_db_4_dot_3 = yes ; then
30825 ol_cv_lib_db=-ldb-4.3
30829 if test $ol_cv_lib_db = no ; then
30830 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30831 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30832 if test "${ol_cv_db_db_4_3+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30838 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30840 cat >conftest.$ac_ext <<_ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h. */
30847 #ifdef HAVE_DB_185_H
30848 # include <db_185.h>
30853 #ifndef DB_VERSION_MAJOR
30854 # define DB_VERSION_MAJOR 1
30858 #define NULL ((void*)0)
30865 #if DB_VERSION_MAJOR > 1
30868 int major, minor, patch;
30870 version = db_version( &major, &minor, &patch );
30872 if( major != DB_VERSION_MAJOR ||
30873 minor < DB_VERSION_MINOR )
30875 printf("Berkeley DB version mismatch\n"
30876 "\theader: %s\n\tlibrary: %s\n",
30877 DB_VERSION_STRING, version);
30883 #if DB_VERSION_MAJOR > 2
30884 db_env_create( NULL, 0 );
30885 #elif DB_VERSION_MAJOR > 1
30886 db_appexit( NULL );
30888 (void) dbopen( NULL, 0, 0, 0, NULL);
30895 rm -f conftest.$ac_objext conftest$ac_exeext
30896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30897 (eval $ac_link) 2>conftest.er1
30899 grep -v '^ *+' conftest.er1 >conftest.err
30901 cat conftest.err >&5
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); } &&
30904 { ac_try='test -z "$ac_c_werror_flag"
30905 || test ! -s conftest.err'
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; } &&
30911 { ac_try='test -s conftest$ac_exeext'
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 ol_cv_db_db_4_3=yes
30919 echo "$as_me: failed program was:" >&5
30920 sed 's/^/| /' conftest.$ac_ext >&5
30924 rm -f conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
30930 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30931 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30933 if test $ol_cv_db_db_4_3 = yes ; then
30934 ol_cv_lib_db=-ldb-4-3
30938 if test $ol_cv_lib_db = no ; then
30939 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
30940 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
30941 if test "${ol_cv_db_db42+set}" = set; then
30942 echo $ECHO_N "(cached) $ECHO_C" >&6
30947 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30949 cat >conftest.$ac_ext <<_ACEOF
30952 cat confdefs.h >>conftest.$ac_ext
30953 cat >>conftest.$ac_ext <<_ACEOF
30954 /* end confdefs.h. */
30956 #ifdef HAVE_DB_185_H
30957 # include <db_185.h>
30962 #ifndef DB_VERSION_MAJOR
30963 # define DB_VERSION_MAJOR 1
30967 #define NULL ((void*)0)
30974 #if DB_VERSION_MAJOR > 1
30977 int major, minor, patch;
30979 version = db_version( &major, &minor, &patch );
30981 if( major != DB_VERSION_MAJOR ||
30982 minor < DB_VERSION_MINOR )
30984 printf("Berkeley DB version mismatch\n"
30985 "\theader: %s\n\tlibrary: %s\n",
30986 DB_VERSION_STRING, version);
30992 #if DB_VERSION_MAJOR > 2
30993 db_env_create( NULL, 0 );
30994 #elif DB_VERSION_MAJOR > 1
30995 db_appexit( NULL );
30997 (void) dbopen( NULL, 0, 0, 0, NULL);
31004 rm -f conftest.$ac_objext conftest$ac_exeext
31005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31006 (eval $ac_link) 2>conftest.er1
31008 grep -v '^ *+' conftest.er1 >conftest.err
31010 cat conftest.err >&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
31013 { ac_try='test -z "$ac_c_werror_flag"
31014 || test ! -s conftest.err'
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; }; then
31028 echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31033 rm -f conftest.err conftest.$ac_objext \
31034 conftest$ac_exeext conftest.$ac_ext
31039 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31040 echo "${ECHO_T}$ol_cv_db_db42" >&6
31042 if test $ol_cv_db_db42 = yes ; then
31043 ol_cv_lib_db=-ldb42
31047 if test $ol_cv_lib_db = no ; then
31048 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31049 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31050 if test "${ol_cv_db_db_42+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31056 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31058 cat >conftest.$ac_ext <<_ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h. */
31065 #ifdef HAVE_DB_185_H
31066 # include <db_185.h>
31071 #ifndef DB_VERSION_MAJOR
31072 # define DB_VERSION_MAJOR 1
31076 #define NULL ((void*)0)
31083 #if DB_VERSION_MAJOR > 1
31086 int major, minor, patch;
31088 version = db_version( &major, &minor, &patch );
31090 if( major != DB_VERSION_MAJOR ||
31091 minor < DB_VERSION_MINOR )
31093 printf("Berkeley DB version mismatch\n"
31094 "\theader: %s\n\tlibrary: %s\n",
31095 DB_VERSION_STRING, version);
31101 #if DB_VERSION_MAJOR > 2
31102 db_env_create( NULL, 0 );
31103 #elif DB_VERSION_MAJOR > 1
31104 db_appexit( NULL );
31106 (void) dbopen( NULL, 0, 0, 0, NULL);
31113 rm -f conftest.$ac_objext conftest$ac_exeext
31114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31115 (eval $ac_link) 2>conftest.er1
31117 grep -v '^ *+' conftest.er1 >conftest.err
31119 cat conftest.err >&5
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } &&
31122 { ac_try='test -z "$ac_c_werror_flag"
31123 || test ! -s conftest.err'
31124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31125 (eval $ac_try) 2>&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); }; } &&
31129 { ac_try='test -s conftest$ac_exeext'
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31142 rm -f conftest.err conftest.$ac_objext \
31143 conftest$ac_exeext conftest.$ac_ext
31148 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31149 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31151 if test $ol_cv_db_db_42 = yes ; then
31152 ol_cv_lib_db=-ldb-42
31156 if test $ol_cv_lib_db = no ; then
31157 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31158 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31159 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31160 echo $ECHO_N "(cached) $ECHO_C" >&6
31165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31167 cat >conftest.$ac_ext <<_ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h. */
31174 #ifdef HAVE_DB_185_H
31175 # include <db_185.h>
31180 #ifndef DB_VERSION_MAJOR
31181 # define DB_VERSION_MAJOR 1
31185 #define NULL ((void*)0)
31192 #if DB_VERSION_MAJOR > 1
31195 int major, minor, patch;
31197 version = db_version( &major, &minor, &patch );
31199 if( major != DB_VERSION_MAJOR ||
31200 minor < DB_VERSION_MINOR )
31202 printf("Berkeley DB version mismatch\n"
31203 "\theader: %s\n\tlibrary: %s\n",
31204 DB_VERSION_STRING, version);
31210 #if DB_VERSION_MAJOR > 2
31211 db_env_create( NULL, 0 );
31212 #elif DB_VERSION_MAJOR > 1
31213 db_appexit( NULL );
31215 (void) dbopen( NULL, 0, 0, 0, NULL);
31222 rm -f conftest.$ac_objext conftest$ac_exeext
31223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31224 (eval $ac_link) 2>conftest.er1
31226 grep -v '^ *+' conftest.er1 >conftest.err
31228 cat conftest.err >&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); } &&
31231 { ac_try='test -z "$ac_c_werror_flag"
31232 || test ! -s conftest.err'
31233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31234 (eval $ac_try) 2>&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; } &&
31238 { ac_try='test -s conftest$ac_exeext'
31239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240 (eval $ac_try) 2>&5
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; }; then
31244 ol_cv_db_db_4_dot_2=yes
31246 echo "$as_me: failed program was:" >&5
31247 sed 's/^/| /' conftest.$ac_ext >&5
31249 ol_cv_db_db_4_dot_2=no
31251 rm -f conftest.err conftest.$ac_objext \
31252 conftest$ac_exeext conftest.$ac_ext
31257 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31258 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31260 if test $ol_cv_db_db_4_dot_2 = yes ; then
31261 ol_cv_lib_db=-ldb-4.2
31265 if test $ol_cv_lib_db = no ; then
31266 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31267 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31268 if test "${ol_cv_db_db_4_2+set}" = set; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31274 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31276 cat >conftest.$ac_ext <<_ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h. */
31283 #ifdef HAVE_DB_185_H
31284 # include <db_185.h>
31289 #ifndef DB_VERSION_MAJOR
31290 # define DB_VERSION_MAJOR 1
31294 #define NULL ((void*)0)
31301 #if DB_VERSION_MAJOR > 1
31304 int major, minor, patch;
31306 version = db_version( &major, &minor, &patch );
31308 if( major != DB_VERSION_MAJOR ||
31309 minor < DB_VERSION_MINOR )
31311 printf("Berkeley DB version mismatch\n"
31312 "\theader: %s\n\tlibrary: %s\n",
31313 DB_VERSION_STRING, version);
31319 #if DB_VERSION_MAJOR > 2
31320 db_env_create( NULL, 0 );
31321 #elif DB_VERSION_MAJOR > 1
31322 db_appexit( NULL );
31324 (void) dbopen( NULL, 0, 0, 0, NULL);
31331 rm -f conftest.$ac_objext conftest$ac_exeext
31332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31333 (eval $ac_link) 2>conftest.er1
31335 grep -v '^ *+' conftest.er1 >conftest.err
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag"
31341 || test ! -s conftest.err'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest$ac_exeext'
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; }; then
31353 ol_cv_db_db_4_2=yes
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31360 rm -f conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31366 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31367 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31369 if test $ol_cv_db_db_4_2 = yes ; then
31370 ol_cv_lib_db=-ldb-4-2
31374 if test $ol_cv_lib_db = no ; then
31375 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31376 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31377 if test "${ol_cv_db_db_4+set}" = set; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31383 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31385 cat >conftest.$ac_ext <<_ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h. */
31392 #ifdef HAVE_DB_185_H
31393 # include <db_185.h>
31398 #ifndef DB_VERSION_MAJOR
31399 # define DB_VERSION_MAJOR 1
31403 #define NULL ((void*)0)
31410 #if DB_VERSION_MAJOR > 1
31413 int major, minor, patch;
31415 version = db_version( &major, &minor, &patch );
31417 if( major != DB_VERSION_MAJOR ||
31418 minor < DB_VERSION_MINOR )
31420 printf("Berkeley DB version mismatch\n"
31421 "\theader: %s\n\tlibrary: %s\n",
31422 DB_VERSION_STRING, version);
31428 #if DB_VERSION_MAJOR > 2
31429 db_env_create( NULL, 0 );
31430 #elif DB_VERSION_MAJOR > 1
31431 db_appexit( NULL );
31433 (void) dbopen( NULL, 0, 0, 0, NULL);
31440 rm -f conftest.$ac_objext conftest$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442 (eval $ac_link) 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag"
31450 || test ! -s conftest.err'
31451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452 (eval $ac_try) 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; } &&
31456 { ac_try='test -s conftest$ac_exeext'
31457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458 (eval $ac_try) 2>&5
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31469 rm -f conftest.err conftest.$ac_objext \
31470 conftest$ac_exeext conftest.$ac_ext
31475 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31476 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31478 if test $ol_cv_db_db_4 = yes ; then
31479 ol_cv_lib_db=-ldb-4
31483 if test $ol_cv_lib_db = no ; then
31484 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31485 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31486 if test "${ol_cv_db_db4+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31494 cat >conftest.$ac_ext <<_ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31501 #ifdef HAVE_DB_185_H
31502 # include <db_185.h>
31507 #ifndef DB_VERSION_MAJOR
31508 # define DB_VERSION_MAJOR 1
31512 #define NULL ((void*)0)
31519 #if DB_VERSION_MAJOR > 1
31522 int major, minor, patch;
31524 version = db_version( &major, &minor, &patch );
31526 if( major != DB_VERSION_MAJOR ||
31527 minor < DB_VERSION_MINOR )
31529 printf("Berkeley DB version mismatch\n"
31530 "\theader: %s\n\tlibrary: %s\n",
31531 DB_VERSION_STRING, version);
31537 #if DB_VERSION_MAJOR > 2
31538 db_env_create( NULL, 0 );
31539 #elif DB_VERSION_MAJOR > 1
31540 db_appexit( NULL );
31542 (void) dbopen( NULL, 0, 0, 0, NULL);
31549 rm -f conftest.$ac_objext conftest$ac_exeext
31550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31551 (eval $ac_link) 2>conftest.er1
31553 grep -v '^ *+' conftest.er1 >conftest.err
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } &&
31558 { ac_try='test -z "$ac_c_werror_flag"
31559 || test ! -s conftest.err'
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; } &&
31565 { ac_try='test -s conftest$ac_exeext'
31566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567 (eval $ac_try) 2>&5
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; }; then
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31578 rm -f conftest.err conftest.$ac_objext \
31579 conftest$ac_exeext conftest.$ac_ext
31584 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31585 echo "${ECHO_T}$ol_cv_db_db4" >&6
31587 if test $ol_cv_db_db4 = yes ; then
31592 if test $ol_cv_lib_db = no ; then
31593 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31594 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31595 if test "${ol_cv_db_db+set}" = set; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31601 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31603 cat >conftest.$ac_ext <<_ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31610 #ifdef HAVE_DB_185_H
31611 # include <db_185.h>
31616 #ifndef DB_VERSION_MAJOR
31617 # define DB_VERSION_MAJOR 1
31621 #define NULL ((void*)0)
31628 #if DB_VERSION_MAJOR > 1
31631 int major, minor, patch;
31633 version = db_version( &major, &minor, &patch );
31635 if( major != DB_VERSION_MAJOR ||
31636 minor < DB_VERSION_MINOR )
31638 printf("Berkeley DB version mismatch\n"
31639 "\theader: %s\n\tlibrary: %s\n",
31640 DB_VERSION_STRING, version);
31646 #if DB_VERSION_MAJOR > 2
31647 db_env_create( NULL, 0 );
31648 #elif DB_VERSION_MAJOR > 1
31649 db_appexit( NULL );
31651 (void) dbopen( NULL, 0, 0, 0, NULL);
31658 rm -f conftest.$ac_objext conftest$ac_exeext
31659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31660 (eval $ac_link) 2>conftest.er1
31662 grep -v '^ *+' conftest.er1 >conftest.err
31664 cat conftest.err >&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } &&
31667 { ac_try='test -z "$ac_c_werror_flag"
31668 || test ! -s conftest.err'
31669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670 (eval $ac_try) 2>&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; } &&
31674 { ac_try='test -s conftest$ac_exeext'
31675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31676 (eval $ac_try) 2>&5
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; }; then
31682 echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.$ac_ext >&5
31687 rm -f conftest.err conftest.$ac_objext \
31688 conftest$ac_exeext conftest.$ac_ext
31693 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31694 echo "${ECHO_T}$ol_cv_db_db" >&6
31696 if test $ol_cv_db_db = yes ; then
31701 if test $ol_cv_lib_db = no ; then
31702 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31703 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31704 if test "${ol_cv_db_db41+set}" = set; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31712 cat >conftest.$ac_ext <<_ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h. */
31719 #ifdef HAVE_DB_185_H
31720 # include <db_185.h>
31725 #ifndef DB_VERSION_MAJOR
31726 # define DB_VERSION_MAJOR 1
31730 #define NULL ((void*)0)
31737 #if DB_VERSION_MAJOR > 1
31740 int major, minor, patch;
31742 version = db_version( &major, &minor, &patch );
31744 if( major != DB_VERSION_MAJOR ||
31745 minor < DB_VERSION_MINOR )
31747 printf("Berkeley DB version mismatch\n"
31748 "\theader: %s\n\tlibrary: %s\n",
31749 DB_VERSION_STRING, version);
31755 #if DB_VERSION_MAJOR > 2
31756 db_env_create( NULL, 0 );
31757 #elif DB_VERSION_MAJOR > 1
31758 db_appexit( NULL );
31760 (void) dbopen( NULL, 0, 0, 0, NULL);
31767 rm -f conftest.$ac_objext conftest$ac_exeext
31768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31769 (eval $ac_link) 2>conftest.er1
31771 grep -v '^ *+' conftest.er1 >conftest.err
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); } &&
31776 { ac_try='test -z "$ac_c_werror_flag"
31777 || test ! -s conftest.err'
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; } &&
31783 { ac_try='test -s conftest$ac_exeext'
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; }; then
31791 echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31796 rm -f conftest.err conftest.$ac_objext \
31797 conftest$ac_exeext conftest.$ac_ext
31802 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31803 echo "${ECHO_T}$ol_cv_db_db41" >&6
31805 if test $ol_cv_db_db41 = yes ; then
31806 ol_cv_lib_db=-ldb41
31810 if test $ol_cv_lib_db = no ; then
31811 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31812 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31813 if test "${ol_cv_db_db_41+set}" = set; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31819 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31821 cat >conftest.$ac_ext <<_ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31828 #ifdef HAVE_DB_185_H
31829 # include <db_185.h>
31834 #ifndef DB_VERSION_MAJOR
31835 # define DB_VERSION_MAJOR 1
31839 #define NULL ((void*)0)
31846 #if DB_VERSION_MAJOR > 1
31849 int major, minor, patch;
31851 version = db_version( &major, &minor, &patch );
31853 if( major != DB_VERSION_MAJOR ||
31854 minor < DB_VERSION_MINOR )
31856 printf("Berkeley DB version mismatch\n"
31857 "\theader: %s\n\tlibrary: %s\n",
31858 DB_VERSION_STRING, version);
31864 #if DB_VERSION_MAJOR > 2
31865 db_env_create( NULL, 0 );
31866 #elif DB_VERSION_MAJOR > 1
31867 db_appexit( NULL );
31869 (void) dbopen( NULL, 0, 0, 0, NULL);
31876 rm -f conftest.$ac_objext conftest$ac_exeext
31877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31878 (eval $ac_link) 2>conftest.er1
31880 grep -v '^ *+' conftest.er1 >conftest.err
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_c_werror_flag"
31886 || test ! -s conftest.err'
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31900 echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31905 rm -f conftest.err conftest.$ac_objext \
31906 conftest$ac_exeext conftest.$ac_ext
31911 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31912 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31914 if test $ol_cv_db_db_41 = yes ; then
31915 ol_cv_lib_db=-ldb-41
31919 if test $ol_cv_lib_db = no ; then
31920 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31921 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31922 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31923 echo $ECHO_N "(cached) $ECHO_C" >&6
31928 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31930 cat >conftest.$ac_ext <<_ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h. */
31937 #ifdef HAVE_DB_185_H
31938 # include <db_185.h>
31943 #ifndef DB_VERSION_MAJOR
31944 # define DB_VERSION_MAJOR 1
31948 #define NULL ((void*)0)
31955 #if DB_VERSION_MAJOR > 1
31958 int major, minor, patch;
31960 version = db_version( &major, &minor, &patch );
31962 if( major != DB_VERSION_MAJOR ||
31963 minor < DB_VERSION_MINOR )
31965 printf("Berkeley DB version mismatch\n"
31966 "\theader: %s\n\tlibrary: %s\n",
31967 DB_VERSION_STRING, version);
31973 #if DB_VERSION_MAJOR > 2
31974 db_env_create( NULL, 0 );
31975 #elif DB_VERSION_MAJOR > 1
31976 db_appexit( NULL );
31978 (void) dbopen( NULL, 0, 0, 0, NULL);
31985 rm -f conftest.$ac_objext conftest$ac_exeext
31986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31987 (eval $ac_link) 2>conftest.er1
31989 grep -v '^ *+' conftest.er1 >conftest.err
31991 cat conftest.err >&5
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); } &&
31994 { ac_try='test -z "$ac_c_werror_flag"
31995 || test ! -s conftest.err'
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; } &&
32001 { ac_try='test -s conftest$ac_exeext'
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; }; then
32007 ol_cv_db_db_4_dot_1=yes
32009 echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32012 ol_cv_db_db_4_dot_1=no
32014 rm -f conftest.err conftest.$ac_objext \
32015 conftest$ac_exeext conftest.$ac_ext
32020 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32021 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32023 if test $ol_cv_db_db_4_dot_1 = yes ; then
32024 ol_cv_lib_db=-ldb-4.1
32028 if test $ol_cv_lib_db = no ; then
32029 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32030 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32031 if test "${ol_cv_db_db_4_1+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32037 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32039 cat >conftest.$ac_ext <<_ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h. */
32046 #ifdef HAVE_DB_185_H
32047 # include <db_185.h>
32052 #ifndef DB_VERSION_MAJOR
32053 # define DB_VERSION_MAJOR 1
32057 #define NULL ((void*)0)
32064 #if DB_VERSION_MAJOR > 1
32067 int major, minor, patch;
32069 version = db_version( &major, &minor, &patch );
32071 if( major != DB_VERSION_MAJOR ||
32072 minor < DB_VERSION_MINOR )
32074 printf("Berkeley DB version mismatch\n"
32075 "\theader: %s\n\tlibrary: %s\n",
32076 DB_VERSION_STRING, version);
32082 #if DB_VERSION_MAJOR > 2
32083 db_env_create( NULL, 0 );
32084 #elif DB_VERSION_MAJOR > 1
32085 db_appexit( NULL );
32087 (void) dbopen( NULL, 0, 0, 0, NULL);
32094 rm -f conftest.$ac_objext conftest$ac_exeext
32095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32096 (eval $ac_link) 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } &&
32103 { ac_try='test -z "$ac_c_werror_flag"
32104 || test ! -s conftest.err'
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest$ac_exeext'
32111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112 (eval $ac_try) 2>&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); }; }; then
32116 ol_cv_db_db_4_1=yes
32118 echo "$as_me: failed program was:" >&5
32119 sed 's/^/| /' conftest.$ac_ext >&5
32123 rm -f conftest.err conftest.$ac_objext \
32124 conftest$ac_exeext conftest.$ac_ext
32129 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32130 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32132 if test $ol_cv_db_db_4_1 = yes ; then
32133 ol_cv_lib_db=-ldb-4-1
32137 if test $ol_cv_lib_db = no ; then
32138 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32139 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32140 if test "${ol_cv_db_db3+set}" = set; then
32141 echo $ECHO_N "(cached) $ECHO_C" >&6
32146 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32148 cat >conftest.$ac_ext <<_ACEOF
32151 cat confdefs.h >>conftest.$ac_ext
32152 cat >>conftest.$ac_ext <<_ACEOF
32153 /* end confdefs.h. */
32155 #ifdef HAVE_DB_185_H
32156 # include <db_185.h>
32161 #ifndef DB_VERSION_MAJOR
32162 # define DB_VERSION_MAJOR 1
32166 #define NULL ((void*)0)
32173 #if DB_VERSION_MAJOR > 1
32176 int major, minor, patch;
32178 version = db_version( &major, &minor, &patch );
32180 if( major != DB_VERSION_MAJOR ||
32181 minor < DB_VERSION_MINOR )
32183 printf("Berkeley DB version mismatch\n"
32184 "\theader: %s\n\tlibrary: %s\n",
32185 DB_VERSION_STRING, version);
32191 #if DB_VERSION_MAJOR > 2
32192 db_env_create( NULL, 0 );
32193 #elif DB_VERSION_MAJOR > 1
32194 db_appexit( NULL );
32196 (void) dbopen( NULL, 0, 0, 0, NULL);
32203 rm -f conftest.$ac_objext conftest$ac_exeext
32204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205 (eval $ac_link) 2>conftest.er1
32207 grep -v '^ *+' conftest.er1 >conftest.err
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_c_werror_flag"
32213 || test ! -s conftest.err'
32214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 (eval $ac_try) 2>&5
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); }; } &&
32219 { ac_try='test -s conftest$ac_exeext'
32220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 (eval $ac_try) 2>&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; }; then
32227 echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32232 rm -f conftest.err conftest.$ac_objext \
32233 conftest$ac_exeext conftest.$ac_ext
32238 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32239 echo "${ECHO_T}$ol_cv_db_db3" >&6
32241 if test $ol_cv_db_db3 = yes ; then
32246 if test $ol_cv_lib_db = no ; then
32247 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32248 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32249 if test "${ol_cv_db_db_3+set}" = set; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32255 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32257 cat >conftest.$ac_ext <<_ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h. */
32264 #ifdef HAVE_DB_185_H
32265 # include <db_185.h>
32270 #ifndef DB_VERSION_MAJOR
32271 # define DB_VERSION_MAJOR 1
32275 #define NULL ((void*)0)
32282 #if DB_VERSION_MAJOR > 1
32285 int major, minor, patch;
32287 version = db_version( &major, &minor, &patch );
32289 if( major != DB_VERSION_MAJOR ||
32290 minor < DB_VERSION_MINOR )
32292 printf("Berkeley DB version mismatch\n"
32293 "\theader: %s\n\tlibrary: %s\n",
32294 DB_VERSION_STRING, version);
32300 #if DB_VERSION_MAJOR > 2
32301 db_env_create( NULL, 0 );
32302 #elif DB_VERSION_MAJOR > 1
32303 db_appexit( NULL );
32305 (void) dbopen( NULL, 0, 0, 0, NULL);
32312 rm -f conftest.$ac_objext conftest$ac_exeext
32313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32314 (eval $ac_link) 2>conftest.er1
32316 grep -v '^ *+' conftest.er1 >conftest.err
32318 cat conftest.err >&5
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); } &&
32321 { ac_try='test -z "$ac_c_werror_flag"
32322 || test ! -s conftest.err'
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; } &&
32328 { ac_try='test -s conftest$ac_exeext'
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32336 echo "$as_me: failed program was:" >&5
32337 sed 's/^/| /' conftest.$ac_ext >&5
32341 rm -f conftest.err conftest.$ac_objext \
32342 conftest$ac_exeext conftest.$ac_ext
32347 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32348 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32350 if test $ol_cv_db_db_3 = yes ; then
32351 ol_cv_lib_db=-ldb-3
32355 if test $ol_cv_lib_db = no ; then
32356 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32357 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32358 if test "${ol_cv_db_db2+set}" = set; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32364 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32366 cat >conftest.$ac_ext <<_ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h. */
32373 #ifdef HAVE_DB_185_H
32374 # include <db_185.h>
32379 #ifndef DB_VERSION_MAJOR
32380 # define DB_VERSION_MAJOR 1
32384 #define NULL ((void*)0)
32391 #if DB_VERSION_MAJOR > 1
32394 int major, minor, patch;
32396 version = db_version( &major, &minor, &patch );
32398 if( major != DB_VERSION_MAJOR ||
32399 minor < DB_VERSION_MINOR )
32401 printf("Berkeley DB version mismatch\n"
32402 "\theader: %s\n\tlibrary: %s\n",
32403 DB_VERSION_STRING, version);
32409 #if DB_VERSION_MAJOR > 2
32410 db_env_create( NULL, 0 );
32411 #elif DB_VERSION_MAJOR > 1
32412 db_appexit( NULL );
32414 (void) dbopen( NULL, 0, 0, 0, NULL);
32421 rm -f conftest.$ac_objext conftest$ac_exeext
32422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32423 (eval $ac_link) 2>conftest.er1
32425 grep -v '^ *+' conftest.er1 >conftest.err
32427 cat conftest.err >&5
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); } &&
32430 { ac_try='test -z "$ac_c_werror_flag"
32431 || test ! -s conftest.err'
32432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 (eval $ac_try) 2>&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try='test -s conftest$ac_exeext'
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; }; then
32445 echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32450 rm -f conftest.err conftest.$ac_objext \
32451 conftest$ac_exeext conftest.$ac_ext
32456 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32457 echo "${ECHO_T}$ol_cv_db_db2" >&6
32459 if test $ol_cv_db_db2 = yes ; then
32464 if test $ol_cv_lib_db = no ; then
32465 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32466 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32467 if test "${ol_cv_db_db_2+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
32473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32475 cat >conftest.$ac_ext <<_ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h. */
32482 #ifdef HAVE_DB_185_H
32483 # include <db_185.h>
32488 #ifndef DB_VERSION_MAJOR
32489 # define DB_VERSION_MAJOR 1
32493 #define NULL ((void*)0)
32500 #if DB_VERSION_MAJOR > 1
32503 int major, minor, patch;
32505 version = db_version( &major, &minor, &patch );
32507 if( major != DB_VERSION_MAJOR ||
32508 minor < DB_VERSION_MINOR )
32510 printf("Berkeley DB version mismatch\n"
32511 "\theader: %s\n\tlibrary: %s\n",
32512 DB_VERSION_STRING, version);
32518 #if DB_VERSION_MAJOR > 2
32519 db_env_create( NULL, 0 );
32520 #elif DB_VERSION_MAJOR > 1
32521 db_appexit( NULL );
32523 (void) dbopen( NULL, 0, 0, 0, NULL);
32530 rm -f conftest.$ac_objext conftest$ac_exeext
32531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32532 (eval $ac_link) 2>conftest.er1
32534 grep -v '^ *+' conftest.er1 >conftest.err
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } &&
32539 { ac_try='test -z "$ac_c_werror_flag"
32540 || test ! -s conftest.err'
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; } &&
32546 { ac_try='test -s conftest$ac_exeext'
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32554 echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32559 rm -f conftest.err conftest.$ac_objext \
32560 conftest$ac_exeext conftest.$ac_ext
32565 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32566 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32568 if test $ol_cv_db_db_2 = yes ; then
32569 ol_cv_lib_db=-ldb-2
32573 if test $ol_cv_lib_db = no ; then
32574 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32575 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32576 if test "${ol_cv_db_db1+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32584 cat >conftest.$ac_ext <<_ACEOF
32587 cat confdefs.h >>conftest.$ac_ext
32588 cat >>conftest.$ac_ext <<_ACEOF
32589 /* end confdefs.h. */
32591 #ifdef HAVE_DB_185_H
32592 # include <db_185.h>
32597 #ifndef DB_VERSION_MAJOR
32598 # define DB_VERSION_MAJOR 1
32602 #define NULL ((void*)0)
32609 #if DB_VERSION_MAJOR > 1
32612 int major, minor, patch;
32614 version = db_version( &major, &minor, &patch );
32616 if( major != DB_VERSION_MAJOR ||
32617 minor < DB_VERSION_MINOR )
32619 printf("Berkeley DB version mismatch\n"
32620 "\theader: %s\n\tlibrary: %s\n",
32621 DB_VERSION_STRING, version);
32627 #if DB_VERSION_MAJOR > 2
32628 db_env_create( NULL, 0 );
32629 #elif DB_VERSION_MAJOR > 1
32630 db_appexit( NULL );
32632 (void) dbopen( NULL, 0, 0, 0, NULL);
32639 rm -f conftest.$ac_objext conftest$ac_exeext
32640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32641 (eval $ac_link) 2>conftest.er1
32643 grep -v '^ *+' conftest.er1 >conftest.err
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } &&
32648 { ac_try='test -z "$ac_c_werror_flag"
32649 || test ! -s conftest.err'
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest$ac_exeext'
32656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32657 (eval $ac_try) 2>&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32668 rm -f conftest.err conftest.$ac_objext \
32669 conftest$ac_exeext conftest.$ac_ext
32674 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32675 echo "${ECHO_T}$ol_cv_db_db1" >&6
32677 if test $ol_cv_db_db1 = yes ; then
32682 if test $ol_cv_lib_db = no ; then
32683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32684 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32685 if test "${ol_cv_db_db_1+set}" = set; then
32686 echo $ECHO_N "(cached) $ECHO_C" >&6
32691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32693 cat >conftest.$ac_ext <<_ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h. */
32700 #ifdef HAVE_DB_185_H
32701 # include <db_185.h>
32706 #ifndef DB_VERSION_MAJOR
32707 # define DB_VERSION_MAJOR 1
32711 #define NULL ((void*)0)
32718 #if DB_VERSION_MAJOR > 1
32721 int major, minor, patch;
32723 version = db_version( &major, &minor, &patch );
32725 if( major != DB_VERSION_MAJOR ||
32726 minor < DB_VERSION_MINOR )
32728 printf("Berkeley DB version mismatch\n"
32729 "\theader: %s\n\tlibrary: %s\n",
32730 DB_VERSION_STRING, version);
32736 #if DB_VERSION_MAJOR > 2
32737 db_env_create( NULL, 0 );
32738 #elif DB_VERSION_MAJOR > 1
32739 db_appexit( NULL );
32741 (void) dbopen( NULL, 0, 0, 0, NULL);
32748 rm -f conftest.$ac_objext conftest$ac_exeext
32749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32750 (eval $ac_link) 2>conftest.er1
32752 grep -v '^ *+' conftest.er1 >conftest.err
32754 cat conftest.err >&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); } &&
32757 { ac_try='test -z "$ac_c_werror_flag"
32758 || test ! -s conftest.err'
32759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32760 (eval $ac_try) 2>&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); }; } &&
32764 { ac_try='test -s conftest$ac_exeext'
32765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32766 (eval $ac_try) 2>&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; }; then
32772 echo "$as_me: failed program was:" >&5
32773 sed 's/^/| /' conftest.$ac_ext >&5
32777 rm -f conftest.err conftest.$ac_objext \
32778 conftest$ac_exeext conftest.$ac_ext
32783 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32784 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32786 if test $ol_cv_db_db_1 = yes ; then
32787 ol_cv_lib_db=-ldb-1
32792 if test "$ol_cv_lib_db" != no ; then
32793 ol_cv_berkeley_db=yes
32794 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32795 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32796 if test "${ol_cv_berkeley_db_version+set}" = set; then
32797 echo $ECHO_N "(cached) $ECHO_C" >&6
32801 LIBS="$LTHREAD_LIBS $LIBS"
32802 if test $ol_cv_lib_db != yes ; then
32803 LIBS="$ol_cv_lib_db $LIBS"
32806 if test "$cross_compiling" = yes; then
32807 ol_cv_berkeley_db_version=cross
32809 cat >conftest.$ac_ext <<_ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h. */
32816 #ifdef HAVE_DB_185_H
32821 #ifndef DB_VERSION_MAJOR
32822 # define DB_VERSION_MAJOR 1
32825 #define NULL ((void *)0)
32829 #if DB_VERSION_MAJOR > 1
32831 int major, minor, patch;
32833 version = db_version( &major, &minor, &patch );
32835 if( major != DB_VERSION_MAJOR ||
32836 minor != DB_VERSION_MINOR ||
32837 patch != DB_VERSION_PATCH )
32839 printf("Berkeley DB version mismatch\n"
32840 "\theader: %s\n\tlibrary: %s\n",
32841 DB_VERSION_STRING, version);
32849 rm -f conftest$ac_exeext
32850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32851 (eval $ac_link) 2>&5
32853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32856 (eval $ac_try) 2>&5
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); }; }; then
32860 ol_cv_berkeley_db_version=yes
32862 echo "$as_me: program exited with status $ac_status" >&5
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32866 ( exit $ac_status )
32867 ol_cv_berkeley_db_version=no
32869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32875 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32876 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32878 if test $ol_cv_berkeley_db_version = no ; then
32879 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32880 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32881 { (exit 1); exit 1; }; }
32884 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32885 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32886 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32887 echo $ECHO_N "(cached) $ECHO_C" >&6
32891 LIBS="$LTHREAD_LIBS $LIBS"
32892 if test $ol_cv_lib_db != yes ; then
32893 LIBS="$ol_cv_lib_db $LIBS"
32896 if test "$cross_compiling" = yes; then
32897 ol_cv_berkeley_db_thread=cross
32899 cat >conftest.$ac_ext <<_ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h. */
32906 #ifdef HAVE_DB_185_H
32912 #define NULL ((void *)0)
32917 u_int32_t flags = DB_CREATE |
32923 #if DB_VERSION_MAJOR > 2
32924 DB_ENV *env = NULL;
32926 rc = db_env_create( &env, 0 );
32928 flags |= DB_INIT_MPOOL;
32929 #ifdef DB_MPOOL_PRIVATE
32930 flags |= DB_MPOOL_PRIVATE;
32934 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32938 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
32939 rc = env->open( env, NULL, flags, 0 );
32941 rc = env->open( env, NULL, NULL, flags, 0 );
32945 rc = env->close( env, 0 );
32949 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32955 memset( &env, '\0', sizeof(env) );
32957 rc = db_appinit( NULL, NULL, &env, flags );
32960 db_appexit( &env );
32963 unlink("__db_mpool.share");
32964 unlink("__db_lock.share");
32970 rm -f conftest$ac_exeext
32971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32972 (eval $ac_link) 2>&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32977 (eval $ac_try) 2>&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); }; }; then
32981 ol_cv_berkeley_db_thread=yes
32983 echo "$as_me: program exited with status $ac_status" >&5
32984 echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32987 ( exit $ac_status )
32988 ol_cv_berkeley_db_thread=no
32990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32996 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
32997 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
32999 if test $ol_cv_berkeley_db_thread != no ; then
33001 cat >>confdefs.h <<\_ACEOF
33002 #define HAVE_BERKELEY_DB_THREAD 1
33012 if test $ol_cv_berkeley_db != no ; then
33014 cat >>confdefs.h <<\_ACEOF
33015 #define HAVE_BERKELEY_DB 1
33019 ol_link_ldbm=berkeley
33020 ol_enable_ldbm_api=berkeley
33022 if test $ol_enable_ldbm_type = hash ; then
33024 cat >>confdefs.h <<\_ACEOF
33025 #define LDBM_USE_DBHASH 1
33030 cat >>confdefs.h <<\_ACEOF
33031 #define LDBM_USE_DBBTREE 1
33036 if test $ol_cv_lib_db != yes ; then
33037 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33043 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33044 if test $ol_link_ldbm != berkeley ; then
33045 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33046 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33047 { (exit 1); exit 1; }; }
33049 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33050 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33051 if test "${ol_cv_bdb_compat+set}" = set; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33055 cat >conftest.$ac_ext <<_ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33064 /* this check could be improved */
33065 #ifndef DB_VERSION_MAJOR
33066 # define DB_VERSION_MAJOR 1
33068 #ifndef DB_VERSION_MINOR
33069 # define DB_VERSION_MINOR 0
33072 /* require 4.2 or later */
33073 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33074 __db_version_compat
33078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33079 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33080 ol_cv_bdb_compat=yes
33082 ol_cv_bdb_compat=no
33087 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33088 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33091 if test $ol_cv_bdb_compat != yes ; then
33092 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33093 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33094 { (exit 1); exit 1; }; }
33099 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33100 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33101 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33102 ol_enable_ldbm_api=none
33105 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33106 echo "$as_me:$LINENO: checking for MDBM library" >&5
33107 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33108 if test "${ol_cv_lib_mdbm+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33113 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33114 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33115 echo $ECHO_N "(cached) $ECHO_C" >&6
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33125 #define mdbm_set_chain innocuous_mdbm_set_chain
33127 /* System header to define __stub macros and hopefully few prototypes,
33128 which can conflict with char mdbm_set_chain (); below.
33129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33130 <limits.h> exists even on freestanding compilers. */
33133 # include <limits.h>
33135 # include <assert.h>
33138 #undef mdbm_set_chain
33140 /* Override any gcc2 internal prototype to avoid an error. */
33145 /* We use char because int might match the return type of a gcc2
33146 builtin and then its argument prototype would still apply. */
33147 char mdbm_set_chain ();
33148 /* The GNU C library defines this for functions which it implements
33149 to always fail with ENOSYS. Some functions are actually named
33150 something starting with __ and the normal name is an alias. */
33151 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33154 char (*f) () = mdbm_set_chain;
33163 return f != mdbm_set_chain;
33168 rm -f conftest.$ac_objext conftest$ac_exeext
33169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33170 (eval $ac_link) 2>conftest.er1
33172 grep -v '^ *+' conftest.er1 >conftest.err
33174 cat conftest.err >&5
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); } &&
33177 { ac_try='test -z "$ac_c_werror_flag"
33178 || test ! -s conftest.err'
33179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33180 (eval $ac_try) 2>&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; } &&
33184 { ac_try='test -s conftest$ac_exeext'
33185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186 (eval $ac_try) 2>&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; }; then
33190 ac_cv_func_mdbm_set_chain=yes
33192 echo "$as_me: failed program was:" >&5
33193 sed 's/^/| /' conftest.$ac_ext >&5
33195 ac_cv_func_mdbm_set_chain=no
33197 rm -f conftest.err conftest.$ac_objext \
33198 conftest$ac_exeext conftest.$ac_ext
33200 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33201 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33202 if test $ac_cv_func_mdbm_set_chain = yes; then
33206 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33207 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33208 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33209 echo $ECHO_N "(cached) $ECHO_C" >&6
33211 ac_check_lib_save_LIBS=$LIBS
33212 LIBS="-lmdbm $LIBS"
33213 cat >conftest.$ac_ext <<_ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h. */
33220 /* Override any gcc2 internal prototype to avoid an error. */
33224 /* We use char because int might match the return type of a gcc2
33225 builtin and then its argument prototype would still apply. */
33226 char mdbm_set_chain ();
33235 rm -f conftest.$ac_objext conftest$ac_exeext
33236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33237 (eval $ac_link) 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
33244 { ac_try='test -z "$ac_c_werror_flag"
33245 || test ! -s conftest.err'
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; } &&
33251 { ac_try='test -s conftest$ac_exeext'
33252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253 (eval $ac_try) 2>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; }; then
33257 ac_cv_lib_mdbm_mdbm_set_chain=yes
33259 echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33262 ac_cv_lib_mdbm_mdbm_set_chain=no
33264 rm -f conftest.err conftest.$ac_objext \
33265 conftest$ac_exeext conftest.$ac_ext
33266 LIBS=$ac_check_lib_save_LIBS
33268 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33269 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33270 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33271 ol_cv_lib_mdbm=-lmdbm
33282 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33283 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33287 for ac_header in mdbm.h
33289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33291 echo "$as_me:$LINENO: checking for $ac_header" >&5
33292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33299 # Is the header compilable?
33300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33308 $ac_includes_default
33309 #include <$ac_header>
33311 rm -f conftest.$ac_objext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33313 (eval $ac_compile) 2>conftest.er1
33315 grep -v '^ *+' conftest.er1 >conftest.err
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_c_werror_flag"
33321 || test ! -s conftest.err'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; } &&
33327 { ac_try='test -s conftest.$ac_objext'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 ac_header_compiler=yes
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 ac_header_compiler=no
33340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33342 echo "${ECHO_T}$ac_header_compiler" >&6
33344 # Is the header present?
33345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33347 cat >conftest.$ac_ext <<_ACEOF
33350 cat confdefs.h >>conftest.$ac_ext
33351 cat >>conftest.$ac_ext <<_ACEOF
33352 /* end confdefs.h. */
33353 #include <$ac_header>
33355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33358 grep -v '^ *+' conftest.er1 >conftest.err
33360 cat conftest.err >&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } >/dev/null; then
33363 if test -s conftest.err; then
33364 ac_cpp_err=$ac_c_preproc_warn_flag
33365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33372 if test -z "$ac_cpp_err"; then
33373 ac_header_preproc=yes
33375 echo "$as_me: failed program was:" >&5
33376 sed 's/^/| /' conftest.$ac_ext >&5
33378 ac_header_preproc=no
33380 rm -f conftest.err conftest.$ac_ext
33381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33382 echo "${ECHO_T}$ac_header_preproc" >&6
33384 # So? What about this header?
33385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33391 ac_header_preproc=yes
33394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33408 ## ------------------------------------------ ##
33409 ## Report this to the AC_PACKAGE_NAME lists. ##
33410 ## ------------------------------------------ ##
33413 sed "s/^/$as_me: WARNING: /" >&2
33416 echo "$as_me:$LINENO: checking for $ac_header" >&5
33417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33421 eval "$as_ac_Header=\$ac_header_preproc"
33423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33428 cat >>confdefs.h <<_ACEOF
33429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33436 echo "$as_me:$LINENO: checking for db" >&5
33437 echo $ECHO_N "checking for db... $ECHO_C" >&6
33438 if test "${ol_cv_mdbm+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33442 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33449 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33450 echo "${ECHO_T}$ol_cv_mdbm" >&6
33451 if test $ol_cv_mdbm = yes ; then
33453 cat >>confdefs.h <<\_ACEOF
33454 #define HAVE_MDBM 1
33460 if test $ol_cv_mdbm = yes ; then
33462 ol_enable_ldbm_api=mdbm
33463 if test $ol_cv_lib_mdbm != yes ; then
33464 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33469 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33470 echo "$as_me:$LINENO: checking for GDBM library" >&5
33471 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33472 if test "${ol_cv_lib_gdbm+set}" = set; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33476 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33477 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33478 if test "${ac_cv_func_gdbm_open+set}" = set; then
33479 echo $ECHO_N "(cached) $ECHO_C" >&6
33481 cat >conftest.$ac_ext <<_ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33487 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33489 #define gdbm_open innocuous_gdbm_open
33491 /* System header to define __stub macros and hopefully few prototypes,
33492 which can conflict with char gdbm_open (); below.
33493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33494 <limits.h> exists even on freestanding compilers. */
33497 # include <limits.h>
33499 # include <assert.h>
33504 /* Override any gcc2 internal prototype to avoid an error. */
33509 /* We use char because int might match the return type of a gcc2
33510 builtin and then its argument prototype would still apply. */
33512 /* The GNU C library defines this for functions which it implements
33513 to always fail with ENOSYS. Some functions are actually named
33514 something starting with __ and the normal name is an alias. */
33515 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33518 char (*f) () = gdbm_open;
33527 return f != gdbm_open;
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534 (eval $ac_link) 2>conftest.er1
33536 grep -v '^ *+' conftest.er1 >conftest.err
33538 cat conftest.err >&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } &&
33541 { ac_try='test -z "$ac_c_werror_flag"
33542 || test ! -s conftest.err'
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; } &&
33548 { ac_try='test -s conftest$ac_exeext'
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 ac_cv_func_gdbm_open=yes
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 ac_cv_func_gdbm_open=no
33561 rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
33564 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33565 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33566 if test $ac_cv_func_gdbm_open = yes; then
33570 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33571 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33572 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33573 echo $ECHO_N "(cached) $ECHO_C" >&6
33575 ac_check_lib_save_LIBS=$LIBS
33576 LIBS="-lgdbm $LIBS"
33577 cat >conftest.$ac_ext <<_ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h. */
33584 /* Override any gcc2 internal prototype to avoid an error. */
33588 /* We use char because int might match the return type of a gcc2
33589 builtin and then its argument prototype would still apply. */
33599 rm -f conftest.$ac_objext conftest$ac_exeext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33601 (eval $ac_link) 2>conftest.er1
33603 grep -v '^ *+' conftest.er1 >conftest.err
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag"
33609 || test ! -s conftest.err'
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest$ac_exeext'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 ac_cv_lib_gdbm_gdbm_open=yes
33623 echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33626 ac_cv_lib_gdbm_gdbm_open=no
33628 rm -f conftest.err conftest.$ac_objext \
33629 conftest$ac_exeext conftest.$ac_ext
33630 LIBS=$ac_check_lib_save_LIBS
33632 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33633 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33634 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33635 ol_cv_lib_gdbm=-lgdbm
33646 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33647 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33651 for ac_header in gdbm.h
33653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33655 echo "$as_me:$LINENO: checking for $ac_header" >&5
33656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33663 # Is the header compilable?
33664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33666 cat >conftest.$ac_ext <<_ACEOF
33669 cat confdefs.h >>conftest.$ac_ext
33670 cat >>conftest.$ac_ext <<_ACEOF
33671 /* end confdefs.h. */
33672 $ac_includes_default
33673 #include <$ac_header>
33675 rm -f conftest.$ac_objext
33676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33677 (eval $ac_compile) 2>conftest.er1
33679 grep -v '^ *+' conftest.er1 >conftest.err
33681 cat conftest.err >&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } &&
33684 { ac_try='test -z "$ac_c_werror_flag"
33685 || test ! -s conftest.err'
33686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687 (eval $ac_try) 2>&5
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; } &&
33691 { ac_try='test -s conftest.$ac_objext'
33692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33693 (eval $ac_try) 2>&5
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); }; }; then
33697 ac_header_compiler=yes
33699 echo "$as_me: failed program was:" >&5
33700 sed 's/^/| /' conftest.$ac_ext >&5
33702 ac_header_compiler=no
33704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33706 echo "${ECHO_T}$ac_header_compiler" >&6
33708 # Is the header present?
33709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33711 cat >conftest.$ac_ext <<_ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h. */
33717 #include <$ac_header>
33719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33722 grep -v '^ *+' conftest.er1 >conftest.err
33724 cat conftest.err >&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } >/dev/null; then
33727 if test -s conftest.err; then
33728 ac_cpp_err=$ac_c_preproc_warn_flag
33729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33736 if test -z "$ac_cpp_err"; then
33737 ac_header_preproc=yes
33739 echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33742 ac_header_preproc=no
33744 rm -f conftest.err conftest.$ac_ext
33745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33746 echo "${ECHO_T}$ac_header_preproc" >&6
33748 # So? What about this header?
33749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33755 ac_header_preproc=yes
33758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33772 ## ------------------------------------------ ##
33773 ## Report this to the AC_PACKAGE_NAME lists. ##
33774 ## ------------------------------------------ ##
33777 sed "s/^/$as_me: WARNING: /" >&2
33780 echo "$as_me:$LINENO: checking for $ac_header" >&5
33781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33783 echo $ECHO_N "(cached) $ECHO_C" >&6
33785 eval "$as_ac_Header=\$ac_header_preproc"
33787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33792 cat >>confdefs.h <<_ACEOF
33793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33800 echo "$as_me:$LINENO: checking for db" >&5
33801 echo $ECHO_N "checking for db... $ECHO_C" >&6
33802 if test "${ol_cv_gdbm+set}" = set; then
33803 echo $ECHO_N "(cached) $ECHO_C" >&6
33806 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33813 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33814 echo "${ECHO_T}$ol_cv_gdbm" >&6
33815 if test $ol_cv_gdbm = yes ; then
33817 cat >>confdefs.h <<\_ACEOF
33818 #define HAVE_GDBM 1
33824 if test $ol_cv_gdbm = yes ; then
33826 ol_enable_ldbm_api=gdbm
33828 if test $ol_cv_lib_gdbm != yes ; then
33829 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33834 if test $ol_enable_ldbm_api = ndbm ; then
33835 echo "$as_me:$LINENO: checking for NDBM library" >&5
33836 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33837 if test "${ol_cv_lib_ndbm+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 echo "$as_me:$LINENO: checking for dbm_open" >&5
33842 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33843 if test "${ac_cv_func_dbm_open+set}" = set; then
33844 echo $ECHO_N "(cached) $ECHO_C" >&6
33846 cat >conftest.$ac_ext <<_ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h. */
33852 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33854 #define dbm_open innocuous_dbm_open
33856 /* System header to define __stub macros and hopefully few prototypes,
33857 which can conflict with char dbm_open (); below.
33858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33859 <limits.h> exists even on freestanding compilers. */
33862 # include <limits.h>
33864 # include <assert.h>
33869 /* Override any gcc2 internal prototype to avoid an error. */
33874 /* We use char because int might match the return type of a gcc2
33875 builtin and then its argument prototype would still apply. */
33877 /* The GNU C library defines this for functions which it implements
33878 to always fail with ENOSYS. Some functions are actually named
33879 something starting with __ and the normal name is an alias. */
33880 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33883 char (*f) () = dbm_open;
33892 return f != dbm_open;
33897 rm -f conftest.$ac_objext conftest$ac_exeext
33898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33899 (eval $ac_link) 2>conftest.er1
33901 grep -v '^ *+' conftest.er1 >conftest.err
33903 cat conftest.err >&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); } &&
33906 { ac_try='test -z "$ac_c_werror_flag"
33907 || test ! -s conftest.err'
33908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33909 (eval $ac_try) 2>&5
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; } &&
33913 { ac_try='test -s conftest$ac_exeext'
33914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33915 (eval $ac_try) 2>&5
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); }; }; then
33919 ac_cv_func_dbm_open=yes
33921 echo "$as_me: failed program was:" >&5
33922 sed 's/^/| /' conftest.$ac_ext >&5
33924 ac_cv_func_dbm_open=no
33926 rm -f conftest.err conftest.$ac_objext \
33927 conftest$ac_exeext conftest.$ac_ext
33929 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33930 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33931 if test $ac_cv_func_dbm_open = yes; then
33935 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33936 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33937 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33938 echo $ECHO_N "(cached) $ECHO_C" >&6
33940 ac_check_lib_save_LIBS=$LIBS
33941 LIBS="-lndbm $LIBS"
33942 cat >conftest.$ac_ext <<_ACEOF
33945 cat confdefs.h >>conftest.$ac_ext
33946 cat >>conftest.$ac_ext <<_ACEOF
33947 /* end confdefs.h. */
33949 /* Override any gcc2 internal prototype to avoid an error. */
33953 /* We use char because int might match the return type of a gcc2
33954 builtin and then its argument prototype would still apply. */
33964 rm -f conftest.$ac_objext conftest$ac_exeext
33965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33966 (eval $ac_link) 2>conftest.er1
33968 grep -v '^ *+' conftest.er1 >conftest.err
33970 cat conftest.err >&5
33971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33972 (exit $ac_status); } &&
33973 { ac_try='test -z "$ac_c_werror_flag"
33974 || test ! -s conftest.err'
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; } &&
33980 { ac_try='test -s conftest$ac_exeext'
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986 ac_cv_lib_ndbm_dbm_open=yes
33988 echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33991 ac_cv_lib_ndbm_dbm_open=no
33993 rm -f conftest.err conftest.$ac_objext \
33994 conftest$ac_exeext conftest.$ac_ext
33995 LIBS=$ac_check_lib_save_LIBS
33997 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33998 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33999 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34000 ol_cv_lib_ndbm=-lndbm
34003 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34004 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34005 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34006 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 ac_check_lib_save_LIBS=$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_dbm_dbm_open=yes
34056 echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34059 ac_cv_lib_dbm_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_dbm_dbm_open" >&5
34066 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34067 if test $ac_cv_lib_dbm_dbm_open = yes; then
34068 ol_cv_lib_ndbm=-ldbm
34081 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34082 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34086 for ac_header in ndbm.h
34088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34090 echo "$as_me:$LINENO: checking for $ac_header" >&5
34091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34098 # Is the header compilable?
34099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34101 cat >conftest.$ac_ext <<_ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h. */
34107 $ac_includes_default
34108 #include <$ac_header>
34110 rm -f conftest.$ac_objext
34111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34112 (eval $ac_compile) 2>conftest.er1
34114 grep -v '^ *+' conftest.er1 >conftest.err
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } &&
34119 { ac_try='test -z "$ac_c_werror_flag"
34120 || test ! -s conftest.err'
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; } &&
34126 { ac_try='test -s conftest.$ac_objext'
34127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128 (eval $ac_try) 2>&5
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); }; }; then
34132 ac_header_compiler=yes
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34137 ac_header_compiler=no
34139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34141 echo "${ECHO_T}$ac_header_compiler" >&6
34143 # Is the header present?
34144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34146 cat >conftest.$ac_ext <<_ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h. */
34152 #include <$ac_header>
34154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34157 grep -v '^ *+' conftest.er1 >conftest.err
34159 cat conftest.err >&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } >/dev/null; then
34162 if test -s conftest.err; then
34163 ac_cpp_err=$ac_c_preproc_warn_flag
34164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34171 if test -z "$ac_cpp_err"; then
34172 ac_header_preproc=yes
34174 echo "$as_me: failed program was:" >&5
34175 sed 's/^/| /' conftest.$ac_ext >&5
34177 ac_header_preproc=no
34179 rm -f conftest.err conftest.$ac_ext
34180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34181 echo "${ECHO_T}$ac_header_preproc" >&6
34183 # So? What about this header?
34184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34190 ac_header_preproc=yes
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34207 ## ------------------------------------------ ##
34208 ## Report this to the AC_PACKAGE_NAME lists. ##
34209 ## ------------------------------------------ ##
34212 sed "s/^/$as_me: WARNING: /" >&2
34215 echo "$as_me:$LINENO: checking for $ac_header" >&5
34216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34218 echo $ECHO_N "(cached) $ECHO_C" >&6
34220 eval "$as_ac_Header=\$ac_header_preproc"
34222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34227 cat >>confdefs.h <<_ACEOF
34228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34235 echo "$as_me:$LINENO: checking for db" >&5
34236 echo $ECHO_N "checking for db... $ECHO_C" >&6
34237 if test "${ol_cv_ndbm+set}" = set; then
34238 echo $ECHO_N "(cached) $ECHO_C" >&6
34241 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34248 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34249 echo "${ECHO_T}$ol_cv_ndbm" >&6
34250 if test $ol_cv_ndbm = yes ; then
34252 cat >>confdefs.h <<\_ACEOF
34253 #define HAVE_NDBM 1
34259 if test $ol_cv_ndbm = yes ; then
34261 ol_enable_ldbm_api=ndbm
34263 if test $ol_cv_lib_ndbm != yes ; then
34264 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34269 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34270 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34271 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34272 { (exit 1); exit 1; }; }
34275 if test $ol_enable_bdb = yes ||
34276 test $ol_enable_hdb = yes ||
34277 test $ol_enable_ldbm = yes ; then
34278 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34282 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34283 BUILD_LIBS_DYNAMIC=shared
34285 cat >>confdefs.h <<\_ACEOF
34286 #define LDAP_LIBS_DYNAMIC 1
34291 BUILD_LIBS_DYNAMIC=static
34295 if test $ol_enable_wrappers != no ; then
34297 for ac_header in tcpd.h
34299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34301 echo "$as_me:$LINENO: checking for $ac_header" >&5
34302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34309 # Is the header compilable?
34310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34312 cat >conftest.$ac_ext <<_ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h. */
34318 $ac_includes_default
34319 #include <$ac_header>
34321 rm -f conftest.$ac_objext
34322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34323 (eval $ac_compile) 2>conftest.er1
34325 grep -v '^ *+' conftest.er1 >conftest.err
34327 cat conftest.err >&5
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } &&
34330 { ac_try='test -z "$ac_c_werror_flag"
34331 || test ! -s conftest.err'
34332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333 (eval $ac_try) 2>&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; } &&
34337 { ac_try='test -s conftest.$ac_objext'
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; }; then
34343 ac_header_compiler=yes
34345 echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34348 ac_header_compiler=no
34350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34352 echo "${ECHO_T}$ac_header_compiler" >&6
34354 # Is the header present?
34355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 #include <$ac_header>
34365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34368 grep -v '^ *+' conftest.er1 >conftest.err
34370 cat conftest.err >&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); } >/dev/null; then
34373 if test -s conftest.err; then
34374 ac_cpp_err=$ac_c_preproc_warn_flag
34375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34382 if test -z "$ac_cpp_err"; then
34383 ac_header_preproc=yes
34385 echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34388 ac_header_preproc=no
34390 rm -f conftest.err conftest.$ac_ext
34391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34392 echo "${ECHO_T}$ac_header_preproc" >&6
34394 # So? What about this header?
34395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34401 ac_header_preproc=yes
34404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34418 ## ------------------------------------------ ##
34419 ## Report this to the AC_PACKAGE_NAME lists. ##
34420 ## ------------------------------------------ ##
34423 sed "s/^/$as_me: WARNING: /" >&2
34426 echo "$as_me:$LINENO: checking for $ac_header" >&5
34427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34429 echo $ECHO_N "(cached) $ECHO_C" >&6
34431 eval "$as_ac_Header=\$ac_header_preproc"
34433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34438 cat >>confdefs.h <<_ACEOF
34439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34442 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34443 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34445 LIBS="$LIBS -lwrap"
34446 cat >conftest.$ac_ext <<_ACEOF
34449 cat confdefs.h >>conftest.$ac_ext
34450 cat >>conftest.$ac_ext <<_ACEOF
34451 /* end confdefs.h. */
34454 int allow_severity = 0;
34455 int deny_severity = 0;
34457 struct request_info *req;
34469 rm -f conftest.$ac_objext conftest$ac_exeext
34470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34471 (eval $ac_link) 2>conftest.er1
34473 grep -v '^ *+' conftest.er1 >conftest.err
34475 cat conftest.err >&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
34478 { ac_try='test -z "$ac_c_werror_flag"
34479 || test ! -s conftest.err'
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; } &&
34485 { ac_try='test -s conftest$ac_exeext'
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; }; then
34491 echo "$as_me:$LINENO: result: -lwrap" >&5
34492 echo "${ECHO_T}-lwrap" >&6
34496 echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34501 cat >conftest.$ac_ext <<_ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h. */
34509 int allow_severity = 0;
34510 int deny_severity = 0;
34512 struct request_info *req;
34524 rm -f conftest.$ac_objext conftest$ac_exeext
34525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34526 (eval $ac_link) 2>conftest.er1
34528 grep -v '^ *+' conftest.er1 >conftest.err
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
34533 { ac_try='test -z "$ac_c_werror_flag"
34534 || test ! -s conftest.err'
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; } &&
34540 { ac_try='test -s conftest$ac_exeext'
34541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34542 (eval $ac_try) 2>&5
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); }; }; then
34546 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34547 echo "${ECHO_T}-lwrap -lnsl" >&6
34549 LIBS="$save_LIBS -lnsl"
34551 echo "$as_me: failed program was:" >&5
34552 sed 's/^/| /' conftest.$ac_ext >&5
34555 echo "$as_me:$LINENO: result: no" >&5
34556 echo "${ECHO_T}no" >&6
34560 rm -f conftest.err conftest.$ac_objext \
34561 conftest$ac_exeext conftest.$ac_ext
34563 rm -f conftest.err conftest.$ac_objext \
34564 conftest$ac_exeext conftest.$ac_ext
34572 if test $have_wrappers = yes ; then
34574 cat >>confdefs.h <<\_ACEOF
34575 #define HAVE_TCPD 1
34579 elif test $ol_enable_wrappers = yes ; then
34580 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34581 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34582 { (exit 1); exit 1; }; }
34584 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34585 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34590 if test $ol_enable_syslog != no ; then
34591 echo "$as_me:$LINENO: checking for openlog" >&5
34592 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34593 if test "${ac_cv_func_openlog+set}" = set; then
34594 echo $ECHO_N "(cached) $ECHO_C" >&6
34596 cat >conftest.$ac_ext <<_ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34604 #define openlog innocuous_openlog
34606 /* System header to define __stub macros and hopefully few prototypes,
34607 which can conflict with char openlog (); below.
34608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34609 <limits.h> exists even on freestanding compilers. */
34612 # include <limits.h>
34614 # include <assert.h>
34619 /* Override any gcc2 internal prototype to avoid an error. */
34624 /* We use char because int might match the return type of a gcc2
34625 builtin and then its argument prototype would still apply. */
34627 /* The GNU C library defines this for functions which it implements
34628 to always fail with ENOSYS. Some functions are actually named
34629 something starting with __ and the normal name is an alias. */
34630 #if defined (__stub_openlog) || defined (__stub___openlog)
34633 char (*f) () = openlog;
34642 return f != openlog;
34647 rm -f conftest.$ac_objext conftest$ac_exeext
34648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34649 (eval $ac_link) 2>conftest.er1
34651 grep -v '^ *+' conftest.er1 >conftest.err
34653 cat conftest.err >&5
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); } &&
34656 { ac_try='test -z "$ac_c_werror_flag"
34657 || test ! -s conftest.err'
34658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659 (eval $ac_try) 2>&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); }; } &&
34663 { ac_try='test -s conftest$ac_exeext'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_func_openlog=yes
34671 echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34674 ac_cv_func_openlog=no
34676 rm -f conftest.err conftest.$ac_objext \
34677 conftest$ac_exeext conftest.$ac_ext
34679 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34680 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34682 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34683 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34684 echo "$as_me: error: could not find syslog" >&2;}
34685 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34687 ol_enable_syslog=$ac_cv_func_openlog
34691 if test $ol_enable_sql != no ; then
34694 for ac_header in sql.h sqlext.h
34696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34698 echo "$as_me:$LINENO: checking for $ac_header" >&5
34699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34701 echo $ECHO_N "(cached) $ECHO_C" >&6
34703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34706 # Is the header compilable?
34707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34715 $ac_includes_default
34716 #include <$ac_header>
34718 rm -f conftest.$ac_objext
34719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34720 (eval $ac_compile) 2>conftest.er1
34722 grep -v '^ *+' conftest.er1 >conftest.err
34724 cat conftest.err >&5
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } &&
34727 { ac_try='test -z "$ac_c_werror_flag"
34728 || test ! -s conftest.err'
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; } &&
34734 { ac_try='test -s conftest.$ac_objext'
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; }; then
34740 ac_header_compiler=yes
34742 echo "$as_me: failed program was:" >&5
34743 sed 's/^/| /' conftest.$ac_ext >&5
34745 ac_header_compiler=no
34747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34749 echo "${ECHO_T}$ac_header_compiler" >&6
34751 # Is the header present?
34752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34754 cat >conftest.$ac_ext <<_ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h. */
34760 #include <$ac_header>
34762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34765 grep -v '^ *+' conftest.er1 >conftest.err
34767 cat conftest.err >&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } >/dev/null; then
34770 if test -s conftest.err; then
34771 ac_cpp_err=$ac_c_preproc_warn_flag
34772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34779 if test -z "$ac_cpp_err"; then
34780 ac_header_preproc=yes
34782 echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34785 ac_header_preproc=no
34787 rm -f conftest.err conftest.$ac_ext
34788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34789 echo "${ECHO_T}$ac_header_preproc" >&6
34791 # So? What about this header?
34792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34798 ac_header_preproc=yes
34801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34815 ## ------------------------------------------ ##
34816 ## Report this to the AC_PACKAGE_NAME lists. ##
34817 ## ------------------------------------------ ##
34820 sed "s/^/$as_me: WARNING: /" >&2
34823 echo "$as_me:$LINENO: checking for $ac_header" >&5
34824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34826 echo $ECHO_N "(cached) $ECHO_C" >&6
34828 eval "$as_ac_Header=\$ac_header_preproc"
34830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34835 cat >>confdefs.h <<_ACEOF
34836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34841 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34842 echo "$as_me: error: could not locate SQL headers" >&2;}
34843 { (exit 1); exit 1; }; }
34851 LIBS="$LTHREAD_LIBS"
34853 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34854 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34855 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34856 echo $ECHO_N "(cached) $ECHO_C" >&6
34858 ac_check_lib_save_LIBS=$LIBS
34859 LIBS="-liodbc $LIBS"
34860 cat >conftest.$ac_ext <<_ACEOF
34863 cat confdefs.h >>conftest.$ac_ext
34864 cat >>conftest.$ac_ext <<_ACEOF
34865 /* end confdefs.h. */
34867 /* Override any gcc2 internal prototype to avoid an error. */
34871 /* We use char because int might match the return type of a gcc2
34872 builtin and then its argument prototype would still apply. */
34873 char SQLDriverConnect ();
34877 SQLDriverConnect ();
34882 rm -f conftest.$ac_objext conftest$ac_exeext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34884 (eval $ac_link) 2>conftest.er1
34886 grep -v '^ *+' conftest.er1 >conftest.err
34888 cat conftest.err >&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); } &&
34891 { ac_try='test -z "$ac_c_werror_flag"
34892 || test ! -s conftest.err'
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; } &&
34898 { ac_try='test -s conftest$ac_exeext'
34899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900 (eval $ac_try) 2>&5
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); }; }; then
34904 ac_cv_lib_iodbc_SQLDriverConnect=yes
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34909 ac_cv_lib_iodbc_SQLDriverConnect=no
34911 rm -f conftest.err conftest.$ac_objext \
34912 conftest$ac_exeext conftest.$ac_ext
34913 LIBS=$ac_check_lib_save_LIBS
34915 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34916 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34917 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34923 if test $have_iodbc = yes ; then
34924 ol_link_sql="-liodbc"
34926 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34927 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34928 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34929 echo $ECHO_N "(cached) $ECHO_C" >&6
34931 ac_check_lib_save_LIBS=$LIBS
34932 LIBS="-lodbc $LIBS"
34933 cat >conftest.$ac_ext <<_ACEOF
34936 cat confdefs.h >>conftest.$ac_ext
34937 cat >>conftest.$ac_ext <<_ACEOF
34938 /* end confdefs.h. */
34940 /* Override any gcc2 internal prototype to avoid an error. */
34944 /* We use char because int might match the return type of a gcc2
34945 builtin and then its argument prototype would still apply. */
34946 char SQLDriverConnect ();
34950 SQLDriverConnect ();
34955 rm -f conftest.$ac_objext conftest$ac_exeext
34956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34957 (eval $ac_link) 2>conftest.er1
34959 grep -v '^ *+' conftest.er1 >conftest.err
34961 cat conftest.err >&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); } &&
34964 { ac_try='test -z "$ac_c_werror_flag"
34965 || test ! -s conftest.err'
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; } &&
34971 { ac_try='test -s conftest$ac_exeext'
34972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973 (eval $ac_try) 2>&5
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; }; then
34977 ac_cv_lib_odbc_SQLDriverConnect=yes
34979 echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.$ac_ext >&5
34982 ac_cv_lib_odbc_SQLDriverConnect=no
34984 rm -f conftest.err conftest.$ac_objext \
34985 conftest$ac_exeext conftest.$ac_ext
34986 LIBS=$ac_check_lib_save_LIBS
34988 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
34989 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
34990 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
34996 if test $have_odbc = yes ; then
34997 ol_link_sql="-lodbc"
35003 if test $ol_link_sql != no ; then
35004 SLAPD_SQL_LIBS="$ol_link_sql"
35006 elif test $ol_enable_sql != auto ; then
35007 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35008 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35009 { (exit 1); exit 1; }; }
35016 if test $ol_with_cyrus_sasl != no ; then
35019 for ac_header in sasl/sasl.h sasl.h
35021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35023 echo "$as_me:$LINENO: checking for $ac_header" >&5
35024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35031 # Is the header compilable?
35032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35034 cat >conftest.$ac_ext <<_ACEOF
35037 cat confdefs.h >>conftest.$ac_ext
35038 cat >>conftest.$ac_ext <<_ACEOF
35039 /* end confdefs.h. */
35040 $ac_includes_default
35041 #include <$ac_header>
35043 rm -f conftest.$ac_objext
35044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35045 (eval $ac_compile) 2>conftest.er1
35047 grep -v '^ *+' conftest.er1 >conftest.err
35049 cat conftest.err >&5
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } &&
35052 { ac_try='test -z "$ac_c_werror_flag"
35053 || test ! -s conftest.err'
35054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055 (eval $ac_try) 2>&5
35057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058 (exit $ac_status); }; } &&
35059 { ac_try='test -s conftest.$ac_objext'
35060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061 (eval $ac_try) 2>&5
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); }; }; then
35065 ac_header_compiler=yes
35067 echo "$as_me: failed program was:" >&5
35068 sed 's/^/| /' conftest.$ac_ext >&5
35070 ac_header_compiler=no
35072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35074 echo "${ECHO_T}$ac_header_compiler" >&6
35076 # Is the header present?
35077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35079 cat >conftest.$ac_ext <<_ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h. */
35085 #include <$ac_header>
35087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35090 grep -v '^ *+' conftest.er1 >conftest.err
35092 cat conftest.err >&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } >/dev/null; then
35095 if test -s conftest.err; then
35096 ac_cpp_err=$ac_c_preproc_warn_flag
35097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35104 if test -z "$ac_cpp_err"; then
35105 ac_header_preproc=yes
35107 echo "$as_me: failed program was:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35110 ac_header_preproc=no
35112 rm -f conftest.err conftest.$ac_ext
35113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35114 echo "${ECHO_T}$ac_header_preproc" >&6
35116 # So? What about this header?
35117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35123 ac_header_preproc=yes
35126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35140 ## ------------------------------------------ ##
35141 ## Report this to the AC_PACKAGE_NAME lists. ##
35142 ## ------------------------------------------ ##
35145 sed "s/^/$as_me: WARNING: /" >&2
35148 echo "$as_me:$LINENO: checking for $ac_header" >&5
35149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35153 eval "$as_ac_Header=\$ac_header_preproc"
35155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35160 cat >>confdefs.h <<_ACEOF
35161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35169 if test $ac_cv_header_sasl_sasl_h = yes ||
35170 test $ac_cv_header_sasl_h = yes; then
35171 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35172 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35173 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35174 echo $ECHO_N "(cached) $ECHO_C" >&6
35176 ac_check_lib_save_LIBS=$LIBS
35177 LIBS="-lsasl2 $LIBS"
35178 cat >conftest.$ac_ext <<_ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h. */
35185 /* Override any gcc2 internal prototype to avoid an error. */
35189 /* We use char because int might match the return type of a gcc2
35190 builtin and then its argument prototype would still apply. */
35191 char sasl_client_init ();
35195 sasl_client_init ();
35200 rm -f conftest.$ac_objext conftest$ac_exeext
35201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35202 (eval $ac_link) 2>conftest.er1
35204 grep -v '^ *+' conftest.er1 >conftest.err
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } &&
35209 { ac_try='test -z "$ac_c_werror_flag"
35210 || test ! -s conftest.err'
35211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212 (eval $ac_try) 2>&5
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); }; } &&
35216 { ac_try='test -s conftest$ac_exeext'
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; }; then
35222 ac_cv_lib_sasl2_sasl_client_init=yes
35224 echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35227 ac_cv_lib_sasl2_sasl_client_init=no
35229 rm -f conftest.err conftest.$ac_objext \
35230 conftest$ac_exeext conftest.$ac_ext
35231 LIBS=$ac_check_lib_save_LIBS
35233 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35234 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35235 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35236 ol_link_sasl="-lsasl2"
35238 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35239 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35240 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35241 echo $ECHO_N "(cached) $ECHO_C" >&6
35243 ac_check_lib_save_LIBS=$LIBS
35244 LIBS="-lsasl $LIBS"
35245 cat >conftest.$ac_ext <<_ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h. */
35252 /* Override any gcc2 internal prototype to avoid an error. */
35256 /* We use char because int might match the return type of a gcc2
35257 builtin and then its argument prototype would still apply. */
35258 char sasl_client_init ();
35262 sasl_client_init ();
35267 rm -f conftest.$ac_objext conftest$ac_exeext
35268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35269 (eval $ac_link) 2>conftest.er1
35271 grep -v '^ *+' conftest.er1 >conftest.err
35273 cat conftest.err >&5
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } &&
35276 { ac_try='test -z "$ac_c_werror_flag"
35277 || test ! -s conftest.err'
35278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35279 (eval $ac_try) 2>&5
35281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282 (exit $ac_status); }; } &&
35283 { ac_try='test -s conftest$ac_exeext'
35284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285 (eval $ac_try) 2>&5
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); }; }; then
35289 ac_cv_lib_sasl_sasl_client_init=yes
35291 echo "$as_me: failed program was:" >&5
35292 sed 's/^/| /' conftest.$ac_ext >&5
35294 ac_cv_lib_sasl_sasl_client_init=no
35296 rm -f conftest.err conftest.$ac_objext \
35297 conftest$ac_exeext conftest.$ac_ext
35298 LIBS=$ac_check_lib_save_LIBS
35300 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35301 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35302 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35303 ol_link_sasl="-lsasl"
35310 if test $ol_link_sasl = no ; then
35311 if test $ol_with_cyrus_sasl != auto ; then
35312 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35313 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35314 { (exit 1); exit 1; }; }
35316 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35317 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35318 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35319 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35320 if test $ol_link_tls = no ; then
35321 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35322 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35326 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35327 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35328 if test "${ol_cv_sasl_compat+set}" = set; then
35329 echo $ECHO_N "(cached) $ECHO_C" >&6
35332 cat >conftest.$ac_ext <<_ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h. */
35339 #ifdef HAVE_SASL_SASL_H
35340 #include <sasl/sasl.h>
35345 /* Require 2.1.15+ */
35346 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35347 char *__sasl_compat = "2.2+ or better okay (we guess)";
35348 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35349 && SASL_VERSION_STEP >=15
35350 char *__sasl_compat = "2.1.15+ or better okay";
35354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35355 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35356 ol_cv_sasl_compat=yes
35358 ol_cv_sasl_compat=no
35363 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35364 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35366 if test $ol_cv_sasl_compat = no ; then
35368 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35369 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35370 { (exit 1); exit 1; }; }
35374 cat >>confdefs.h <<\_ACEOF
35375 #define HAVE_CYRUS_SASL 1
35378 SASL_LIBS="$ol_link_sasl"
35379 if test $ol_enable_spasswd != no ; then
35380 ol_link_spasswd=yes
35383 ac_save_LIBS="$LIBS"
35384 LIBS="$LIBS $ol_link_sasl"
35385 echo "$as_me:$LINENO: checking for sasl_version" >&5
35386 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35387 if test "${ac_cv_func_sasl_version+set}" = set; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35390 cat >conftest.$ac_ext <<_ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35398 #define sasl_version innocuous_sasl_version
35400 /* System header to define __stub macros and hopefully few prototypes,
35401 which can conflict with char sasl_version (); below.
35402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35403 <limits.h> exists even on freestanding compilers. */
35406 # include <limits.h>
35408 # include <assert.h>
35411 #undef sasl_version
35413 /* Override any gcc2 internal prototype to avoid an error. */
35418 /* We use char because int might match the return type of a gcc2
35419 builtin and then its argument prototype would still apply. */
35420 char sasl_version ();
35421 /* The GNU C library defines this for functions which it implements
35422 to always fail with ENOSYS. Some functions are actually named
35423 something starting with __ and the normal name is an alias. */
35424 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35427 char (*f) () = sasl_version;
35436 return f != sasl_version;
35441 rm -f conftest.$ac_objext conftest$ac_exeext
35442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35443 (eval $ac_link) 2>conftest.er1
35445 grep -v '^ *+' conftest.er1 >conftest.err
35447 cat conftest.err >&5
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); } &&
35450 { ac_try='test -z "$ac_c_werror_flag"
35451 || test ! -s conftest.err'
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; } &&
35457 { ac_try='test -s conftest$ac_exeext'
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; }; then
35463 ac_cv_func_sasl_version=yes
35465 echo "$as_me: failed program was:" >&5
35466 sed 's/^/| /' conftest.$ac_ext >&5
35468 ac_cv_func_sasl_version=no
35470 rm -f conftest.err conftest.$ac_objext \
35471 conftest$ac_exeext conftest.$ac_ext
35473 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35474 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35475 if test $ac_cv_func_sasl_version = yes; then
35477 cat >>confdefs.h <<\_ACEOF
35478 #define HAVE_SASL_VERSION 1
35483 LIBS="$ac_save_LIBS"
35489 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35490 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35491 if test $ol_link_tls = no ; then
35492 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35493 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35497 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35499 if test -r /dev/urandom ; then
35500 dev="/dev/urandom";
35501 elif test -r /idev/urandom ; then
35502 dev="/idev/urandom";
35503 elif test -r /dev/srandom ; then
35504 dev="/dev/srandom";
35505 elif test -r /dev/random ; then
35507 elif test -r /idev/random ; then
35508 dev="/idev/random";
35511 if test $dev != no ; then
35513 cat >>confdefs.h <<_ACEOF
35514 #define URANDOM_DEVICE "$dev"
35521 if test $ol_with_fetch != no ; then
35523 LIBS="-lfetch -lcom_err $LIBS"
35524 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35525 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35526 if test "${ol_cv_lib_fetch+set}" = set; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35530 cat >conftest.$ac_ext <<_ACEOF
35533 cat confdefs.h >>conftest.$ac_ext
35534 cat >>conftest.$ac_ext <<_ACEOF
35535 /* end confdefs.h. */
35537 #include <sys/param.h>
35543 struct url *u = fetchParseURL("file:///");
35548 rm -f conftest.$ac_objext conftest$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550 (eval $ac_link) 2>conftest.er1
35552 grep -v '^ *+' conftest.er1 >conftest.err
35554 cat conftest.err >&5
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); } &&
35557 { ac_try='test -z "$ac_c_werror_flag"
35558 || test ! -s conftest.err'
35559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560 (eval $ac_try) 2>&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); }; } &&
35564 { ac_try='test -s conftest$ac_exeext'
35565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35566 (eval $ac_try) 2>&5
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); }; }; then
35570 ol_cv_lib_fetch=yes
35572 echo "$as_me: failed program was:" >&5
35573 sed 's/^/| /' conftest.$ac_ext >&5
35577 rm -f conftest.err conftest.$ac_objext \
35578 conftest$ac_exeext conftest.$ac_ext
35580 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35581 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35583 if test $ol_cv_lib_fetch != no ; then
35584 ol_link_fetch="-lfetch -lcom_err"
35586 cat >>confdefs.h <<\_ACEOF
35587 #define HAVE_FETCH 1
35593 if test $ol_cv_lib_fetch != no ; then
35594 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35595 ol_link_fetch=freebsd
35597 elif test $ol_with_fetch != auto ; then
35598 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35599 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35600 { (exit 1); exit 1; }; }
35604 if test $ol_enable_crypt != no ; then
35606 LIBS="$TLS_LIBS $LIBS"
35608 echo "$as_me:$LINENO: checking for crypt" >&5
35609 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35610 if test "${ac_cv_func_crypt+set}" = set; then
35611 echo $ECHO_N "(cached) $ECHO_C" >&6
35613 cat >conftest.$ac_ext <<_ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h. */
35619 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35621 #define crypt innocuous_crypt
35623 /* System header to define __stub macros and hopefully few prototypes,
35624 which can conflict with char crypt (); below.
35625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35626 <limits.h> exists even on freestanding compilers. */
35629 # include <limits.h>
35631 # include <assert.h>
35636 /* Override any gcc2 internal prototype to avoid an error. */
35641 /* We use char because int might match the return type of a gcc2
35642 builtin and then its argument prototype would still apply. */
35644 /* The GNU C library defines this for functions which it implements
35645 to always fail with ENOSYS. Some functions are actually named
35646 something starting with __ and the normal name is an alias. */
35647 #if defined (__stub_crypt) || defined (__stub___crypt)
35650 char (*f) () = crypt;
35664 rm -f conftest.$ac_objext conftest$ac_exeext
35665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35666 (eval $ac_link) 2>conftest.er1
35668 grep -v '^ *+' conftest.er1 >conftest.err
35670 cat conftest.err >&5
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); } &&
35673 { ac_try='test -z "$ac_c_werror_flag"
35674 || test ! -s conftest.err'
35675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35676 (eval $ac_try) 2>&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); }; } &&
35680 { ac_try='test -s conftest$ac_exeext'
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; }; then
35686 ac_cv_func_crypt=yes
35688 echo "$as_me: failed program was:" >&5
35689 sed 's/^/| /' conftest.$ac_ext >&5
35691 ac_cv_func_crypt=no
35693 rm -f conftest.err conftest.$ac_objext \
35694 conftest$ac_exeext conftest.$ac_ext
35696 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35697 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35698 if test $ac_cv_func_crypt = yes; then
35703 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35704 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35705 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35706 echo $ECHO_N "(cached) $ECHO_C" >&6
35708 ac_check_lib_save_LIBS=$LIBS
35709 LIBS="-lcrypt $LIBS"
35710 cat >conftest.$ac_ext <<_ACEOF
35713 cat confdefs.h >>conftest.$ac_ext
35714 cat >>conftest.$ac_ext <<_ACEOF
35715 /* end confdefs.h. */
35717 /* Override any gcc2 internal prototype to avoid an error. */
35721 /* We use char because int might match the return type of a gcc2
35722 builtin and then its argument prototype would still apply. */
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_lib_crypt_crypt=yes
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35759 ac_cv_lib_crypt_crypt=no
35761 rm -f conftest.err conftest.$ac_objext \
35762 conftest$ac_exeext conftest.$ac_ext
35763 LIBS=$ac_check_lib_save_LIBS
35765 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35766 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35767 if test $ac_cv_lib_crypt_crypt = yes; then
35768 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35779 if test $have_crypt = yes ; then
35781 cat >>confdefs.h <<\_ACEOF
35782 #define HAVE_CRYPT 1
35786 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35787 echo "$as_me: WARNING: could not find crypt" >&2;}
35788 if test $ol_enable_crypt = yes ; then
35789 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35790 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35791 { (exit 1); exit 1; }; }
35794 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35795 echo "$as_me: WARNING: disabling crypt support" >&2;}
35800 if test $ol_enable_proctitle != no ; then
35801 echo "$as_me:$LINENO: checking for setproctitle" >&5
35802 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35803 if test "${ac_cv_func_setproctitle+set}" = set; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35806 cat >conftest.$ac_ext <<_ACEOF
35809 cat confdefs.h >>conftest.$ac_ext
35810 cat >>conftest.$ac_ext <<_ACEOF
35811 /* end confdefs.h. */
35812 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35814 #define setproctitle innocuous_setproctitle
35816 /* System header to define __stub macros and hopefully few prototypes,
35817 which can conflict with char setproctitle (); below.
35818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35819 <limits.h> exists even on freestanding compilers. */
35822 # include <limits.h>
35824 # include <assert.h>
35827 #undef setproctitle
35829 /* Override any gcc2 internal prototype to avoid an error. */
35834 /* We use char because int might match the return type of a gcc2
35835 builtin and then its argument prototype would still apply. */
35836 char setproctitle ();
35837 /* The GNU C library defines this for functions which it implements
35838 to always fail with ENOSYS. Some functions are actually named
35839 something starting with __ and the normal name is an alias. */
35840 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35843 char (*f) () = setproctitle;
35852 return f != setproctitle;
35857 rm -f conftest.$ac_objext conftest$ac_exeext
35858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35859 (eval $ac_link) 2>conftest.er1
35861 grep -v '^ *+' conftest.er1 >conftest.err
35863 cat conftest.err >&5
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); } &&
35866 { ac_try='test -z "$ac_c_werror_flag"
35867 || test ! -s conftest.err'
35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869 (eval $ac_try) 2>&5
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; } &&
35873 { ac_try='test -s conftest$ac_exeext'
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; }; then
35879 ac_cv_func_setproctitle=yes
35881 echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35884 ac_cv_func_setproctitle=no
35886 rm -f conftest.err conftest.$ac_objext \
35887 conftest$ac_exeext conftest.$ac_ext
35889 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35890 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35891 if test $ac_cv_func_setproctitle = yes; then
35892 have_setproctitle=yes
35895 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35896 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35897 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35898 echo $ECHO_N "(cached) $ECHO_C" >&6
35900 ac_check_lib_save_LIBS=$LIBS
35901 LIBS="-lutil $LIBS"
35902 cat >conftest.$ac_ext <<_ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h. */
35909 /* Override any gcc2 internal prototype to avoid an error. */
35913 /* We use char because int might match the return type of a gcc2
35914 builtin and then its argument prototype would still apply. */
35915 char setproctitle ();
35924 rm -f conftest.$ac_objext conftest$ac_exeext
35925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35926 (eval $ac_link) 2>conftest.er1
35928 grep -v '^ *+' conftest.er1 >conftest.err
35930 cat conftest.err >&5
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); } &&
35933 { ac_try='test -z "$ac_c_werror_flag"
35934 || test ! -s conftest.err'
35935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35936 (eval $ac_try) 2>&5
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); }; } &&
35940 { ac_try='test -s conftest$ac_exeext'
35941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942 (eval $ac_try) 2>&5
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); }; }; then
35946 ac_cv_lib_util_setproctitle=yes
35948 echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35951 ac_cv_lib_util_setproctitle=no
35953 rm -f conftest.err conftest.$ac_objext \
35954 conftest$ac_exeext conftest.$ac_ext
35955 LIBS=$ac_check_lib_save_LIBS
35957 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
35958 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
35959 if test $ac_cv_lib_util_setproctitle = yes; then
35960 have_setproctitle=yes
35961 LUTIL_LIBS="$LUTIL_LIBS -lutil"
35963 have_setproctitle=no
35965 "setproctitle.$ac_objext" | \
35966 *" setproctitle.$ac_objext" | \
35967 "setproctitle.$ac_objext "* | \
35968 *" setproctitle.$ac_objext "* ) ;;
35969 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
35972 LIBSRCS="$LIBSRCS setproctitle.c"
35978 if test $have_setproctitle = yes ; then
35980 cat >>confdefs.h <<\_ACEOF
35981 #define HAVE_SETPROCTITLE 1
35987 if test $ol_enable_slp != no ; then
35989 for ac_header in slp.h
35991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35993 echo "$as_me:$LINENO: checking for $ac_header" >&5
35994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35996 echo $ECHO_N "(cached) $ECHO_C" >&6
35998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001 # Is the header compilable?
36002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36004 cat >conftest.$ac_ext <<_ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h. */
36010 $ac_includes_default
36011 #include <$ac_header>
36013 rm -f conftest.$ac_objext
36014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36015 (eval $ac_compile) 2>conftest.er1
36017 grep -v '^ *+' conftest.er1 >conftest.err
36019 cat conftest.err >&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } &&
36022 { ac_try='test -z "$ac_c_werror_flag"
36023 || test ! -s conftest.err'
36024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025 (eval $ac_try) 2>&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); }; } &&
36029 { ac_try='test -s conftest.$ac_objext'
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; }; then
36035 ac_header_compiler=yes
36037 echo "$as_me: failed program was:" >&5
36038 sed 's/^/| /' conftest.$ac_ext >&5
36040 ac_header_compiler=no
36042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36044 echo "${ECHO_T}$ac_header_compiler" >&6
36046 # Is the header present?
36047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36049 cat >conftest.$ac_ext <<_ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h. */
36055 #include <$ac_header>
36057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36060 grep -v '^ *+' conftest.er1 >conftest.err
36062 cat conftest.err >&5
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } >/dev/null; then
36065 if test -s conftest.err; then
36066 ac_cpp_err=$ac_c_preproc_warn_flag
36067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36074 if test -z "$ac_cpp_err"; then
36075 ac_header_preproc=yes
36077 echo "$as_me: failed program was:" >&5
36078 sed 's/^/| /' conftest.$ac_ext >&5
36080 ac_header_preproc=no
36082 rm -f conftest.err conftest.$ac_ext
36083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36084 echo "${ECHO_T}$ac_header_preproc" >&6
36086 # So? What about this header?
36087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36093 ac_header_preproc=yes
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36110 ## ------------------------------------------ ##
36111 ## Report this to the AC_PACKAGE_NAME lists. ##
36112 ## ------------------------------------------ ##
36115 sed "s/^/$as_me: WARNING: /" >&2
36118 echo "$as_me:$LINENO: checking for $ac_header" >&5
36119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36121 echo $ECHO_N "(cached) $ECHO_C" >&6
36123 eval "$as_ac_Header=\$ac_header_preproc"
36125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36130 cat >>confdefs.h <<_ACEOF
36131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36139 if test $ac_cv_header_slp_h = yes ; then
36140 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36141 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36142 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36143 echo $ECHO_N "(cached) $ECHO_C" >&6
36145 ac_check_lib_save_LIBS=$LIBS
36147 cat >conftest.$ac_ext <<_ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h. */
36154 /* Override any gcc2 internal prototype to avoid an error. */
36158 /* We use char because int might match the return type of a gcc2
36159 builtin and then its argument prototype would still apply. */
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36171 (eval $ac_link) 2>conftest.er1
36173 grep -v '^ *+' conftest.er1 >conftest.err
36175 cat conftest.err >&5
36176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177 (exit $ac_status); } &&
36178 { ac_try='test -z "$ac_c_werror_flag"
36179 || test ! -s conftest.err'
36180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181 (eval $ac_try) 2>&5
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 (exit $ac_status); }; } &&
36185 { ac_try='test -s conftest$ac_exeext'
36186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36187 (eval $ac_try) 2>&5
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); }; }; then
36191 ac_cv_lib_slp_SLPOpen=yes
36193 echo "$as_me: failed program was:" >&5
36194 sed 's/^/| /' conftest.$ac_ext >&5
36196 ac_cv_lib_slp_SLPOpen=no
36198 rm -f conftest.err conftest.$ac_objext \
36199 conftest$ac_exeext conftest.$ac_ext
36200 LIBS=$ac_check_lib_save_LIBS
36202 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36203 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36204 if test $ac_cv_lib_slp_SLPOpen = yes; then
36210 if test $have_slp = yes ; then
36212 cat >>confdefs.h <<\_ACEOF
36216 SLAPD_SLP_LIBS=-lslp
36219 elif test $ol_enable_slp = yes ; then
36220 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36221 echo "$as_me: error: SLP not found" >&2;}
36222 { (exit 1); exit 1; }; }
36226 if test "$ol_with_multiple_precision" != "no" ; then
36232 for ac_header in openssl/bn.h bn.h
36234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36236 echo "$as_me:$LINENO: checking for $ac_header" >&5
36237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36239 echo $ECHO_N "(cached) $ECHO_C" >&6
36241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36244 # Is the header compilable?
36245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36247 cat >conftest.$ac_ext <<_ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h. */
36253 $ac_includes_default
36254 #include <$ac_header>
36256 rm -f conftest.$ac_objext
36257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258 (eval $ac_compile) 2>conftest.er1
36260 grep -v '^ *+' conftest.er1 >conftest.err
36262 cat conftest.err >&5
36263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264 (exit $ac_status); } &&
36265 { ac_try='test -z "$ac_c_werror_flag"
36266 || test ! -s conftest.err'
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; } &&
36272 { ac_try='test -s conftest.$ac_objext'
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; }; then
36278 ac_header_compiler=yes
36280 echo "$as_me: failed program was:" >&5
36281 sed 's/^/| /' conftest.$ac_ext >&5
36283 ac_header_compiler=no
36285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36287 echo "${ECHO_T}$ac_header_compiler" >&6
36289 # Is the header present?
36290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36292 cat >conftest.$ac_ext <<_ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h. */
36298 #include <$ac_header>
36300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36303 grep -v '^ *+' conftest.er1 >conftest.err
36305 cat conftest.err >&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); } >/dev/null; then
36308 if test -s conftest.err; then
36309 ac_cpp_err=$ac_c_preproc_warn_flag
36310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36317 if test -z "$ac_cpp_err"; then
36318 ac_header_preproc=yes
36320 echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36323 ac_header_preproc=no
36325 rm -f conftest.err conftest.$ac_ext
36326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36327 echo "${ECHO_T}$ac_header_preproc" >&6
36329 # So? What about this header?
36330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36336 ac_header_preproc=yes
36339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36353 ## ------------------------------------------ ##
36354 ## Report this to the AC_PACKAGE_NAME lists. ##
36355 ## ------------------------------------------ ##
36358 sed "s/^/$as_me: WARNING: /" >&2
36361 echo "$as_me:$LINENO: checking for $ac_header" >&5
36362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36364 echo $ECHO_N "(cached) $ECHO_C" >&6
36366 eval "$as_ac_Header=\$ac_header_preproc"
36368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36373 cat >>confdefs.h <<_ACEOF
36374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36383 for ac_header in openssl/crypto.h crypto.h
36385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36387 echo "$as_me:$LINENO: checking for $ac_header" >&5
36388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36390 echo $ECHO_N "(cached) $ECHO_C" >&6
36392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36395 # Is the header compilable?
36396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36398 cat >conftest.$ac_ext <<_ACEOF
36401 cat confdefs.h >>conftest.$ac_ext
36402 cat >>conftest.$ac_ext <<_ACEOF
36403 /* end confdefs.h. */
36404 $ac_includes_default
36405 #include <$ac_header>
36407 rm -f conftest.$ac_objext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409 (eval $ac_compile) 2>conftest.er1
36411 grep -v '^ *+' conftest.er1 >conftest.err
36413 cat conftest.err >&5
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } &&
36416 { ac_try='test -z "$ac_c_werror_flag"
36417 || test ! -s conftest.err'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest.$ac_objext'
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 ac_header_compiler=yes
36431 echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36434 ac_header_compiler=no
36436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36438 echo "${ECHO_T}$ac_header_compiler" >&6
36440 # Is the header present?
36441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36443 cat >conftest.$ac_ext <<_ACEOF
36446 cat confdefs.h >>conftest.$ac_ext
36447 cat >>conftest.$ac_ext <<_ACEOF
36448 /* end confdefs.h. */
36449 #include <$ac_header>
36451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36454 grep -v '^ *+' conftest.er1 >conftest.err
36456 cat conftest.err >&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } >/dev/null; then
36459 if test -s conftest.err; then
36460 ac_cpp_err=$ac_c_preproc_warn_flag
36461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36468 if test -z "$ac_cpp_err"; then
36469 ac_header_preproc=yes
36471 echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36474 ac_header_preproc=no
36476 rm -f conftest.err conftest.$ac_ext
36477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36478 echo "${ECHO_T}$ac_header_preproc" >&6
36480 # So? What about this header?
36481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36487 ac_header_preproc=yes
36490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36504 ## ------------------------------------------ ##
36505 ## Report this to the AC_PACKAGE_NAME lists. ##
36506 ## ------------------------------------------ ##
36509 sed "s/^/$as_me: WARNING: /" >&2
36512 echo "$as_me:$LINENO: checking for $ac_header" >&5
36513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36515 echo $ECHO_N "(cached) $ECHO_C" >&6
36517 eval "$as_ac_Header=\$ac_header_preproc"
36519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36524 cat >>confdefs.h <<_ACEOF
36525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36533 for ac_header in gmp.h
36535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36537 echo "$as_me:$LINENO: checking for $ac_header" >&5
36538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36540 echo $ECHO_N "(cached) $ECHO_C" >&6
36542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36545 # Is the header compilable?
36546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36548 cat >conftest.$ac_ext <<_ACEOF
36551 cat confdefs.h >>conftest.$ac_ext
36552 cat >>conftest.$ac_ext <<_ACEOF
36553 /* end confdefs.h. */
36554 $ac_includes_default
36555 #include <$ac_header>
36557 rm -f conftest.$ac_objext
36558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36559 (eval $ac_compile) 2>conftest.er1
36561 grep -v '^ *+' conftest.er1 >conftest.err
36563 cat conftest.err >&5
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); } &&
36566 { ac_try='test -z "$ac_c_werror_flag"
36567 || test ! -s conftest.err'
36568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569 (eval $ac_try) 2>&5
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; } &&
36573 { ac_try='test -s conftest.$ac_objext'
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; }; then
36579 ac_header_compiler=yes
36581 echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36584 ac_header_compiler=no
36586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36588 echo "${ECHO_T}$ac_header_compiler" >&6
36590 # Is the header present?
36591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36593 cat >conftest.$ac_ext <<_ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 #include <$ac_header>
36601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36604 grep -v '^ *+' conftest.er1 >conftest.err
36606 cat conftest.err >&5
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); } >/dev/null; then
36609 if test -s conftest.err; then
36610 ac_cpp_err=$ac_c_preproc_warn_flag
36611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36618 if test -z "$ac_cpp_err"; then
36619 ac_header_preproc=yes
36621 echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36624 ac_header_preproc=no
36626 rm -f conftest.err conftest.$ac_ext
36627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36628 echo "${ECHO_T}$ac_header_preproc" >&6
36630 # So? What about this header?
36631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36637 ac_header_preproc=yes
36640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36654 ## ------------------------------------------ ##
36655 ## Report this to the AC_PACKAGE_NAME lists. ##
36656 ## ------------------------------------------ ##
36659 sed "s/^/$as_me: WARNING: /" >&2
36662 echo "$as_me:$LINENO: checking for $ac_header" >&5
36663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36665 echo $ECHO_N "(cached) $ECHO_C" >&6
36667 eval "$as_ac_Header=\$ac_header_preproc"
36669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36674 cat >>confdefs.h <<_ACEOF
36675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36683 if test "$ol_with_tls" = "found" ; then
36685 ol_have_crypto_h=no
36687 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36688 test "$ac_cv_header_bn_h" = "yes" ; then
36692 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36693 test "$ac_cv_header_crypto_h" = "yes" ; then
36694 ol_have_crypto_h=yes
36697 if test "$ol_have_bn_h" = "yes" &&
36698 test "$ol_have_crypto_h" = "yes" ; then
36703 if test $ac_cv_header_gmp_h = yes ; then
36704 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36705 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36706 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36707 echo $ECHO_N "(cached) $ECHO_C" >&6
36709 ac_check_lib_save_LIBS=$LIBS
36711 cat >conftest.$ac_ext <<_ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h. */
36718 /* Override any gcc2 internal prototype to avoid an error. */
36722 /* We use char because int might match the return type of a gcc2
36723 builtin and then its argument prototype would still apply. */
36724 char __gmpz_add_ui ();
36733 rm -f conftest.$ac_objext conftest$ac_exeext
36734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36735 (eval $ac_link) 2>conftest.er1
36737 grep -v '^ *+' conftest.er1 >conftest.err
36739 cat conftest.err >&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); } &&
36742 { ac_try='test -z "$ac_c_werror_flag"
36743 || test ! -s conftest.err'
36744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36745 (eval $ac_try) 2>&5
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); }; } &&
36749 { ac_try='test -s conftest$ac_exeext'
36750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36751 (eval $ac_try) 2>&5
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); }; }; then
36755 ac_cv_lib_gmp___gmpz_add_ui=yes
36757 echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36760 ac_cv_lib_gmp___gmpz_add_ui=no
36762 rm -f conftest.err conftest.$ac_objext \
36763 conftest$ac_exeext conftest.$ac_ext
36764 LIBS=$ac_check_lib_save_LIBS
36766 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36767 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36768 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36774 if test $have_gmp = yes ; then
36779 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36780 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36782 ol_mp_support="none"
36783 case "$ol_with_multiple_precision" in
36785 if test "$ol_have_bignum" = "yes" ; then
36786 ol_mp_support="bignum"
36788 if test "$ol_have_gmp" = "yes" ; then
36789 ol_mp_support="gmp"
36794 if test "$ol_have_bignum" != "yes" ; then
36795 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36796 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36797 { (exit 1); exit 1; }; }
36799 ol_mp_support="bignum"
36802 if test "$ol_have_gmp" != "yes" ; then
36803 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36804 echo "$as_me: error: GMP not available" >&2;}
36805 { (exit 1); exit 1; }; }
36807 ol_mp_support="gmp"
36810 if test "$ol_have_bignum" = "yes" ; then
36811 ol_mp_support="bignum"
36812 elif test "$ol_have_gmp" = "yes" ; then
36813 ol_mp_support="gmp"
36815 { { echo "$as_me:$LINENO: error: not available" >&5
36816 echo "$as_me: error: not available" >&2;}
36817 { (exit 1); exit 1; }; }
36822 case "$ol_mp_support" in
36825 cat >>confdefs.h <<\_ACEOF
36826 #define HAVE_BIGNUM 1
36832 cat >>confdefs.h <<\_ACEOF
36836 SLAPD_GMP_LIBS=-lgmp
36842 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36843 echo "${ECHO_T}$ol_mp_support" >&6
36847 echo "$as_me:$LINENO: checking for mode_t" >&5
36848 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36849 if test "${ac_cv_type_mode_t+set}" = set; then
36850 echo $ECHO_N "(cached) $ECHO_C" >&6
36852 cat >conftest.$ac_ext <<_ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h. */
36858 $ac_includes_default
36864 if (sizeof (mode_t))
36870 rm -f conftest.$ac_objext
36871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36872 (eval $ac_compile) 2>conftest.er1
36874 grep -v '^ *+' conftest.er1 >conftest.err
36876 cat conftest.err >&5
36877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878 (exit $ac_status); } &&
36879 { ac_try='test -z "$ac_c_werror_flag"
36880 || test ! -s conftest.err'
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; } &&
36886 { ac_try='test -s conftest.$ac_objext'
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; }; then
36892 ac_cv_type_mode_t=yes
36894 echo "$as_me: failed program was:" >&5
36895 sed 's/^/| /' conftest.$ac_ext >&5
36897 ac_cv_type_mode_t=no
36899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36901 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36902 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36903 if test $ac_cv_type_mode_t = yes; then
36907 cat >>confdefs.h <<_ACEOF
36913 echo "$as_me:$LINENO: checking for off_t" >&5
36914 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36915 if test "${ac_cv_type_off_t+set}" = set; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36918 cat >conftest.$ac_ext <<_ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h. */
36924 $ac_includes_default
36930 if (sizeof (off_t))
36936 rm -f conftest.$ac_objext
36937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36938 (eval $ac_compile) 2>conftest.er1
36940 grep -v '^ *+' conftest.er1 >conftest.err
36942 cat conftest.err >&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } &&
36945 { ac_try='test -z "$ac_c_werror_flag"
36946 || test ! -s conftest.err'
36947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36948 (eval $ac_try) 2>&5
36950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951 (exit $ac_status); }; } &&
36952 { ac_try='test -s conftest.$ac_objext'
36953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36954 (eval $ac_try) 2>&5
36956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957 (exit $ac_status); }; }; then
36958 ac_cv_type_off_t=yes
36960 echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36963 ac_cv_type_off_t=no
36965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36967 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36968 echo "${ECHO_T}$ac_cv_type_off_t" >&6
36969 if test $ac_cv_type_off_t = yes; then
36973 cat >>confdefs.h <<_ACEOF
36979 echo "$as_me:$LINENO: checking for pid_t" >&5
36980 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
36981 if test "${ac_cv_type_pid_t+set}" = set; then
36982 echo $ECHO_N "(cached) $ECHO_C" >&6
36984 cat >conftest.$ac_ext <<_ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h. */
36990 $ac_includes_default
36996 if (sizeof (pid_t))
37002 rm -f conftest.$ac_objext
37003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37004 (eval $ac_compile) 2>conftest.er1
37006 grep -v '^ *+' conftest.er1 >conftest.err
37008 cat conftest.err >&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } &&
37011 { ac_try='test -z "$ac_c_werror_flag"
37012 || test ! -s conftest.err'
37013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014 (eval $ac_try) 2>&5
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); }; } &&
37018 { ac_try='test -s conftest.$ac_objext'
37019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020 (eval $ac_try) 2>&5
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); }; }; then
37024 ac_cv_type_pid_t=yes
37026 echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37029 ac_cv_type_pid_t=no
37031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37033 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37034 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37035 if test $ac_cv_type_pid_t = yes; then
37039 cat >>confdefs.h <<_ACEOF
37045 echo "$as_me:$LINENO: checking for ssize_t" >&5
37046 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37047 if test "${ac_cv_type_ssize_t+set}" = set; then
37048 echo $ECHO_N "(cached) $ECHO_C" >&6
37050 cat >conftest.$ac_ext <<_ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37056 $ac_includes_default
37062 if (sizeof (ssize_t))
37068 rm -f conftest.$ac_objext
37069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37070 (eval $ac_compile) 2>conftest.er1
37072 grep -v '^ *+' conftest.er1 >conftest.err
37074 cat conftest.err >&5
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); } &&
37077 { ac_try='test -z "$ac_c_werror_flag"
37078 || test ! -s conftest.err'
37079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080 (eval $ac_try) 2>&5
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); }; } &&
37084 { ac_try='test -s conftest.$ac_objext'
37085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086 (eval $ac_try) 2>&5
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); }; }; then
37090 ac_cv_type_ssize_t=yes
37092 echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37095 ac_cv_type_ssize_t=no
37097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37099 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37100 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37101 if test $ac_cv_type_ssize_t = yes; then
37105 cat >>confdefs.h <<_ACEOF
37106 #define ssize_t signed int
37111 echo "$as_me:$LINENO: checking for caddr_t" >&5
37112 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37113 if test "${ac_cv_type_caddr_t+set}" = set; then
37114 echo $ECHO_N "(cached) $ECHO_C" >&6
37116 cat >conftest.$ac_ext <<_ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h. */
37122 $ac_includes_default
37128 if (sizeof (caddr_t))
37134 rm -f conftest.$ac_objext
37135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37136 (eval $ac_compile) 2>conftest.er1
37138 grep -v '^ *+' conftest.er1 >conftest.err
37140 cat conftest.err >&5
37141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); } &&
37143 { ac_try='test -z "$ac_c_werror_flag"
37144 || test ! -s conftest.err'
37145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37146 (eval $ac_try) 2>&5
37148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); }; } &&
37150 { ac_try='test -s conftest.$ac_objext'
37151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152 (eval $ac_try) 2>&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); }; }; then
37156 ac_cv_type_caddr_t=yes
37158 echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37161 ac_cv_type_caddr_t=no
37163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37165 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37166 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37167 if test $ac_cv_type_caddr_t = yes; then
37171 cat >>confdefs.h <<_ACEOF
37172 #define caddr_t char *
37177 echo "$as_me:$LINENO: checking for size_t" >&5
37178 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37179 if test "${ac_cv_type_size_t+set}" = set; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37182 cat >conftest.$ac_ext <<_ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h. */
37188 $ac_includes_default
37194 if (sizeof (size_t))
37200 rm -f conftest.$ac_objext
37201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37202 (eval $ac_compile) 2>conftest.er1
37204 grep -v '^ *+' conftest.er1 >conftest.err
37206 cat conftest.err >&5
37207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208 (exit $ac_status); } &&
37209 { ac_try='test -z "$ac_c_werror_flag"
37210 || test ! -s conftest.err'
37211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37212 (eval $ac_try) 2>&5
37214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215 (exit $ac_status); }; } &&
37216 { ac_try='test -s conftest.$ac_objext'
37217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218 (eval $ac_try) 2>&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); }; }; then
37222 ac_cv_type_size_t=yes
37224 echo "$as_me: failed program was:" >&5
37225 sed 's/^/| /' conftest.$ac_ext >&5
37227 ac_cv_type_size_t=no
37229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37231 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37232 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37233 if test $ac_cv_type_size_t = yes; then
37237 cat >>confdefs.h <<_ACEOF
37238 #define size_t unsigned
37244 echo "$as_me:$LINENO: checking for long long" >&5
37245 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37246 if test "${ac_cv_type_long_long+set}" = set; then
37247 echo $ECHO_N "(cached) $ECHO_C" >&6
37249 cat >conftest.$ac_ext <<_ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h. */
37255 $ac_includes_default
37259 if ((long long *) 0)
37261 if (sizeof (long long))
37267 rm -f conftest.$ac_objext
37268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37269 (eval $ac_compile) 2>conftest.er1
37271 grep -v '^ *+' conftest.er1 >conftest.err
37273 cat conftest.err >&5
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); } &&
37276 { ac_try='test -z "$ac_c_werror_flag"
37277 || test ! -s conftest.err'
37278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37279 (eval $ac_try) 2>&5
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); }; } &&
37283 { ac_try='test -s conftest.$ac_objext'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
37289 ac_cv_type_long_long=yes
37291 echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.$ac_ext >&5
37294 ac_cv_type_long_long=no
37296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37298 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37299 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37300 if test $ac_cv_type_long_long = yes; then
37302 cat >>confdefs.h <<_ACEOF
37303 #define HAVE_LONG_LONG 1
37309 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37310 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37311 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37312 echo $ECHO_N "(cached) $ECHO_C" >&6
37314 cat >conftest.$ac_ext <<_ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h. */
37320 $ac_includes_default
37324 if ((ptrdiff_t *) 0)
37326 if (sizeof (ptrdiff_t))
37332 rm -f conftest.$ac_objext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37334 (eval $ac_compile) 2>conftest.er1
37336 grep -v '^ *+' conftest.er1 >conftest.err
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
37341 { ac_try='test -z "$ac_c_werror_flag"
37342 || test ! -s conftest.err'
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest.$ac_objext'
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 ac_cv_type_ptrdiff_t=yes
37356 echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37359 ac_cv_type_ptrdiff_t=no
37361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37363 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37364 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37365 if test $ac_cv_type_ptrdiff_t = yes; then
37367 cat >>confdefs.h <<_ACEOF
37368 #define HAVE_PTRDIFF_T 1
37375 echo "$as_me:$LINENO: checking for socklen_t" >&5
37376 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37377 if test "${ac_cv_type_socklen_t+set}" = set; then
37378 echo $ECHO_N "(cached) $ECHO_C" >&6
37380 cat >conftest.$ac_ext <<_ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h. */
37386 $ac_includes_default
37387 #ifdef HAVE_SYS_SOCKET_H
37388 #include <sys/socket.h>
37395 if ((socklen_t *) 0)
37397 if (sizeof (socklen_t))
37403 rm -f conftest.$ac_objext
37404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37405 (eval $ac_compile) 2>conftest.er1
37407 grep -v '^ *+' conftest.er1 >conftest.err
37409 cat conftest.err >&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); } &&
37412 { ac_try='test -z "$ac_c_werror_flag"
37413 || test ! -s conftest.err'
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; } &&
37419 { ac_try='test -s conftest.$ac_objext'
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; }; then
37425 ac_cv_type_socklen_t=yes
37427 echo "$as_me: failed program was:" >&5
37428 sed 's/^/| /' conftest.$ac_ext >&5
37430 ac_cv_type_socklen_t=no
37432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37434 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37435 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37436 if test $ac_cv_type_socklen_t = yes; then
37440 cat >>confdefs.h <<_ACEOF
37441 #define socklen_t int
37447 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37448 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37449 if test "${ac_cv_type_signal+set}" = set; then
37450 echo $ECHO_N "(cached) $ECHO_C" >&6
37452 cat >conftest.$ac_ext <<_ACEOF
37455 cat confdefs.h >>conftest.$ac_ext
37456 cat >>conftest.$ac_ext <<_ACEOF
37457 /* end confdefs.h. */
37458 #include <sys/types.h>
37459 #include <signal.h>
37464 extern "C" void (*signal (int, void (*)(int)))(int);
37466 void (*signal ()) ();
37477 rm -f conftest.$ac_objext
37478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37479 (eval $ac_compile) 2>conftest.er1
37481 grep -v '^ *+' conftest.er1 >conftest.err
37483 cat conftest.err >&5
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); } &&
37486 { ac_try='test -z "$ac_c_werror_flag"
37487 || test ! -s conftest.err'
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); }; } &&
37493 { ac_try='test -s conftest.$ac_objext'
37494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495 (eval $ac_try) 2>&5
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); }; }; then
37499 ac_cv_type_signal=void
37501 echo "$as_me: failed program was:" >&5
37502 sed 's/^/| /' conftest.$ac_ext >&5
37504 ac_cv_type_signal=int
37506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37508 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37509 echo "${ECHO_T}$ac_cv_type_signal" >&6
37511 cat >>confdefs.h <<_ACEOF
37512 #define RETSIGTYPE $ac_cv_type_signal
37517 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37518 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37519 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37520 echo $ECHO_N "(cached) $ECHO_C" >&6
37522 cat >conftest.$ac_ext <<_ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37528 $ac_includes_default
37529 #include <signal.h>
37535 if ((sig_atomic_t *) 0)
37537 if (sizeof (sig_atomic_t))
37543 rm -f conftest.$ac_objext
37544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37545 (eval $ac_compile) 2>conftest.er1
37547 grep -v '^ *+' conftest.er1 >conftest.err
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } &&
37552 { ac_try='test -z "$ac_c_werror_flag"
37553 || test ! -s conftest.err'
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; } &&
37559 { ac_try='test -s conftest.$ac_objext'
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; }; then
37565 ac_cv_type_sig_atomic_t=yes
37567 echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.$ac_ext >&5
37570 ac_cv_type_sig_atomic_t=no
37572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37574 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37575 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37576 if test $ac_cv_type_sig_atomic_t = yes; then
37580 cat >>confdefs.h <<_ACEOF
37581 #define sig_atomic_t int
37587 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37588 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37589 if test "${ac_cv_type_uid_t+set}" = set; then
37590 echo $ECHO_N "(cached) $ECHO_C" >&6
37592 cat >conftest.$ac_ext <<_ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h. */
37598 #include <sys/types.h>
37601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37602 $EGREP "uid_t" >/dev/null 2>&1; then
37603 ac_cv_type_uid_t=yes
37605 ac_cv_type_uid_t=no
37610 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37611 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37612 if test $ac_cv_type_uid_t = no; then
37614 cat >>confdefs.h <<\_ACEOF
37619 cat >>confdefs.h <<\_ACEOF
37626 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37627 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37628 if test "${ac_cv_header_time+set}" = set; then
37629 echo $ECHO_N "(cached) $ECHO_C" >&6
37631 cat >conftest.$ac_ext <<_ACEOF
37634 cat confdefs.h >>conftest.$ac_ext
37635 cat >>conftest.$ac_ext <<_ACEOF
37636 /* end confdefs.h. */
37637 #include <sys/types.h>
37638 #include <sys/time.h>
37644 if ((struct tm *) 0)
37650 rm -f conftest.$ac_objext
37651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37652 (eval $ac_compile) 2>conftest.er1
37654 grep -v '^ *+' conftest.er1 >conftest.err
37656 cat conftest.err >&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); } &&
37659 { ac_try='test -z "$ac_c_werror_flag"
37660 || test ! -s conftest.err'
37661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662 (eval $ac_try) 2>&5
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); }; } &&
37666 { ac_try='test -s conftest.$ac_objext'
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; }; then
37672 ac_cv_header_time=yes
37674 echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37677 ac_cv_header_time=no
37679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37682 echo "${ECHO_T}$ac_cv_header_time" >&6
37683 if test $ac_cv_header_time = yes; then
37685 cat >>confdefs.h <<\_ACEOF
37686 #define TIME_WITH_SYS_TIME 1
37691 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37692 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37693 if test "${ac_cv_struct_tm+set}" = set; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37696 cat >conftest.$ac_ext <<_ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702 #include <sys/types.h>
37708 struct tm *tp; tp->tm_sec;
37713 rm -f conftest.$ac_objext
37714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37715 (eval $ac_compile) 2>conftest.er1
37717 grep -v '^ *+' conftest.er1 >conftest.err
37719 cat conftest.err >&5
37720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721 (exit $ac_status); } &&
37722 { ac_try='test -z "$ac_c_werror_flag"
37723 || test ! -s conftest.err'
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725 (eval $ac_try) 2>&5
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; } &&
37729 { ac_try='test -s conftest.$ac_objext'
37730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37731 (eval $ac_try) 2>&5
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); }; }; then
37735 ac_cv_struct_tm=time.h
37737 echo "$as_me: failed program was:" >&5
37738 sed 's/^/| /' conftest.$ac_ext >&5
37740 ac_cv_struct_tm=sys/time.h
37742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37744 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37745 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37746 if test $ac_cv_struct_tm = sys/time.h; then
37748 cat >>confdefs.h <<\_ACEOF
37749 #define TM_IN_SYS_TIME 1
37754 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37755 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37756 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37757 echo $ECHO_N "(cached) $ECHO_C" >&6
37759 cat >conftest.$ac_ext <<_ACEOF
37762 cat confdefs.h >>conftest.$ac_ext
37763 cat >>conftest.$ac_ext <<_ACEOF
37764 /* end confdefs.h. */
37765 $ac_includes_default
37769 static struct stat ac_aggr;
37770 if (ac_aggr.st_blksize)
37776 rm -f conftest.$ac_objext
37777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37778 (eval $ac_compile) 2>conftest.er1
37780 grep -v '^ *+' conftest.er1 >conftest.err
37782 cat conftest.err >&5
37783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784 (exit $ac_status); } &&
37785 { ac_try='test -z "$ac_c_werror_flag"
37786 || test ! -s conftest.err'
37787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37788 (eval $ac_try) 2>&5
37790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791 (exit $ac_status); }; } &&
37792 { ac_try='test -s conftest.$ac_objext'
37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794 (eval $ac_try) 2>&5
37796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); }; }; then
37798 ac_cv_member_struct_stat_st_blksize=yes
37800 echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37803 cat >conftest.$ac_ext <<_ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h. */
37809 $ac_includes_default
37813 static struct stat ac_aggr;
37814 if (sizeof ac_aggr.st_blksize)
37820 rm -f conftest.$ac_objext
37821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37822 (eval $ac_compile) 2>conftest.er1
37824 grep -v '^ *+' conftest.er1 >conftest.err
37826 cat conftest.err >&5
37827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828 (exit $ac_status); } &&
37829 { ac_try='test -z "$ac_c_werror_flag"
37830 || test ! -s conftest.err'
37831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37832 (eval $ac_try) 2>&5
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); }; } &&
37836 { ac_try='test -s conftest.$ac_objext'
37837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37838 (eval $ac_try) 2>&5
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); }; }; then
37842 ac_cv_member_struct_stat_st_blksize=yes
37844 echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37847 ac_cv_member_struct_stat_st_blksize=no
37849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37855 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37857 cat >>confdefs.h <<_ACEOF
37858 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37864 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37865 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37866 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37867 echo $ECHO_N "(cached) $ECHO_C" >&6
37869 cat >conftest.$ac_ext <<_ACEOF
37872 cat confdefs.h >>conftest.$ac_ext
37873 cat >>conftest.$ac_ext <<_ACEOF
37874 /* end confdefs.h. */
37875 $ac_includes_default
37881 static struct passwd ac_aggr;
37882 if (ac_aggr.pw_gecos)
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_passwd_pw_gecos=yes
37912 echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37915 cat >conftest.$ac_ext <<_ACEOF
37918 cat confdefs.h >>conftest.$ac_ext
37919 cat >>conftest.$ac_ext <<_ACEOF
37920 /* end confdefs.h. */
37921 $ac_includes_default
37927 static struct passwd ac_aggr;
37928 if (sizeof ac_aggr.pw_gecos)
37934 rm -f conftest.$ac_objext
37935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37936 (eval $ac_compile) 2>conftest.er1
37938 grep -v '^ *+' conftest.er1 >conftest.err
37940 cat conftest.err >&5
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } &&
37943 { ac_try='test -z "$ac_c_werror_flag"
37944 || test ! -s conftest.err'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; } &&
37950 { ac_try='test -s conftest.$ac_objext'
37951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952 (eval $ac_try) 2>&5
37954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955 (exit $ac_status); }; }; then
37956 ac_cv_member_struct_passwd_pw_gecos=yes
37958 echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37961 ac_cv_member_struct_passwd_pw_gecos=no
37963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
37968 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
37969 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
37971 cat >>confdefs.h <<_ACEOF
37972 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
37978 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
37979 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
37980 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
37981 echo $ECHO_N "(cached) $ECHO_C" >&6
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 (ac_aggr.pw_passwd)
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_passwd=yes
38026 echo "$as_me: failed program was:" >&5
38027 sed 's/^/| /' conftest.$ac_ext >&5
38029 cat >conftest.$ac_ext <<_ACEOF
38032 cat confdefs.h >>conftest.$ac_ext
38033 cat >>conftest.$ac_ext <<_ACEOF
38034 /* end confdefs.h. */
38035 $ac_includes_default
38041 static struct passwd ac_aggr;
38042 if (sizeof ac_aggr.pw_passwd)
38048 rm -f conftest.$ac_objext
38049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38050 (eval $ac_compile) 2>conftest.er1
38052 grep -v '^ *+' conftest.er1 >conftest.err
38054 cat conftest.err >&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } &&
38057 { ac_try='test -z "$ac_c_werror_flag"
38058 || test ! -s conftest.err'
38059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060 (eval $ac_try) 2>&5
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); }; } &&
38064 { ac_try='test -s conftest.$ac_objext'
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; }; then
38070 ac_cv_member_struct_passwd_pw_passwd=yes
38072 echo "$as_me: failed program was:" >&5
38073 sed 's/^/| /' conftest.$ac_ext >&5
38075 ac_cv_member_struct_passwd_pw_passwd=no
38077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38082 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38083 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38085 cat >>confdefs.h <<_ACEOF
38086 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38093 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38094 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38095 if test "${ol_cv_c_upper_lower+set}" = set; then
38096 echo $ECHO_N "(cached) $ECHO_C" >&6
38099 if test "$cross_compiling" = yes; then
38100 ol_cv_c_upper_lower=safe
38102 cat >conftest.$ac_ext <<_ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h. */
38112 if ('C' == toupper('C'))
38118 rm -f conftest$ac_exeext
38119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38120 (eval $ac_link) 2>&5
38122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125 (eval $ac_try) 2>&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); }; }; then
38129 ol_cv_c_upper_lower=no
38131 echo "$as_me: program exited with status $ac_status" >&5
38132 echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38135 ( exit $ac_status )
38136 ol_cv_c_upper_lower=yes
38138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38141 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38142 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38143 if test $ol_cv_c_upper_lower != no ; then
38145 cat >>confdefs.h <<\_ACEOF
38146 #define C_UPPER_LOWER 1
38151 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38152 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38153 if test "${ac_cv_c_const+set}" = set; then
38154 echo $ECHO_N "(cached) $ECHO_C" >&6
38156 cat >conftest.$ac_ext <<_ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h. */
38166 /* FIXME: Include the comments suggested by Paul. */
38167 #ifndef __cplusplus
38168 /* Ultrix mips cc rejects this. */
38169 typedef int charset[2];
38171 /* SunOS 4.1.1 cc rejects this. */
38172 char const *const *ccp;
38174 /* NEC SVR4.0.2 mips cc rejects this. */
38175 struct point {int x, y;};
38176 static struct point const zero = {0,0};
38177 /* AIX XL C 1.02.0.0 rejects this.
38178 It does not let you subtract one const X* pointer from another in
38179 an arm of an if-expression whose if-part is not a constant
38181 const char *g = "string";
38182 ccp = &g + (g ? g-g : 0);
38183 /* HPUX 7.0 cc rejects these. */
38186 ccp = (char const *const *) p;
38187 { /* SCO 3.2v4 cc rejects this. */
38189 char const *s = 0 ? (char *) 0 : (char const *) 0;
38193 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38194 int x[] = {25, 17};
38195 const int *foo = &x[0];
38198 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38199 typedef const int *iptr;
38203 { /* AIX XL C 1.02.0.0 rejects this saying
38204 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38205 struct s { int j; const int *ap[3]; };
38206 struct s *b; b->j = 5;
38208 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38209 const int foo = 10;
38217 rm -f conftest.$ac_objext
38218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38219 (eval $ac_compile) 2>conftest.er1
38221 grep -v '^ *+' conftest.er1 >conftest.err
38223 cat conftest.err >&5
38224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); } &&
38226 { ac_try='test -z "$ac_c_werror_flag"
38227 || test ! -s conftest.err'
38228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229 (eval $ac_try) 2>&5
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); }; } &&
38233 { ac_try='test -s conftest.$ac_objext'
38234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235 (eval $ac_try) 2>&5
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); }; }; then
38241 echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38248 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38249 echo "${ECHO_T}$ac_cv_c_const" >&6
38250 if test $ac_cv_c_const = no; then
38252 cat >>confdefs.h <<\_ACEOF
38258 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38259 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38260 if test "${ol_cv_c_volatile+set}" = set; then
38261 echo $ECHO_N "(cached) $ECHO_C" >&6
38263 cat >conftest.$ac_ext <<_ACEOF
38266 cat confdefs.h >>conftest.$ac_ext
38267 cat >>conftest.$ac_ext <<_ACEOF
38268 /* end confdefs.h. */
38273 volatile int a; int * volatile b = x ? &y : &z;
38274 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38280 rm -f conftest.$ac_objext
38281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38282 (eval $ac_compile) 2>conftest.er1
38284 grep -v '^ *+' conftest.er1 >conftest.err
38286 cat conftest.err >&5
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); } &&
38289 { ac_try='test -z "$ac_c_werror_flag"
38290 || test ! -s conftest.err'
38291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292 (eval $ac_try) 2>&5
38294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295 (exit $ac_status); }; } &&
38296 { ac_try='test -s conftest.$ac_objext'
38297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298 (eval $ac_try) 2>&5
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); }; }; then
38302 ol_cv_c_volatile=yes
38304 echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38307 ol_cv_c_volatile=no
38309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38311 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38312 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38313 if test $ol_cv_c_volatile = yes; then
38317 cat >>confdefs.h <<\_ACEOF
38324 if test $cross_compiling = yes ; then
38325 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38326 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38328 cat >>confdefs.h <<\_ACEOF
38329 #define CROSS_COMPILING 1
38333 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38334 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38335 if test "${ac_cv_c_bigendian+set}" = set; then
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38338 # See if sys/param.h defines the BYTE_ORDER macro.
38339 cat >conftest.$ac_ext <<_ACEOF
38342 cat confdefs.h >>conftest.$ac_ext
38343 cat >>conftest.$ac_ext <<_ACEOF
38344 /* end confdefs.h. */
38345 #include <sys/types.h>
38346 #include <sys/param.h>
38351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38352 bogus endian macros
38359 rm -f conftest.$ac_objext
38360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38361 (eval $ac_compile) 2>conftest.er1
38363 grep -v '^ *+' conftest.er1 >conftest.err
38365 cat conftest.err >&5
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); } &&
38368 { ac_try='test -z "$ac_c_werror_flag"
38369 || test ! -s conftest.err'
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; } &&
38375 { ac_try='test -s conftest.$ac_objext'
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; }; then
38381 # It does; now see whether it defined to BIG_ENDIAN or not.
38382 cat >conftest.$ac_ext <<_ACEOF
38385 cat confdefs.h >>conftest.$ac_ext
38386 cat >>conftest.$ac_ext <<_ACEOF
38387 /* end confdefs.h. */
38388 #include <sys/types.h>
38389 #include <sys/param.h>
38394 #if BYTE_ORDER != BIG_ENDIAN
38402 rm -f conftest.$ac_objext
38403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38404 (eval $ac_compile) 2>conftest.er1
38406 grep -v '^ *+' conftest.er1 >conftest.err
38408 cat conftest.err >&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); } &&
38411 { ac_try='test -z "$ac_c_werror_flag"
38412 || test ! -s conftest.err'
38413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414 (eval $ac_try) 2>&5
38416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417 (exit $ac_status); }; } &&
38418 { ac_try='test -s conftest.$ac_objext'
38419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420 (eval $ac_try) 2>&5
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); }; }; then
38424 ac_cv_c_bigendian=yes
38426 echo "$as_me: failed program was:" >&5
38427 sed 's/^/| /' conftest.$ac_ext >&5
38429 ac_cv_c_bigendian=no
38431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38433 echo "$as_me: failed program was:" >&5
38434 sed 's/^/| /' conftest.$ac_ext >&5
38436 # It does not; compile a test program.
38437 if test "$cross_compiling" = yes; then
38438 # try to guess the endianness by grepping values into an object file
38439 ac_cv_c_bigendian=unknown
38440 cat >conftest.$ac_ext <<_ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h. */
38446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38448 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38451 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38455 _ascii (); _ebcdic ();
38460 rm -f conftest.$ac_objext
38461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38462 (eval $ac_compile) 2>conftest.er1
38464 grep -v '^ *+' conftest.er1 >conftest.err
38466 cat conftest.err >&5
38467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468 (exit $ac_status); } &&
38469 { ac_try='test -z "$ac_c_werror_flag"
38470 || test ! -s conftest.err'
38471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472 (eval $ac_try) 2>&5
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); }; } &&
38476 { ac_try='test -s conftest.$ac_objext'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; }; then
38482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38483 ac_cv_c_bigendian=yes
38485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38486 if test "$ac_cv_c_bigendian" = unknown; then
38487 ac_cv_c_bigendian=no
38489 # finding both strings is unlikely to happen, but who knows?
38490 ac_cv_c_bigendian=unknown
38494 echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38500 cat >conftest.$ac_ext <<_ACEOF
38503 cat confdefs.h >>conftest.$ac_ext
38504 cat >>conftest.$ac_ext <<_ACEOF
38505 /* end confdefs.h. */
38509 /* Are we little or big endian? From Harbison&Steele. */
38513 char c[sizeof (long)];
38516 exit (u.c[sizeof (long) - 1] == 1);
38519 rm -f conftest$ac_exeext
38520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38521 (eval $ac_link) 2>&5
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38526 (eval $ac_try) 2>&5
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); }; }; then
38530 ac_cv_c_bigendian=no
38532 echo "$as_me: program exited with status $ac_status" >&5
38533 echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38536 ( exit $ac_status )
38537 ac_cv_c_bigendian=yes
38539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38544 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38545 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38546 case $ac_cv_c_bigendian in
38549 cat >>confdefs.h <<\_ACEOF
38550 #define WORDS_BIGENDIAN 1
38556 { { echo "$as_me:$LINENO: error: unknown endianness
38557 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38558 echo "$as_me: error: unknown endianness
38559 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38560 { (exit 1); exit 1; }; } ;;
38565 echo "$as_me:$LINENO: checking for short" >&5
38566 echo $ECHO_N "checking for short... $ECHO_C" >&6
38567 if test "${ac_cv_type_short+set}" = set; then
38568 echo $ECHO_N "(cached) $ECHO_C" >&6
38570 cat >conftest.$ac_ext <<_ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38576 $ac_includes_default
38582 if (sizeof (short))
38588 rm -f conftest.$ac_objext
38589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38590 (eval $ac_compile) 2>conftest.er1
38592 grep -v '^ *+' conftest.er1 >conftest.err
38594 cat conftest.err >&5
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); } &&
38597 { ac_try='test -z "$ac_c_werror_flag"
38598 || test ! -s conftest.err'
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; } &&
38604 { ac_try='test -s conftest.$ac_objext'
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; }; then
38610 ac_cv_type_short=yes
38612 echo "$as_me: failed program was:" >&5
38613 sed 's/^/| /' conftest.$ac_ext >&5
38615 ac_cv_type_short=no
38617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38619 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38620 echo "${ECHO_T}$ac_cv_type_short" >&6
38622 echo "$as_me:$LINENO: checking size of short" >&5
38623 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38624 if test "${ac_cv_sizeof_short+set}" = set; then
38625 echo $ECHO_N "(cached) $ECHO_C" >&6
38627 if test "$ac_cv_type_short" = yes; then
38628 # The cast to unsigned long works around a bug in the HP C Compiler
38629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38631 # This bug is HP SR number 8606223364.
38632 if test "$cross_compiling" = yes; then
38633 # Depending upon the size, compute the lo and hi bounds.
38634 cat >conftest.$ac_ext <<_ACEOF
38637 cat confdefs.h >>conftest.$ac_ext
38638 cat >>conftest.$ac_ext <<_ACEOF
38639 /* end confdefs.h. */
38640 $ac_includes_default
38644 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38651 rm -f conftest.$ac_objext
38652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38653 (eval $ac_compile) 2>conftest.er1
38655 grep -v '^ *+' conftest.er1 >conftest.err
38657 cat conftest.err >&5
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); } &&
38660 { ac_try='test -z "$ac_c_werror_flag"
38661 || test ! -s conftest.err'
38662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663 (eval $ac_try) 2>&5
38665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666 (exit $ac_status); }; } &&
38667 { ac_try='test -s conftest.$ac_objext'
38668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669 (eval $ac_try) 2>&5
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); }; }; then
38675 cat >conftest.$ac_ext <<_ACEOF
38678 cat confdefs.h >>conftest.$ac_ext
38679 cat >>conftest.$ac_ext <<_ACEOF
38680 /* end confdefs.h. */
38681 $ac_includes_default
38685 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38692 rm -f conftest.$ac_objext
38693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38694 (eval $ac_compile) 2>conftest.er1
38696 grep -v '^ *+' conftest.er1 >conftest.err
38698 cat conftest.err >&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); } &&
38701 { ac_try='test -z "$ac_c_werror_flag"
38702 || test ! -s conftest.err'
38703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38704 (eval $ac_try) 2>&5
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); }; } &&
38708 { ac_try='test -s conftest.$ac_objext'
38709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38710 (eval $ac_try) 2>&5
38712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38713 (exit $ac_status); }; }; then
38714 ac_hi=$ac_mid; break
38716 echo "$as_me: failed program was:" >&5
38717 sed 's/^/| /' conftest.$ac_ext >&5
38719 ac_lo=`expr $ac_mid + 1`
38720 if test $ac_lo -le $ac_mid; then
38724 ac_mid=`expr 2 '*' $ac_mid + 1`
38726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38729 echo "$as_me: failed program was:" >&5
38730 sed 's/^/| /' conftest.$ac_ext >&5
38732 cat >conftest.$ac_ext <<_ACEOF
38735 cat confdefs.h >>conftest.$ac_ext
38736 cat >>conftest.$ac_ext <<_ACEOF
38737 /* end confdefs.h. */
38738 $ac_includes_default
38742 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38749 rm -f conftest.$ac_objext
38750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38751 (eval $ac_compile) 2>conftest.er1
38753 grep -v '^ *+' conftest.er1 >conftest.err
38755 cat conftest.err >&5
38756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38757 (exit $ac_status); } &&
38758 { ac_try='test -z "$ac_c_werror_flag"
38759 || test ! -s conftest.err'
38760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38761 (eval $ac_try) 2>&5
38763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764 (exit $ac_status); }; } &&
38765 { ac_try='test -s conftest.$ac_objext'
38766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38767 (eval $ac_try) 2>&5
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); }; }; then
38773 cat >conftest.$ac_ext <<_ACEOF
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h. */
38779 $ac_includes_default
38783 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38790 rm -f conftest.$ac_objext
38791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38792 (eval $ac_compile) 2>conftest.er1
38794 grep -v '^ *+' conftest.er1 >conftest.err
38796 cat conftest.err >&5
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); } &&
38799 { ac_try='test -z "$ac_c_werror_flag"
38800 || test ! -s conftest.err'
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; } &&
38806 { ac_try='test -s conftest.$ac_objext'
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; }; then
38812 ac_lo=$ac_mid; break
38814 echo "$as_me: failed program was:" >&5
38815 sed 's/^/| /' conftest.$ac_ext >&5
38817 ac_hi=`expr '(' $ac_mid ')' - 1`
38818 if test $ac_mid -le $ac_hi; then
38822 ac_mid=`expr 2 '*' $ac_mid`
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38827 echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38835 # Binary search between lo and hi bounds.
38836 while test "x$ac_lo" != "x$ac_hi"; do
38837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38838 cat >conftest.$ac_ext <<_ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h. */
38844 $ac_includes_default
38848 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38855 rm -f conftest.$ac_objext
38856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38857 (eval $ac_compile) 2>conftest.er1
38859 grep -v '^ *+' conftest.er1 >conftest.err
38861 cat conftest.err >&5
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); } &&
38864 { ac_try='test -z "$ac_c_werror_flag"
38865 || test ! -s conftest.err'
38866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867 (eval $ac_try) 2>&5
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); }; } &&
38871 { ac_try='test -s conftest.$ac_objext'
38872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873 (eval $ac_try) 2>&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); }; }; then
38879 echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38882 ac_lo=`expr '(' $ac_mid ')' + 1`
38884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38887 ?*) ac_cv_sizeof_short=$ac_lo;;
38888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38889 See \`config.log' for more details." >&5
38890 echo "$as_me: error: cannot compute sizeof (short), 77
38891 See \`config.log' for more details." >&2;}
38892 { (exit 1); exit 1; }; } ;;
38895 if test "$cross_compiling" = yes; then
38896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38897 See \`config.log' for more details." >&5
38898 echo "$as_me: error: cannot run test program while cross compiling
38899 See \`config.log' for more details." >&2;}
38900 { (exit 1); exit 1; }; }
38902 cat >conftest.$ac_ext <<_ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h. */
38908 $ac_includes_default
38909 long longval () { return (long) (sizeof (short)); }
38910 unsigned long ulongval () { return (long) (sizeof (short)); }
38912 #include <stdlib.h>
38917 FILE *f = fopen ("conftest.val", "w");
38920 if (((long) (sizeof (short))) < 0)
38922 long i = longval ();
38923 if (i != ((long) (sizeof (short))))
38925 fprintf (f, "%ld\n", i);
38929 unsigned long i = ulongval ();
38930 if (i != ((long) (sizeof (short))))
38932 fprintf (f, "%lu\n", i);
38934 exit (ferror (f) || fclose (f) != 0);
38940 rm -f conftest$ac_exeext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38942 (eval $ac_link) 2>&5
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947 (eval $ac_try) 2>&5
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); }; }; then
38951 ac_cv_sizeof_short=`cat conftest.val`
38953 echo "$as_me: program exited with status $ac_status" >&5
38954 echo "$as_me: failed program was:" >&5
38955 sed 's/^/| /' conftest.$ac_ext >&5
38957 ( exit $ac_status )
38958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38959 See \`config.log' for more details." >&5
38960 echo "$as_me: error: cannot compute sizeof (short), 77
38961 See \`config.log' for more details." >&2;}
38962 { (exit 1); exit 1; }; }
38964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38969 ac_cv_sizeof_short=0
38972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
38973 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
38974 cat >>confdefs.h <<_ACEOF
38975 #define SIZEOF_SHORT $ac_cv_sizeof_short
38979 echo "$as_me:$LINENO: checking for int" >&5
38980 echo $ECHO_N "checking for int... $ECHO_C" >&6
38981 if test "${ac_cv_type_int+set}" = set; then
38982 echo $ECHO_N "(cached) $ECHO_C" >&6
38984 cat >conftest.$ac_ext <<_ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h. */
38990 $ac_includes_default
39002 rm -f conftest.$ac_objext
39003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39004 (eval $ac_compile) 2>conftest.er1
39006 grep -v '^ *+' conftest.er1 >conftest.err
39008 cat conftest.err >&5
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); } &&
39011 { ac_try='test -z "$ac_c_werror_flag"
39012 || test ! -s conftest.err'
39013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014 (eval $ac_try) 2>&5
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); }; } &&
39018 { ac_try='test -s conftest.$ac_objext'
39019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39020 (eval $ac_try) 2>&5
39022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023 (exit $ac_status); }; }; then
39026 echo "$as_me: failed program was:" >&5
39027 sed 's/^/| /' conftest.$ac_ext >&5
39031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39033 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39034 echo "${ECHO_T}$ac_cv_type_int" >&6
39036 echo "$as_me:$LINENO: checking size of int" >&5
39037 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39038 if test "${ac_cv_sizeof_int+set}" = set; then
39039 echo $ECHO_N "(cached) $ECHO_C" >&6
39041 if test "$ac_cv_type_int" = yes; then
39042 # The cast to unsigned long works around a bug in the HP C Compiler
39043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39045 # This bug is HP SR number 8606223364.
39046 if test "$cross_compiling" = yes; then
39047 # Depending upon the size, compute the lo and hi bounds.
39048 cat >conftest.$ac_ext <<_ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h. */
39054 $ac_includes_default
39058 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39065 rm -f conftest.$ac_objext
39066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39067 (eval $ac_compile) 2>conftest.er1
39069 grep -v '^ *+' conftest.er1 >conftest.err
39071 cat conftest.err >&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); } &&
39074 { ac_try='test -z "$ac_c_werror_flag"
39075 || test ! -s conftest.err'
39076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39077 (eval $ac_try) 2>&5
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); }; } &&
39081 { ac_try='test -s conftest.$ac_objext'
39082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39083 (eval $ac_try) 2>&5
39085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39086 (exit $ac_status); }; }; then
39089 cat >conftest.$ac_ext <<_ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h. */
39095 $ac_includes_default
39099 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39106 rm -f conftest.$ac_objext
39107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39108 (eval $ac_compile) 2>conftest.er1
39110 grep -v '^ *+' conftest.er1 >conftest.err
39112 cat conftest.err >&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } &&
39115 { ac_try='test -z "$ac_c_werror_flag"
39116 || test ! -s conftest.err'
39117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118 (eval $ac_try) 2>&5
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); }; } &&
39122 { ac_try='test -s conftest.$ac_objext'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; }; then
39128 ac_hi=$ac_mid; break
39130 echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39133 ac_lo=`expr $ac_mid + 1`
39134 if test $ac_lo -le $ac_mid; then
39138 ac_mid=`expr 2 '*' $ac_mid + 1`
39140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39143 echo "$as_me: failed program was:" >&5
39144 sed 's/^/| /' conftest.$ac_ext >&5
39146 cat >conftest.$ac_ext <<_ACEOF
39149 cat confdefs.h >>conftest.$ac_ext
39150 cat >>conftest.$ac_ext <<_ACEOF
39151 /* end confdefs.h. */
39152 $ac_includes_default
39156 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39163 rm -f conftest.$ac_objext
39164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39165 (eval $ac_compile) 2>conftest.er1
39167 grep -v '^ *+' conftest.er1 >conftest.err
39169 cat conftest.err >&5
39170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171 (exit $ac_status); } &&
39172 { ac_try='test -z "$ac_c_werror_flag"
39173 || test ! -s conftest.err'
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; } &&
39179 { ac_try='test -s conftest.$ac_objext'
39180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181 (eval $ac_try) 2>&5
39183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184 (exit $ac_status); }; }; then
39187 cat >conftest.$ac_ext <<_ACEOF
39190 cat confdefs.h >>conftest.$ac_ext
39191 cat >>conftest.$ac_ext <<_ACEOF
39192 /* end confdefs.h. */
39193 $ac_includes_default
39197 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39204 rm -f conftest.$ac_objext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39206 (eval $ac_compile) 2>conftest.er1
39208 grep -v '^ *+' conftest.er1 >conftest.err
39210 cat conftest.err >&5
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); } &&
39213 { ac_try='test -z "$ac_c_werror_flag"
39214 || test ! -s conftest.err'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; } &&
39220 { ac_try='test -s conftest.$ac_objext'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; }; then
39226 ac_lo=$ac_mid; break
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39231 ac_hi=`expr '(' $ac_mid ')' - 1`
39232 if test $ac_mid -le $ac_hi; then
39236 ac_mid=`expr 2 '*' $ac_mid`
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39241 echo "$as_me: failed program was:" >&5
39242 sed 's/^/| /' conftest.$ac_ext >&5
39246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39249 # Binary search between lo and hi bounds.
39250 while test "x$ac_lo" != "x$ac_hi"; do
39251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39252 cat >conftest.$ac_ext <<_ACEOF
39255 cat confdefs.h >>conftest.$ac_ext
39256 cat >>conftest.$ac_ext <<_ACEOF
39257 /* end confdefs.h. */
39258 $ac_includes_default
39262 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271 (eval $ac_compile) 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -z "$ac_c_werror_flag"
39279 || test ! -s conftest.err'
39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281 (eval $ac_try) 2>&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } &&
39285 { ac_try='test -s conftest.$ac_objext'
39286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287 (eval $ac_try) 2>&5
39289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290 (exit $ac_status); }; }; then
39293 echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39296 ac_lo=`expr '(' $ac_mid ')' + 1`
39298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39301 ?*) ac_cv_sizeof_int=$ac_lo;;
39302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39303 See \`config.log' for more details." >&5
39304 echo "$as_me: error: cannot compute sizeof (int), 77
39305 See \`config.log' for more details." >&2;}
39306 { (exit 1); exit 1; }; } ;;
39309 if test "$cross_compiling" = yes; then
39310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39311 See \`config.log' for more details." >&5
39312 echo "$as_me: error: cannot run test program while cross compiling
39313 See \`config.log' for more details." >&2;}
39314 { (exit 1); exit 1; }; }
39316 cat >conftest.$ac_ext <<_ACEOF
39319 cat confdefs.h >>conftest.$ac_ext
39320 cat >>conftest.$ac_ext <<_ACEOF
39321 /* end confdefs.h. */
39322 $ac_includes_default
39323 long longval () { return (long) (sizeof (int)); }
39324 unsigned long ulongval () { return (long) (sizeof (int)); }
39326 #include <stdlib.h>
39331 FILE *f = fopen ("conftest.val", "w");
39334 if (((long) (sizeof (int))) < 0)
39336 long i = longval ();
39337 if (i != ((long) (sizeof (int))))
39339 fprintf (f, "%ld\n", i);
39343 unsigned long i = ulongval ();
39344 if (i != ((long) (sizeof (int))))
39346 fprintf (f, "%lu\n", i);
39348 exit (ferror (f) || fclose (f) != 0);
39354 rm -f conftest$ac_exeext
39355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39356 (eval $ac_link) 2>&5
39358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39361 (eval $ac_try) 2>&5
39363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); }; }; then
39365 ac_cv_sizeof_int=`cat conftest.val`
39367 echo "$as_me: program exited with status $ac_status" >&5
39368 echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39371 ( exit $ac_status )
39372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39373 See \`config.log' for more details." >&5
39374 echo "$as_me: error: cannot compute sizeof (int), 77
39375 See \`config.log' for more details." >&2;}
39376 { (exit 1); exit 1; }; }
39378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39387 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39388 cat >>confdefs.h <<_ACEOF
39389 #define SIZEOF_INT $ac_cv_sizeof_int
39393 echo "$as_me:$LINENO: checking for long" >&5
39394 echo $ECHO_N "checking for long... $ECHO_C" >&6
39395 if test "${ac_cv_type_long+set}" = set; then
39396 echo $ECHO_N "(cached) $ECHO_C" >&6
39398 cat >conftest.$ac_ext <<_ACEOF
39401 cat confdefs.h >>conftest.$ac_ext
39402 cat >>conftest.$ac_ext <<_ACEOF
39403 /* end confdefs.h. */
39404 $ac_includes_default
39416 rm -f conftest.$ac_objext
39417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39418 (eval $ac_compile) 2>conftest.er1
39420 grep -v '^ *+' conftest.er1 >conftest.err
39422 cat conftest.err >&5
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } &&
39425 { ac_try='test -z "$ac_c_werror_flag"
39426 || test ! -s conftest.err'
39427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39428 (eval $ac_try) 2>&5
39430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); }; } &&
39432 { ac_try='test -s conftest.$ac_objext'
39433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39434 (eval $ac_try) 2>&5
39436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437 (exit $ac_status); }; }; then
39438 ac_cv_type_long=yes
39440 echo "$as_me: failed program was:" >&5
39441 sed 's/^/| /' conftest.$ac_ext >&5
39445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39447 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39448 echo "${ECHO_T}$ac_cv_type_long" >&6
39450 echo "$as_me:$LINENO: checking size of long" >&5
39451 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39452 if test "${ac_cv_sizeof_long+set}" = set; then
39453 echo $ECHO_N "(cached) $ECHO_C" >&6
39455 if test "$ac_cv_type_long" = yes; then
39456 # The cast to unsigned long works around a bug in the HP C Compiler
39457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39459 # This bug is HP SR number 8606223364.
39460 if test "$cross_compiling" = yes; then
39461 # Depending upon the size, compute the lo and hi bounds.
39462 cat >conftest.$ac_ext <<_ACEOF
39465 cat confdefs.h >>conftest.$ac_ext
39466 cat >>conftest.$ac_ext <<_ACEOF
39467 /* end confdefs.h. */
39468 $ac_includes_default
39472 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39479 rm -f conftest.$ac_objext
39480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39481 (eval $ac_compile) 2>conftest.er1
39483 grep -v '^ *+' conftest.er1 >conftest.err
39485 cat conftest.err >&5
39486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39487 (exit $ac_status); } &&
39488 { ac_try='test -z "$ac_c_werror_flag"
39489 || test ! -s conftest.err'
39490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39491 (eval $ac_try) 2>&5
39493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494 (exit $ac_status); }; } &&
39495 { ac_try='test -s conftest.$ac_objext'
39496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497 (eval $ac_try) 2>&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); }; }; then
39503 cat >conftest.$ac_ext <<_ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h. */
39509 $ac_includes_default
39513 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39520 rm -f conftest.$ac_objext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522 (eval $ac_compile) 2>conftest.er1
39524 grep -v '^ *+' conftest.er1 >conftest.err
39526 cat conftest.err >&5
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); } &&
39529 { ac_try='test -z "$ac_c_werror_flag"
39530 || test ! -s conftest.err'
39531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532 (eval $ac_try) 2>&5
39534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); }; } &&
39536 { ac_try='test -s conftest.$ac_objext'
39537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39538 (eval $ac_try) 2>&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); }; }; then
39542 ac_hi=$ac_mid; break
39544 echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39547 ac_lo=`expr $ac_mid + 1`
39548 if test $ac_lo -le $ac_mid; then
39552 ac_mid=`expr 2 '*' $ac_mid + 1`
39554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39557 echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39560 cat >conftest.$ac_ext <<_ACEOF
39563 cat confdefs.h >>conftest.$ac_ext
39564 cat >>conftest.$ac_ext <<_ACEOF
39565 /* end confdefs.h. */
39566 $ac_includes_default
39570 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39577 rm -f conftest.$ac_objext
39578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39579 (eval $ac_compile) 2>conftest.er1
39581 grep -v '^ *+' conftest.er1 >conftest.err
39583 cat conftest.err >&5
39584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); } &&
39586 { ac_try='test -z "$ac_c_werror_flag"
39587 || test ! -s conftest.err'
39588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589 (eval $ac_try) 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); }; } &&
39593 { ac_try='test -s conftest.$ac_objext'
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595 (eval $ac_try) 2>&5
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; }; then
39601 cat >conftest.$ac_ext <<_ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h. */
39607 $ac_includes_default
39611 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39618 rm -f conftest.$ac_objext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39620 (eval $ac_compile) 2>conftest.er1
39622 grep -v '^ *+' conftest.er1 >conftest.err
39624 cat conftest.err >&5
39625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626 (exit $ac_status); } &&
39627 { ac_try='test -z "$ac_c_werror_flag"
39628 || test ! -s conftest.err'
39629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630 (eval $ac_try) 2>&5
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); }; } &&
39634 { ac_try='test -s conftest.$ac_objext'
39635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636 (eval $ac_try) 2>&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); }; }; then
39640 ac_lo=$ac_mid; break
39642 echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39645 ac_hi=`expr '(' $ac_mid ')' - 1`
39646 if test $ac_mid -le $ac_hi; then
39650 ac_mid=`expr 2 '*' $ac_mid`
39652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39655 echo "$as_me: failed program was:" >&5
39656 sed 's/^/| /' conftest.$ac_ext >&5
39660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39663 # Binary search between lo and hi bounds.
39664 while test "x$ac_lo" != "x$ac_hi"; do
39665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39666 cat >conftest.$ac_ext <<_ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39672 $ac_includes_default
39676 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685 (eval $ac_compile) 2>conftest.er1
39687 grep -v '^ *+' conftest.er1 >conftest.err
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
39692 { ac_try='test -z "$ac_c_werror_flag"
39693 || test ! -s conftest.err'
39694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39695 (eval $ac_try) 2>&5
39697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698 (exit $ac_status); }; } &&
39699 { ac_try='test -s conftest.$ac_objext'
39700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701 (eval $ac_try) 2>&5
39703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704 (exit $ac_status); }; }; then
39707 echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39710 ac_lo=`expr '(' $ac_mid ')' + 1`
39712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39715 ?*) ac_cv_sizeof_long=$ac_lo;;
39716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39717 See \`config.log' for more details." >&5
39718 echo "$as_me: error: cannot compute sizeof (long), 77
39719 See \`config.log' for more details." >&2;}
39720 { (exit 1); exit 1; }; } ;;
39723 if test "$cross_compiling" = yes; then
39724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39725 See \`config.log' for more details." >&5
39726 echo "$as_me: error: cannot run test program while cross compiling
39727 See \`config.log' for more details." >&2;}
39728 { (exit 1); exit 1; }; }
39730 cat >conftest.$ac_ext <<_ACEOF
39733 cat confdefs.h >>conftest.$ac_ext
39734 cat >>conftest.$ac_ext <<_ACEOF
39735 /* end confdefs.h. */
39736 $ac_includes_default
39737 long longval () { return (long) (sizeof (long)); }
39738 unsigned long ulongval () { return (long) (sizeof (long)); }
39740 #include <stdlib.h>
39745 FILE *f = fopen ("conftest.val", "w");
39748 if (((long) (sizeof (long))) < 0)
39750 long i = longval ();
39751 if (i != ((long) (sizeof (long))))
39753 fprintf (f, "%ld\n", i);
39757 unsigned long i = ulongval ();
39758 if (i != ((long) (sizeof (long))))
39760 fprintf (f, "%lu\n", i);
39762 exit (ferror (f) || fclose (f) != 0);
39768 rm -f conftest$ac_exeext
39769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39770 (eval $ac_link) 2>&5
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; }; then
39779 ac_cv_sizeof_long=`cat conftest.val`
39781 echo "$as_me: program exited with status $ac_status" >&5
39782 echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39785 ( exit $ac_status )
39786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39787 See \`config.log' for more details." >&5
39788 echo "$as_me: error: cannot compute sizeof (long), 77
39789 See \`config.log' for more details." >&2;}
39790 { (exit 1); exit 1; }; }
39792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39797 ac_cv_sizeof_long=0
39800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39801 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39802 cat >>confdefs.h <<_ACEOF
39803 #define SIZEOF_LONG $ac_cv_sizeof_long
39807 echo "$as_me:$LINENO: checking for wchar_t" >&5
39808 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39809 if test "${ac_cv_type_wchar_t+set}" = set; then
39810 echo $ECHO_N "(cached) $ECHO_C" >&6
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39818 $ac_includes_default
39824 if (sizeof (wchar_t))
39830 rm -f conftest.$ac_objext
39831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39832 (eval $ac_compile) 2>conftest.er1
39834 grep -v '^ *+' conftest.er1 >conftest.err
39836 cat conftest.err >&5
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } &&
39839 { ac_try='test -z "$ac_c_werror_flag"
39840 || test ! -s conftest.err'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; } &&
39846 { ac_try='test -s conftest.$ac_objext'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 ac_cv_type_wchar_t=yes
39854 echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39857 ac_cv_type_wchar_t=no
39859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39861 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39862 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39864 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39865 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39866 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39869 if test "$ac_cv_type_wchar_t" = yes; then
39870 # The cast to unsigned long works around a bug in the HP C Compiler
39871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39873 # This bug is HP SR number 8606223364.
39874 if test "$cross_compiling" = yes; then
39875 # Depending upon the size, compute the lo and hi bounds.
39876 cat >conftest.$ac_ext <<_ACEOF
39879 cat confdefs.h >>conftest.$ac_ext
39880 cat >>conftest.$ac_ext <<_ACEOF
39881 /* end confdefs.h. */
39882 $ac_includes_default
39886 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39893 rm -f conftest.$ac_objext
39894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39895 (eval $ac_compile) 2>conftest.er1
39897 grep -v '^ *+' conftest.er1 >conftest.err
39899 cat conftest.err >&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } &&
39902 { ac_try='test -z "$ac_c_werror_flag"
39903 || test ! -s conftest.err'
39904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39905 (eval $ac_try) 2>&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); }; } &&
39909 { ac_try='test -s conftest.$ac_objext'
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; }; then
39917 cat >conftest.$ac_ext <<_ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h. */
39923 $ac_includes_default
39927 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39934 rm -f conftest.$ac_objext
39935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39936 (eval $ac_compile) 2>conftest.er1
39938 grep -v '^ *+' conftest.er1 >conftest.err
39940 cat conftest.err >&5
39941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942 (exit $ac_status); } &&
39943 { ac_try='test -z "$ac_c_werror_flag"
39944 || test ! -s conftest.err'
39945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946 (eval $ac_try) 2>&5
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); }; } &&
39950 { ac_try='test -s conftest.$ac_objext'
39951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39952 (eval $ac_try) 2>&5
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); }; }; then
39956 ac_hi=$ac_mid; break
39958 echo "$as_me: failed program was:" >&5
39959 sed 's/^/| /' conftest.$ac_ext >&5
39961 ac_lo=`expr $ac_mid + 1`
39962 if test $ac_lo -le $ac_mid; then
39966 ac_mid=`expr 2 '*' $ac_mid + 1`
39968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39971 echo "$as_me: failed program was:" >&5
39972 sed 's/^/| /' conftest.$ac_ext >&5
39974 cat >conftest.$ac_ext <<_ACEOF
39977 cat confdefs.h >>conftest.$ac_ext
39978 cat >>conftest.$ac_ext <<_ACEOF
39979 /* end confdefs.h. */
39980 $ac_includes_default
39984 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
39991 rm -f conftest.$ac_objext
39992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39993 (eval $ac_compile) 2>conftest.er1
39995 grep -v '^ *+' conftest.er1 >conftest.err
39997 cat conftest.err >&5
39998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); } &&
40000 { ac_try='test -z "$ac_c_werror_flag"
40001 || test ! -s conftest.err'
40002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003 (eval $ac_try) 2>&5
40005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); }; } &&
40007 { ac_try='test -s conftest.$ac_objext'
40008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40009 (eval $ac_try) 2>&5
40011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40012 (exit $ac_status); }; }; then
40015 cat >conftest.$ac_ext <<_ACEOF
40018 cat confdefs.h >>conftest.$ac_ext
40019 cat >>conftest.$ac_ext <<_ACEOF
40020 /* end confdefs.h. */
40021 $ac_includes_default
40025 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40032 rm -f conftest.$ac_objext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40034 (eval $ac_compile) 2>conftest.er1
40036 grep -v '^ *+' conftest.er1 >conftest.err
40038 cat conftest.err >&5
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } &&
40041 { ac_try='test -z "$ac_c_werror_flag"
40042 || test ! -s conftest.err'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; } &&
40048 { ac_try='test -s conftest.$ac_objext'
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; }; then
40054 ac_lo=$ac_mid; break
40056 echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40059 ac_hi=`expr '(' $ac_mid ')' - 1`
40060 if test $ac_mid -le $ac_hi; then
40064 ac_mid=`expr 2 '*' $ac_mid`
40066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40069 echo "$as_me: failed program was:" >&5
40070 sed 's/^/| /' conftest.$ac_ext >&5
40074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40077 # Binary search between lo and hi bounds.
40078 while test "x$ac_lo" != "x$ac_hi"; do
40079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40080 cat >conftest.$ac_ext <<_ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h. */
40086 $ac_includes_default
40090 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40097 rm -f conftest.$ac_objext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40099 (eval $ac_compile) 2>conftest.er1
40101 grep -v '^ *+' conftest.er1 >conftest.err
40103 cat conftest.err >&5
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); } &&
40106 { ac_try='test -z "$ac_c_werror_flag"
40107 || test ! -s conftest.err'
40108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109 (eval $ac_try) 2>&5
40111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); }; } &&
40113 { ac_try='test -s conftest.$ac_objext'
40114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115 (eval $ac_try) 2>&5
40117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); }; }; then
40121 echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40124 ac_lo=`expr '(' $ac_mid ')' + 1`
40126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40129 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40131 See \`config.log' for more details." >&5
40132 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40133 See \`config.log' for more details." >&2;}
40134 { (exit 1); exit 1; }; } ;;
40137 if test "$cross_compiling" = yes; then
40138 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40139 See \`config.log' for more details." >&5
40140 echo "$as_me: error: cannot run test program while cross compiling
40141 See \`config.log' for more details." >&2;}
40142 { (exit 1); exit 1; }; }
40144 cat >conftest.$ac_ext <<_ACEOF
40147 cat confdefs.h >>conftest.$ac_ext
40148 cat >>conftest.$ac_ext <<_ACEOF
40149 /* end confdefs.h. */
40150 $ac_includes_default
40151 long longval () { return (long) (sizeof (wchar_t)); }
40152 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40154 #include <stdlib.h>
40159 FILE *f = fopen ("conftest.val", "w");
40162 if (((long) (sizeof (wchar_t))) < 0)
40164 long i = longval ();
40165 if (i != ((long) (sizeof (wchar_t))))
40167 fprintf (f, "%ld\n", i);
40171 unsigned long i = ulongval ();
40172 if (i != ((long) (sizeof (wchar_t))))
40174 fprintf (f, "%lu\n", i);
40176 exit (ferror (f) || fclose (f) != 0);
40182 rm -f conftest$ac_exeext
40183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40184 (eval $ac_link) 2>&5
40186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189 (eval $ac_try) 2>&5
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); }; }; then
40193 ac_cv_sizeof_wchar_t=`cat conftest.val`
40195 echo "$as_me: program exited with status $ac_status" >&5
40196 echo "$as_me: failed program was:" >&5
40197 sed 's/^/| /' conftest.$ac_ext >&5
40199 ( exit $ac_status )
40200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40201 See \`config.log' for more details." >&5
40202 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40203 See \`config.log' for more details." >&2;}
40204 { (exit 1); exit 1; }; }
40206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40211 ac_cv_sizeof_wchar_t=0
40214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40215 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40216 cat >>confdefs.h <<_ACEOF
40217 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40222 if test "$ac_cv_sizeof_int" -lt 4 ; then
40223 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40224 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40227 cat >>confdefs.h <<\_ACEOF
40228 #define LBER_INT_T long
40233 cat >>confdefs.h <<\_ACEOF
40234 #define LBER_INT_T int
40240 cat >>confdefs.h <<\_ACEOF
40241 #define LBER_LEN_T long
40245 cat >>confdefs.h <<\_ACEOF
40246 #define LBER_SOCKET_T int
40250 cat >>confdefs.h <<\_ACEOF
40251 #define LBER_TAG_T long
40255 echo "$as_me:$LINENO: checking for working memcmp" >&5
40256 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40257 if test "${ac_cv_func_memcmp_working+set}" = set; then
40258 echo $ECHO_N "(cached) $ECHO_C" >&6
40260 if test "$cross_compiling" = yes; then
40261 ac_cv_func_memcmp_working=no
40263 cat >conftest.$ac_ext <<_ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h. */
40269 $ac_includes_default
40274 /* Some versions of memcmp are not 8-bit clean. */
40275 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40276 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40279 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40280 or more and with at least one buffer not starting on a 4-byte boundary.
40281 William Lewis provided this test program. */
40286 for (i = 0; i < 4; i++)
40290 strcpy (a, "--------01111111");
40291 strcpy (b, "--------10000000");
40292 if (memcmp (a, b, 16) >= 0)
40302 rm -f conftest$ac_exeext
40303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40304 (eval $ac_link) 2>&5
40306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40309 (eval $ac_try) 2>&5
40311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312 (exit $ac_status); }; }; then
40313 ac_cv_func_memcmp_working=yes
40315 echo "$as_me: program exited with status $ac_status" >&5
40316 echo "$as_me: failed program was:" >&5
40317 sed 's/^/| /' conftest.$ac_ext >&5
40319 ( exit $ac_status )
40320 ac_cv_func_memcmp_working=no
40322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40325 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40326 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40327 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40328 "memcmp.$ac_objext" | \
40329 *" memcmp.$ac_objext" | \
40330 "memcmp.$ac_objext "* | \
40331 *" memcmp.$ac_objext "* ) ;;
40332 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40337 if test $ac_cv_func_memcmp_working = no ; then
40339 cat >>confdefs.h <<\_ACEOF
40340 #define NEED_MEMCMP_REPLACEMENT 1
40346 for ac_func in strftime
40348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40349 echo "$as_me:$LINENO: checking for $ac_func" >&5
40350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40351 if eval "test \"\${$as_ac_var+set}\" = set"; then
40352 echo $ECHO_N "(cached) $ECHO_C" >&6
40354 cat >conftest.$ac_ext <<_ACEOF
40357 cat confdefs.h >>conftest.$ac_ext
40358 cat >>conftest.$ac_ext <<_ACEOF
40359 /* end confdefs.h. */
40360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40362 #define $ac_func innocuous_$ac_func
40364 /* System header to define __stub macros and hopefully few prototypes,
40365 which can conflict with char $ac_func (); below.
40366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40367 <limits.h> exists even on freestanding compilers. */
40370 # include <limits.h>
40372 # include <assert.h>
40377 /* Override any gcc2 internal prototype to avoid an error. */
40382 /* We use char because int might match the return type of a gcc2
40383 builtin and then its argument prototype would still apply. */
40385 /* The GNU C library defines this for functions which it implements
40386 to always fail with ENOSYS. Some functions are actually named
40387 something starting with __ and the normal name is an alias. */
40388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40391 char (*f) () = $ac_func;
40400 return f != $ac_func;
40405 rm -f conftest.$ac_objext conftest$ac_exeext
40406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40407 (eval $ac_link) 2>conftest.er1
40409 grep -v '^ *+' conftest.er1 >conftest.err
40411 cat conftest.err >&5
40412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413 (exit $ac_status); } &&
40414 { ac_try='test -z "$ac_c_werror_flag"
40415 || test ! -s conftest.err'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; } &&
40421 { ac_try='test -s conftest$ac_exeext'
40422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423 (eval $ac_try) 2>&5
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); }; }; then
40427 eval "$as_ac_var=yes"
40429 echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40432 eval "$as_ac_var=no"
40434 rm -f conftest.err conftest.$ac_objext \
40435 conftest$ac_exeext conftest.$ac_ext
40437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40439 if test `eval echo '${'$as_ac_var'}'` = yes; then
40440 cat >>confdefs.h <<_ACEOF
40441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40445 # strftime is in -lintl on SCO UNIX.
40446 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40447 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40448 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40449 echo $ECHO_N "(cached) $ECHO_C" >&6
40451 ac_check_lib_save_LIBS=$LIBS
40452 LIBS="-lintl $LIBS"
40453 cat >conftest.$ac_ext <<_ACEOF
40456 cat confdefs.h >>conftest.$ac_ext
40457 cat >>conftest.$ac_ext <<_ACEOF
40458 /* end confdefs.h. */
40460 /* Override any gcc2 internal prototype to avoid an error. */
40464 /* We use char because int might match the return type of a gcc2
40465 builtin and then its argument prototype would still apply. */
40475 rm -f conftest.$ac_objext conftest$ac_exeext
40476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40477 (eval $ac_link) 2>conftest.er1
40479 grep -v '^ *+' conftest.er1 >conftest.err
40481 cat conftest.err >&5
40482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483 (exit $ac_status); } &&
40484 { ac_try='test -z "$ac_c_werror_flag"
40485 || test ! -s conftest.err'
40486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40487 (eval $ac_try) 2>&5
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490 (exit $ac_status); }; } &&
40491 { ac_try='test -s conftest$ac_exeext'
40492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40493 (eval $ac_try) 2>&5
40495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496 (exit $ac_status); }; }; then
40497 ac_cv_lib_intl_strftime=yes
40499 echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40502 ac_cv_lib_intl_strftime=no
40504 rm -f conftest.err conftest.$ac_objext \
40505 conftest$ac_exeext conftest.$ac_ext
40506 LIBS=$ac_check_lib_save_LIBS
40508 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40509 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40510 if test $ac_cv_lib_intl_strftime = yes; then
40511 cat >>confdefs.h <<\_ACEOF
40512 #define HAVE_STRFTIME 1
40515 LIBS="-lintl $LIBS"
40522 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40523 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40524 if test "${ol_cv_func_inet_aton+set}" = set; then
40525 echo $ECHO_N "(cached) $ECHO_C" >&6
40527 cat >conftest.$ac_ext <<_ACEOF
40530 cat confdefs.h >>conftest.$ac_ext
40531 cat >>conftest.$ac_ext <<_ACEOF
40532 /* end confdefs.h. */
40534 #ifdef HAVE_SYS_TYPES_H
40535 # include <sys/types.h>
40537 #ifdef HAVE_SYS_SOCKET_H
40538 # include <sys/socket.h>
40539 # ifdef HAVE_SYS_SELECT_H
40540 # include <sys/select.h>
40542 # include <netinet/in.h>
40543 # ifdef HAVE_ARPA_INET_H
40544 # include <arpa/inet.h>
40552 int rc = inet_aton( "255.255.255.255", &in );
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40559 (eval $ac_link) 2>conftest.er1
40561 grep -v '^ *+' conftest.er1 >conftest.err
40563 cat conftest.err >&5
40564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565 (exit $ac_status); } &&
40566 { ac_try='test -z "$ac_c_werror_flag"
40567 || test ! -s conftest.err'
40568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40569 (eval $ac_try) 2>&5
40571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572 (exit $ac_status); }; } &&
40573 { ac_try='test -s conftest$ac_exeext'
40574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575 (eval $ac_try) 2>&5
40577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578 (exit $ac_status); }; }; then
40579 ol_cv_func_inet_aton=yes
40581 echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40584 ol_cv_func_inet_aton=no
40586 rm -f conftest.err conftest.$ac_objext \
40587 conftest$ac_exeext conftest.$ac_ext
40589 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40590 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40591 if test $ol_cv_func_inet_aton != no; then
40593 cat >>confdefs.h <<\_ACEOF
40594 #define HAVE_INET_ATON 1
40600 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40601 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40602 if test "${ac_cv_func__spawnlp+set}" = set; then
40603 echo $ECHO_N "(cached) $ECHO_C" >&6
40605 cat >conftest.$ac_ext <<_ACEOF
40608 cat confdefs.h >>conftest.$ac_ext
40609 cat >>conftest.$ac_ext <<_ACEOF
40610 /* end confdefs.h. */
40611 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40613 #define _spawnlp innocuous__spawnlp
40615 /* System header to define __stub macros and hopefully few prototypes,
40616 which can conflict with char _spawnlp (); below.
40617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40618 <limits.h> exists even on freestanding compilers. */
40621 # include <limits.h>
40623 # include <assert.h>
40628 /* Override any gcc2 internal prototype to avoid an error. */
40633 /* We use char because int might match the return type of a gcc2
40634 builtin and then its argument prototype would still apply. */
40636 /* The GNU C library defines this for functions which it implements
40637 to always fail with ENOSYS. Some functions are actually named
40638 something starting with __ and the normal name is an alias. */
40639 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40642 char (*f) () = _spawnlp;
40651 return f != _spawnlp;
40656 rm -f conftest.$ac_objext conftest$ac_exeext
40657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40658 (eval $ac_link) 2>conftest.er1
40660 grep -v '^ *+' conftest.er1 >conftest.err
40662 cat conftest.err >&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } &&
40665 { ac_try='test -z "$ac_c_werror_flag"
40666 || test ! -s conftest.err'
40667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 (eval $ac_try) 2>&5
40670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); }; } &&
40672 { ac_try='test -s conftest$ac_exeext'
40673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40674 (eval $ac_try) 2>&5
40676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677 (exit $ac_status); }; }; then
40678 ac_cv_func__spawnlp=yes
40680 echo "$as_me: failed program was:" >&5
40681 sed 's/^/| /' conftest.$ac_ext >&5
40683 ac_cv_func__spawnlp=no
40685 rm -f conftest.err conftest.$ac_objext \
40686 conftest$ac_exeext conftest.$ac_ext
40688 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40689 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40690 if test $ac_cv_func__spawnlp = yes; then
40692 cat >>confdefs.h <<\_ACEOF
40693 #define HAVE_SPAWNLP 1
40699 echo "$as_me:$LINENO: checking for _snprintf" >&5
40700 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40701 if test "${ac_cv_func__snprintf+set}" = set; then
40702 echo $ECHO_N "(cached) $ECHO_C" >&6
40704 cat >conftest.$ac_ext <<_ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h. */
40710 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40712 #define _snprintf innocuous__snprintf
40714 /* System header to define __stub macros and hopefully few prototypes,
40715 which can conflict with char _snprintf (); below.
40716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40717 <limits.h> exists even on freestanding compilers. */
40720 # include <limits.h>
40722 # include <assert.h>
40727 /* Override any gcc2 internal prototype to avoid an error. */
40732 /* We use char because int might match the return type of a gcc2
40733 builtin and then its argument prototype would still apply. */
40735 /* The GNU C library defines this for functions which it implements
40736 to always fail with ENOSYS. Some functions are actually named
40737 something starting with __ and the normal name is an alias. */
40738 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40741 char (*f) () = _snprintf;
40750 return f != _snprintf;
40755 rm -f conftest.$ac_objext conftest$ac_exeext
40756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40757 (eval $ac_link) 2>conftest.er1
40759 grep -v '^ *+' conftest.er1 >conftest.err
40761 cat conftest.err >&5
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); } &&
40764 { ac_try='test -z "$ac_c_werror_flag"
40765 || test ! -s conftest.err'
40766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40767 (eval $ac_try) 2>&5
40769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770 (exit $ac_status); }; } &&
40771 { ac_try='test -s conftest$ac_exeext'
40772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40773 (eval $ac_try) 2>&5
40775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776 (exit $ac_status); }; }; then
40777 ac_cv_func__snprintf=yes
40779 echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40782 ac_cv_func__snprintf=no
40784 rm -f conftest.err conftest.$ac_objext \
40785 conftest$ac_exeext conftest.$ac_ext
40787 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40788 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40789 if test $ac_cv_func__snprintf = yes; then
40790 ac_cv_func_snprintf=yes
40792 cat >>confdefs.h <<\_ACEOF
40793 #define snprintf _snprintf
40800 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40801 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40802 if test "${ac_cv_func__vsnprintf+set}" = set; then
40803 echo $ECHO_N "(cached) $ECHO_C" >&6
40805 cat >conftest.$ac_ext <<_ACEOF
40808 cat confdefs.h >>conftest.$ac_ext
40809 cat >>conftest.$ac_ext <<_ACEOF
40810 /* end confdefs.h. */
40811 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40813 #define _vsnprintf innocuous__vsnprintf
40815 /* System header to define __stub macros and hopefully few prototypes,
40816 which can conflict with char _vsnprintf (); below.
40817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40818 <limits.h> exists even on freestanding compilers. */
40821 # include <limits.h>
40823 # include <assert.h>
40828 /* Override any gcc2 internal prototype to avoid an error. */
40833 /* We use char because int might match the return type of a gcc2
40834 builtin and then its argument prototype would still apply. */
40835 char _vsnprintf ();
40836 /* The GNU C library defines this for functions which it implements
40837 to always fail with ENOSYS. Some functions are actually named
40838 something starting with __ and the normal name is an alias. */
40839 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40842 char (*f) () = _vsnprintf;
40851 return f != _vsnprintf;
40856 rm -f conftest.$ac_objext conftest$ac_exeext
40857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40858 (eval $ac_link) 2>conftest.er1
40860 grep -v '^ *+' conftest.er1 >conftest.err
40862 cat conftest.err >&5
40863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864 (exit $ac_status); } &&
40865 { ac_try='test -z "$ac_c_werror_flag"
40866 || test ! -s conftest.err'
40867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40868 (eval $ac_try) 2>&5
40870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871 (exit $ac_status); }; } &&
40872 { ac_try='test -s conftest$ac_exeext'
40873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874 (eval $ac_try) 2>&5
40876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877 (exit $ac_status); }; }; then
40878 ac_cv_func__vsnprintf=yes
40880 echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40883 ac_cv_func__vsnprintf=no
40885 rm -f conftest.err conftest.$ac_objext \
40886 conftest$ac_exeext conftest.$ac_ext
40888 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40889 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40890 if test $ac_cv_func__vsnprintf = yes; then
40891 ac_cv_func_vsnprintf=yes
40893 cat >>confdefs.h <<\_ACEOF
40894 #define vsnprintf _vsnprintf
40902 for ac_func in vprintf
40904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40905 echo "$as_me:$LINENO: checking for $ac_func" >&5
40906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40907 if eval "test \"\${$as_ac_var+set}\" = set"; then
40908 echo $ECHO_N "(cached) $ECHO_C" >&6
40910 cat >conftest.$ac_ext <<_ACEOF
40913 cat confdefs.h >>conftest.$ac_ext
40914 cat >>conftest.$ac_ext <<_ACEOF
40915 /* end confdefs.h. */
40916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40918 #define $ac_func innocuous_$ac_func
40920 /* System header to define __stub macros and hopefully few prototypes,
40921 which can conflict with char $ac_func (); below.
40922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40923 <limits.h> exists even on freestanding compilers. */
40926 # include <limits.h>
40928 # include <assert.h>
40933 /* Override any gcc2 internal prototype to avoid an error. */
40938 /* We use char because int might match the return type of a gcc2
40939 builtin and then its argument prototype would still apply. */
40941 /* The GNU C library defines this for functions which it implements
40942 to always fail with ENOSYS. Some functions are actually named
40943 something starting with __ and the normal name is an alias. */
40944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40947 char (*f) () = $ac_func;
40956 return f != $ac_func;
40961 rm -f conftest.$ac_objext conftest$ac_exeext
40962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40963 (eval $ac_link) 2>conftest.er1
40965 grep -v '^ *+' conftest.er1 >conftest.err
40967 cat conftest.err >&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); } &&
40970 { ac_try='test -z "$ac_c_werror_flag"
40971 || test ! -s conftest.err'
40972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40973 (eval $ac_try) 2>&5
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); }; } &&
40977 { ac_try='test -s conftest$ac_exeext'
40978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979 (eval $ac_try) 2>&5
40981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982 (exit $ac_status); }; }; then
40983 eval "$as_ac_var=yes"
40985 echo "$as_me: failed program was:" >&5
40986 sed 's/^/| /' conftest.$ac_ext >&5
40988 eval "$as_ac_var=no"
40990 rm -f conftest.err conftest.$ac_objext \
40991 conftest$ac_exeext conftest.$ac_ext
40993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40995 if test `eval echo '${'$as_ac_var'}'` = yes; then
40996 cat >>confdefs.h <<_ACEOF
40997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41000 echo "$as_me:$LINENO: checking for _doprnt" >&5
41001 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41002 if test "${ac_cv_func__doprnt+set}" = set; then
41003 echo $ECHO_N "(cached) $ECHO_C" >&6
41005 cat >conftest.$ac_ext <<_ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h. */
41011 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41013 #define _doprnt innocuous__doprnt
41015 /* System header to define __stub macros and hopefully few prototypes,
41016 which can conflict with char _doprnt (); below.
41017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41018 <limits.h> exists even on freestanding compilers. */
41021 # include <limits.h>
41023 # include <assert.h>
41028 /* Override any gcc2 internal prototype to avoid an error. */
41033 /* We use char because int might match the return type of a gcc2
41034 builtin and then its argument prototype would still apply. */
41036 /* The GNU C library defines this for functions which it implements
41037 to always fail with ENOSYS. Some functions are actually named
41038 something starting with __ and the normal name is an alias. */
41039 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41042 char (*f) () = _doprnt;
41051 return f != _doprnt;
41056 rm -f conftest.$ac_objext conftest$ac_exeext
41057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41058 (eval $ac_link) 2>conftest.er1
41060 grep -v '^ *+' conftest.er1 >conftest.err
41062 cat conftest.err >&5
41063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064 (exit $ac_status); } &&
41065 { ac_try='test -z "$ac_c_werror_flag"
41066 || test ! -s conftest.err'
41067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068 (eval $ac_try) 2>&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); }; } &&
41072 { ac_try='test -s conftest$ac_exeext'
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074 (eval $ac_try) 2>&5
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
41078 ac_cv_func__doprnt=yes
41080 echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41083 ac_cv_func__doprnt=no
41085 rm -f conftest.err conftest.$ac_objext \
41086 conftest$ac_exeext conftest.$ac_ext
41088 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41090 if test $ac_cv_func__doprnt = yes; then
41092 cat >>confdefs.h <<\_ACEOF
41093 #define HAVE_DOPRNT 1
41103 if test $ac_cv_func_vprintf = yes ; then
41106 for ac_func in snprintf vsnprintf
41108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41109 echo "$as_me:$LINENO: checking for $ac_func" >&5
41110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41111 if eval "test \"\${$as_ac_var+set}\" = set"; then
41112 echo $ECHO_N "(cached) $ECHO_C" >&6
41114 cat >conftest.$ac_ext <<_ACEOF
41117 cat confdefs.h >>conftest.$ac_ext
41118 cat >>conftest.$ac_ext <<_ACEOF
41119 /* end confdefs.h. */
41120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41122 #define $ac_func innocuous_$ac_func
41124 /* System header to define __stub macros and hopefully few prototypes,
41125 which can conflict with char $ac_func (); below.
41126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41127 <limits.h> exists even on freestanding compilers. */
41130 # include <limits.h>
41132 # include <assert.h>
41137 /* Override any gcc2 internal prototype to avoid an error. */
41142 /* We use char because int might match the return type of a gcc2
41143 builtin and then its argument prototype would still apply. */
41145 /* The GNU C library defines this for functions which it implements
41146 to always fail with ENOSYS. Some functions are actually named
41147 something starting with __ and the normal name is an alias. */
41148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41151 char (*f) () = $ac_func;
41160 return f != $ac_func;
41165 rm -f conftest.$ac_objext conftest$ac_exeext
41166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41167 (eval $ac_link) 2>conftest.er1
41169 grep -v '^ *+' conftest.er1 >conftest.err
41171 cat conftest.err >&5
41172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); } &&
41174 { ac_try='test -z "$ac_c_werror_flag"
41175 || test ! -s conftest.err'
41176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41177 (eval $ac_try) 2>&5
41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180 (exit $ac_status); }; } &&
41181 { ac_try='test -s conftest$ac_exeext'
41182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41183 (eval $ac_try) 2>&5
41185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186 (exit $ac_status); }; }; then
41187 eval "$as_ac_var=yes"
41189 echo "$as_me: failed program was:" >&5
41190 sed 's/^/| /' conftest.$ac_ext >&5
41192 eval "$as_ac_var=no"
41194 rm -f conftest.err conftest.$ac_objext \
41195 conftest$ac_exeext conftest.$ac_ext
41197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41199 if test `eval echo '${'$as_ac_var'}'` = yes; then
41200 cat >>confdefs.h <<_ACEOF
41201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41321 echo "$as_me:$LINENO: checking for $ac_func" >&5
41322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41323 if eval "test \"\${$as_ac_var+set}\" = set"; then
41324 echo $ECHO_N "(cached) $ECHO_C" >&6
41326 cat >conftest.$ac_ext <<_ACEOF
41329 cat confdefs.h >>conftest.$ac_ext
41330 cat >>conftest.$ac_ext <<_ACEOF
41331 /* end confdefs.h. */
41332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41334 #define $ac_func innocuous_$ac_func
41336 /* System header to define __stub macros and hopefully few prototypes,
41337 which can conflict with char $ac_func (); below.
41338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41339 <limits.h> exists even on freestanding compilers. */
41342 # include <limits.h>
41344 # include <assert.h>
41349 /* Override any gcc2 internal prototype to avoid an error. */
41354 /* We use char because int might match the return type of a gcc2
41355 builtin and then its argument prototype would still apply. */
41357 /* The GNU C library defines this for functions which it implements
41358 to always fail with ENOSYS. Some functions are actually named
41359 something starting with __ and the normal name is an alias. */
41360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41363 char (*f) () = $ac_func;
41372 return f != $ac_func;
41377 rm -f conftest.$ac_objext conftest$ac_exeext
41378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379 (eval $ac_link) 2>conftest.er1
41381 grep -v '^ *+' conftest.er1 >conftest.err
41383 cat conftest.err >&5
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); } &&
41386 { ac_try='test -z "$ac_c_werror_flag"
41387 || test ! -s conftest.err'
41388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41389 (eval $ac_try) 2>&5
41391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392 (exit $ac_status); }; } &&
41393 { ac_try='test -s conftest$ac_exeext'
41394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395 (eval $ac_try) 2>&5
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); }; }; then
41399 eval "$as_ac_var=yes"
41401 echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41404 eval "$as_ac_var=no"
41406 rm -f conftest.err conftest.$ac_objext \
41407 conftest$ac_exeext conftest.$ac_ext
41409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41411 if test `eval echo '${'$as_ac_var'}'` = yes; then
41412 cat >>confdefs.h <<_ACEOF
41413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41422 for ac_func in getopt getpeereid
41424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41425 echo "$as_me:$LINENO: checking for $ac_func" >&5
41426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41427 if eval "test \"\${$as_ac_var+set}\" = set"; then
41428 echo $ECHO_N "(cached) $ECHO_C" >&6
41430 cat >conftest.$ac_ext <<_ACEOF
41433 cat confdefs.h >>conftest.$ac_ext
41434 cat >>conftest.$ac_ext <<_ACEOF
41435 /* end confdefs.h. */
41436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41438 #define $ac_func innocuous_$ac_func
41440 /* System header to define __stub macros and hopefully few prototypes,
41441 which can conflict with char $ac_func (); below.
41442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41443 <limits.h> exists even on freestanding compilers. */
41446 # include <limits.h>
41448 # include <assert.h>
41453 /* Override any gcc2 internal prototype to avoid an error. */
41458 /* We use char because int might match the return type of a gcc2
41459 builtin and then its argument prototype would still apply. */
41461 /* The GNU C library defines this for functions which it implements
41462 to always fail with ENOSYS. Some functions are actually named
41463 something starting with __ and the normal name is an alias. */
41464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41467 char (*f) () = $ac_func;
41476 return f != $ac_func;
41481 rm -f conftest.$ac_objext conftest$ac_exeext
41482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41483 (eval $ac_link) 2>conftest.er1
41485 grep -v '^ *+' conftest.er1 >conftest.err
41487 cat conftest.err >&5
41488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41489 (exit $ac_status); } &&
41490 { ac_try='test -z "$ac_c_werror_flag"
41491 || test ! -s conftest.err'
41492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41493 (eval $ac_try) 2>&5
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); }; } &&
41497 { ac_try='test -s conftest$ac_exeext'
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; }; then
41503 eval "$as_ac_var=yes"
41505 echo "$as_me: failed program was:" >&5
41506 sed 's/^/| /' conftest.$ac_ext >&5
41508 eval "$as_ac_var=no"
41510 rm -f conftest.err conftest.$ac_objext \
41511 conftest$ac_exeext conftest.$ac_ext
41513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41515 if test `eval echo '${'$as_ac_var'}'` = yes; then
41516 cat >>confdefs.h <<_ACEOF
41517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41522 "$ac_func.$ac_objext" | \
41523 *" $ac_func.$ac_objext" | \
41524 "$ac_func.$ac_objext "* | \
41525 *" $ac_func.$ac_objext "* ) ;;
41526 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41534 if test "$ac_cv_func_getopt" != yes; then
41535 LIBSRCS="$LIBSRCS getopt.c"
41537 if test "$ac_cv_func_getpeereid" != yes; then
41538 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41539 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41540 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41541 echo $ECHO_N "(cached) $ECHO_C" >&6
41543 cat >conftest.$ac_ext <<_ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h. */
41549 $ac_includes_default
41550 #ifdef HAVE_SYS_SOCKET_H
41551 #include <sys/socket.h>
41557 static struct msghdr ac_aggr;
41558 if (ac_aggr.msg_accrightslen)
41564 rm -f conftest.$ac_objext
41565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41566 (eval $ac_compile) 2>conftest.er1
41568 grep -v '^ *+' conftest.er1 >conftest.err
41570 cat conftest.err >&5
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
41573 { ac_try='test -z "$ac_c_werror_flag"
41574 || test ! -s conftest.err'
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; } &&
41580 { ac_try='test -s conftest.$ac_objext'
41581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582 (eval $ac_try) 2>&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); }; }; then
41586 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41588 echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41591 cat >conftest.$ac_ext <<_ACEOF
41594 cat confdefs.h >>conftest.$ac_ext
41595 cat >>conftest.$ac_ext <<_ACEOF
41596 /* end confdefs.h. */
41597 $ac_includes_default
41598 #ifdef HAVE_SYS_SOCKET_H
41599 #include <sys/socket.h>
41605 static struct msghdr ac_aggr;
41606 if (sizeof ac_aggr.msg_accrightslen)
41612 rm -f conftest.$ac_objext
41613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41614 (eval $ac_compile) 2>conftest.er1
41616 grep -v '^ *+' conftest.er1 >conftest.err
41618 cat conftest.err >&5
41619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620 (exit $ac_status); } &&
41621 { ac_try='test -z "$ac_c_werror_flag"
41622 || test ! -s conftest.err'
41623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41624 (eval $ac_try) 2>&5
41626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627 (exit $ac_status); }; } &&
41628 { ac_try='test -s conftest.$ac_objext'
41629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41630 (eval $ac_try) 2>&5
41632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633 (exit $ac_status); }; }; then
41634 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41636 echo "$as_me: failed program was:" >&5
41637 sed 's/^/| /' conftest.$ac_ext >&5
41639 ac_cv_member_struct_msghdr_msg_accrightslen=no
41641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41645 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41646 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41647 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41649 cat >>confdefs.h <<_ACEOF
41650 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41656 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41657 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41658 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41659 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41660 echo $ECHO_N "(cached) $ECHO_C" >&6
41662 cat >conftest.$ac_ext <<_ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h. */
41668 $ac_includes_default
41669 #ifdef HAVE_SYS_SOCKET_H
41670 #include <sys/socket.h>
41676 static struct msghdr ac_aggr;
41677 if (ac_aggr.msg_control)
41683 rm -f conftest.$ac_objext
41684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41685 (eval $ac_compile) 2>conftest.er1
41687 grep -v '^ *+' conftest.er1 >conftest.err
41689 cat conftest.err >&5
41690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41691 (exit $ac_status); } &&
41692 { ac_try='test -z "$ac_c_werror_flag"
41693 || test ! -s conftest.err'
41694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41695 (eval $ac_try) 2>&5
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); }; } &&
41699 { ac_try='test -s conftest.$ac_objext'
41700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41701 (eval $ac_try) 2>&5
41703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41704 (exit $ac_status); }; }; then
41705 ac_cv_member_struct_msghdr_msg_control=yes
41707 echo "$as_me: failed program was:" >&5
41708 sed 's/^/| /' conftest.$ac_ext >&5
41710 cat >conftest.$ac_ext <<_ACEOF
41713 cat confdefs.h >>conftest.$ac_ext
41714 cat >>conftest.$ac_ext <<_ACEOF
41715 /* end confdefs.h. */
41716 $ac_includes_default
41717 #ifdef HAVE_SYS_SOCKET_H
41718 #include <sys/socket.h>
41724 static struct msghdr ac_aggr;
41725 if (sizeof ac_aggr.msg_control)
41731 rm -f conftest.$ac_objext
41732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41733 (eval $ac_compile) 2>conftest.er1
41735 grep -v '^ *+' conftest.er1 >conftest.err
41737 cat conftest.err >&5
41738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739 (exit $ac_status); } &&
41740 { ac_try='test -z "$ac_c_werror_flag"
41741 || test ! -s conftest.err'
41742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41743 (eval $ac_try) 2>&5
41745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41746 (exit $ac_status); }; } &&
41747 { ac_try='test -s conftest.$ac_objext'
41748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41749 (eval $ac_try) 2>&5
41751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752 (exit $ac_status); }; }; then
41753 ac_cv_member_struct_msghdr_msg_control=yes
41755 echo "$as_me: failed program was:" >&5
41756 sed 's/^/| /' conftest.$ac_ext >&5
41758 ac_cv_member_struct_msghdr_msg_control=no
41760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41765 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41766 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41768 cat >>confdefs.h <<_ACEOF
41769 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41776 LIBSRCS="$LIBSRCS getpeereid.c"
41778 if test "$ac_cv_func_snprintf" != yes ||
41779 test "$ac_cv_func_vsnprintf" != yes; then
41780 if test "$ac_cv_func_snprintf" != yes; then
41782 cat >>confdefs.h <<\_ACEOF
41783 #define snprintf ber_pvt_snprintf
41787 if test "$ac_cv_func_vsnprintf" != yes; then
41789 cat >>confdefs.h <<\_ACEOF
41790 #define vsnprintf ber_pvt_vsnprintf
41797 if test "$ol_enable_slapi" != no ; then
41799 for ac_header in ltdl.h
41801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41803 echo "$as_me:$LINENO: checking for $ac_header" >&5
41804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41806 echo $ECHO_N "(cached) $ECHO_C" >&6
41808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41811 # Is the header compilable?
41812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41814 cat >conftest.$ac_ext <<_ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h. */
41820 $ac_includes_default
41821 #include <$ac_header>
41823 rm -f conftest.$ac_objext
41824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41825 (eval $ac_compile) 2>conftest.er1
41827 grep -v '^ *+' conftest.er1 >conftest.err
41829 cat conftest.err >&5
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); } &&
41832 { ac_try='test -z "$ac_c_werror_flag"
41833 || test ! -s conftest.err'
41834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835 (eval $ac_try) 2>&5
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; } &&
41839 { ac_try='test -s conftest.$ac_objext'
41840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41841 (eval $ac_try) 2>&5
41843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844 (exit $ac_status); }; }; then
41845 ac_header_compiler=yes
41847 echo "$as_me: failed program was:" >&5
41848 sed 's/^/| /' conftest.$ac_ext >&5
41850 ac_header_compiler=no
41852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41854 echo "${ECHO_T}$ac_header_compiler" >&6
41856 # Is the header present?
41857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41859 cat >conftest.$ac_ext <<_ACEOF
41862 cat confdefs.h >>conftest.$ac_ext
41863 cat >>conftest.$ac_ext <<_ACEOF
41864 /* end confdefs.h. */
41865 #include <$ac_header>
41867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41870 grep -v '^ *+' conftest.er1 >conftest.err
41872 cat conftest.err >&5
41873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41874 (exit $ac_status); } >/dev/null; then
41875 if test -s conftest.err; then
41876 ac_cpp_err=$ac_c_preproc_warn_flag
41877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41884 if test -z "$ac_cpp_err"; then
41885 ac_header_preproc=yes
41887 echo "$as_me: failed program was:" >&5
41888 sed 's/^/| /' conftest.$ac_ext >&5
41890 ac_header_preproc=no
41892 rm -f conftest.err conftest.$ac_ext
41893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41894 echo "${ECHO_T}$ac_header_preproc" >&6
41896 # So? What about this header?
41897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41903 ac_header_preproc=yes
41906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41920 ## ------------------------------------------ ##
41921 ## Report this to the AC_PACKAGE_NAME lists. ##
41922 ## ------------------------------------------ ##
41925 sed "s/^/$as_me: WARNING: /" >&2
41928 echo "$as_me:$LINENO: checking for $ac_header" >&5
41929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41931 echo $ECHO_N "(cached) $ECHO_C" >&6
41933 eval "$as_ac_Header=\$ac_header_preproc"
41935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41940 cat >>confdefs.h <<_ACEOF
41941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41949 if test $ac_cv_header_ltdl_h != yes ; then
41950 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
41951 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
41952 { (exit 1); exit 1; }; }
41954 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
41955 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
41956 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
41957 echo $ECHO_N "(cached) $ECHO_C" >&6
41959 ac_check_lib_save_LIBS=$LIBS
41960 LIBS="-lltdl $LIBS"
41961 cat >conftest.$ac_ext <<_ACEOF
41964 cat confdefs.h >>conftest.$ac_ext
41965 cat >>conftest.$ac_ext <<_ACEOF
41966 /* end confdefs.h. */
41968 /* Override any gcc2 internal prototype to avoid an error. */
41972 /* We use char because int might match the return type of a gcc2
41973 builtin and then its argument prototype would still apply. */
41983 rm -f conftest.$ac_objext conftest$ac_exeext
41984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41985 (eval $ac_link) 2>conftest.er1
41987 grep -v '^ *+' conftest.er1 >conftest.err
41989 cat conftest.err >&5
41990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41991 (exit $ac_status); } &&
41992 { ac_try='test -z "$ac_c_werror_flag"
41993 || test ! -s conftest.err'
41994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41995 (eval $ac_try) 2>&5
41997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998 (exit $ac_status); }; } &&
41999 { ac_try='test -s conftest$ac_exeext'
42000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42001 (eval $ac_try) 2>&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); }; }; then
42005 ac_cv_lib_ltdl_lt_dlinit=yes
42007 echo "$as_me: failed program was:" >&5
42008 sed 's/^/| /' conftest.$ac_ext >&5
42010 ac_cv_lib_ltdl_lt_dlinit=no
42012 rm -f conftest.err conftest.$ac_objext \
42013 conftest$ac_exeext conftest.$ac_ext
42014 LIBS=$ac_check_lib_save_LIBS
42016 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42017 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42018 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42021 LIBSLAPI=libslapi.a
42022 LIBSLAPITOOLS=../libslapi.a
42024 cat >>confdefs.h <<\_ACEOF
42025 #define HAVE_LIBLTDL 1
42030 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42031 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42032 { (exit 1); exit 1; }; }
42037 cat >>confdefs.h <<\_ACEOF
42038 #define LDAP_SLAPI 1
42043 if test "$ol_enable_debug" != no ; then
42045 cat >>confdefs.h <<\_ACEOF
42046 #define LDAP_DEBUG 1
42050 if test "$ol_enable_syslog" = yes ; then
42052 cat >>confdefs.h <<\_ACEOF
42053 #define LDAP_SYSLOG 1
42057 if test "$ol_link_kbind" != no ; then
42059 cat >>confdefs.h <<\_ACEOF
42060 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42064 if test "$ol_enable_proctitle" != no ; then
42066 cat >>confdefs.h <<\_ACEOF
42067 #define LDAP_PROCTITLE 1
42071 if test "$ol_enable_referrals" != no ; then
42073 cat >>confdefs.h <<\_ACEOF
42074 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42078 if test "$ol_enable_local" != no; then
42080 cat >>confdefs.h <<\_ACEOF
42081 #define LDAP_PF_LOCAL 1
42085 if test "$ol_link_ipv6" != no; then
42087 cat >>confdefs.h <<\_ACEOF
42088 #define LDAP_PF_INET6 1
42092 if test "$ol_enable_cleartext" != no ; then
42094 cat >>confdefs.h <<\_ACEOF
42095 #define SLAPD_CLEARTEXT 1
42099 if test "$ol_enable_crypt" != no ; then
42101 cat >>confdefs.h <<\_ACEOF
42102 #define SLAPD_CRYPT 1
42106 if test "$ol_link_spasswd" != no ; then
42108 cat >>confdefs.h <<\_ACEOF
42109 #define SLAPD_SPASSWD 1
42113 if test "$ol_enable_multimaster" != no ; then
42115 cat >>confdefs.h <<\_ACEOF
42116 #define SLAPD_MULTIMASTER 1
42120 if test "$ol_enable_rlookups" != no ; then
42122 cat >>confdefs.h <<\_ACEOF
42123 #define SLAPD_RLOOKUPS 1
42127 if test "$ol_enable_aci" != no ; then
42129 cat >>confdefs.h <<\_ACEOF
42130 #define SLAPD_ACI_ENABLED 1
42133 WITH_ACI_ENABLED=yes
42135 WITH_ACI_ENABLED=no
42138 if test "$ol_link_modules" != no ; then
42140 cat >>confdefs.h <<\_ACEOF
42141 #define SLAPD_MODULES 1
42145 SLAPD_MODULES_LDFLAGS="-dlopen self"
42149 cat >>confdefs.h <<\_ACEOF
42150 #define SLAPD_MOD_STATIC 1
42154 cat >>confdefs.h <<\_ACEOF
42155 #define SLAPD_MOD_DYNAMIC 2
42159 if test "$ol_enable_bdb" != no ; then
42161 BUILD_BDB=$ol_enable_bdb
42162 if test "$ol_enable_bdb" = mod ; then
42163 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42164 MFLAG=SLAPD_MOD_DYNAMIC
42166 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42167 MFLAG=SLAPD_MOD_STATIC
42170 cat >>confdefs.h <<_ACEOF
42171 #define SLAPD_BDB $MFLAG
42176 if test "$ol_enable_dnssrv" != no ; then
42178 BUILD_DNSSRV=$ol_enable_dnssrv
42179 if test "$ol_enable_dnssrv" = mod ; then
42180 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42181 MFLAG=SLAPD_MOD_DYNAMIC
42183 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42184 MFLAG=SLAPD_MOD_STATIC
42187 cat >>confdefs.h <<_ACEOF
42188 #define SLAPD_DNSSRV $MFLAG
42193 if test "$ol_enable_hdb" != no ; then
42195 BUILD_HDB=$ol_enable_hdb
42196 if test "$ol_enable_hdb" = mod ; then
42197 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42198 MFLAG=SLAPD_MOD_DYNAMIC
42200 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42201 MFLAG=SLAPD_MOD_STATIC
42204 cat >>confdefs.h <<_ACEOF
42205 #define SLAPD_HDB $MFLAG
42210 if test "$ol_enable_ldap" != no ; then
42212 BUILD_LDAP=$ol_enable_ldap
42213 if test "$ol_enable_ldap" = mod ; then
42214 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42215 MFLAG=SLAPD_MOD_DYNAMIC
42217 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42218 MFLAG=SLAPD_MOD_STATIC
42221 cat >>confdefs.h <<_ACEOF
42222 #define SLAPD_LDAP $MFLAG
42227 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42229 BUILD_LDBM=$ol_enable_ldbm
42230 if test "$ol_enable_ldbm" = mod ; then
42231 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42232 MFLAG=SLAPD_MOD_DYNAMIC
42234 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42235 MFLAG=SLAPD_MOD_STATIC
42238 cat >>confdefs.h <<_ACEOF
42239 #define SLAPD_LDBM $MFLAG
42244 if test "$ol_enable_meta" != no ; then
42246 BUILD_META=$ol_enable_meta
42248 if test "$ol_enable_meta" = mod ; then
42249 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42250 MFLAG=SLAPD_MOD_DYNAMIC
42252 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42253 MFLAG=SLAPD_MOD_STATIC
42256 cat >>confdefs.h <<_ACEOF
42257 #define SLAPD_META $MFLAG
42262 if test "$ol_enable_monitor" != no ; then
42264 BUILD_MONITOR=$ol_enable_monitor
42265 if test "$ol_enable_monitor" = mod ; then
42266 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42267 MFLAG=SLAPD_MOD_DYNAMIC
42269 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42270 MFLAG=SLAPD_MOD_STATIC
42273 cat >>confdefs.h <<_ACEOF
42274 #define SLAPD_MONITOR $MFLAG
42279 if test "$ol_enable_null" != no ; then
42281 BUILD_NULL=$ol_enable_null
42282 if test "$ol_enable_null" = mod ; then
42283 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42284 MFLAG=SLAPD_MOD_DYNAMIC
42286 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42287 MFLAG=SLAPD_MOD_STATIC
42290 cat >>confdefs.h <<_ACEOF
42291 #define SLAPD_NULL $MFLAG
42296 if test "$ol_enable_passwd" != no ; then
42298 BUILD_PASSWD=$ol_enable_passwd
42299 if test "$ol_enable_passwd" = mod ; then
42300 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42301 MFLAG=SLAPD_MOD_DYNAMIC
42303 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42304 MFLAG=SLAPD_MOD_STATIC
42307 cat >>confdefs.h <<_ACEOF
42308 #define SLAPD_PASSWD $MFLAG
42313 if test "$ol_link_perl" != no ; then
42315 BUILD_PERL=$ol_enable_perl
42316 if test "$ol_enable_perl" = mod ; then
42317 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42318 MFLAG=SLAPD_MOD_DYNAMIC
42320 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42321 MFLAG=SLAPD_MOD_STATIC
42324 cat >>confdefs.h <<_ACEOF
42325 #define SLAPD_PERL $MFLAG
42330 if test "$ol_enable_relay" != no ; then
42332 BUILD_RELAY=$ol_enable_relay
42333 if test "$ol_enable_relay" = mod ; then
42334 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42335 MFLAG=SLAPD_MOD_DYNAMIC
42337 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42338 MFLAG=SLAPD_MOD_STATIC
42341 cat >>confdefs.h <<_ACEOF
42342 #define SLAPD_RELAY $MFLAG
42347 if test "$ol_enable_shell" != no ; then
42348 if test "$ol_link_threads" != no ; then
42349 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42350 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42353 BUILD_SHELL=$ol_enable_shell
42354 if test "$ol_enable_shell" = mod ; then
42355 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42356 MFLAG=SLAPD_MOD_DYNAMIC
42358 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42359 MFLAG=SLAPD_MOD_STATIC
42362 cat >>confdefs.h <<_ACEOF
42363 #define SLAPD_SHELL $MFLAG
42368 if test "$ol_link_sql" != no ; then
42370 BUILD_SQL=$ol_enable_sql
42371 if test "$ol_enable_sql" = mod; then
42372 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42373 MFLAG=SLAPD_MOD_DYNAMIC
42375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42376 MFLAG=SLAPD_MOD_STATIC
42379 cat >>confdefs.h <<_ACEOF
42380 #define SLAPD_SQL $MFLAG
42385 if test "$ol_enable_accesslog" != no ; then
42386 BUILD_ACCESSLOG=$ol_enable_accesslog
42387 if test "$ol_enable_accesslog" = mod ; then
42388 MFLAG=SLAPD_MOD_DYNAMIC
42389 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42391 MFLAG=SLAPD_MOD_STATIC
42392 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42395 cat >>confdefs.h <<_ACEOF
42396 #define SLAPD_OVER_ACCESSLOG $MFLAG
42401 if test "$ol_enable_denyop" != no ; then
42402 BUILD_DENYOP=$ol_enable_denyop
42403 if test "$ol_enable_denyop" = mod ; then
42404 MFLAG=SLAPD_MOD_DYNAMIC
42405 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42407 MFLAG=SLAPD_MOD_STATIC
42408 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42411 cat >>confdefs.h <<_ACEOF
42412 #define SLAPD_OVER_DENYOP $MFLAG
42417 if test "$ol_enable_dyngroup" != no ; then
42418 BUILD_DYNGROUP=$ol_enable_dyngroup
42419 if test "$ol_enable_dyngroup" = mod ; then
42420 MFLAG=SLAPD_MOD_DYNAMIC
42421 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42423 MFLAG=SLAPD_MOD_STATIC
42424 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42427 cat >>confdefs.h <<_ACEOF
42428 #define SLAPD_OVER_DYNGROUP $MFLAG
42433 if test "$ol_enable_dynlist" != no ; then
42434 BUILD_DYNLIST=$ol_enable_dynlist
42435 if test "$ol_enable_dynlist" = mod ; then
42436 MFLAG=SLAPD_MOD_DYNAMIC
42437 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42439 MFLAG=SLAPD_MOD_STATIC
42440 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42443 cat >>confdefs.h <<_ACEOF
42444 #define SLAPD_OVER_DYNLIST $MFLAG
42449 if test "$ol_enable_lastmod" != no ; then
42450 BUILD_LASTMOD=$ol_enable_lastmod
42451 if test "$ol_enable_lastmod" = mod ; then
42452 MFLAG=SLAPD_MOD_DYNAMIC
42453 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42455 MFLAG=SLAPD_MOD_STATIC
42456 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42459 cat >>confdefs.h <<_ACEOF
42460 #define SLAPD_OVER_LASTMOD $MFLAG
42465 if test "$ol_enable_ppolicy" != no ; then
42466 BUILD_PPOLICY=$ol_enable_ppolicy
42467 if test "$ol_enable_ppolicy" = mod ; then
42468 MFLAG=SLAPD_MOD_DYNAMIC
42469 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42471 MFLAG=SLAPD_MOD_STATIC
42472 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42475 cat >>confdefs.h <<_ACEOF
42476 #define SLAPD_OVER_PPOLICY $MFLAG
42481 if test "$ol_enable_proxycache" != no ; then
42482 BUILD_PROXYCACHE=$ol_enable_proxycache
42483 if test "$ol_enable_proxycache" = mod ; then
42484 MFLAG=SLAPD_MOD_DYNAMIC
42485 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42487 MFLAG=SLAPD_MOD_STATIC
42488 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42491 cat >>confdefs.h <<_ACEOF
42492 #define SLAPD_OVER_PROXYCACHE $MFLAG
42497 if test "$ol_enable_refint" != no ; then
42498 BUILD_REFINT=$ol_enable_refint
42499 if test "$ol_enable_refint" = mod ; then
42500 MFLAG=SLAPD_MOD_DYNAMIC
42501 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42503 MFLAG=SLAPD_MOD_STATIC
42504 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42507 cat >>confdefs.h <<_ACEOF
42508 #define SLAPD_OVER_REFINT $MFLAG
42513 if test "$ol_enable_retcode" != no ; then
42514 BUILD_RETCODE=$ol_enable_retcode
42515 if test "$ol_enable_retcode" = mod ; then
42516 MFLAG=SLAPD_MOD_DYNAMIC
42517 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42519 MFLAG=SLAPD_MOD_STATIC
42520 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42523 cat >>confdefs.h <<_ACEOF
42524 #define SLAPD_OVER_RETCODE $MFLAG
42529 if test "$ol_enable_rwm" != no ; then
42531 BUILD_RWM=$ol_enable_rwm
42532 if test "$ol_enable_rwm" = mod ; then
42533 MFLAG=SLAPD_MOD_DYNAMIC
42534 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42536 MFLAG=SLAPD_MOD_STATIC
42537 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42540 cat >>confdefs.h <<_ACEOF
42541 #define SLAPD_OVER_RWM $MFLAG
42546 if test "$ol_enable_syncprov" != no ; then
42547 BUILD_SYNCPROV=$ol_enable_syncprov
42548 if test "$ol_enable_syncprov" = mod ; then
42549 MFLAG=SLAPD_MOD_DYNAMIC
42550 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42552 MFLAG=SLAPD_MOD_STATIC
42553 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42556 cat >>confdefs.h <<_ACEOF
42557 #define SLAPD_OVER_SYNCPROV $MFLAG
42562 if test "$ol_enable_translucent" != no ; then
42563 BUILD_TRANSLUCENT=$ol_enable_translucent
42564 if test "$ol_enable_translucent" = mod ; then
42565 MFLAG=SLAPD_MOD_DYNAMIC
42566 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42568 MFLAG=SLAPD_MOD_STATIC
42569 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42572 cat >>confdefs.h <<_ACEOF
42573 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42578 if test "$ol_enable_unique" != no ; then
42579 BUILD_UNIQUE=$ol_enable_unique
42580 if test "$ol_enable_unique" = mod ; then
42581 MFLAG=SLAPD_MOD_DYNAMIC
42582 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42584 MFLAG=SLAPD_MOD_STATIC
42585 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42588 cat >>confdefs.h <<_ACEOF
42589 #define SLAPD_OVER_UNIQUE $MFLAG
42594 if test "$ol_enable_valsort" != no ; then
42595 BUILD_VALSORT=$ol_enable_valsort
42596 if test "$ol_enable_valsort" = mod ; then
42597 MFLAG=SLAPD_MOD_DYNAMIC
42598 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42600 MFLAG=SLAPD_MOD_STATIC
42601 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42604 cat >>confdefs.h <<_ACEOF
42605 #define SLAPD_OVER_VALSORT $MFLAG
42610 if test "$ol_enable_slurpd" != no &&
42611 test "$ol_link_threads" != no &&
42612 test $BUILD_SLAPD = yes ; then
42616 if test "$ol_enable_rewrite" != no ; then
42618 cat >>confdefs.h <<\_ACEOF
42619 #define ENABLE_REWRITE 1
42625 if test "$ol_enable_slapi" != no ; then
42627 cat >>confdefs.h <<\_ACEOF
42628 #define ENABLE_SLAPI 1
42632 SLAPD_SLAPI_DEPEND=libslapi.a
42637 if test "$ac_cv_mingw32" = yes ; then
42639 SLAPD_MODULES_LDFLAGS=
42723 # Check whether --with-xxinstall or --without-xxinstall was given.
42724 if test "${with_xxinstall+set}" = set; then
42725 withval="$with_xxinstall"
42730 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"
42733 ac_config_commands="$ac_config_commands default"
42737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42738 # Let make expand exec_prefix.
42739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42741 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42742 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42743 # trailing colons and then remove the whole line if VPATH becomes empty
42744 # (actually we leave an empty line to preserve line numbers).
42745 if test "x$srcdir" = x.; then
42746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42747 s/:*\$(srcdir):*/:/;
42748 s/:*\${srcdir}:*/:/;
42750 s/^\([^=]*=[ ]*\):*/\1/;
42756 DEFS=-DHAVE_CONFIG_H
42760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42761 # 1. Remove the extension, and $U if already installed.
42762 ac_i=`echo "$ac_i" |
42763 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42765 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42766 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42768 LIBOBJS=$ac_libobjs
42770 LTLIBOBJS=$ac_ltlibobjs
42773 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42774 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42775 Usually this means the macro was only invoked conditionally." >&5
42776 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42777 Usually this means the macro was only invoked conditionally." >&2;}
42778 { (exit 1); exit 1; }; }
42780 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42781 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42782 Usually this means the macro was only invoked conditionally." >&5
42783 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42784 Usually this means the macro was only invoked conditionally." >&2;}
42785 { (exit 1); exit 1; }; }
42787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42788 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42789 Usually this means the macro was only invoked conditionally." >&5
42790 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42791 Usually this means the macro was only invoked conditionally." >&2;}
42792 { (exit 1); exit 1; }; }
42795 : ${CONFIG_STATUS=./config.status}
42796 ac_clean_files_save=$ac_clean_files
42797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42800 cat >$CONFIG_STATUS <<_ACEOF
42802 # Generated by $as_me.
42803 # Run this file to recreate the current configuration.
42804 # Compiler output produced by configure, useful for debugging
42805 # configure, is in config.log if it exists.
42808 ac_cs_recheck=false
42810 SHELL=\${CONFIG_SHELL-$SHELL}
42813 cat >>$CONFIG_STATUS <<\_ACEOF
42814 ## --------------------- ##
42815 ## M4sh Initialization. ##
42816 ## --------------------- ##
42818 # Be Bourne compatible
42819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42823 # is contrary to our usage. Disable this feature.
42824 alias -g '${1+"$@"}'='"$@"'
42825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42828 DUALCASE=1; export DUALCASE # for MKS sh
42830 # Support unset when possible.
42831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42838 # Work around bugs in pre-3.0 UWIN ksh.
42839 $as_unset ENV MAIL MAILPATH
42846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42848 LC_TELEPHONE LC_TIME
42850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42851 eval $as_var=C; export $as_var
42857 # Required to use basename.
42858 if expr a : '\(a\)' >/dev/null 2>&1; then
42864 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42865 as_basename=basename
42871 # Name of the executable.
42872 as_me=`$as_basename "$0" ||
42873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42874 X"$0" : 'X\(//\)$' \| \
42875 X"$0" : 'X\(/\)$' \| \
42876 . : '\(.\)' 2>/dev/null ||
42878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42879 /^X\/\(\/\/\)$/{ s//\1/; q; }
42880 /^X\/\(\/\).*/{ s//\1/; q; }
42884 # PATH needs CR, and LINENO needs CR and PATH.
42885 # Avoid depending upon Character Ranges.
42886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42889 as_cr_digits='0123456789'
42890 as_cr_alnum=$as_cr_Letters$as_cr_digits
42892 # The user is always right.
42893 if test "${PATH_SEPARATOR+set}" != set; then
42894 echo "#! /bin/sh" >conf$$.sh
42895 echo "exit 0" >>conf$$.sh
42897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42906 as_lineno_1=$LINENO
42907 as_lineno_2=$LINENO
42908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42909 test "x$as_lineno_1" != "x$as_lineno_2" &&
42910 test "x$as_lineno_3" = "x$as_lineno_2" || {
42911 # Find who we are. Look in the path if we contain no path at all
42914 *[\\/]* ) as_myself=$0 ;;
42915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42916 for as_dir in $PATH
42919 test -z "$as_dir" && as_dir=.
42920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42925 # We did not find ourselves, most probably we were run as `sh COMMAND'
42926 # in which case we are not to be found in the path.
42927 if test "x$as_myself" = x; then
42930 if test ! -f "$as_myself"; then
42931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42933 { (exit 1); exit 1; }; }
42935 case $CONFIG_SHELL in
42937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42941 test -z "$as_dir" && as_dir=.
42942 for as_base in sh bash ksh sh5; do
42945 if ("$as_dir/$as_base" -c '
42946 as_lineno_1=$LINENO
42947 as_lineno_2=$LINENO
42948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42949 test "x$as_lineno_1" != "x$as_lineno_2" &&
42950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42951 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42952 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42953 CONFIG_SHELL=$as_dir/$as_base
42954 export CONFIG_SHELL
42955 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42964 # uniformly replaced by the line number. The first 'sed' inserts a
42965 # line-number line before each line; the second 'sed' does the real
42966 # work. The second script uses 'N' to pair each line-number line
42967 # with the numbered line, and appends trailing '-' during
42968 # substitution so that $LINENO is not a special case at line end.
42969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42971 sed '=' <$as_myself |
42976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42979 s,^['$as_cr_digits']*\n,,
42980 ' >$as_me.lineno &&
42981 chmod +x $as_me.lineno ||
42982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42983 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42984 { (exit 1); exit 1; }; }
42986 # Don't try to exec as it changes $[0], causing all sort of problems
42987 # (the dirname of $[0] is not the place where we might find the
42988 # original and so on. Autoconf is especially sensible to this).
42990 # Exit status is that of the last command.
42995 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42996 *c*,-n*) ECHO_N= ECHO_C='
42998 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42999 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43002 if expr a : '\(a\)' >/dev/null 2>&1; then
43008 rm -f conf$$ conf$$.exe conf$$.file
43010 if ln -s conf$$.file conf$$ 2>/dev/null; then
43011 # We could just check for DJGPP; but this test a) works b) is more generic
43012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43013 if test -f conf$$.exe; then
43014 # Don't use ln at all; we don't have any links
43019 elif ln conf$$.file conf$$ 2>/dev/null; then
43024 rm -f conf$$ conf$$.exe conf$$.file
43026 if mkdir -p . 2>/dev/null; then
43029 test -d ./-p && rmdir ./-p
43033 as_executable_p="test -f"
43035 # Sed expression to map a string onto a valid CPP name.
43036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43038 # Sed expression to map a string onto a valid variable name.
43039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43043 # We need space, tab and new line, in precisely that order.
43053 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43054 # report actual input values of CONFIG_FILES etc. instead of their
43055 # values after options handling. Logging --version etc. is OK.
43059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43060 ## Running $as_me. ##
43065 This file was extended by $as_me, which was
43066 generated by GNU Autoconf 2.59. Invocation command line was
43068 CONFIG_FILES = $CONFIG_FILES
43069 CONFIG_HEADERS = $CONFIG_HEADERS
43070 CONFIG_LINKS = $CONFIG_LINKS
43071 CONFIG_COMMANDS = $CONFIG_COMMANDS
43075 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43079 # Files that config.status was made for.
43080 if test -n "$ac_config_files"; then
43081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43084 if test -n "$ac_config_headers"; then
43085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43088 if test -n "$ac_config_links"; then
43089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43092 if test -n "$ac_config_commands"; then
43093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43096 cat >>$CONFIG_STATUS <<\_ACEOF
43099 \`$as_me' instantiates files from templates according to the
43100 current configuration.
43102 Usage: $0 [OPTIONS] [FILE]...
43104 -h, --help print this help, then exit
43105 -V, --version print version number, then exit
43106 -q, --quiet do not print progress messages
43107 -d, --debug don't remove temporary files
43108 --recheck update $as_me by reconfiguring in the same conditions
43109 --file=FILE[:TEMPLATE]
43110 instantiate the configuration file FILE
43111 --header=FILE[:TEMPLATE]
43112 instantiate the configuration header FILE
43114 Configuration files:
43117 Configuration headers:
43120 Configuration commands:
43123 Report bugs to <bug-autoconf@gnu.org>."
43126 cat >>$CONFIG_STATUS <<_ACEOF
43129 configured by $0, generated by GNU Autoconf 2.59,
43130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43132 Copyright (C) 2003 Free Software Foundation, Inc.
43133 This config.status script is free software; the Free Software Foundation
43134 gives unlimited permission to copy, distribute and modify it."
43139 cat >>$CONFIG_STATUS <<\_ACEOF
43140 # If no file are specified by the user, then we need to provide default
43141 # value. By we need to know if files were specified by the user.
43147 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43148 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43156 *) # This is not an option, so the user has probably given explicit
43159 ac_need_defaults=false;;
43163 # Handling of the options.
43165 cat >>$CONFIG_STATUS <<\_ACEOF
43166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43168 --version | --vers* | -V )
43169 echo "$ac_cs_version"; exit 0 ;;
43171 # Conflict between --help and --header
43172 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43173 Try \`$0 --help' for more information." >&5
43174 echo "$as_me: error: ambiguous option: $1
43175 Try \`$0 --help' for more information." >&2;}
43176 { (exit 1); exit 1; }; };;
43177 --help | --hel | -h )
43178 echo "$ac_cs_usage"; exit 0 ;;
43179 --debug | --d* | -d )
43181 --file | --fil | --fi | --f )
43183 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43184 ac_need_defaults=false;;
43185 --header | --heade | --head | --hea )
43187 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43188 ac_need_defaults=false;;
43189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43193 # This is an error.
43194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43195 Try \`$0 --help' for more information." >&5
43196 echo "$as_me: error: unrecognized option: $1
43197 Try \`$0 --help' for more information." >&2;}
43198 { (exit 1); exit 1; }; } ;;
43200 *) ac_config_targets="$ac_config_targets $1" ;;
43206 ac_configure_extra_args=
43208 if $ac_cs_silent; then
43210 ac_configure_extra_args="$ac_configure_extra_args --silent"
43214 cat >>$CONFIG_STATUS <<_ACEOF
43215 if \$ac_cs_recheck; then
43216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43222 cat >>$CONFIG_STATUS <<_ACEOF
43224 # INIT-COMMANDS section.
43227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43228 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43234 cat >>$CONFIG_STATUS <<\_ACEOF
43235 for ac_config_target in $ac_config_targets
43237 case "$ac_config_target" in
43238 # Handling of arguments.
43239 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43240 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43241 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43242 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43243 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43244 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43245 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43246 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43247 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43248 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43249 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43250 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43251 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43252 "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" ;;
43253 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43254 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43255 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43256 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43257 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43258 "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" ;;
43259 "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" ;;
43260 "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" ;;
43261 "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" ;;
43262 "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" ;;
43263 "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" ;;
43264 "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" ;;
43265 "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" ;;
43266 "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" ;;
43267 "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" ;;
43268 "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" ;;
43269 "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" ;;
43270 "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" ;;
43271 "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" ;;
43272 "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" ;;
43273 "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" ;;
43274 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43275 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43276 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43277 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43278 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43279 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43280 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43281 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43282 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43283 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43286 { (exit 1); exit 1; }; };;
43290 # If the user did not use the arguments to specify the items to instantiate,
43291 # then the envvar interface is used. Set only those that are not.
43292 # We use the long form for the default assignment because of an extremely
43293 # bizarre bug on SunOS 4.1.3.
43294 if $ac_need_defaults; then
43295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43300 # Have a temporary directory for convenience. Make it in the build tree
43301 # simply because there is no reason to put it here, and in addition,
43302 # creating and moving files from /tmp can sometimes cause problems.
43303 # Create a temporary directory, and hook for its removal unless debugging.
43306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43307 trap '{ (exit 1); exit 1; }' 1 2 13 15
43310 # Create a (secure) tmp directory for tmp files.
43313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43314 test -n "$tmp" && test -d "$tmp"
43317 tmp=./confstat$$-$RANDOM
43318 (umask 077 && mkdir $tmp)
43321 echo "$me: cannot create a temporary directory in ." >&2
43322 { (exit 1); exit 1; }
43327 cat >>$CONFIG_STATUS <<_ACEOF
43330 # CONFIG_FILES section.
43333 # No need to generate the scripts if there are no CONFIG_FILES.
43334 # This happens for instance when ./config.status config.h
43335 if test -n "\$CONFIG_FILES"; then
43336 # Protect against being on the right side of a sed subst in config.status.
43337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43339 s,@SHELL@,$SHELL,;t t
43340 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43341 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43342 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43343 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43344 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43345 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43346 s,@exec_prefix@,$exec_prefix,;t t
43347 s,@prefix@,$prefix,;t t
43348 s,@program_transform_name@,$program_transform_name,;t t
43349 s,@bindir@,$bindir,;t t
43350 s,@sbindir@,$sbindir,;t t
43351 s,@libexecdir@,$libexecdir,;t t
43352 s,@datadir@,$datadir,;t t
43353 s,@sysconfdir@,$sysconfdir,;t t
43354 s,@sharedstatedir@,$sharedstatedir,;t t
43355 s,@localstatedir@,$localstatedir,;t t
43356 s,@libdir@,$libdir,;t t
43357 s,@includedir@,$includedir,;t t
43358 s,@oldincludedir@,$oldincludedir,;t t
43359 s,@infodir@,$infodir,;t t
43360 s,@mandir@,$mandir,;t t
43361 s,@build_alias@,$build_alias,;t t
43362 s,@host_alias@,$host_alias,;t t
43363 s,@target_alias@,$target_alias,;t t
43364 s,@DEFS@,$DEFS,;t t
43365 s,@ECHO_C@,$ECHO_C,;t t
43366 s,@ECHO_N@,$ECHO_N,;t t
43367 s,@ECHO_T@,$ECHO_T,;t t
43368 s,@LIBS@,$LIBS,;t t
43369 s,@build@,$build,;t t
43370 s,@build_cpu@,$build_cpu,;t t
43371 s,@build_vendor@,$build_vendor,;t t
43372 s,@build_os@,$build_os,;t t
43373 s,@host@,$host,;t t
43374 s,@host_cpu@,$host_cpu,;t t
43375 s,@host_vendor@,$host_vendor,;t t
43376 s,@host_os@,$host_os,;t t
43377 s,@target@,$target,;t t
43378 s,@target_cpu@,$target_cpu,;t t
43379 s,@target_vendor@,$target_vendor,;t t
43380 s,@target_os@,$target_os,;t t
43381 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43382 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43383 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43384 s,@CYGPATH_W@,$CYGPATH_W,;t t
43385 s,@PACKAGE@,$PACKAGE,;t t
43386 s,@VERSION@,$VERSION,;t t
43387 s,@ACLOCAL@,$ACLOCAL,;t t
43388 s,@AUTOCONF@,$AUTOCONF,;t t
43389 s,@AUTOMAKE@,$AUTOMAKE,;t t
43390 s,@AUTOHEADER@,$AUTOHEADER,;t t
43391 s,@MAKEINFO@,$MAKEINFO,;t t
43392 s,@install_sh@,$install_sh,;t t
43393 s,@STRIP@,$STRIP,;t t
43394 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43395 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43396 s,@mkdir_p@,$mkdir_p,;t t
43398 s,@SET_MAKE@,$SET_MAKE,;t t
43399 s,@am__leading_dot@,$am__leading_dot,;t t
43400 s,@AMTAR@,$AMTAR,;t t
43401 s,@am__tar@,$am__tar,;t t
43402 s,@am__untar@,$am__untar,;t t
43403 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43404 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43405 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43406 s,@top_builddir@,$top_builddir,;t t
43407 s,@ldap_subdir@,$ldap_subdir,;t t
43410 s,@CFLAGS@,$CFLAGS,;t t
43411 s,@LDFLAGS@,$LDFLAGS,;t t
43412 s,@CPPFLAGS@,$CPPFLAGS,;t t
43413 s,@ac_ct_CC@,$ac_ct_CC,;t t
43414 s,@EXEEXT@,$EXEEXT,;t t
43415 s,@OBJEXT@,$OBJEXT,;t t
43416 s,@DEPDIR@,$DEPDIR,;t t
43417 s,@am__include@,$am__include,;t t
43418 s,@am__quote@,$am__quote,;t t
43419 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43420 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43421 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43422 s,@CCDEPMODE@,$CCDEPMODE,;t t
43423 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43424 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43425 s,@EGREP@,$EGREP,;t t
43426 s,@LN_S@,$LN_S,;t t
43427 s,@ECHO@,$ECHO,;t t
43428 s,@ac_ct_AR@,$ac_ct_AR,;t t
43429 s,@RANLIB@,$RANLIB,;t t
43430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43431 s,@DLLTOOL@,$DLLTOOL,;t t
43432 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43434 s,@ac_ct_AS@,$ac_ct_AS,;t t
43435 s,@OBJDUMP@,$OBJDUMP,;t t
43436 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43438 s,@LIBTOOL@,$LIBTOOL,;t t
43439 s,@PERLBIN@,$PERLBIN,;t t
43440 s,@OL_MKDEP@,$OL_MKDEP,;t t
43441 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43442 s,@LTSTATIC@,$LTSTATIC,;t t
43443 s,@LIBOBJS@,$LIBOBJS,;t t
43444 s,@LIBSRCS@,$LIBSRCS,;t t
43445 s,@PLAT@,$PLAT,;t t
43446 s,@WITH_SASL@,$WITH_SASL,;t t
43447 s,@WITH_TLS@,$WITH_TLS,;t t
43448 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43449 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43450 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43451 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43452 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43453 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43454 s,@BUILD_BDB@,$BUILD_BDB,;t t
43455 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43456 s,@BUILD_HDB@,$BUILD_HDB,;t t
43457 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43458 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43459 s,@BUILD_META@,$BUILD_META,;t t
43460 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43461 s,@BUILD_NULL@,$BUILD_NULL,;t t
43462 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43463 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43464 s,@BUILD_PERL@,$BUILD_PERL,;t t
43465 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43466 s,@BUILD_SQL@,$BUILD_SQL,;t t
43467 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43468 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43469 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43470 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43471 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43472 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43473 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43474 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43475 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43476 s,@BUILD_RWM@,$BUILD_RWM,;t t
43477 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43478 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43479 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43480 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43481 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43482 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43483 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43484 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43485 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43486 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43487 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43488 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43489 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43490 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43491 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43492 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43493 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43494 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43495 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43496 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43497 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43498 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43499 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43500 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43501 s,@SASL_LIBS@,$SASL_LIBS,;t t
43502 s,@TLS_LIBS@,$TLS_LIBS,;t t
43503 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43504 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43505 s,@LIBSLAPI@,$LIBSLAPI,;t t
43506 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43507 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43508 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43509 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43510 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43511 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43512 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43513 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43518 cat >>$CONFIG_STATUS <<\_ACEOF
43519 # Split the substitutions into bite-sized pieces for seds with
43520 # small command number limits, like on Digital OSF/1 and HP-UX.
43521 ac_max_sed_lines=48
43522 ac_sed_frag=1 # Number of current file.
43523 ac_beg=1 # First line for current file.
43524 ac_end=$ac_max_sed_lines # Line after last line for current file.
43527 while $ac_more_lines; do
43528 if test $ac_beg -gt 1; then
43529 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43531 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43533 if test ! -s $tmp/subs.frag; then
43534 ac_more_lines=false
43536 # The purpose of the label and of the branching condition is to
43537 # speed up the sed processing (if there are no `@' at all, there
43538 # is no need to browse any of the substitutions).
43539 # These are the two extra sed commands mentioned above.
43541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43542 if test -z "$ac_sed_cmds"; then
43543 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43545 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43547 ac_sed_frag=`expr $ac_sed_frag + 1`
43549 ac_end=`expr $ac_end + $ac_max_sed_lines`
43552 if test -z "$ac_sed_cmds"; then
43555 fi # test -n "$CONFIG_FILES"
43558 cat >>$CONFIG_STATUS <<\_ACEOF
43559 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43562 - | *:- | *:-:* ) # input from stdin
43564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43568 * ) ac_file_in=$ac_file.in ;;
43571 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43572 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43574 X"$ac_file" : 'X\(//\)[^/]' \| \
43575 X"$ac_file" : 'X\(//\)$' \| \
43576 X"$ac_file" : 'X\(/\)' \| \
43577 . : '\(.\)' 2>/dev/null ||
43579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43581 /^X\(\/\/\)$/{ s//\1/; q; }
43582 /^X\(\/\).*/{ s//\1/; q; }
43584 { if $as_mkdir_p; then
43589 while test ! -d "$as_dir"; do
43590 as_dirs="$as_dir $as_dirs"
43591 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43593 X"$as_dir" : 'X\(//\)[^/]' \| \
43594 X"$as_dir" : 'X\(//\)$' \| \
43595 X"$as_dir" : 'X\(/\)' \| \
43596 . : '\(.\)' 2>/dev/null ||
43598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43600 /^X\(\/\/\)$/{ s//\1/; q; }
43601 /^X\(\/\).*/{ s//\1/; q; }
43604 test ! -n "$as_dirs" || mkdir $as_dirs
43605 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43606 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43607 { (exit 1); exit 1; }; }; }
43611 if test "$ac_dir" != .; then
43612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43613 # A "../" for each directory in $ac_dir_suffix.
43614 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43616 ac_dir_suffix= ac_top_builddir=
43620 .) # No --srcdir option. We are building in place.
43622 if test -z "$ac_top_builddir"; then
43625 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43627 [\\/]* | ?:[\\/]* ) # Absolute path.
43628 ac_srcdir=$srcdir$ac_dir_suffix;
43629 ac_top_srcdir=$srcdir ;;
43630 *) # Relative path.
43631 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43632 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43635 # Do not use `cd foo && pwd` to compute absolute paths, because
43636 # the directories may not exist.
43638 .) ac_abs_builddir="$ac_dir";;
43641 .) ac_abs_builddir=`pwd`;;
43642 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43643 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43646 case $ac_abs_builddir in
43647 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43649 case ${ac_top_builddir}. in
43650 .) ac_abs_top_builddir=$ac_abs_builddir;;
43651 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43652 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43655 case $ac_abs_builddir in
43656 .) ac_abs_srcdir=$ac_srcdir;;
43659 .) ac_abs_srcdir=$ac_abs_builddir;;
43660 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43661 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43664 case $ac_abs_builddir in
43665 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43667 case $ac_top_srcdir in
43668 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43669 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43670 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43677 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43680 if test x"$ac_file" != x-; then
43681 { echo "$as_me:$LINENO: creating $ac_file" >&5
43682 echo "$as_me: creating $ac_file" >&6;}
43685 # Let's still pretend it is `configure' which instantiates (i.e., don't
43686 # use $as_me), people would be surprised to read:
43687 # /* config.h. Generated by config.status. */
43688 if test x"$ac_file" = x-; then
43691 configure_input="$ac_file. "
43693 configure_input=$configure_input"Generated from `echo $ac_file_in |
43694 sed 's,.*/,,'` by configure."
43696 # First look for the input files in the build tree, otherwise in the
43698 ac_file_inputs=`IFS=:
43699 for f in $ac_file_in; do
43701 -) echo $tmp/stdin ;;
43703 # Absolute (can't be DOS-style, as IFS=:)
43704 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43705 echo "$as_me: error: cannot find input file: $f" >&2;}
43706 { (exit 1); exit 1; }; }
43709 if test -f "$f"; then
43712 elif test -f "$srcdir/$f"; then
43717 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43718 echo "$as_me: error: cannot find input file: $f" >&2;}
43719 { (exit 1); exit 1; }; }
43722 done` || { (exit 1); exit 1; }
43724 cat >>$CONFIG_STATUS <<_ACEOF
43728 cat >>$CONFIG_STATUS <<\_ACEOF
43730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43731 s,@configure_input@,$configure_input,;t t
43732 s,@srcdir@,$ac_srcdir,;t t
43733 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43734 s,@top_srcdir@,$ac_top_srcdir,;t t
43735 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43736 s,@builddir@,$ac_builddir,;t t
43737 s,@abs_builddir@,$ac_abs_builddir,;t t
43738 s,@top_builddir@,$ac_top_builddir,;t t
43739 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43740 s,@INSTALL@,$ac_INSTALL,;t t
43741 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43743 if test x"$ac_file" != x-; then
43744 mv $tmp/out $ac_file
43752 cat >>$CONFIG_STATUS <<\_ACEOF
43755 # CONFIG_HEADER section.
43758 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43759 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43761 # ac_d sets the value in "#define NAME VALUE" lines.
43762 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43763 ac_dB='[ ].*$,\1#\2'
43766 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43767 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43768 ac_uB='$,\1#\2define\3'
43772 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43775 - | *:- | *:-:* ) # input from stdin
43777 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43779 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43780 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43781 * ) ac_file_in=$ac_file.in ;;
43784 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43785 echo "$as_me: creating $ac_file" >&6;}
43787 # First look for the input files in the build tree, otherwise in the
43789 ac_file_inputs=`IFS=:
43790 for f in $ac_file_in; do
43792 -) echo $tmp/stdin ;;
43794 # Absolute (can't be DOS-style, as IFS=:)
43795 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43796 echo "$as_me: error: cannot find input file: $f" >&2;}
43797 { (exit 1); exit 1; }; }
43798 # Do quote $f, to prevent DOS paths from being IFS'd.
43801 if test -f "$f"; then
43804 elif test -f "$srcdir/$f"; then
43809 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43810 echo "$as_me: error: cannot find input file: $f" >&2;}
43811 { (exit 1); exit 1; }; }
43814 done` || { (exit 1); exit 1; }
43815 # Remove the trailing spaces.
43816 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43820 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43821 # `conftest.undefs', that substitutes the proper values into
43822 # config.h.in to produce config.h. The first handles `#define'
43823 # templates, and the second `#undef' templates.
43824 # And first: Protect against being on the right side of a sed subst in
43825 # config.status. Protect against being in an unquoted here document
43826 # in config.status.
43827 rm -f conftest.defines conftest.undefs
43828 # Using a here document instead of a string reduces the quoting nightmare.
43829 # Putting comments in sed scripts is not portable.
43831 # `end' is used to avoid that the second main sed command (meant for
43832 # 0-ary CPP macros) applies to n-ary macro definitions.
43833 # See the Autoconf documentation for `clear'.
43834 cat >confdef2sed.sed <<\_ACEOF
43839 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43841 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43844 # If some macros were called several times there might be several times
43845 # the same #defines, which is useless. Nevertheless, we may not want to
43846 # sort them, since we want the *last* AC-DEFINE to be honored.
43847 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43848 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43849 rm -f confdef2sed.sed
43851 # This sed command replaces #undef with comments. This is necessary, for
43852 # example, in the case of _POSIX_SOURCE, which is predefined and required
43853 # on some systems where configure will not decide to define it.
43854 cat >>conftest.undefs <<\_ACEOF
43855 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43858 # Break up conftest.defines because some shells have a limit on the size
43859 # of here documents, and old seds have small limits too (100 cmds).
43860 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43861 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43862 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43863 echo ' :' >>$CONFIG_STATUS
43864 rm -f conftest.tail
43865 while grep . conftest.defines >/dev/null
43867 # Write a limited-size here document to $tmp/defines.sed.
43868 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43869 # Speed up: don't consider the non `#define' lines.
43870 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43871 # Work around the forget-to-reset-the-flag bug.
43872 echo 't clr' >>$CONFIG_STATUS
43873 echo ': clr' >>$CONFIG_STATUS
43874 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43876 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43878 mv $tmp/out $tmp/in
43880 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43881 rm -f conftest.defines
43882 mv conftest.tail conftest.defines
43884 rm -f conftest.defines
43885 echo ' fi # grep' >>$CONFIG_STATUS
43886 echo >>$CONFIG_STATUS
43888 # Break up conftest.undefs because some shells have a limit on the size
43889 # of here documents, and old seds have small limits too (100 cmds).
43890 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43891 rm -f conftest.tail
43892 while grep . conftest.undefs >/dev/null
43894 # Write a limited-size here document to $tmp/undefs.sed.
43895 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43896 # Speed up: don't consider the non `#undef'
43897 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43898 # Work around the forget-to-reset-the-flag bug.
43899 echo 't clr' >>$CONFIG_STATUS
43900 echo ': clr' >>$CONFIG_STATUS
43901 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43903 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43905 mv $tmp/out $tmp/in
43907 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43908 rm -f conftest.undefs
43909 mv conftest.tail conftest.undefs
43911 rm -f conftest.undefs
43913 cat >>$CONFIG_STATUS <<\_ACEOF
43914 # Let's still pretend it is `configure' which instantiates (i.e., don't
43915 # use $as_me), people would be surprised to read:
43916 # /* config.h. Generated by config.status. */
43917 if test x"$ac_file" = x-; then
43918 echo "/* Generated by configure. */" >$tmp/config.h
43920 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43922 cat $tmp/in >>$tmp/config.h
43924 if test x"$ac_file" != x-; then
43925 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43926 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43927 echo "$as_me: $ac_file is unchanged" >&6;}
43929 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43931 X"$ac_file" : 'X\(//\)[^/]' \| \
43932 X"$ac_file" : 'X\(//\)$' \| \
43933 X"$ac_file" : 'X\(/\)' \| \
43934 . : '\(.\)' 2>/dev/null ||
43936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43938 /^X\(\/\/\)$/{ s//\1/; q; }
43939 /^X\(\/\).*/{ s//\1/; q; }
43941 { if $as_mkdir_p; then
43946 while test ! -d "$as_dir"; do
43947 as_dirs="$as_dir $as_dirs"
43948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43950 X"$as_dir" : 'X\(//\)[^/]' \| \
43951 X"$as_dir" : 'X\(//\)$' \| \
43952 X"$as_dir" : 'X\(/\)' \| \
43953 . : '\(.\)' 2>/dev/null ||
43955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43957 /^X\(\/\/\)$/{ s//\1/; q; }
43958 /^X\(\/\).*/{ s//\1/; q; }
43961 test ! -n "$as_dirs" || mkdir $as_dirs
43962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43964 { (exit 1); exit 1; }; }; }
43967 mv $tmp/config.h $ac_file
43971 rm -f $tmp/config.h
43973 # Compute $ac_file's index in $config_headers.
43975 for _am_header in $config_headers :; do
43976 case $_am_header in
43977 $ac_file | $ac_file:* )
43980 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43983 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43984 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43985 X$ac_file : 'X\(//\)[^/]' \| \
43986 X$ac_file : 'X\(//\)$' \| \
43987 X$ac_file : 'X\(/\)' \| \
43988 . : '\(.\)' 2>/dev/null ||
43990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43992 /^X\(\/\/\)$/{ s//\1/; q; }
43993 /^X\(\/\).*/{ s//\1/; q; }
43994 s/.*/./; q'`/stamp-h$_am_stamp_count
43997 cat >>$CONFIG_STATUS <<\_ACEOF
44000 # CONFIG_COMMANDS section.
44002 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44003 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44004 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44005 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44006 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44007 X"$ac_dest" : 'X\(//\)[^/]' \| \
44008 X"$ac_dest" : 'X\(//\)$' \| \
44009 X"$ac_dest" : 'X\(/\)' \| \
44010 . : '\(.\)' 2>/dev/null ||
44012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44014 /^X\(\/\/\)$/{ s//\1/; q; }
44015 /^X\(\/\).*/{ s//\1/; q; }
44017 { if $as_mkdir_p; then
44022 while test ! -d "$as_dir"; do
44023 as_dirs="$as_dir $as_dirs"
44024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44026 X"$as_dir" : 'X\(//\)[^/]' \| \
44027 X"$as_dir" : 'X\(//\)$' \| \
44028 X"$as_dir" : 'X\(/\)' \| \
44029 . : '\(.\)' 2>/dev/null ||
44031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44033 /^X\(\/\/\)$/{ s//\1/; q; }
44034 /^X\(\/\).*/{ s//\1/; q; }
44037 test ! -n "$as_dirs" || mkdir $as_dirs
44038 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44040 { (exit 1); exit 1; }; }; }
44044 if test "$ac_dir" != .; then
44045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44046 # A "../" for each directory in $ac_dir_suffix.
44047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44049 ac_dir_suffix= ac_top_builddir=
44053 .) # No --srcdir option. We are building in place.
44055 if test -z "$ac_top_builddir"; then
44058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44060 [\\/]* | ?:[\\/]* ) # Absolute path.
44061 ac_srcdir=$srcdir$ac_dir_suffix;
44062 ac_top_srcdir=$srcdir ;;
44063 *) # Relative path.
44064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44068 # Do not use `cd foo && pwd` to compute absolute paths, because
44069 # the directories may not exist.
44071 .) ac_abs_builddir="$ac_dir";;
44074 .) ac_abs_builddir=`pwd`;;
44075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44079 case $ac_abs_builddir in
44080 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44082 case ${ac_top_builddir}. in
44083 .) ac_abs_top_builddir=$ac_abs_builddir;;
44084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44088 case $ac_abs_builddir in
44089 .) ac_abs_srcdir=$ac_srcdir;;
44092 .) ac_abs_srcdir=$ac_abs_builddir;;
44093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44097 case $ac_abs_builddir in
44098 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44100 case $ac_top_srcdir in
44101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44108 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44109 echo "$as_me: executing $ac_dest commands" >&6;}
44111 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44112 # Strip MF so we end up with the name of the file.
44113 mf=`echo "$mf" | sed -e 's/:.*$//'`
44114 # Check whether this is an Automake generated Makefile or not.
44115 # We used to match only the files named `Makefile.in', but
44116 # some people rename them; so instead we look at the file content.
44117 # Grep'ing the first line is not enough: some people post-process
44118 # each Makefile.in and add a new line on top of each file to say so.
44119 # So let's grep whole file.
44120 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44121 dirpart=`(dirname "$mf") 2>/dev/null ||
44122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44123 X"$mf" : 'X\(//\)[^/]' \| \
44124 X"$mf" : 'X\(//\)$' \| \
44125 X"$mf" : 'X\(/\)' \| \
44126 . : '\(.\)' 2>/dev/null ||
44128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44130 /^X\(\/\/\)$/{ s//\1/; q; }
44131 /^X\(\/\).*/{ s//\1/; q; }
44136 # Extract the definition of DEPDIR, am__include, and am__quote
44137 # from the Makefile without running `make'.
44138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44139 test -z "$DEPDIR" && continue
44140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44141 test -z "am__include" && continue
44142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44143 # When using ansi2knr, U may be empty or an underscore; expand it
44144 U=`sed -n 's/^U = //p' < "$mf"`
44145 # Find all dependency output files, they are included files with
44146 # $(DEPDIR) in their names. We invoke sed twice because it is the
44147 # simplest approach to changing $(DEPDIR) to its actual value in the
44149 for file in `sed -n "
44150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44152 # Make sure the directory exists.
44153 test -f "$dirpart/$file" && continue
44154 fdir=`(dirname "$file") 2>/dev/null ||
44155 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44156 X"$file" : 'X\(//\)[^/]' \| \
44157 X"$file" : 'X\(//\)$' \| \
44158 X"$file" : 'X\(/\)' \| \
44159 . : '\(.\)' 2>/dev/null ||
44161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44163 /^X\(\/\/\)$/{ s//\1/; q; }
44164 /^X\(\/\).*/{ s//\1/; q; }
44166 { if $as_mkdir_p; then
44167 mkdir -p $dirpart/$fdir
44169 as_dir=$dirpart/$fdir
44171 while test ! -d "$as_dir"; do
44172 as_dirs="$as_dir $as_dirs"
44173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44175 X"$as_dir" : 'X\(//\)[^/]' \| \
44176 X"$as_dir" : 'X\(//\)$' \| \
44177 X"$as_dir" : 'X\(/\)' \| \
44178 . : '\(.\)' 2>/dev/null ||
44180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44182 /^X\(\/\/\)$/{ s//\1/; q; }
44183 /^X\(\/\).*/{ s//\1/; q; }
44186 test ! -n "$as_dirs" || mkdir $as_dirs
44187 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44188 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44189 { (exit 1); exit 1; }; }; }
44191 # echo "creating $dirpart/$file"
44192 echo '# dummy' > "$dirpart/$file"
44199 BACKENDSC="servers/slapd/backends.c"
44200 echo "Making $BACKENDSC"
44202 cat > $BACKENDSC << ENDX
44203 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44205 * Copyright 1998-2005 The OpenLDAP Foundation.
44206 * All rights reserved.
44208 * Redistribution and use in source and binary forms, with or without
44209 * modification, are permitted only as authorized by the OpenLDAP
44212 * A copy of this license is available in the file LICENSE in the
44213 * top-level directory of the distribution or, alternatively, at
44214 * <http://www.OpenLDAP.org/license.html>.
44216 /* This file is automatically generated by configure; please do not edit. */
44218 #include "portable.h"
44222 if test "${STATIC_BACKENDS}"; then
44223 for b in config ${STATIC_BACKENDS}; do
44224 bb=`echo "${b}" | sed -e 's/back-//'`
44225 cat >> $BACKENDSC << ENDX
44226 extern BI_init ${bb}_back_initialize;
44230 cat >> $BACKENDSC << ENDX
44232 BackendInfo slap_binfo[] = {
44235 for b in config ${STATIC_BACKENDS}; do
44236 bb=`echo "${b}" | sed -e 's/back-//'`
44237 echo " Add ${bb} ..."
44238 cat >> $BACKENDSC << ENDX
44239 { "${bb}", ${bb}_back_initialize },
44243 cat >> $BACKENDSC << ENDX
44247 /* end of generated file */
44251 echo Please run \"make depend\" to build dependencies
44257 cat >>$CONFIG_STATUS <<\_ACEOF
44259 { (exit 0); exit 0; }
44261 chmod +x $CONFIG_STATUS
44262 ac_clean_files=$ac_clean_files_save
44265 # configure is writing to config.log, and then calls config.status.
44266 # config.status does its own redirection, appending to config.log.
44267 # Unfortunately, on DOS this fails, as config.log is still kept open
44268 # by configure, so config.status won't be able to write to it; its
44269 # output is simply discarded. So we exec the FD to /dev/null,
44270 # effectively closing config.log, so it can be properly (re)opened and
44271 # appended to by config.status. When coming back to configure, we
44272 # need to make the FD available again.
44273 if test "$no_create" != yes; then
44275 ac_config_status_args=
44276 test "$silent" = yes &&
44277 ac_config_status_args="$ac_config_status_args --quiet"
44279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44282 # would make configure fail if this is the last instruction.
44283 $ac_cs_success || { (exit 1); exit 1; }