2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.604 2005/11/14 17:32:34 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
1558 for ac_dir in build $srcdir/build; do
1559 if test -f $ac_dir/install-sh; then
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1563 elif test -f $ac_dir/install.sh; then
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1567 elif test -f $ac_dir/shtool; then
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1573 if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576 { (exit 1); exit 1; }; }
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586 { (exit 1); exit 1; }; }
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590 ac_cv_shtool="$ac_aux_dir/shtool"
1592 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594 { (exit 1); exit 1; }; }
1597 SHTOOL="$ac_cv_shtool"
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 if test -d $ac_aux_dir/CVS; then
1604 OPENLDAP_CVS="(from CVS sources) "
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1692 am__api_version="1.9"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 # Account for people who put trailing slashes in PATH elements.
1719 ./ | .// | /cC/* | \
1720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 # OSF1 and SCO ODT 3.0 have their own names for install.
1725 # Don't use installbsd from OSF since it installs stuff as root
1727 for ac_prog in ginstall scoinst install; do
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730 if test $ac_prog = install &&
1731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # AIX install. It has an incompatible calling convention.
1734 elif test $ac_prog = install &&
1735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # program-specific install script used by HP pwplus--don't use.
1739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1754 # As a last resort, use the slow shell script. We don't cache a
1755 # path for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the path is relative.
1758 INSTALL=$ac_install_sh
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments. Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1783 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784 if test "$*" = "X"; then
1786 set X `ls -t $srcdir/configure conftest.file`
1789 if test "$*" != "X $srcdir/configure conftest.file" \
1790 && test "$*" != "X conftest.file $srcdir/configure"; then
1792 # If neither matched, then we have a broken ls. This can happen
1793 # if, for instance, CONFIG_SHELL is bash and it inherits a
1794 # broken ls alias from the environment. This has actually
1795 # happened. Such a system could not be considered "sane".
1796 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&2;}
1800 { (exit 1); exit 1; }; }
1803 test "$2" = conftest.file
1809 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $. echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836 am_missing_run="$MISSING --run "
1839 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844 # We used to keeping the `.' as first argument, in order to
1845 # allow $(mkdir_p) to be used without argument. As in
1846 # $(mkdir_p) $(somedir)
1847 # where $(somedir) is conditionally defined. However this is wrong
1849 # 1. if the package is installed by a user who cannot write `.'
1850 # make install will fail,
1851 # 2. the above comment should most certainly read
1852 # $(mkdir_p) $(DESTDIR)$(somedir)
1853 # so it does not work when $(somedir) is undefined and
1854 # $(DESTDIR) is not.
1855 # To support the latter case, we have to write
1856 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857 # so the `.' trick is pointless.
1858 mkdir_p='mkdir -p --'
1860 # On NextStep and OpenStep, the `mkdir' command does not
1861 # recognize any option. It will interpret all options as
1862 # directories to create, and then abort because `.' already
1864 for d in ./-p ./--version;
1866 test -d $d && rmdir $d
1868 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869 if test -f "$ac_aux_dir/mkinstalldirs"; then
1870 mkdir_p='$(mkinstalldirs)'
1872 mkdir_p='$(install_sh) -d'
1876 for ac_prog in gawk mawk nawk awk
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$AWK"; then
1886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_AWK="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$AWK"; then
1906 echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$AWK" && break
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.make <<\_ACEOF
1924 @echo 'ac_maketemp="$(MAKE)"'
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929 eval ac_cv_prog_make_${ac_make}_set=yes
1931 eval ac_cv_prog_make_${ac_make}_set=no
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936 echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 SET_MAKE="MAKE=${MAKE-make}"
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1952 rmdir .tst 2>/dev/null
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956 test -f $srcdir/config.status; then
1957 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964 if (cygpath --version) >/dev/null 2>/dev/null; then
1965 CYGPATH_W='cygpath -w'
1972 # Define the identity of the package.
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151 ldap_subdir="/openldap"
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156 withval="$with_subdir"
2163 ldap_subdir="$withval"
2166 ldap_subdir="/$withval"
2172 # OpenLDAP --enable-debug
2174 # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176 enableval="$enable_debug"
2179 for ol_val in auto yes no ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187 { (exit 1); exit 1; }; }
2189 ol_enable_debug="$ol_arg"
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2197 # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199 enableval="$enable_dynamic"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210 { (exit 1); exit 1; }; }
2212 ol_enable_dynamic="$ol_arg"
2215 ol_enable_dynamic=no
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2220 # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222 enableval="$enable_syslog"
2225 for ol_val in auto yes no ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233 { (exit 1); exit 1; }; }
2235 ol_enable_syslog="$ol_arg"
2238 ol_enable_syslog=auto
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle=yes
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2268 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270 enableval="$enable_ipv6"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281 { (exit 1); exit 1; }; }
2283 ol_enable_ipv6="$ol_arg"
2289 # OpenLDAP --enable-local
2291 # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293 enableval="$enable_local"
2296 for ol_val in auto yes no ; do
2297 if test "$enableval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304 { (exit 1); exit 1; }; }
2306 ol_enable_local="$ol_arg"
2309 ol_enable_local=auto
2311 # end --enable-local
2313 # OpenLDAP --with-cyrus_sasl
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317 withval="$with_cyrus_sasl"
2320 for ol_val in auto yes no ; do
2321 if test "$withval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328 { (exit 1); exit 1; }; }
2330 ol_with_cyrus_sasl="$ol_arg"
2333 ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2336 # OpenLDAP --with-fetch
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340 withval="$with_fetch"
2343 for ol_val in auto yes no ; do
2344 if test "$withval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351 { (exit 1); exit 1; }; }
2353 ol_with_fetch="$ol_arg"
2356 ol_with_fetch="auto"
2357 fi; # end --with-fetch
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364 withval="$with_threads"
2367 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_threads="$ol_arg"
2380 ol_with_threads="auto"
2381 fi; # end --with-threads
2383 # OpenLDAP --with-tls
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2390 for ol_val in auto openssl yes no ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398 { (exit 1); exit 1; }; }
2400 ol_with_tls="$ol_arg"
2404 fi; # end --with-tls
2406 # OpenLDAP --with-yielding_select
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410 withval="$with_yielding_select"
2413 for ol_val in auto yes no manual ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421 { (exit 1); exit 1; }; }
2423 ol_with_yielding_select="$ol_arg"
2426 ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2429 # OpenLDAP --with-multiple_precision
2431 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2432 if test "${with_multiple_precision+set}" = set; then
2433 withval="$with_multiple_precision"
2436 for ol_val in auto bignum gmp yes no ; do
2437 if test "$withval" = "$ol_val" ; then
2441 if test "$ol_arg" = "invalid" ; then
2442 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2443 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2444 { (exit 1); exit 1; }; }
2446 ol_with_multiple_precision="$ol_arg"
2449 ol_with_multiple_precision="auto"
2450 fi; # end --with-multiple_precision
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456 enableval="$enable_xxslapdoptions"
2459 # OpenLDAP --enable-slapd
2461 # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463 enableval="$enable_slapd"
2466 for ol_val in auto yes no ; do
2467 if test "$enableval" = "$ol_val" ; then
2471 if test "$ol_arg" = "invalid" ; then
2472 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474 { (exit 1); exit 1; }; }
2476 ol_enable_slapd="$ol_arg"
2481 # end --enable-slapd
2482 # OpenLDAP --enable-aci
2484 # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486 enableval="$enable_aci"
2489 for ol_val in auto yes no ; do
2490 if test "$enableval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_aci="$ol_arg"
2505 # OpenLDAP --enable-cleartext
2507 # Check whether --enable-cleartext or --disable-cleartext was given.
2508 if test "${enable_cleartext+set}" = set; then
2509 enableval="$enable_cleartext"
2512 for ol_val in auto yes no ; do
2513 if test "$enableval" = "$ol_val" ; then
2517 if test "$ol_arg" = "invalid" ; then
2518 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_cleartext="$ol_arg"
2525 ol_enable_cleartext=yes
2527 # end --enable-cleartext
2528 # OpenLDAP --enable-crypt
2530 # Check whether --enable-crypt or --disable-crypt was given.
2531 if test "${enable_crypt+set}" = set; then
2532 enableval="$enable_crypt"
2535 for ol_val in auto yes no ; do
2536 if test "$enableval" = "$ol_val" ; then
2540 if test "$ol_arg" = "invalid" ; then
2541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_crypt="$ol_arg"
2550 # end --enable-crypt
2551 # OpenLDAP --enable-lmpasswd
2553 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2554 if test "${enable_lmpasswd+set}" = set; then
2555 enableval="$enable_lmpasswd"
2558 for ol_val in auto yes no ; do
2559 if test "$enableval" = "$ol_val" ; then
2563 if test "$ol_arg" = "invalid" ; then
2564 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2566 { (exit 1); exit 1; }; }
2568 ol_enable_lmpasswd="$ol_arg"
2571 ol_enable_lmpasswd=no
2573 # end --enable-lmpasswd
2574 # OpenLDAP --enable-spasswd
2576 # Check whether --enable-spasswd or --disable-spasswd was given.
2577 if test "${enable_spasswd+set}" = set; then
2578 enableval="$enable_spasswd"
2581 for ol_val in auto yes no ; do
2582 if test "$enableval" = "$ol_val" ; then
2586 if test "$ol_arg" = "invalid" ; then
2587 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2589 { (exit 1); exit 1; }; }
2591 ol_enable_spasswd="$ol_arg"
2594 ol_enable_spasswd=no
2596 # end --enable-spasswd
2597 # OpenLDAP --enable-modules
2599 # Check whether --enable-modules or --disable-modules was given.
2600 if test "${enable_modules+set}" = set; then
2601 enableval="$enable_modules"
2604 for ol_val in auto yes no ; do
2605 if test "$enableval" = "$ol_val" ; then
2609 if test "$ol_arg" = "invalid" ; then
2610 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2612 { (exit 1); exit 1; }; }
2614 ol_enable_modules="$ol_arg"
2617 ol_enable_modules=no
2619 # end --enable-modules
2620 ol_enable_multimaster=${ol_enable_multimaster-no}
2621 # OpenLDAP --enable-rewrite
2623 # Check whether --enable-rewrite or --disable-rewrite was given.
2624 if test "${enable_rewrite+set}" = set; then
2625 enableval="$enable_rewrite"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_rewrite="$ol_arg"
2641 ol_enable_rewrite=auto
2643 # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2646 # Check whether --enable-rlookups or --disable-rlookups was given.
2647 if test "${enable_rlookups+set}" = set; then
2648 enableval="$enable_rlookups"
2651 for ol_val in auto yes no ; do
2652 if test "$enableval" = "$ol_val" ; then
2656 if test "$ol_arg" = "invalid" ; then
2657 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2659 { (exit 1); exit 1; }; }
2661 ol_enable_rlookups="$ol_arg"
2664 ol_enable_rlookups=no
2666 # end --enable-rlookups
2667 # OpenLDAP --enable-slapi
2669 # Check whether --enable-slapi or --disable-slapi was given.
2670 if test "${enable_slapi+set}" = set; then
2671 enableval="$enable_slapi"
2674 for ol_val in auto yes no ; do
2675 if test "$enableval" = "$ol_val" ; then
2679 if test "$ol_arg" = "invalid" ; then
2680 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2682 { (exit 1); exit 1; }; }
2684 ol_enable_slapi="$ol_arg"
2689 # end --enable-slapi
2690 # OpenLDAP --enable-slp
2692 # Check whether --enable-slp or --disable-slp was given.
2693 if test "${enable_slp+set}" = set; then
2694 enableval="$enable_slp"
2697 for ol_val in auto yes no ; do
2698 if test "$enableval" = "$ol_val" ; then
2702 if test "$ol_arg" = "invalid" ; then
2703 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2705 { (exit 1); exit 1; }; }
2707 ol_enable_slp="$ol_arg"
2713 # OpenLDAP --enable-wrappers
2715 # Check whether --enable-wrappers or --disable-wrappers was given.
2716 if test "${enable_wrappers+set}" = set; then
2717 enableval="$enable_wrappers"
2720 for ol_val in auto yes no ; do
2721 if test "$enableval" = "$ol_val" ; then
2725 if test "$ol_arg" = "invalid" ; then
2726 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2728 { (exit 1); exit 1; }; }
2730 ol_enable_wrappers="$ol_arg"
2733 ol_enable_wrappers=no
2735 # end --enable-wrappers
2751 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2752 if test "${enable_xxslapbackends+set}" = set; then
2753 enableval="$enable_xxslapbackends"
2757 # OpenLDAP --enable-backends
2759 # Check whether --enable-backends or --disable-backends was given.
2760 if test "${enable_backends+set}" = set; then
2761 enableval="$enable_backends"
2764 for ol_val in no yes mod ; do
2765 if test "$enableval" = "$ol_val" ; then
2769 if test "$ol_arg" = "invalid" ; then
2770 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2772 { (exit 1); exit 1; }; }
2774 ol_enable_backends="$ol_arg"
2777 # end --enable-backends
2778 # OpenLDAP --enable-bdb
2780 # Check whether --enable-bdb or --disable-bdb was given.
2781 if test "${enable_bdb+set}" = set; then
2782 enableval="$enable_bdb"
2785 for ol_val in no yes mod ; do
2786 if test "$enableval" = "$ol_val" ; then
2790 if test "$ol_arg" = "invalid" ; then
2791 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2793 { (exit 1); exit 1; }; }
2795 ol_enable_bdb="$ol_arg"
2798 ol_enable_bdb=${ol_enable_backends:-yes}
2801 # OpenLDAP --enable-dnssrv
2803 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2804 if test "${enable_dnssrv+set}" = set; then
2805 enableval="$enable_dnssrv"
2808 for ol_val in no yes mod ; do
2809 if test "$enableval" = "$ol_val" ; then
2813 if test "$ol_arg" = "invalid" ; then
2814 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2815 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2816 { (exit 1); exit 1; }; }
2818 ol_enable_dnssrv="$ol_arg"
2821 ol_enable_dnssrv=${ol_enable_backends:-no}
2823 # end --enable-dnssrv
2824 # OpenLDAP --enable-hdb
2826 # Check whether --enable-hdb or --disable-hdb was given.
2827 if test "${enable_hdb+set}" = set; then
2828 enableval="$enable_hdb"
2831 for ol_val in no yes mod ; do
2832 if test "$enableval" = "$ol_val" ; then
2836 if test "$ol_arg" = "invalid" ; then
2837 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2839 { (exit 1); exit 1; }; }
2841 ol_enable_hdb="$ol_arg"
2844 ol_enable_hdb=${ol_enable_backends:-yes}
2847 # OpenLDAP --enable-ldap
2849 # Check whether --enable-ldap or --disable-ldap was given.
2850 if test "${enable_ldap+set}" = set; then
2851 enableval="$enable_ldap"
2854 for ol_val in no yes mod ; do
2855 if test "$enableval" = "$ol_val" ; then
2859 if test "$ol_arg" = "invalid" ; then
2860 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2862 { (exit 1); exit 1; }; }
2864 ol_enable_ldap="$ol_arg"
2867 ol_enable_ldap=${ol_enable_backends:-no}
2870 # OpenLDAP --enable-ldbm
2872 # Check whether --enable-ldbm or --disable-ldbm was given.
2873 if test "${enable_ldbm+set}" = set; then
2874 enableval="$enable_ldbm"
2877 for ol_val in no yes mod ; do
2878 if test "$enableval" = "$ol_val" ; then
2882 if test "$ol_arg" = "invalid" ; then
2883 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2885 { (exit 1); exit 1; }; }
2887 ol_enable_ldbm="$ol_arg"
2890 ol_enable_ldbm=${ol_enable_backends:-no}
2894 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2895 if test "${with_ldbm_api+set}" = set; then
2896 withval="$with_ldbm_api"
2898 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2899 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2900 enable_ldbm_api="$with_ldbm_api"
2902 # OpenLDAP --enable-ldbm_api
2904 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2905 if test "${enable_ldbm_api+set}" = set; then
2906 enableval="$enable_ldbm_api"
2909 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2910 if test "$enableval" = "$ol_val" ; then
2914 if test "$ol_arg" = "invalid" ; then
2915 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2917 { (exit 1); exit 1; }; }
2919 ol_enable_ldbm_api="$ol_arg"
2922 ol_enable_ldbm_api=auto
2924 # end --enable-ldbm_api
2927 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2928 if test "${with_ldbm_type+set}" = set; then
2929 withval="$with_ldbm_type"
2931 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2932 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2933 enable_ldbm_type="$with_ldbm_type"
2935 # OpenLDAP --enable-ldbm_type
2937 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2938 if test "${enable_ldbm_type+set}" = set; then
2939 enableval="$enable_ldbm_type"
2942 for ol_val in auto btree hash ; do
2943 if test "$enableval" = "$ol_val" ; then
2947 if test "$ol_arg" = "invalid" ; then
2948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2950 { (exit 1); exit 1; }; }
2952 ol_enable_ldbm_type="$ol_arg"
2955 ol_enable_ldbm_type=auto
2957 # end --enable-ldbm_type
2959 # OpenLDAP --enable-meta
2961 # Check whether --enable-meta or --disable-meta was given.
2962 if test "${enable_meta+set}" = set; then
2963 enableval="$enable_meta"
2966 for ol_val in no yes mod ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_meta="$ol_arg"
2979 ol_enable_meta=${ol_enable_backends:-no}
2982 # OpenLDAP --enable-monitor
2984 # Check whether --enable-monitor or --disable-monitor was given.
2985 if test "${enable_monitor+set}" = set; then
2986 enableval="$enable_monitor"
2989 for ol_val in no yes mod ; do
2990 if test "$enableval" = "$ol_val" ; then
2994 if test "$ol_arg" = "invalid" ; then
2995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2997 { (exit 1); exit 1; }; }
2999 ol_enable_monitor="$ol_arg"
3002 ol_enable_monitor=${ol_enable_backends:-yes}
3004 # end --enable-monitor
3005 # OpenLDAP --enable-null
3007 # Check whether --enable-null or --disable-null was given.
3008 if test "${enable_null+set}" = set; then
3009 enableval="$enable_null"
3012 for ol_val in no yes mod ; do
3013 if test "$enableval" = "$ol_val" ; then
3017 if test "$ol_arg" = "invalid" ; then
3018 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3020 { (exit 1); exit 1; }; }
3022 ol_enable_null="$ol_arg"
3025 ol_enable_null=${ol_enable_backends:-no}
3028 # OpenLDAP --enable-passwd
3030 # Check whether --enable-passwd or --disable-passwd was given.
3031 if test "${enable_passwd+set}" = set; then
3032 enableval="$enable_passwd"
3035 for ol_val in no yes mod ; do
3036 if test "$enableval" = "$ol_val" ; then
3040 if test "$ol_arg" = "invalid" ; then
3041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3043 { (exit 1); exit 1; }; }
3045 ol_enable_passwd="$ol_arg"
3048 ol_enable_passwd=${ol_enable_backends:-no}
3050 # end --enable-passwd
3051 # OpenLDAP --enable-perl
3053 # Check whether --enable-perl or --disable-perl was given.
3054 if test "${enable_perl+set}" = set; then
3055 enableval="$enable_perl"
3058 for ol_val in no yes mod ; do
3059 if test "$enableval" = "$ol_val" ; then
3063 if test "$ol_arg" = "invalid" ; then
3064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3066 { (exit 1); exit 1; }; }
3068 ol_enable_perl="$ol_arg"
3071 ol_enable_perl=${ol_enable_backends:-no}
3074 # OpenLDAP --enable-relay
3076 # Check whether --enable-relay or --disable-relay was given.
3077 if test "${enable_relay+set}" = set; then
3078 enableval="$enable_relay"
3081 for ol_val in no yes mod ; do
3082 if test "$enableval" = "$ol_val" ; then
3086 if test "$ol_arg" = "invalid" ; then
3087 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3089 { (exit 1); exit 1; }; }
3091 ol_enable_relay="$ol_arg"
3094 ol_enable_relay=${ol_enable_backends:-yes}
3096 # end --enable-relay
3097 # OpenLDAP --enable-shell
3099 # Check whether --enable-shell or --disable-shell was given.
3100 if test "${enable_shell+set}" = set; then
3101 enableval="$enable_shell"
3104 for ol_val in no yes mod ; do
3105 if test "$enableval" = "$ol_val" ; then
3109 if test "$ol_arg" = "invalid" ; then
3110 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3112 { (exit 1); exit 1; }; }
3114 ol_enable_shell="$ol_arg"
3117 ol_enable_shell=${ol_enable_backends:-no}
3119 # end --enable-shell
3120 # OpenLDAP --enable-sql
3122 # Check whether --enable-sql or --disable-sql was given.
3123 if test "${enable_sql+set}" = set; then
3124 enableval="$enable_sql"
3127 for ol_val in no yes mod ; do
3128 if test "$enableval" = "$ol_val" ; then
3132 if test "$ol_arg" = "invalid" ; then
3133 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3135 { (exit 1); exit 1; }; }
3137 ol_enable_sql="$ol_arg"
3140 ol_enable_sql=${ol_enable_backends:-no}
3144 Overlays="accesslog \
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161 enableval="$enable_xxslapoverlays"
3165 # OpenLDAP --enable-overlays
3167 # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169 enableval="$enable_overlays"
3172 for ol_val in no yes mod ; do
3173 if test "$enableval" = "$ol_val" ; then
3177 if test "$ol_arg" = "invalid" ; then
3178 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180 { (exit 1); exit 1; }; }
3182 ol_enable_overlays="$ol_arg"
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3188 # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190 enableval="$enable_accesslog"
3193 for ol_val in no yes mod ; do
3194 if test "$enableval" = "$ol_val" ; then
3198 if test "$ol_arg" = "invalid" ; then
3199 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201 { (exit 1); exit 1; }; }
3203 ol_enable_accesslog="$ol_arg"
3206 ol_enable_accesslog=${ol_enable_overlays:-no}
3208 # end --enable-accesslog
3210 # OpenLDAP --enable-denyop
3212 # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214 enableval="$enable_denyop"
3217 for ol_val in no yes mod ; do
3218 if test "$enableval" = "$ol_val" ; then
3222 if test "$ol_arg" = "invalid" ; then
3223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225 { (exit 1); exit 1; }; }
3227 ol_enable_denyop="$ol_arg"
3230 ol_enable_denyop=${ol_enable_overlays:-no}
3232 # end --enable-denyop
3234 # OpenLDAP --enable-dyngroup
3236 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238 enableval="$enable_dyngroup"
3241 for ol_val in no yes mod ; do
3242 if test "$enableval" = "$ol_val" ; then
3246 if test "$ol_arg" = "invalid" ; then
3247 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249 { (exit 1); exit 1; }; }
3251 ol_enable_dyngroup="$ol_arg"
3254 ol_enable_dyngroup=${ol_enable_overlays:-no}
3256 # end --enable-dyngroup
3258 # OpenLDAP --enable-dynlist
3260 # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262 enableval="$enable_dynlist"
3265 for ol_val in no yes mod ; do
3266 if test "$enableval" = "$ol_val" ; then
3270 if test "$ol_arg" = "invalid" ; then
3271 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273 { (exit 1); exit 1; }; }
3275 ol_enable_dynlist="$ol_arg"
3278 ol_enable_dynlist=${ol_enable_overlays:-no}
3280 # end --enable-dynlist
3282 # OpenLDAP --enable-lastmod
3284 # Check whether --enable-lastmod or --disable-lastmod was given.
3285 if test "${enable_lastmod+set}" = set; then
3286 enableval="$enable_lastmod"
3289 for ol_val in no yes mod ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_lastmod="$ol_arg"
3302 ol_enable_lastmod=${ol_enable_overlays:-no}
3304 # end --enable-lastmod
3306 # OpenLDAP --enable-ppolicy
3308 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3309 if test "${enable_ppolicy+set}" = set; then
3310 enableval="$enable_ppolicy"
3313 for ol_val in no yes mod ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_ppolicy="$ol_arg"
3326 ol_enable_ppolicy=${ol_enable_overlays:-no}
3328 # end --enable-ppolicy
3330 # OpenLDAP --enable-proxycache
3332 # Check whether --enable-proxycache or --disable-proxycache was given.
3333 if test "${enable_proxycache+set}" = set; then
3334 enableval="$enable_proxycache"
3337 for ol_val in no yes mod ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_proxycache="$ol_arg"
3350 ol_enable_proxycache=${ol_enable_overlays:-no}
3352 # end --enable-proxycache
3354 # OpenLDAP --enable-refint
3356 # Check whether --enable-refint or --disable-refint was given.
3357 if test "${enable_refint+set}" = set; then
3358 enableval="$enable_refint"
3361 for ol_val in no yes mod ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_refint="$ol_arg"
3374 ol_enable_refint=${ol_enable_overlays:-no}
3376 # end --enable-refint
3378 # OpenLDAP --enable-retcode
3380 # Check whether --enable-retcode or --disable-retcode was given.
3381 if test "${enable_retcode+set}" = set; then
3382 enableval="$enable_retcode"
3385 for ol_val in no yes mod ; do
3386 if test "$enableval" = "$ol_val" ; then
3390 if test "$ol_arg" = "invalid" ; then
3391 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3393 { (exit 1); exit 1; }; }
3395 ol_enable_retcode="$ol_arg"
3398 ol_enable_retcode=${ol_enable_overlays:-no}
3400 # end --enable-retcode
3402 # OpenLDAP --enable-rwm
3404 # Check whether --enable-rwm or --disable-rwm was given.
3405 if test "${enable_rwm+set}" = set; then
3406 enableval="$enable_rwm"
3409 for ol_val in no yes mod ; do
3410 if test "$enableval" = "$ol_val" ; then
3414 if test "$ol_arg" = "invalid" ; then
3415 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3417 { (exit 1); exit 1; }; }
3419 ol_enable_rwm="$ol_arg"
3422 ol_enable_rwm=${ol_enable_overlays:-no}
3426 # OpenLDAP --enable-syncprov
3428 # Check whether --enable-syncprov or --disable-syncprov was given.
3429 if test "${enable_syncprov+set}" = set; then
3430 enableval="$enable_syncprov"
3433 for ol_val in no yes mod ; do
3434 if test "$enableval" = "$ol_val" ; then
3438 if test "$ol_arg" = "invalid" ; then
3439 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3441 { (exit 1); exit 1; }; }
3443 ol_enable_syncprov="$ol_arg"
3446 ol_enable_syncprov=${ol_enable_overlays:-yes}
3448 # end --enable-syncprov
3450 # OpenLDAP --enable-translucent
3452 # Check whether --enable-translucent or --disable-translucent was given.
3453 if test "${enable_translucent+set}" = set; then
3454 enableval="$enable_translucent"
3457 for ol_val in no yes mod ; do
3458 if test "$enableval" = "$ol_val" ; then
3462 if test "$ol_arg" = "invalid" ; then
3463 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3465 { (exit 1); exit 1; }; }
3467 ol_enable_translucent="$ol_arg"
3470 ol_enable_translucent=${ol_enable_overlays:-no}
3472 # end --enable-translucent
3474 # OpenLDAP --enable-unique
3476 # Check whether --enable-unique or --disable-unique was given.
3477 if test "${enable_unique+set}" = set; then
3478 enableval="$enable_unique"
3481 for ol_val in no yes mod ; do
3482 if test "$enableval" = "$ol_val" ; then
3486 if test "$ol_arg" = "invalid" ; then
3487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3489 { (exit 1); exit 1; }; }
3491 ol_enable_unique="$ol_arg"
3494 ol_enable_unique=${ol_enable_overlays:-no}
3496 # end --enable-unique
3498 # OpenLDAP --enable-valsort
3500 # Check whether --enable-valsort or --disable-valsort was given.
3501 if test "${enable_valsort+set}" = set; then
3502 enableval="$enable_valsort"
3505 for ol_val in no yes mod ; do
3506 if test "$enableval" = "$ol_val" ; then
3510 if test "$ol_arg" = "invalid" ; then
3511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3513 { (exit 1); exit 1; }; }
3515 ol_enable_valsort="$ol_arg"
3518 ol_enable_valsort=${ol_enable_overlays:-no}
3520 # end --enable-valsort
3523 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3524 if test "${enable_xxslurpdoptions+set}" = set; then
3525 enableval="$enable_xxslurpdoptions"
3528 # OpenLDAP --enable-slurpd
3530 # Check whether --enable-slurpd or --disable-slurpd was given.
3531 if test "${enable_slurpd+set}" = set; then
3532 enableval="$enable_slurpd"
3535 for ol_val in auto yes no ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3543 { (exit 1); exit 1; }; }
3545 ol_enable_slurpd="$ol_arg"
3548 ol_enable_slurpd=auto
3550 # end --enable-slurpd
3552 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3553 if test "${enable_xxliboptions+set}" = set; then
3554 enableval="$enable_xxliboptions"
3557 # Check whether --enable-static or --disable-static was given.
3558 if test "${enable_static+set}" = set; then
3559 enableval="$enable_static"
3560 p=${PACKAGE-default}
3562 yes) enable_static=yes ;;
3563 no) enable_static=no ;;
3566 # Look at the argument we got. We use all the common list separators.
3567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3568 for pkg in $enableval; do
3570 if test "X$pkg" = "X$p"; then
3581 # Check whether --enable-shared or --disable-shared was given.
3582 if test "${enable_shared+set}" = set; then
3583 enableval="$enable_shared"
3584 p=${PACKAGE-default}
3586 yes) enable_shared=yes ;;
3587 no) enable_shared=no ;;
3590 # Look at the argument we got. We use all the common list separators.
3591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592 for pkg in $enableval; do
3594 if test "X$pkg" = "X$p"; then
3608 if test $ol_enable_slapd = no ; then
3609 if test $ol_enable_slapi = yes ; then
3610 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3611 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3613 case "$ol_enable_backends" in yes | mod)
3614 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3617 for i in $Backends; do
3618 eval "ol_tmp=\$ol_enable_$i"
3619 if test $ol_tmp != no ; then
3620 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3622 eval "ol_enable_$i=no"
3625 if test $ol_enable_modules = yes ; then
3626 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3629 if test $ol_enable_multimaster = yes ; then
3630 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3633 if test $ol_enable_wrappers = yes ; then
3634 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3637 if test $ol_enable_rlookups = yes ; then
3638 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3641 if test $ol_enable_aci = yes ; then
3642 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3645 if test $ol_enable_ldbm_api != auto ; then
3646 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3649 if test $ol_enable_ldbm_type != auto ; then
3650 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3653 if test $ol_enable_slurpd = yes ; then
3654 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3655 echo "$as_me: error: slurpd requires slapd" >&2;}
3656 { (exit 1); exit 1; }; }
3658 if test $ol_enable_rewrite = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3662 case "$ol_enable_overlays" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3666 for i in $Overlays; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3675 # force settings to no
3680 ol_enable_modules=no
3681 ol_enable_multimaster=no
3682 ol_enable_rlookups=no
3684 ol_enable_wrappers=no
3686 ol_enable_ldbm_api=no
3687 ol_enable_ldbm_type=no
3691 ol_enable_rewrite=no
3693 elif test $ol_enable_ldbm = no ; then
3695 if test $ol_enable_ldbm_api != auto ; then
3696 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3700 if test $ol_enable_ldbm_type != auto ; then
3701 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3702 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3705 if test $ol_enable_modules != yes &&
3706 test $ol_enable_bdb = no &&
3707 test $ol_enable_dnssrv = no &&
3708 test $ol_enable_hdb = no &&
3709 test $ol_enable_ldap = no &&
3710 test $ol_enable_meta = no &&
3711 test $ol_enable_monitor = no &&
3712 test $ol_enable_null = no &&
3713 test $ol_enable_passwd = no &&
3714 test $ol_enable_perl = no &&
3715 test $ol_enable_relay = no &&
3716 test $ol_enable_shell = no &&
3717 test $ol_enable_sql = no ; then
3719 if test $ol_enable_slapd = yes ; then
3720 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3721 echo "$as_me: error: slapd requires a backend" >&2;}
3722 { (exit 1); exit 1; }; }
3724 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3725 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3730 ol_enable_ldbm_api=no
3731 ol_enable_ldbm_type=no
3733 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3734 ol_enable_ldbm_api=berkeley
3738 if test $ol_enable_ldbm_api = gdbm &&
3739 test $ol_enable_ldbm_type = btree ; then
3740 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3741 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3742 { (exit 1); exit 1; }; }
3744 if test $ol_enable_ldbm_api = mdbm &&
3745 test $ol_enable_ldbm_type = btree ; then
3746 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3747 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3748 { (exit 1); exit 1; }; }
3750 if test $ol_enable_ldbm_api = ndbm &&
3751 test $ol_enable_ldbm_type = btree ; then
3752 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3753 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3754 { (exit 1); exit 1; }; }
3757 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3758 if test $ol_enable_ldbm_api = auto ; then
3759 ol_enable_ldbm_api=berkeley
3760 elif test $ol_enable_ldbm_api != berkeley ; then
3761 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3762 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3763 { (exit 1); exit 1; }; }
3768 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3769 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3770 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3771 { (exit 1); exit 1; }; }
3774 if test $ol_enable_slurpd = yes ; then
3775 if test $ol_with_threads = no ; then
3776 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3777 echo "$as_me: error: slurpd requires threads" >&2;}
3778 { (exit 1); exit 1; }; }
3782 if test $ol_enable_lmpasswd = yes ; then
3783 if test $ol_with_tls = no ; then
3784 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3785 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3786 { (exit 1); exit 1; }; }
3790 if test $ol_enable_kbind = yes ; then
3791 if test $ol_with_kerberos = no ; then
3792 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3793 echo "$as_me: error: options require --with-kerberos" >&2;}
3794 { (exit 1); exit 1; }; }
3795 elif test $ol_with_kerberos = auto ; then
3796 ol_with_kerberos=yes
3799 elif test $ol_enable_kbind = no ; then
3800 if test $ol_with_kerberos = auto ; then
3802 elif test $ol_with_kerberos != no ; then
3803 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3804 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3809 if test $ol_enable_spasswd = yes ; then
3810 if test $ol_with_cyrus_sasl = no ; then
3811 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3812 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3813 { (exit 1); exit 1; }; }
3815 ol_with_cyrus_sasl=yes
3818 echo "$as_me:$LINENO: result: done" >&5
3819 echo "${ECHO_T}done" >&6
3862 BUILD_TRANSLUCENT=no
3866 SLAPD_STATIC_OVERLAYS=
3867 SLAPD_DYNAMIC_OVERLAYS=
3869 SLAPD_MODULES_LDFLAGS=
3870 SLAPD_MODULES_CPPFLAGS=
3872 SLAPD_STATIC_BACKENDS=back-ldif
3873 SLAPD_DYNAMIC_BACKENDS=
3898 cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_MKVERSION 1
3907 *-*-aix*) if test -z "$CC" ; then
3908 case "$ol_with_threads" in
3909 auto | yes | posix) ol_aix_threads=yes ;;
3915 if test $ol_aix_threads = yes ; then
3916 if test -z "${CC}" ; then
3917 for ac_prog in cc_r xlc_r cc
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_CC+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_CC="$ac_prog"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 if test -n "$CC"; then
3947 echo "$as_me:$LINENO: result: $CC" >&5
3948 echo "${ECHO_T}$CC" >&6
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3954 test -n "$CC" && break
3958 if test "$CC" = cc ; then
3959 if test $ol_with_threads != auto ; then
3960 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3961 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3962 { (exit 1); exit 1; }; }
3964 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3965 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3971 case ${CC} in cc_r | xlc_r)
3972 ol_with_threads=posix
3973 ol_cv_pthread_create=yes
3978 if test -z "${CC}"; then
3979 for ac_prog in cc gcc
3981 # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_prog_CC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_CC="$ac_prog"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 if test -n "$CC"; then
4009 echo "$as_me:$LINENO: result: $CC" >&5
4010 echo "${ECHO_T}$CC" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 test -n "$CC" && break
4018 test -n "$CC" || CC="missing"
4021 if test "${CC}" = "missing" ; then
4022 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4023 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4024 { (exit 1); exit 1; }; }
4028 if test -z "${AR}"; then
4029 for ac_prog in ar gar
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_AR+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$AR"; then
4039 ac_cv_prog_AR="$AR" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_AR="$ac_prog"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test -n "$AR"; then
4059 echo "$as_me:$LINENO: result: $AR" >&5
4060 echo "${ECHO_T}$AR" >&6
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 test -n "$AR" && break
4068 test -n "$AR" || AR="missing"
4071 if test "${AR}" = "missing" ; then
4072 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4073 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4074 { (exit 1); exit 1; }; }
4082 # Check whether --enable-fast-install or --disable-fast-install was given.
4083 if test "${enable_fast_install+set}" = set; then
4084 enableval="$enable_fast_install"
4085 p=${PACKAGE-default}
4087 yes) enable_fast_install=yes ;;
4088 no) enable_fast_install=no ;;
4090 enable_fast_install=no
4091 # Look at the argument we got. We use all the common list separators.
4092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4093 for pkg in $enableval; do
4095 if test "X$pkg" = "X$p"; then
4096 enable_fast_install=yes
4103 enable_fast_install=yes
4106 DEPDIR="${am__leading_dot}deps"
4108 ac_config_commands="$ac_config_commands depfiles"
4111 am_make=${MAKE-make}
4112 cat > confinc << 'END'
4117 # If we don't find an include directive, just comment out the code.
4118 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4119 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4123 # First try GNU make style include.
4124 echo "include confinc" > confmf
4125 # We grep out `Entering directory' and `Leaving directory'
4126 # messages which can occur if `w' ends up in MAKEFLAGS.
4127 # In particular we don't look at `^make:' because GNU make might
4128 # be invoked under some other name (usually "gmake"), in which
4129 # case it prints its new name instead of `make'.
4130 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4135 # Now try BSD make style include.
4136 if test "$am__include" = "#"; then
4137 echo '.include "confinc"' > confmf
4138 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4139 am__include=.include
4146 echo "$as_me:$LINENO: result: $_am_result" >&5
4147 echo "${ECHO_T}$_am_result" >&6
4148 rm -f confinc confmf
4150 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4151 if test "${enable_dependency_tracking+set}" = set; then
4152 enableval="$enable_dependency_tracking"
4155 if test "x$enable_dependency_tracking" != xno; then
4156 am_depcomp="$ac_aux_dir/depcomp"
4161 if test "x$enable_dependency_tracking" != xno; then
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test -n "$CC"; then
4205 echo "$as_me:$LINENO: result: $CC" >&5
4206 echo "${ECHO_T}$CC" >&6
4208 echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4213 if test -z "$ac_cv_prog_CC"; then
4215 # Extract the first word of "gcc", so it can be a program name with args.
4216 set dummy gcc; ac_word=$2
4217 echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test -n "$ac_ct_CC"; then
4223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_CC="gcc"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4242 if test -n "$ac_ct_CC"; then
4243 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4244 echo "${ECHO_T}$ac_ct_CC" >&6
4246 echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4255 if test -z "$CC"; then
4256 if test -n "$ac_tool_prefix"; then
4257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4258 set dummy ${ac_tool_prefix}cc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_CC+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$CC"; then
4265 ac_cv_prog_CC="$CC" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_CC="${ac_tool_prefix}cc"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 if test -n "$CC"; then
4285 echo "$as_me:$LINENO: result: $CC" >&5
4286 echo "${ECHO_T}$CC" >&6
4288 echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4293 if test -z "$ac_cv_prog_CC"; then
4295 # Extract the first word of "cc", so it can be a program name with args.
4296 set dummy cc; ac_word=$2
4297 echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test -n "$ac_ct_CC"; then
4303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_CC="cc"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322 if test -n "$ac_ct_CC"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4324 echo "${ECHO_T}$ac_ct_CC" >&6
4326 echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4336 if test -z "$CC"; then
4337 # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_CC+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 if test -n "$CC"; then
4345 ac_cv_prog_CC="$CC" # Let the user override the test.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4356 ac_prog_rejected=yes
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 if test $ac_prog_rejected = yes; then
4367 # We found a bogon in the path, so make sure we never use it.
4368 set dummy $ac_cv_prog_CC
4370 if test $# != 0; then
4371 # We chose a different compiler from the bogus one.
4372 # However, it has the same basename, so the bogon will be chosen
4373 # first if we set CC to just the basename; use the full file name.
4375 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4381 if test -n "$CC"; then
4382 echo "$as_me:$LINENO: result: $CC" >&5
4383 echo "${ECHO_T}$CC" >&6
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4390 if test -z "$CC"; then
4391 if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_CC+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CC"; then
4422 echo "$as_me:$LINENO: result: $CC" >&5
4423 echo "${ECHO_T}$CC" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 test -n "$CC" && break
4432 if test -z "$CC"; then
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$ac_ct_CC"; then
4444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_CC="$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4463 if test -n "$ac_ct_CC"; then
4464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4465 echo "${ECHO_T}$ac_ct_CC" >&6
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4471 test -n "$ac_ct_CC" && break
4480 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: no acceptable C compiler found in \$PATH
4483 See \`config.log' for more details." >&2;}
4484 { (exit 1); exit 1; }; }
4486 # Provide some information about the compiler.
4487 echo "$as_me:$LINENO:" \
4488 "checking for C compiler version" >&5
4489 ac_compiler=`set X $ac_compile; echo $2`
4490 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4491 (eval $ac_compiler --version </dev/null >&5) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }
4495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4496 (eval $ac_compiler -v </dev/null >&5) 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }
4500 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4501 (eval $ac_compiler -V </dev/null >&5) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4521 ac_clean_files_save=$ac_clean_files
4522 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4523 # Try to create an executable without -o first, disregard a.out.
4524 # It will help us diagnose broken compilers, and finding out an intuition
4526 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4527 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4528 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4530 (eval $ac_link_default) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 # Find the output, starting from the most likely. This scheme is
4535 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4538 # Be careful to initialize this variable, since it used to be cached.
4539 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4541 # b.out is created by i960 compilers.
4542 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4544 test -f "$ac_file" || continue
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4549 # This is the source file.
4552 # We found the default executable, but exeext='' is most
4556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4557 # FIXME: I believe we export ac_cv_exeext for Libtool,
4558 # but it would be cool to find out if it's true. Does anybody
4559 # maintain Libtool? --akim.
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: C compiler cannot create executables
4573 See \`config.log' for more details." >&2;}
4574 { (exit 77); exit 77; }; }
4577 ac_exeext=$ac_cv_exeext
4578 echo "$as_me:$LINENO: result: $ac_file" >&5
4579 echo "${ECHO_T}$ac_file" >&6
4581 # Check the compiler produces executables we can run. If not, either
4582 # the compiler is broken, or we cross compile.
4583 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4586 # If not cross compiling, check that we can run a simple program.
4587 if test "$cross_compiling" != yes; then
4588 if { ac_try='./$ac_file'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4596 if test "$cross_compiling" = maybe; then
4599 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4600 If you meant to cross compile, use \`--host'.
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run C compiled programs.
4603 If you meant to cross compile, use \`--host'.
4604 See \`config.log' for more details." >&2;}
4605 { (exit 1); exit 1; }; }
4609 echo "$as_me:$LINENO: result: yes" >&5
4610 echo "${ECHO_T}yes" >&6
4612 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4613 ac_clean_files=$ac_clean_files_save
4614 # Check the compiler produces executables we can run. If not, either
4615 # the compiler is broken, or we cross compile.
4616 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4617 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4618 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4619 echo "${ECHO_T}$cross_compiling" >&6
4621 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4622 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; then
4628 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4630 # work properly (i.e., refer to `conftest.exe'), while it won't with
4632 for ac_file in conftest.exe conftest conftest.*; do
4633 test -f "$ac_file" || continue
4635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4636 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4643 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; }
4650 rm -f conftest$ac_cv_exeext
4651 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4652 echo "${ECHO_T}$ac_cv_exeext" >&6
4654 rm -f conftest.$ac_ext
4655 EXEEXT=$ac_cv_exeext
4657 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4658 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4659 if test "${ac_cv_objext+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4677 rm -f conftest.o conftest.obj
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4683 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4695 See \`config.log' for more details." >&5
4696 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4697 See \`config.log' for more details." >&2;}
4698 { (exit 1); exit 1; }; }
4701 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4703 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4704 echo "${ECHO_T}$ac_cv_objext" >&6
4705 OBJEXT=$ac_cv_objext
4707 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4708 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4709 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_c_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4764 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4765 GCC=`test $ac_compiler_gnu = yes && echo yes`
4766 ac_test_CFLAGS=${CFLAGS+set}
4767 ac_save_CFLAGS=$CFLAGS
4769 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4771 if test "${ac_cv_prog_cc_g+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag"
4799 || test ! -s conftest.err'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; } &&
4805 { ac_try='test -s conftest.$ac_objext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4822 if test "$ac_test_CFLAGS" = set; then
4823 CFLAGS=$ac_save_CFLAGS
4824 elif test $ac_cv_prog_cc_g = yes; then
4825 if test "$GCC" = yes; then
4831 if test "$GCC" = yes; then
4837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 ac_cv_prog_cc_stdc=no
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4852 #include <sys/types.h>
4853 #include <sys/stat.h>
4854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4855 struct buf { int x; };
4856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4857 static char *e (p, i)
4863 static char *f (char * (*g) (char **, int), char **p, ...)
4868 s = g (p, va_arg (v,int));
4873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4874 function prototypes and stuff, but not '\xHH' hex character constants.
4875 These don't provoke an error unfortunately, instead are silently treated
4876 as 'x'. The following induces an error, until -std1 is added to get
4877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4878 array size at least. It's necessary to write '\x00'==0 to get something
4879 that's true only with -std1. */
4880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882 int test (int i, double x);
4883 struct s1 {int (*f) (int a);};
4884 struct s2 {int (*f) (double a);};
4885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4896 # Don't try gcc -ansi; that turns off useful extensions and
4897 # breaks some systems' header files.
4898 # AIX -qlanglvl=ansi
4899 # Ultrix and OSF/1 -std1
4900 # HP-UX 10.20 and later -Ae
4901 # HP-UX older versions -Aa -D_HPUX_SOURCE
4902 # SVR4 -Xc -D__EXTENSIONS__
4903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905 CC="$ac_save_CC $ac_arg"
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4910 grep -v '^ *+' conftest.er1 >conftest.err
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_prog_cc_stdc=$ac_arg
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4935 rm -f conftest.err conftest.$ac_objext
4937 rm -f conftest.$ac_ext conftest.$ac_objext
4942 case "x$ac_cv_prog_cc_stdc" in
4944 echo "$as_me:$LINENO: result: none needed" >&5
4945 echo "${ECHO_T}none needed" >&6 ;;
4947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4948 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4949 CC="$CC $ac_cv_prog_cc_stdc" ;;
4952 # Some people use a C++ compiler to compile C. Since we use `exit',
4953 # in C++ we need to declare it. In case someone uses the same compiler
4954 # for both compiling C and C++ we need to have the C++ compiler decide
4955 # the declaration of exit, since it's the most demanding environment.
4956 cat >conftest.$ac_ext <<_ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1 >conftest.err
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 for ac_declaration in \
4985 'extern "C" void std::exit (int) throw (); using std::exit;' \
4986 'extern "C" void std::exit (int); using std::exit;' \
4987 'extern "C" void exit (int) throw ();' \
4988 'extern "C" void exit (int);' \
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 if test -n "$ac_declaration"; then
5084 echo '#ifdef __cplusplus' >>confdefs.h
5085 echo $ac_declaration >>confdefs.h
5086 echo '#endif' >>confdefs.h
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 depcc="$CC" am_compiler_list=
5103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5109 # We make a subdir and do the tests there. Otherwise we can end up
5110 # making bogus files that we don't know about and never remove. For
5111 # instance it was reported that on HP-UX the gcc test will end up
5112 # making a dummy file named `D' -- because `-MD' means `put the output
5115 # Copy depcomp to subdir because otherwise we won't find it if we're
5116 # using a relative directory.
5117 cp "$am_depcomp" conftest.dir
5119 # We will build objects and dependencies in a subdirectory because
5120 # it helps to detect inapplicable dependency modes. For instance
5121 # both Tru64's cc and ICC support -MD to output dependencies as a
5122 # side effect of compilation, but ICC will put the dependencies in
5123 # the current directory while Tru64 will put them in the object
5127 am_cv_CC_dependencies_compiler_type=none
5128 if test "$am_compiler_list" = ""; then
5129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5131 for depmode in $am_compiler_list; do
5132 # Setup a source with many dependencies, because some compilers
5133 # like to wrap large dependency lists on column 80 (with \), and
5134 # we should not choose a depcomp mode which is confused by this.
5136 # We need to recreate these files for each test, as the compiler may
5137 # overwrite some of them when testing with obscure command lines.
5138 # This happens at least with the AIX C compiler.
5140 for i in 1 2 3 4 5 6; do
5141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5143 # Solaris 8's {/usr,}/bin/sh.
5144 touch sub/conftst$i.h
5146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150 # after this tag, mechanisms are not by side-effect, so they'll
5151 # only be used when explicitly requested
5152 if test "x$enable_dependency_tracking" = xyes; then
5160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5161 # mode. It turns out that the SunPro C++ compiler does not properly
5162 # handle `-M -o', and we need to detect this.
5163 if depmode=$depmode \
5164 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5167 >/dev/null 2>conftest.err &&
5168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5169 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5171 # icc doesn't choke on unknown options, it will just issue warnings
5172 # or remarks (even with -Werror). So we grep stderr for any message
5173 # that says an option was ignored or not supported.
5174 # When given -MP, icc 7.0 and 7.1 complain thusly:
5175 # icc: Command line warning: ignoring option '-M'; no argument required
5176 # The diagnosis changed in icc 8.0:
5177 # icc: Command line remark: option '-MP' not supported
5178 if (grep 'ignoring option' conftest.err ||
5179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5180 am_cv_CC_dependencies_compiler_type=$depmode
5189 am_cv_CC_dependencies_compiler_type=none
5193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5200 test "x$enable_dependency_tracking" != xno \
5201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5203 am__fastdepCC_FALSE='#'
5205 am__fastdepCC_TRUE='#'
5206 am__fastdepCC_FALSE=
5210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5212 if test "${lt_cv_path_SED+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 # Loop through the user's path and test for sed and gsed.
5216 # Then use that list of sed's as ones to test for truncation.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for lt_ac_prog in sed gsed; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5225 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5233 # along with /bin/sed that truncates output.
5234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5235 test ! -f $lt_ac_sed && continue
5236 cat /dev/null > conftest.in
5238 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5239 # Check for GNU sed and select it if it is found.
5240 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5241 lt_cv_path_SED=$lt_ac_sed
5245 cat conftest.in conftest.in >conftest.tmp
5246 mv conftest.tmp conftest.in
5247 cp conftest.in conftest.nl
5249 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5250 cmp -s conftest.out conftest.nl || break
5251 # 10000 chars as input seems more than enough
5252 test $lt_ac_count -gt 10 && break
5253 lt_ac_count=`expr $lt_ac_count + 1`
5254 if test $lt_ac_count -gt $lt_ac_max; then
5255 lt_ac_max=$lt_ac_count
5256 lt_cv_path_SED=$lt_ac_sed
5264 echo "$as_me:$LINENO: result: $SED" >&5
5265 echo "${ECHO_T}$SED" >&6
5267 echo "$as_me:$LINENO: checking for egrep" >&5
5268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5269 if test "${ac_cv_prog_egrep+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5273 then ac_cv_prog_egrep='grep -E'
5274 else ac_cv_prog_egrep='egrep'
5277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5279 EGREP=$ac_cv_prog_egrep
5283 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5284 if test "${with_gnu_ld+set}" = set; then
5285 withval="$with_gnu_ld"
5286 test "$withval" = no || with_gnu_ld=yes
5291 if test "$GCC" = yes; then
5292 # Check if gcc -print-prog-name=ld gives a path.
5293 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5297 # gcc leaves a trailing carriage return which upsets mingw
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5303 # Accept absolute paths.
5305 re_direlt='/[^/][^/]*/\.\./'
5306 # Canonicalize the pathname of ld
5307 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5309 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5311 test -z "$LD" && LD="$ac_prog"
5314 # If it fails, then pretend we aren't using GCC.
5318 # If it is relative, then search for the first ld in PATH.
5322 elif test "$with_gnu_ld" = yes; then
5323 echo "$as_me:$LINENO: checking for GNU ld" >&5
5324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5329 if test "${lt_cv_path_LD+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 if test -z "$LD"; then
5333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5334 for ac_dir in $PATH; do
5336 test -z "$ac_dir" && ac_dir=.
5337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5338 lt_cv_path_LD="$ac_dir/$ac_prog"
5339 # Check to see if the program is GNU ld. I'd rather use --version,
5340 # but apparently some variants of GNU ld only accept -v.
5341 # Break only if it was the GNU/non-GNU ld that we prefer.
5342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5343 *GNU* | *'with BFD'*)
5344 test "$with_gnu_ld" != no && break
5347 test "$with_gnu_ld" != yes && break
5354 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5359 if test -n "$LD"; then
5360 echo "$as_me:$LINENO: result: $LD" >&5
5361 echo "${ECHO_T}$LD" >&6
5363 echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6
5366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5368 { (exit 1); exit 1; }; }
5369 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5371 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5375 case `$LD -v 2>&1 </dev/null` in
5376 *GNU* | *'with BFD'*)
5377 lt_cv_prog_gnu_ld=yes
5380 lt_cv_prog_gnu_ld=no
5384 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5386 with_gnu_ld=$lt_cv_prog_gnu_ld
5389 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5391 if test "${lt_cv_ld_reload_flag+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 lt_cv_ld_reload_flag='-r'
5396 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5398 reload_flag=$lt_cv_ld_reload_flag
5399 case $reload_flag in
5401 *) reload_flag=" $reload_flag" ;;
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406 if test "$GCC" = yes; then
5407 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5414 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5416 if test "${lt_cv_path_NM+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 if test -n "$NM"; then
5420 # Let the user override the test.
5423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5424 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5426 test -z "$ac_dir" && ac_dir=.
5427 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5428 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5429 # Check to see if the nm accepts a BSD-compat flag.
5430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5431 # nm: unknown option "B" ignored
5432 # Tru64's nm complains that /dev/null is an invalid object file
5433 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5434 */dev/null* | *'Invalid file or object type'*)
5435 lt_cv_path_NM="$tmp_nm -B"
5439 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5441 lt_cv_path_NM="$tmp_nm -p"
5445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5446 continue # so that we can try to find one that supports BSD flags
5453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5456 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5457 echo "${ECHO_T}$lt_cv_path_NM" >&6
5460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5463 if test "$LN_S" = "ln -s"; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465 echo "${ECHO_T}yes" >&6
5467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5468 echo "${ECHO_T}no, using $LN_S" >&6
5471 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5472 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5473 if test "${lt_cv_deplibs_check_method+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 lt_cv_file_magic_cmd='$MAGIC_CMD'
5477 lt_cv_file_magic_test_file=
5478 lt_cv_deplibs_check_method='unknown'
5479 # Need to set the preceding variable on all platforms that support
5480 # interlibrary dependencies.
5481 # 'none' -- dependencies not supported.
5482 # `unknown' -- same as none, but documents that we really don't know.
5483 # 'pass_all' -- all dependencies passed with no checks.
5484 # 'test_compile' -- check by making test program.
5485 # 'file_magic [[regex]]' -- check by looking for files in library path
5486 # which responds to the $file_magic_cmd with a given extended regex.
5487 # If you have `file' or equivalent on your system and you're not sure
5488 # whether `pass_all' will *always* work, you probably want this one.
5492 lt_cv_deplibs_check_method=pass_all
5496 lt_cv_deplibs_check_method=pass_all
5500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5501 lt_cv_file_magic_cmd='/usr/bin/file -L'
5502 lt_cv_file_magic_test_file=/shlib/libc.so
5506 # func_win32_libid is a shell function defined in ltmain.sh
5507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5508 lt_cv_file_magic_cmd='func_win32_libid'
5512 # Base MSYS/MinGW do not provide the 'file' command needed by
5513 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5514 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5515 lt_cv_file_magic_cmd='$OBJDUMP -f'
5518 darwin* | rhapsody*)
5519 lt_cv_deplibs_check_method=pass_all
5522 freebsd* | kfreebsd*-gnu | dragonfly*)
5523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5526 # Not sure whether the presence of OpenBSD here was a mistake.
5527 # Let's accept both of them until this is cleared up.
5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529 lt_cv_file_magic_cmd=/usr/bin/file
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5534 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5560 irix5* | irix6* | nonstopux*)
5562 *-32|*"-32 ") libmagic=32-bit;;
5563 *-n32|*"-n32 ") libmagic=N32;;
5564 *-64|*"-64 ") libmagic=64-bit;;
5565 *) libmagic=never-match;;
5567 lt_cv_deplibs_check_method=pass_all
5570 # This must be Linux ELF.
5572 lt_cv_deplibs_check_method=pass_all
5576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5585 lt_cv_file_magic_cmd=/usr/bin/file
5586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5590 lt_cv_deplibs_check_method=unknown
5594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5601 osf3* | osf4* | osf5*)
5602 lt_cv_deplibs_check_method=pass_all
5606 lt_cv_deplibs_check_method=pass_all
5610 lt_cv_deplibs_check_method=pass_all
5613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5614 case $host_vendor in
5616 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]'
5617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5620 lt_cv_deplibs_check_method=pass_all
5623 lt_cv_file_magic_cmd='/bin/file'
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5627 lt_cv_file_magic_cmd='/bin/file'
5628 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5629 lt_cv_file_magic_test_file=/lib/libc.so
5632 lt_cv_deplibs_check_method=pass_all
5637 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5638 lt_cv_deplibs_check_method=pass_all
5643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5645 file_magic_cmd=$lt_cv_file_magic_cmd
5646 deplibs_check_method=$lt_cv_deplibs_check_method
5647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5652 # If no C compiler was specified, use CC.
5655 # Allow CC to be a program name with arguments.
5659 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5660 if test "${enable_libtool_lock+set}" = set; then
5661 enableval="$enable_libtool_lock"
5664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5666 # Some flags need to be propagated to the compiler or linker for good
5670 # Find out which ABI we are using.
5671 echo 'int i;' > conftest.$ac_ext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; then
5677 case `/usr/bin/file conftest.$ac_objext` in
5689 # Find out which ABI we are using.
5690 echo '#line 5690 "configure"' > conftest.$ac_ext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; then
5696 if test "$lt_cv_prog_gnu_ld" = yes; then
5697 case `/usr/bin/file conftest.$ac_objext` in
5699 LD="${LD-ld} -melf32bsmip"
5702 LD="${LD-ld} -melf32bmipn32"
5705 LD="${LD-ld} -melf64bmip"
5709 case `/usr/bin/file conftest.$ac_objext` in
5725 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5726 # Find out which ABI we are using.
5727 echo 'int i;' > conftest.$ac_ext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; then
5733 case `/usr/bin/file conftest.o` in
5737 LD="${LD-ld} -m elf_i386"
5739 ppc64-*linux*|powerpc64-*linux*)
5740 LD="${LD-ld} -m elf32ppclinux"
5743 LD="${LD-ld} -m elf_s390"
5746 LD="${LD-ld} -m elf32_sparc"
5753 LD="${LD-ld} -m elf_x86_64"
5755 ppc*-*linux*|powerpc*-*linux*)
5756 LD="${LD-ld} -m elf64ppc"
5759 LD="${LD-ld} -m elf64_s390"
5762 LD="${LD-ld} -m elf64_sparc"
5772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5773 SAVE_CFLAGS="$CFLAGS"
5774 CFLAGS="$CFLAGS -belf"
5775 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5776 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5777 if test "${lt_cv_cc_needs_belf+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try='test -z "$ac_c_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 lt_cv_cc_needs_belf=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 lt_cv_cc_needs_belf=no
5830 rm -f conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5840 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5843 CFLAGS="$SAVE_CFLAGS"
5846 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5847 if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$DLLTOOL"; then
5856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 DLLTOOL=$ac_cv_prog_DLLTOOL
5875 if test -n "$DLLTOOL"; then
5876 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5877 echo "${ECHO_T}$DLLTOOL" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5884 if test -z "$ac_cv_prog_DLLTOOL"; then
5885 ac_ct_DLLTOOL=$DLLTOOL
5886 # Extract the first word of "dlltool", so it can be a program name with args.
5887 set dummy dlltool; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 if test -n "$ac_ct_DLLTOOL"; then
5894 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5913 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5914 if test -n "$ac_ct_DLLTOOL"; then
5915 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5916 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5922 DLLTOOL=$ac_ct_DLLTOOL
5924 DLLTOOL="$ac_cv_prog_DLLTOOL"
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}as; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_AS+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$AS"; then
5936 ac_cv_prog_AS="$AS" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_AS="${ac_tool_prefix}as"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 if test -n "$AS"; then
5956 echo "$as_me:$LINENO: result: $AS" >&5
5957 echo "${ECHO_T}$AS" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5964 if test -z "$ac_cv_prog_AS"; then
5966 # Extract the first word of "as", so it can be a program name with args.
5967 set dummy as; ac_word=$2
5968 echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 if test -n "$ac_ct_AS"; then
5974 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_ac_ct_AS="as"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5993 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5994 if test -n "$ac_ct_AS"; then
5995 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5996 echo "${ECHO_T}$ac_ct_AS" >&6
5998 echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$OBJDUMP"; then
6016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 OBJDUMP=$ac_cv_prog_OBJDUMP
6035 if test -n "$OBJDUMP"; then
6036 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6037 echo "${ECHO_T}$OBJDUMP" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6044 if test -z "$ac_cv_prog_OBJDUMP"; then
6045 ac_ct_OBJDUMP=$OBJDUMP
6046 # Extract the first word of "objdump", so it can be a program name with args.
6047 set dummy objdump; ac_word=$2
6048 echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test -n "$ac_ct_OBJDUMP"; then
6054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6074 if test -n "$ac_ct_OBJDUMP"; then
6075 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6076 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6078 echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6082 OBJDUMP=$ac_ct_OBJDUMP
6084 OBJDUMP="$ac_cv_prog_OBJDUMP"
6091 need_locks="$enable_libtool_lock"
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6101 # On Suns, sometimes $CPP names a directory.
6102 if test -n "$CPP" && test -d "$CPP"; then
6105 if test -z "$CPP"; then
6106 if test "${ac_cv_prog_CPP+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 # Double quotes because CPP needs to be expanded
6110 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6113 for ac_c_preproc_warn_flag in '' yes
6115 # Use a header file that comes with gcc, so configuring glibc
6116 # with a fresh cross-compiler works.
6117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118 # <limits.h> exists even on freestanding compilers.
6119 # On the NeXT, cc -E runs the code through the compiler's parser,
6120 # not just through cpp. "Syntax error" is here to catch this case.
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6128 # include <limits.h>
6130 # include <assert.h>
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6151 if test -z "$ac_cpp_err"; then
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 # Broken: fails on valid input.
6160 rm -f conftest.err conftest.$ac_ext
6162 # OK, works on sane cases. Now check whether non-existent headers
6163 # can be detected and how.
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <ac_nonexistent.h>
6172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } >/dev/null; then
6180 if test -s conftest.err; then
6181 ac_cpp_err=$ac_c_preproc_warn_flag
6182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6189 if test -z "$ac_cpp_err"; then
6190 # Broken: success on invalid input.
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 # Passes both tests.
6200 rm -f conftest.err conftest.$ac_ext
6203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6204 rm -f conftest.err conftest.$ac_ext
6205 if $ac_preproc_ok; then
6217 echo "$as_me:$LINENO: result: $CPP" >&5
6218 echo "${ECHO_T}$CPP" >&6
6220 for ac_c_preproc_warn_flag in '' yes
6222 # Use a header file that comes with gcc, so configuring glibc
6223 # with a fresh cross-compiler works.
6224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 # <limits.h> exists even on freestanding compilers.
6226 # On the NeXT, cc -E runs the code through the compiler's parser,
6227 # not just through cpp. "Syntax error" is here to catch this case.
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 # include <limits.h>
6237 # include <assert.h>
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } >/dev/null; then
6249 if test -s conftest.err; then
6250 ac_cpp_err=$ac_c_preproc_warn_flag
6251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6258 if test -z "$ac_cpp_err"; then
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 # Broken: fails on valid input.
6267 rm -f conftest.err conftest.$ac_ext
6269 # OK, works on sane cases. Now check whether non-existent headers
6270 # can be detected and how.
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <ac_nonexistent.h>
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev/null; then
6287 if test -s conftest.err; then
6288 ac_cpp_err=$ac_c_preproc_warn_flag
6289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6296 if test -z "$ac_cpp_err"; then
6297 # Broken: success on invalid input.
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 # Passes both tests.
6307 rm -f conftest.err conftest.$ac_ext
6310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311 rm -f conftest.err conftest.$ac_ext
6312 if $ac_preproc_ok; then
6315 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6316 See \`config.log' for more details." >&5
6317 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6318 See \`config.log' for more details." >&2;}
6319 { (exit 1); exit 1; }; }
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6331 if test "${ac_cv_header_stdc+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_header_stdc=yes
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_header_stdc=no
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 if test $ac_cv_header_stdc = yes; then
6385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "memchr" >/dev/null 2>&1; then
6399 ac_cv_header_stdc=no
6405 if test $ac_cv_header_stdc = yes; then
6406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6417 $EGREP "free" >/dev/null 2>&1; then
6420 ac_cv_header_stdc=no
6426 if test $ac_cv_header_stdc = yes; then
6427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6428 if test "$cross_compiling" = yes; then
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6438 #if ((' ' & 0x0FF) == 0x020)
6439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6442 # define ISLOWER(c) \
6443 (('a' <= (c) && (c) <= 'i') \
6444 || ('j' <= (c) && (c) <= 'r') \
6445 || ('s' <= (c) && (c) <= 'z'))
6446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6454 for (i = 0; i < 256; i++)
6455 if (XOR (islower (i), ISLOWER (i))
6456 || toupper (i) != TOUPPER (i))
6461 rm -f conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6474 echo "$as_me: program exited with status $ac_status" >&5
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_header_stdc=no
6481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6487 if test $ac_cv_header_stdc = yes; then
6489 cat >>confdefs.h <<\_ACEOF
6490 #define STDC_HEADERS 1
6495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6506 inttypes.h stdint.h unistd.h
6508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6509 echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6522 #include <$ac_header>
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 eval "$as_ac_Header=yes"
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 eval "$as_ac_Header=no"
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558 cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568 for ac_header in dlfcn.h
6570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6572 echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 # Is the header compilable?
6581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -z "$ac_c_werror_flag"
6602 || test ! -s conftest.err'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; } &&
6608 { ac_try='test -s conftest.$ac_objext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 ac_header_compiler=yes
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 ac_header_compiler=no
6621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6623 echo "${ECHO_T}$ac_header_compiler" >&6
6625 # Is the header present?
6626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <$ac_header>
6636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } >/dev/null; then
6644 if test -s conftest.err; then
6645 ac_cpp_err=$ac_c_preproc_warn_flag
6646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6653 if test -z "$ac_cpp_err"; then
6654 ac_header_preproc=yes
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 ac_header_preproc=no
6661 rm -f conftest.err conftest.$ac_ext
6662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6663 echo "${ECHO_T}$ac_header_preproc" >&6
6665 # So? What about this header?
6666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6672 ac_header_preproc=yes
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6689 ## ------------------------------------------ ##
6690 ## Report this to the AC_PACKAGE_NAME lists. ##
6691 ## ------------------------------------------ ##
6694 sed "s/^/$as_me: WARNING: /" >&2
6697 echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 eval "$as_ac_Header=\$ac_header_preproc"
6704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6709 cat >>confdefs.h <<_ACEOF
6710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6718 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6720 # find the maximum length of command line arguments
6721 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6722 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6723 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 # On DJGPP, this test can blow up pretty badly due to problems in libc
6732 # (any single argument exceeding 2000 bytes causes a buffer overrun
6733 # during glob expansion). Even if it were fixed, the result of this
6734 # check would be larger than it should be.
6735 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6739 # Under GNU Hurd, this test is not required because there is
6740 # no limit to the length of command line arguments.
6741 # Libtool will interpret -1 as no limit whatsoever
6742 lt_cv_sys_max_cmd_len=-1;
6746 # On Win9x/ME, this test blows up -- it succeeds, but takes
6747 # about 5 minutes as the teststring grows exponentially.
6748 # Worse, since 9x/ME are not pre-emptively multitasking,
6749 # you end up with a "frozen" computer, even though with patience
6750 # the test eventually succeeds (with a max line length of 256k).
6751 # Instead, let's just punt: use the minimum linelength reported by
6752 # all of the supported platforms: 8192 (on NT/2K/XP).
6753 lt_cv_sys_max_cmd_len=8192;
6757 # On AmigaOS with pdksh, this test takes hours, literally.
6758 # So we just punt and use a minimum line length of 8192.
6759 lt_cv_sys_max_cmd_len=8192;
6762 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6763 # This has been around since 386BSD, at least. Likely further.
6764 if test -x /sbin/sysctl; then
6765 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6766 elif test -x /usr/sbin/sysctl; then
6767 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6769 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6771 # And add a safety zone
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6778 # nice to cause kernel panics so lets avoid the loop below.
6779 # First set a reasonable default.
6780 lt_cv_sys_max_cmd_len=16384
6782 if test -x /sbin/sysconfig; then
6783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6789 # If test is not a shell built-in, we'll probably end up computing a
6790 # maximum length that is only half of the actual maximum length, but
6792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6793 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6794 = "XX$teststring") >/dev/null 2>&1 &&
6795 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6796 lt_cv_sys_max_cmd_len=$new_result &&
6797 test $i != 17 # 1/2 MB should be enough
6800 teststring=$teststring$teststring
6803 # Add a significant safety factor because C++ compilers can tack on massive
6804 # amounts of additional arguments before passing them to the linker.
6805 # It appears as though 1/2 is a usable value.
6806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6812 if test -n $lt_cv_sys_max_cmd_len ; then
6813 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6814 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6816 echo "$as_me:$LINENO: result: none" >&5
6817 echo "${ECHO_T}none" >&6
6823 # Check for command to grab the raw symbol name followed by C symbol from nm.
6824 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6825 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6826 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 # These are sane defaults that work on at least a few old systems.
6831 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6833 # Character class describing NM global symbol codes.
6834 symcode='[BCDEGRST]'
6836 # Regexp to match symbols that can be accessed directly from C.
6837 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6839 # Transform an extracted symbol line into a proper C declaration
6840 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6842 # Transform an extracted symbol line into symbol name and symbol address
6843 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'"
6845 # Define system-specific variables.
6850 cygwin* | mingw* | pw32*)
6851 symcode='[ABCDGISTW]'
6853 hpux*) # Its linker distinguishes data from code symbols
6854 if test "$host_cpu" = ia64; then
6855 symcode='[ABCDEGRST]'
6857 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6858 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'"
6861 if test "$host_cpu" = ia64; then
6862 symcode='[ABCDGIRSTW]'
6863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6864 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'"
6868 symcode='[BCDEGRST]'
6871 symcode='[BCDEGQRST]'
6881 # Handle CRLF in mingw tool chain
6885 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6889 # If we're using GNU nm, then use its standard symbol codes.
6890 case `$NM -V 2>&1` in
6891 *GNU* | *'with BFD'*)
6892 symcode='[ABCDGIRSTW]' ;;
6895 # Try without a prefix undercore, then with it.
6896 for ac_symprfx in "" "_"; do
6898 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6899 symxfrm="\\1 $ac_symprfx\\2 \\2"
6901 # Write the raw and C identifiers.
6902 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6904 # Check to see that the pipe works correctly.
6908 cat > conftest.$ac_ext <<EOF
6913 void nm_test_func(){}
6917 int main(){nm_test_var='a';nm_test_func();return(0);}
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; then
6925 # Now try to grab the symbols.
6927 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6928 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && test -s "$nlist"; then
6932 # Try sorting and uniquifying the output.
6933 if sort "$nlist" | uniq > "$nlist"T; then
6934 mv -f "$nlist"T "$nlist"
6939 # Make sure that we snagged all the symbols we need.
6940 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6941 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6942 cat <<EOF > conftest.$ac_ext
6948 # Now generate the symbol file.
6949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6951 cat <<EOF >> conftest.$ac_ext
6952 #if defined (__STDC__) && __STDC__
6953 # define lt_ptr_t void *
6955 # define lt_ptr_t char *
6959 /* The mapping between symbol names and symbols. */
6964 lt_preloaded_symbols[] =
6967 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6968 cat <<\EOF >> conftest.$ac_ext
6976 # Now try linking the two files.
6977 mv conftest.$ac_objext conftstm.$ac_objext
6978 lt_save_LIBS="$LIBS"
6979 lt_save_CFLAGS="$CFLAGS"
6980 LIBS="conftstm.$ac_objext"
6981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6989 LIBS="$lt_save_LIBS"
6990 CFLAGS="$lt_save_CFLAGS"
6992 echo "cannot find nm_test_func in $nlist" >&5
6995 echo "cannot find nm_test_var in $nlist" >&5
6998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7001 echo "$progname: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7004 rm -f conftest* conftst*
7006 # Do not use the global_symbol_pipe unless it works.
7007 if test "$pipe_works" = yes; then
7010 lt_cv_sys_global_symbol_pipe=
7016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017 lt_cv_sys_global_symbol_to_cdecl=
7019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020 echo "$as_me:$LINENO: result: failed" >&5
7021 echo "${ECHO_T}failed" >&6
7023 echo "$as_me:$LINENO: result: ok" >&5
7024 echo "${ECHO_T}ok" >&6
7027 echo "$as_me:$LINENO: checking for objdir" >&5
7028 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7029 if test "${lt_cv_objdir+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 rm -f .libs 2>/dev/null
7033 mkdir .libs 2>/dev/null
7034 if test -d .libs; then
7037 # MS-DOS does not allow filenames that begin with a dot.
7040 rmdir .libs 2>/dev/null
7042 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7043 echo "${ECHO_T}$lt_cv_objdir" >&6
7044 objdir=$lt_cv_objdir
7052 # AIX sometimes has problems with the GCC collect2 program. For some
7053 # reason, if we set the COLLECT_NAMES environment variable, the problems
7054 # vanish in a puff of smoke.
7055 if test "X${COLLECT_NAMES+set}" != Xset; then
7057 export COLLECT_NAMES
7062 # Sed substitution that helps us do robust quoting. It backslashifies
7063 # metacharacters that are still active within double-quoted strings.
7064 Xsed='sed -e 1s/^X//'
7065 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7067 # Same as above, but do not quote variable references.
7068 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7070 # Sed substitution to delay expansion of an escaped shell variable in a
7071 # double_quote_subst'ed string.
7072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7074 # Sed substitution to avoid accidental globbing in evaled expressions
7075 no_glob_subst='s/\*/\\\*/g'
7081 default_ofile=libtool
7082 can_build_shared=yes
7084 # All known linkers require a `.a' archive for static linking (except MSVC,
7085 # which needs '.lib').
7087 ltmain="$ac_aux_dir/ltmain.sh"
7088 ofile="$default_ofile"
7089 with_gnu_ld="$lt_cv_prog_gnu_ld"
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}ar; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_AR+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$AR"; then
7100 ac_cv_prog_AR="$AR" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_AR="${ac_tool_prefix}ar"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 if test -n "$AR"; then
7120 echo "$as_me:$LINENO: result: $AR" >&5
7121 echo "${ECHO_T}$AR" >&6
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7128 if test -z "$ac_cv_prog_AR"; then
7130 # Extract the first word of "ar", so it can be a program name with args.
7131 set dummy ar; ac_word=$2
7132 echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7134 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 if test -n "$ac_ct_AR"; then
7138 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_AR="ar"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7158 if test -n "$ac_ct_AR"; then
7159 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7160 echo "${ECHO_T}$ac_ct_AR" >&6
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_RANLIB+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$RANLIB"; then
7180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 RANLIB=$ac_cv_prog_RANLIB
7199 if test -n "$RANLIB"; then
7200 echo "$as_me:$LINENO: result: $RANLIB" >&5
7201 echo "${ECHO_T}$RANLIB" >&6
7203 echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6
7208 if test -z "$ac_cv_prog_RANLIB"; then
7209 ac_ct_RANLIB=$RANLIB
7210 # Extract the first word of "ranlib", so it can be a program name with args.
7211 set dummy ranlib; ac_word=$2
7212 echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 if test -n "$ac_ct_RANLIB"; then
7218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_ac_ct_RANLIB="ranlib"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7238 if test -n "$ac_ct_RANLIB"; then
7239 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7240 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7242 echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7246 RANLIB=$ac_ct_RANLIB
7248 RANLIB="$ac_cv_prog_RANLIB"
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}strip; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_STRIP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test -n "$STRIP"; then
7260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 STRIP=$ac_cv_prog_STRIP
7279 if test -n "$STRIP"; then
7280 echo "$as_me:$LINENO: result: $STRIP" >&5
7281 echo "${ECHO_T}$STRIP" >&6
7283 echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7288 if test -z "$ac_cv_prog_STRIP"; then
7290 # Extract the first word of "strip", so it can be a program name with args.
7291 set dummy strip; ac_word=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test -n "$ac_ct_STRIP"; then
7298 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_ac_ct_STRIP="strip"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7318 if test -n "$ac_ct_STRIP"; then
7319 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7320 echo "${ECHO_T}$ac_ct_STRIP" >&6
7322 echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7328 STRIP="$ac_cv_prog_STRIP"
7333 old_CFLAGS="$CFLAGS"
7335 # Set sane defaults for various variables
7336 test -z "$AR" && AR=ar
7337 test -z "$AR_FLAGS" && AR_FLAGS=cru
7338 test -z "$AS" && AS=as
7339 test -z "$CC" && CC=cc
7340 test -z "$LTCC" && LTCC=$CC
7341 test -z "$DLLTOOL" && DLLTOOL=dlltool
7342 test -z "$LD" && LD=ld
7343 test -z "$LN_S" && LN_S="ln -s"
7344 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7345 test -z "$NM" && NM=nm
7346 test -z "$SED" && SED=sed
7347 test -z "$OBJDUMP" && OBJDUMP=objdump
7348 test -z "$RANLIB" && RANLIB=:
7349 test -z "$STRIP" && STRIP=:
7350 test -z "$ac_objext" && ac_objext=o
7352 # Determine commands to create old-style static archives.
7353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7354 old_postinstall_cmds='chmod 644 $oldlib'
7355 old_postuninstall_cmds=
7357 if test -n "$RANLIB"; then
7360 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7363 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7369 for cc_temp in $compiler""; do
7371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7380 # Only perform the check for file, if the check method requires it
7381 case $deplibs_check_method in
7383 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7384 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7385 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394 lt_save_MAGIC_CMD="$MAGIC_CMD"
7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397 for ac_dir in $ac_dummy; do
7399 test -z "$ac_dir" && ac_dir=.
7400 if test -f $ac_dir/${ac_tool_prefix}file; then
7401 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7402 if test -n "$file_magic_test_file"; then
7403 case $deplibs_check_method in
7405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408 $EGREP "$file_magic_regex" > /dev/null; then
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such. This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem. Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7430 MAGIC_CMD="$lt_save_MAGIC_CMD"
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438 echo "${ECHO_T}$MAGIC_CMD" >&6
7440 echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7444 if test -z "$lt_cv_path_MAGIC_CMD"; then
7445 if test -n "$ac_tool_prefix"; then
7446 echo "$as_me:$LINENO: checking for file" >&5
7447 echo $ECHO_N "checking for file... $ECHO_C" >&6
7448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7456 lt_save_MAGIC_CMD="$MAGIC_CMD"
7457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459 for ac_dir in $ac_dummy; do
7461 test -z "$ac_dir" && ac_dir=.
7462 if test -f $ac_dir/file; then
7463 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7464 if test -n "$file_magic_test_file"; then
7465 case $deplibs_check_method in
7467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470 $EGREP "$file_magic_regex" > /dev/null; then
7475 *** Warning: the command libtool uses to detect shared libraries,
7476 *** $file_magic_cmd, produces output that libtool cannot recognize.
7477 *** The result is that libtool may fail to recognize shared libraries
7478 *** as such. This will affect the creation of libtool libraries that
7479 *** depend on shared libraries, but programs linked with such libtool
7480 *** libraries will work regardless of this problem. Nevertheless, you
7481 *** may want to report the problem to your system manager and/or to
7482 *** bug-libtool@gnu.org
7492 MAGIC_CMD="$lt_save_MAGIC_CMD"
7497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498 if test -n "$MAGIC_CMD"; then
7499 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7500 echo "${ECHO_T}$MAGIC_CMD" >&6
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7516 enable_win32_dll=yes
7518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7519 if test "${enable_libtool_lock+set}" = set; then
7520 enableval="$enable_libtool_lock"
7523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7526 # Check whether --with-pic or --without-pic was given.
7527 if test "${with_pic+set}" = set; then
7533 test -z "$pic_mode" && pic_mode=default
7535 # Use C for the default configuration in the libtool script
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545 # Source file extension for C test sources.
7548 # Object file extension for compiled C test sources.
7552 # Code to be used in simple compile tests
7553 lt_simple_compile_test_code="int some_variable = 0;\n"
7555 # Code to be used in simple link tests
7556 lt_simple_link_test_code='int main(){return(0);}\n'
7559 # If no C compiler was specified, use CC.
7562 # Allow CC to be a program name with arguments.
7566 # save warnings/boilerplate of simple test code
7567 ac_outfile=conftest.$ac_objext
7568 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7569 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7570 _lt_compiler_boilerplate=`cat conftest.err`
7573 ac_outfile=conftest.$ac_objext
7574 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7575 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7576 _lt_linker_boilerplate=`cat conftest.err`
7581 # Check for any special shared library compilation flags.
7584 if test "$GCC" = no; then
7587 lt_prog_cc_shlib='-belf'
7591 if test -n "$lt_prog_cc_shlib"; then
7592 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7593 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7594 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7596 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7597 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7598 lt_cv_prog_cc_can_build_shared=no
7604 # Check to make sure the static flag actually works.
7606 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7607 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7608 if test "${lt_prog_compiler_static_works+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 lt_prog_compiler_static_works=no
7612 save_LDFLAGS="$LDFLAGS"
7613 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7614 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7616 # The linker can only warn and ignore the option if not recognized
7617 # So say no if there are warnings
7618 if test -s conftest.err; then
7619 # Append any errors to the config.log.
7620 cat conftest.err 1>&5
7621 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7622 $SED '/^$/d' conftest.err >conftest.er2
7623 if diff conftest.exp conftest.er2 >/dev/null; then
7624 lt_prog_compiler_static_works=yes
7627 lt_prog_compiler_static_works=yes
7631 LDFLAGS="$save_LDFLAGS"
7634 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7635 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7637 if test x"$lt_prog_compiler_static_works" = xyes; then
7640 lt_prog_compiler_static=
7646 lt_prog_compiler_no_builtin_flag=
7648 if test "$GCC" = yes; then
7649 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7652 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 lt_cv_prog_compiler_rtti_exceptions=no
7658 ac_outfile=conftest.$ac_objext
7659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7660 lt_compiler_flag="-fno-rtti -fno-exceptions"
7661 # Insert the option either (1) after the last *FLAGS variable, or
7662 # (2) before a word containing "conftest.", or (3) at the end.
7663 # Note that $ac_compile itself does not contain backslashes and begins
7664 # with a dollar sign (not a hyphen), so the echo should work correctly.
7665 # The option is referenced via a variable to avoid confusing sed.
7666 lt_compile=`echo "$ac_compile" | $SED \
7667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669 -e 's:$: $lt_compiler_flag:'`
7670 (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7671 (eval "$lt_compile" 2>conftest.err)
7673 cat conftest.err >&5
7674 echo "$as_me:7674: \$? = $ac_status" >&5
7675 if (exit $ac_status) && test -s "$ac_outfile"; then
7676 # The compiler can only warn and ignore the option if not recognized
7677 # So say no if there are warnings other than the usual output.
7678 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7679 $SED '/^$/d' conftest.err >conftest.er2
7680 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7681 lt_cv_prog_compiler_rtti_exceptions=yes
7687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7698 lt_prog_compiler_wl=
7699 lt_prog_compiler_pic=
7700 lt_prog_compiler_static=
7702 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7705 if test "$GCC" = yes; then
7706 lt_prog_compiler_wl='-Wl,'
7707 lt_prog_compiler_static='-static'
7711 # All AIX code is PIC.
7712 if test "$host_cpu" = ia64; then
7713 # AIX 5 now supports IA64 processor
7714 lt_prog_compiler_static='-Bstatic'
7719 # FIXME: we need at least 68020 code to build shared libraries, but
7720 # adding the `-m68020' flag to GCC prevents building anything better,
7722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7726 # PIC is the default for these OSes.
7729 mingw* | pw32* | os2*)
7730 # This hack is so that the source file can tell whether it is being
7731 # built for inclusion in a dll (and should export symbols for example).
7732 lt_prog_compiler_pic='-DDLL_EXPORT'
7735 darwin* | rhapsody*)
7736 # PIC is the default on this platform
7737 # Common symbols not allowed in MH_DYLIB files
7738 lt_prog_compiler_pic='-fno-common'
7742 # Just because we use GCC doesn't mean we suddenly get shared libraries
7743 # on systems that don't support them.
7744 lt_prog_compiler_can_build_shared=no
7749 if test -d /usr/nec; then
7750 lt_prog_compiler_pic=-Kconform_pic
7755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7762 lt_prog_compiler_pic='-fPIC'
7768 lt_prog_compiler_pic='-fPIC'
7772 # PORTME Check for flag to pass linker flags through the system compiler.
7775 lt_prog_compiler_wl='-Wl,'
7776 if test "$host_cpu" = ia64; then
7777 # AIX 5 now supports IA64 processor
7778 lt_prog_compiler_static='-Bstatic'
7780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7784 # PIC is the default on this platform
7785 # Common symbols not allowed in MH_DYLIB files
7786 case $cc_basename in
7788 lt_prog_compiler_pic='-qnocommon'
7789 lt_prog_compiler_wl='-Wl,'
7794 mingw* | pw32* | os2*)
7795 # This hack is so that the source file can tell whether it is being
7796 # built for inclusion in a dll (and should export symbols for example).
7797 lt_prog_compiler_pic='-DDLL_EXPORT'
7800 hpux9* | hpux10* | hpux11*)
7801 lt_prog_compiler_wl='-Wl,'
7802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7809 lt_prog_compiler_pic='+Z'
7812 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7813 lt_prog_compiler_static='${wl}-a ${wl}archive'
7816 irix5* | irix6* | nonstopux*)
7817 lt_prog_compiler_wl='-Wl,'
7818 # PIC (with -KPIC) is the default.
7819 lt_prog_compiler_static='-non_shared'
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-Bstatic'
7828 case $cc_basename in
7830 lt_prog_compiler_wl='-Wl,'
7831 lt_prog_compiler_pic='-KPIC'
7832 lt_prog_compiler_static='-static'
7834 pgcc* | pgf77* | pgf90* | pgf95*)
7835 # Portland Group compilers (*not* the Pentium gcc compiler,
7836 # which looks to be a dead project)
7837 lt_prog_compiler_wl='-Wl,'
7838 lt_prog_compiler_pic='-fpic'
7839 lt_prog_compiler_static='-Bstatic'
7842 lt_prog_compiler_wl='-Wl,'
7843 # All Alpha code is PIC.
7844 lt_prog_compiler_static='-non_shared'
7849 osf3* | osf4* | osf5*)
7850 lt_prog_compiler_wl='-Wl,'
7851 # All OSF/1 code is PIC.
7852 lt_prog_compiler_static='-non_shared'
7856 lt_prog_compiler_pic='-Kpic'
7857 lt_prog_compiler_static='-dn'
7861 lt_prog_compiler_pic='-KPIC'
7862 lt_prog_compiler_static='-Bstatic'
7863 case $cc_basename in
7865 lt_prog_compiler_wl='-Qoption ld ';;
7867 lt_prog_compiler_wl='-Wl,';;
7872 lt_prog_compiler_wl='-Qoption ld '
7873 lt_prog_compiler_pic='-PIC'
7874 lt_prog_compiler_static='-Bstatic'
7877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-KPIC'
7880 lt_prog_compiler_static='-Bstatic'
7884 if test -d /usr/nec ;then
7885 lt_prog_compiler_pic='-Kconform_pic'
7886 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl='-Wl,'
7892 lt_prog_compiler_can_build_shared=no
7896 lt_prog_compiler_pic='-pic'
7897 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_can_build_shared=no
7906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7907 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7910 # Check to make sure the PIC flag actually works.
7912 if test -n "$lt_prog_compiler_pic"; then
7914 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7916 if test "${lt_prog_compiler_pic_works+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 lt_prog_compiler_pic_works=no
7920 ac_outfile=conftest.$ac_objext
7921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7922 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7923 # Insert the option either (1) after the last *FLAGS variable, or
7924 # (2) before a word containing "conftest.", or (3) at the end.
7925 # Note that $ac_compile itself does not contain backslashes and begins
7926 # with a dollar sign (not a hyphen), so the echo should work correctly.
7927 # The option is referenced via a variable to avoid confusing sed.
7928 lt_compile=`echo "$ac_compile" | $SED \
7929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7931 -e 's:$: $lt_compiler_flag:'`
7932 (eval echo "\"\$as_me:7932: $lt_compile\"" >&5)
7933 (eval "$lt_compile" 2>conftest.err)
7935 cat conftest.err >&5
7936 echo "$as_me:7936: \$? = $ac_status" >&5
7937 if (exit $ac_status) && test -s "$ac_outfile"; then
7938 # The compiler can only warn and ignore the option if not recognized
7939 # So say no if there are warnings other than the usual output.
7940 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7941 $SED '/^$/d' conftest.err >conftest.er2
7942 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7943 lt_prog_compiler_pic_works=yes
7949 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7950 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7952 if test x"$lt_prog_compiler_pic_works" = xyes; then
7953 case $lt_prog_compiler_pic in
7955 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7958 lt_prog_compiler_pic=
7959 lt_prog_compiler_can_build_shared=no
7964 # For platforms which do not support PIC, -DPIC is meaningless:
7966 lt_prog_compiler_pic=
7969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7973 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7974 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7975 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 lt_cv_prog_compiler_c_o=no
7979 $rm -r conftest 2>/dev/null
7983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7985 lt_compiler_flag="-o out/conftest2.$ac_objext"
7986 # Insert the option either (1) after the last *FLAGS variable, or
7987 # (2) before a word containing "conftest.", or (3) at the end.
7988 # Note that $ac_compile itself does not contain backslashes and begins
7989 # with a dollar sign (not a hyphen), so the echo should work correctly.
7990 lt_compile=`echo "$ac_compile" | $SED \
7991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7993 -e 's:$: $lt_compiler_flag:'`
7994 (eval echo "\"\$as_me:7994: $lt_compile\"" >&5)
7995 (eval "$lt_compile" 2>out/conftest.err)
7997 cat out/conftest.err >&5
7998 echo "$as_me:7998: \$? = $ac_status" >&5
7999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8001 # The compiler can only warn and ignore the option if not recognized
8002 # So say no if there are warnings
8003 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8004 $SED '/^$/d' out/conftest.err >out/conftest.er2
8005 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8006 lt_cv_prog_compiler_c_o=yes
8011 # SGI C++ compiler will create directory out/ii_files/ for
8012 # template instantiation
8013 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8014 $rm out/* && rmdir out
8020 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8021 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8024 hard_links="nottested"
8025 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8026 # do not overwrite the value of need_locks provided by the user
8027 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8028 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8033 ln conftest.a conftest.b 2>&5 || hard_links=no
8034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8035 echo "$as_me:$LINENO: result: $hard_links" >&5
8036 echo "${ECHO_T}$hard_links" >&6
8037 if test "$hard_links" = no; then
8038 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8039 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8046 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8047 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8050 allow_undefined_flag=
8051 enable_shared_with_static_runtimes=no
8053 archive_expsym_cmds=
8054 old_archive_From_new_cmds=
8055 old_archive_from_expsyms_cmds=
8056 export_dynamic_flag_spec=
8057 whole_archive_flag_spec=
8058 thread_safe_flag_spec=
8059 hardcode_libdir_flag_spec=
8060 hardcode_libdir_flag_spec_ld=
8061 hardcode_libdir_separator=
8064 hardcode_shlibpath_var=unsupported
8065 link_all_deplibs=unknown
8066 hardcode_automatic=no
8069 always_export_symbols=no
8070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8071 # include_expsyms should be a list of space-separated symbols to be *always*
8072 # included in the symbol list
8074 # exclude_expsyms can be an extended regexp of symbols to exclude
8075 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8076 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8077 # as well as any symbol that contains `d'.
8078 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8080 # platforms (ab)use it in PIC code, but their linkers get confused if
8081 # the symbol is explicitly referenced. Since portable code cannot
8082 # rely on this symbol name, it's probably fine to never include it in
8083 # preloaded symbol tables.
8084 extract_expsyms_cmds=
8085 # Just being paranoid about ensuring that cc_basename is set.
8086 for cc_temp in $compiler""; do
8088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8097 cygwin* | mingw* | pw32*)
8098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8099 # When not using gcc, we currently assume that we are using
8100 # Microsoft Visual C++.
8101 if test "$GCC" != yes; then
8111 if test "$with_gnu_ld" = yes; then
8112 # If archive_cmds runs LD, not CC, wlarc should be empty
8115 # Set some defaults for GNU ld with shared library support. These
8116 # are reset later if shared libraries are not supported. Putting them
8117 # here allows them to be overridden if necessary.
8118 runpath_var=LD_RUN_PATH
8119 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8120 export_dynamic_flag_spec='${wl}--export-dynamic'
8121 # ancient GNU ld didn't support --whole-archive et. al.
8122 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8123 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8125 whole_archive_flag_spec=
8127 supports_anon_versioning=no
8128 case `$LD -v 2>/dev/null` in
8129 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8130 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8131 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8132 *\ 2.11.*) ;; # other 2.11 versions
8133 *) supports_anon_versioning=yes ;;
8136 # See if GNU ld supports shared libraries.
8138 aix3* | aix4* | aix5*)
8139 # On AIX/PPC, the GNU linker is very broken
8140 if test "$host_cpu" != ia64; then
8144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8145 *** to be unable to reliably create shared libraries on AIX.
8146 *** Therefore, libtool is disabling shared libraries support. If you
8147 *** really care for shared libraries, you may want to modify your PATH
8148 *** so that a non-GNU linker is found, and then restart.
8155 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)'
8156 hardcode_libdir_flag_spec='-L$libdir'
8157 hardcode_minus_L=yes
8159 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8160 # that the semantics of dynamic libraries on AmigaOS, at least up
8161 # to version 4, is to share data among multiple programs linked
8162 # with the same dynamic library. Since this doesn't match the
8163 # behavior of shared libraries on other platforms, we can't use
8169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8170 allow_undefined_flag=unsupported
8171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8172 # support --undefined. This deserves some investigation. FIXME
8173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8179 cygwin* | mingw* | pw32*)
8180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8181 # as there is no search path for DLLs.
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 allow_undefined_flag=unsupported
8184 always_export_symbols=no
8185 enable_shared_with_static_runtimes=yes
8186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8190 # If the export-symbols file already is a .def file (1st line
8191 # is EXPORTS), use it as is; otherwise, prepend...
8192 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8193 cp $export_symbols $output_objdir/$soname.def;
8195 echo EXPORTS > $output_objdir/$soname.def;
8196 cat $export_symbols >> $output_objdir/$soname.def;
8198 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8207 case $cc_basename,$host_cpu in
8208 pgcc*) # Portland Group C compiler
8209 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'
8210 tmp_addflag=' $pic_flag'
8212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8213 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'
8214 tmp_addflag=' $pic_flag -Mnomain' ;;
8215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8216 tmp_addflag=' -i_dynamic' ;;
8217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8218 tmp_addflag=' -i_dynamic -nofor_main' ;;
8219 ifc* | ifort*) # Intel Fortran compiler
8220 tmp_addflag=' -nofor_main' ;;
8222 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224 if test $supports_anon_versioning = yes; then
8225 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8227 $echo "local: *; };" >> $output_objdir/$libname.ver~
8228 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8251 *** create shared libraries on Solaris systems. Therefore, libtool
8252 *** is disabling shared libraries support. We urge you to upgrade GNU
8253 *** binutils to release 2.9.1 or newer. Another option is to modify
8254 *** your PATH or compiler configuration so that the native linker is
8255 *** used, and then restart.
8258 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8270 hardcode_shlibpath_var=no
8274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8283 if test "$ld_shlibs" = no; then
8285 hardcode_libdir_flag_spec=
8286 export_dynamic_flag_spec=
8287 whole_archive_flag_spec=
8290 # PORTME fill in a description of your system's linker (not GNU ld)
8293 allow_undefined_flag=unsupported
8294 always_export_symbols=yes
8295 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'
8296 # Note: this linker hardcodes the directories in LIBPATH if there
8297 # are no directories specified by -L.
8298 hardcode_minus_L=yes
8299 if test "$GCC" = yes && test -z "$link_static_flag"; then
8300 # Neither direct hardcoding nor static linking is supported with a
8302 hardcode_direct=unsupported
8307 if test "$host_cpu" = ia64; then
8308 # On IA64, the linker does run time linking by default, so we don't
8309 # have to do anything special.
8310 aix_use_runtimelinking=no
8311 exp_sym_flag='-Bexport'
8314 # If we're using GNU nm, then we don't want the "-C" option.
8315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8317 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'
8319 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'
8321 aix_use_runtimelinking=no
8323 # Test if we are trying to use run time linking or normal
8324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8325 # need to do runtime linking.
8326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8327 for ld_flag in $LDFLAGS; do
8328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8329 aix_use_runtimelinking=yes
8335 exp_sym_flag='-bexport'
8336 no_entry_flag='-bnoentry'
8339 # When large executables or shared objects are built, AIX ld can
8340 # have problems creating the table of contents. If linking a library
8341 # or program results in "error TOC overflow" add -mminimal-toc to
8342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8347 hardcode_libdir_separator=':'
8348 link_all_deplibs=yes
8350 if test "$GCC" = yes; then
8351 case $host_os in aix4.[012]|aix4.[012].*)
8352 # We only want to do this on AIX 4.2 and lower, the check
8353 # below for broken collect2 doesn't work under 4.3+
8354 collect2name=`${CC} -print-prog-name=collect2`
8355 if test -f "$collect2name" && \
8356 strings "$collect2name" | grep resolve_lib_name >/dev/null
8358 # We have reworked collect2
8361 # We have old collect2
8362 hardcode_direct=unsupported
8363 # It fails to find uninstalled libraries when the uninstalled
8364 # path is not listed in the libpath. Setting hardcode_minus_L
8365 # to unsupported forces relinking
8366 hardcode_minus_L=yes
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_libdir_separator=
8371 shared_flag='-shared'
8372 if test "$aix_use_runtimelinking" = yes; then
8373 shared_flag="$shared_flag "'${wl}-G'
8377 if test "$host_cpu" = ia64; then
8378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379 # chokes on -Wl,-G. The following line is correct:
8382 if test "$aix_use_runtimelinking" = yes; then
8383 shared_flag='${wl}-G'
8385 shared_flag='${wl}-bM:SRE'
8390 # It seems that -bexpall does not export symbols beginning with
8391 # underscore (_), so it is better to generate a list of symbols to export.
8392 always_export_symbols=yes
8393 if test "$aix_use_runtimelinking" = yes; then
8394 # Warning - without using the other runtime loading flags (-brtl),
8395 # -berok will link without error, but may produce a broken library.
8396 allow_undefined_flag='-berok'
8397 # Determine the default libpath from the value encoded in an empty executable.
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>conftest.er1
8417 grep -v '^ *+' conftest.er1 >conftest.err
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -z "$ac_c_werror_flag"
8423 || test ! -s conftest.err'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; } &&
8429 { ac_try='test -s conftest$ac_exeext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8438 # Check for a 64-bit object if we didn't find anything.
8439 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; }
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8446 rm -f conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8451 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"
8453 if test "$host_cpu" = ia64; then
8454 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8455 allow_undefined_flag="-z nodefs"
8456 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"
8458 # Determine the default libpath from the value encoded in an empty executable.
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8499 # Check for a 64-bit object if we didn't find anything.
8500 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; }
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8511 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8512 # Warning - without using the other run time loading flags,
8513 # -berok will link without error, but may produce a broken library.
8514 no_undefined_flag=' ${wl}-bernotok'
8515 allow_undefined_flag=' ${wl}-berok'
8516 # -bexpall does not export symbols beginning with underscore (_)
8517 always_export_symbols=yes
8518 # Exported symbols can be pulled into shared objects from archives
8519 whole_archive_flag_spec=' '
8520 archive_cmds_need_lc=yes
8521 # This is similar to how AIX traditionally builds its shared libraries.
8522 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'
8528 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)'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_minus_L=yes
8531 # see comment about different semantics on the GNU ld section
8536 export_dynamic_flag_spec=-rdynamic
8539 cygwin* | mingw* | pw32*)
8540 # When not using gcc, we currently assume that we are using
8541 # Microsoft Visual C++.
8542 # hardcode_libdir_flag_spec is actually meaningless, as there is
8543 # no search path for DLLs.
8544 hardcode_libdir_flag_spec=' '
8545 allow_undefined_flag=unsupported
8546 # Tell ltmain to make .lib files, not .a files.
8548 # Tell ltmain to make .dll files, not .so files.
8550 # FIXME: Setting linknames here is a bad hack.
8551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552 # The linker will automatically build a .lib file if we build a DLL.
8553 old_archive_From_new_cmds='true'
8554 # FIXME: Should let the user specify the lib program.
8555 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8556 fix_srcfile_path='`cygpath -w "$srcfile"`'
8557 enable_shared_with_static_runtimes=yes
8560 darwin* | rhapsody*)
8562 rhapsody* | darwin1.[012])
8563 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8566 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8567 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8569 case ${MACOSX_DEPLOYMENT_TARGET} in
8571 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8574 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8580 archive_cmds_need_lc=no
8582 hardcode_automatic=yes
8583 hardcode_shlibpath_var=unsupported
8584 whole_archive_flag_spec=''
8585 link_all_deplibs=yes
8586 if test "$GCC" = yes ; then
8587 output_verbose_link_cmd='echo'
8588 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8589 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8591 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}'
8592 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}'
8594 case $cc_basename in
8596 output_verbose_link_cmd='echo'
8597 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8598 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8600 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}'
8601 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}'
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 hardcode_shlibpath_var=no
8620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8621 # support. Future versions do this automatically, but an explicit c++rt0.o
8622 # does not break anything, and helps significantly (at the cost of a little
8625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8626 hardcode_libdir_flag_spec='-R$libdir'
8628 hardcode_shlibpath_var=no
8631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_minus_L=yes
8636 hardcode_shlibpath_var=no
8639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8640 freebsd* | kfreebsd*-gnu | dragonfly*)
8641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8642 hardcode_libdir_flag_spec='-R$libdir'
8644 hardcode_shlibpath_var=no
8648 if test "$GCC" = yes; then
8649 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'
8651 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'
8653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8654 hardcode_libdir_separator=:
8657 # hardcode_minus_L: Not really in the search PATH,
8658 # but as the default location of the library.
8659 hardcode_minus_L=yes
8660 export_dynamic_flag_spec='${wl}-E'
8664 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8667 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8670 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8676 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8683 if test "$with_gnu_ld" = no; then
8686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8687 hardcode_libdir_flag_spec_ld='+b $libdir'
8688 hardcode_libdir_separator=:
8690 hardcode_shlibpath_var=no
8693 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_shlibpath_var=no
8697 # hardcode_minus_L: Not really in the search PATH,
8698 # but as the default location of the library.
8699 hardcode_minus_L=yes
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8705 export_dynamic_flag_spec='${wl}-E'
8707 # hardcode_minus_L: Not really in the search PATH,
8708 # but as the default location of the library.
8709 hardcode_minus_L=yes
8715 irix5* | irix6* | nonstopux*)
8716 if test "$GCC" = yes; then
8717 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'
8719 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'
8720 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723 hardcode_libdir_separator=:
8724 link_all_deplibs=yes
8728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8731 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8733 hardcode_libdir_flag_spec='-R$libdir'
8735 hardcode_shlibpath_var=no
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743 hardcode_shlibpath_var=no
8748 hardcode_shlibpath_var=no
8749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753 export_dynamic_flag_spec='${wl}-E'
8756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-R$libdir'
8761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8769 hardcode_libdir_flag_spec='-L$libdir'
8770 hardcode_minus_L=yes
8771 allow_undefined_flag=unsupported
8772 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'
8773 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8777 if test "$GCC" = yes; then
8778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8779 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'
8781 allow_undefined_flag=' -expect_unresolved \*'
8782 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'
8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785 hardcode_libdir_separator=:
8788 osf4* | osf5*) # as osf3* with the addition of -msym flag
8789 if test "$GCC" = yes; then
8790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8791 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'
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 allow_undefined_flag=' -expect_unresolved \*'
8795 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'
8796 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8797 $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'
8799 # Both c and cxx compiler support -rpath directly
8800 hardcode_libdir_flag_spec='-rpath $libdir'
8802 hardcode_libdir_separator=:
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_shlibpath_var=no
8808 export_dynamic_flag_spec='${wl}-Bexport'
8809 runpath_var=LD_RUN_PATH
8810 hardcode_runpath_var=yes
8814 no_undefined_flag=' -z text'
8815 if test "$GCC" = yes; then
8817 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8826 hardcode_libdir_flag_spec='-R$libdir'
8827 hardcode_shlibpath_var=no
8829 solaris2.[0-5] | solaris2.[0-5].*) ;;
8831 # The compiler driver will combine linker options so we
8832 # cannot just pass the convience library names through
8833 # without $wl, iff we do not link with $LD.
8834 # Luckily, gcc supports the same syntax we need for Sun Studio.
8835 # Supported since Solaris 2.6 (maybe 2.5.1?)
8838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8840 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' ;;
8843 link_all_deplibs=yes
8847 if test "x$host_vendor" = xsequent; then
8848 # Use $CC to link under sequent, because it throws in some extra .o
8849 # files that make .init and .fini sections work.
8850 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8854 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_minus_L=yes
8857 hardcode_shlibpath_var=no
8861 case $host_vendor in
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_direct=yes # is this really true???
8867 ## LD is ld it makes a PLAMLIB
8868 ## CC just makes a GrossModule.
8869 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870 reload_cmds='$CC -r -o $output$reload_objs'
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8878 runpath_var='LD_RUN_PATH'
8879 hardcode_shlibpath_var=no
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='-Bexport'
8889 if test -d /usr/nec; then
8890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_shlibpath_var=no
8892 runpath_var=LD_RUN_PATH
8893 hardcode_runpath_var=yes
8899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_shlibpath_var=no
8903 hardcode_runpath_var=yes
8904 runpath_var=LD_RUN_PATH
8907 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8908 no_undefined_flag='${wl}-z ${wl}text'
8909 if test "$GCC" = yes; then
8910 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8914 runpath_var='LD_RUN_PATH'
8915 hardcode_shlibpath_var=no
8919 no_undefined_flag=' -z text'
8920 # $CC -shared without GNU ld will not create a library from C++
8921 # object files and a static libstdc++, better avoid it by now
8922 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8924 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8925 hardcode_libdir_flag_spec=
8926 hardcode_shlibpath_var=no
8927 runpath_var='LD_RUN_PATH'
8931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 hardcode_shlibpath_var=no
8942 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8943 echo "${ECHO_T}$ld_shlibs" >&6
8944 test "$ld_shlibs" = no && can_build_shared=no
8946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8947 if test "$GCC" = yes; then
8948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8952 # Do we need to explicitly link libc?
8954 case "x$archive_cmds_need_lc" in
8956 # Assume -lc should be added
8957 archive_cmds_need_lc=yes
8959 if test "$enable_shared" = yes && test "$GCC" = yes; then
8960 case $archive_cmds in
8962 # FIXME: we may have to deal with multi-command sequences.
8965 # Test whether the compiler implicitly links with -lc since on some
8966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8967 # to ld, don't add -lc before -lgcc.
8968 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } 2>conftest.err; then
8980 libobjs=conftest.$ac_objext
8982 wl=$lt_prog_compiler_wl
8988 lt_save_allow_undefined_flag=$allow_undefined_flag
8989 allow_undefined_flag=
8990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8991 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }
8996 archive_cmds_need_lc=no
8998 archive_cmds_need_lc=yes
9000 allow_undefined_flag=$lt_save_allow_undefined_flag
9002 cat conftest.err 1>&5
9005 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9006 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9016 libname_spec='lib$name'
9024 shlibpath_overrides_runpath=unknown
9026 dynamic_linker="$host_os ld.so"
9027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9028 if test "$GCC" = yes; then
9029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9031 # if the path contains ";" then we assume it to be the separator
9032 # otherwise default to the standard path separator (i.e. ":") - it is
9033 # assumed that no part of a normal pathname contains ";" but that should
9034 # okay in the real world where ";" in dirpaths is itself problematic.
9035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9042 need_lib_prefix=unknown
9043 hardcode_into_libs=no
9045 # when you set need_version to no, make sure it does not cause -set_version
9046 # flags to be left without arguments
9047 need_version=unknown
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9053 shlibpath_var=LIBPATH
9055 # AIX 3 has no versioning support, so we append a major version to the name.
9056 soname_spec='${libname}${release}${shared_ext}$major'
9063 hardcode_into_libs=yes
9064 if test "$host_cpu" = ia64; then
9065 # AIX 5 supports IA64
9066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9069 # With GCC up to 2.95.x, collect2 would create an import file
9070 # for dependence libraries. The import file would start with
9071 # the line `#! .'. This would cause the generated library to
9072 # depend on `.', always an invalid library. This was fixed in
9073 # development snapshots of GCC prior to 3.0.
9075 aix4 | aix4.[01] | aix4.[01].*)
9076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9086 # soname into executable. Probably we can add versioning support to
9087 # collect2, so additional links can be useful in future.
9088 if test "$aix_use_runtimelinking" = yes; then
9089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9090 # instead of lib<name>.a to let people know that these are not
9091 # typical AIX shared libraries.
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 # We preserve .a as extension for shared libraries through AIX4.2
9095 # and later when we are not doing run time linking.
9096 library_names_spec='${libname}${release}.a $libname.a'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LIBPATH
9104 library_names_spec='$libname.ixlibrary $libname.a'
9105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9106 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'
9110 library_names_spec='${libname}${shared_ext}'
9111 dynamic_linker="$host_os ld.so"
9112 shlibpath_var=LIBRARY_PATH
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9124 # the default ld.so.conf also contains /usr/contrib/lib and
9125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9126 # libtool to hard-code these into programs
9129 cygwin* | mingw* | pw32*)
9130 version_type=windows
9135 case $GCC,$host_os in
9136 yes,cygwin* | yes,mingw* | yes,pw32*)
9137 library_names_spec='$libname.dll.a'
9138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9139 postinstall_cmds='base_file=`basename \${file}`~
9140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9141 dldir=$destdir/`dirname \$dlpath`~
9142 test -d \$dldir || mkdir -p \$dldir~
9143 $install_prog $dir/$dlname \$dldir/$dlname~
9144 chmod a+x \$dldir/$dlname'
9145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9146 dlpath=$dir/\$dldll~
9148 shlibpath_overrides_runpath=yes
9152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9157 # MinGW DLLs use traditional 'lib' prefix
9158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9161 # It is most probably a Windows format PATH printed by
9162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9163 # path with ; separators, and with drive letters. We can handle the
9164 # drive letters (cygwin fileutils understands them), so leave them,
9165 # especially as we might pass files found there to a mingw objdump,
9166 # which wouldn't understand a cygwinified path. Ahh.
9167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9173 # pw32 DLLs use 'pw' prefix rather than 'lib'
9174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9183 dynamic_linker='Win32 ld.exe'
9184 # FIXME: first we should search . and the directory the executable is in
9188 darwin* | rhapsody*)
9189 dynamic_linker="$host_os dyld"
9193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9194 soname_spec='${libname}${release}${major}$shared_ext'
9195 shlibpath_overrides_runpath=yes
9196 shlibpath_var=DYLD_LIBRARY_PATH
9197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9199 if test "$GCC" = yes; then
9200 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"`
9202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 shlibpath_var=LD_LIBRARY_PATH
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=no
9228 hardcode_into_libs=yes
9229 dynamic_linker='GNU ld.so'
9232 freebsd* | dragonfly*)
9233 # DragonFly does not have aout. When/if they implement a new
9234 # versioning mechanism, adjust this.
9235 if test -x /usr/bin/objformat; then
9236 objformat=`/usr/bin/objformat`
9239 freebsd[123]*) objformat=aout ;;
9243 version_type=freebsd-$objformat
9244 case $version_type in
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9255 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9260 freebsd3.[01]* | freebsdelf3.[01]*)
9261 shlibpath_overrides_runpath=yes
9262 hardcode_into_libs=yes
9265 shlibpath_overrides_runpath=no
9266 hardcode_into_libs=yes
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 hardcode_into_libs=yes
9281 hpux9* | hpux10* | hpux11*)
9282 # Give a soname corresponding to the major version so that dld.sl refuses to
9283 # link against other versions.
9290 hardcode_into_libs=yes
9291 dynamic_linker="$host_os dld.so"
9292 shlibpath_var=LD_LIBRARY_PATH
9293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 if test "X$HPUX_IA64_MODE" = X32; then
9297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9305 hardcode_into_libs=yes
9306 dynamic_linker="$host_os dld.sl"
9307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9316 dynamic_linker="$host_os dld.sl"
9317 shlibpath_var=SHLIB_PATH
9318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9324 postinstall_cmds='chmod 555 $lib'
9327 irix5* | irix6* | nonstopux*)
9329 nonstopux*) version_type=nonstopux ;;
9331 if test "$lt_cv_prog_gnu_ld" = yes; then
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9342 irix5* | nonstopux*)
9346 case $LD in # libtool.m4 will add one of these switches to LD
9347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9348 libsuff= shlibsuff= libmagic=32-bit;;
9349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9350 libsuff=32 shlibsuff=N32 libmagic=N32;;
9351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9353 *) libsuff= shlibsuff= libmagic=never-match;;
9357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9358 shlibpath_overrides_runpath=no
9359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9361 hardcode_into_libs=yes
9364 # No shared lib support for Linux oldld, aout, or coff.
9365 linux*oldld* | linux*aout* | linux*coff*)
9369 # This must be Linux ELF.
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=no
9379 # This implies no fast_install, which is unacceptable.
9380 # Some rework will be needed to allow for fast_install
9381 # before this can be enabled.
9382 hardcode_into_libs=yes
9384 # Append ld.so.conf contents to the search path
9385 if test -f /etc/ld.so.conf; then
9386 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' ' '`
9387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9390 # We used to test for /lib/ld.so.1 and disable shared libraries on
9391 # powerpc, because MkLinux only supported shared libraries with the
9392 # GNU dynamic linker. Since this was broken with cross compilers,
9393 # most powerpc-linux boxes support dynamic linking these days and
9394 # people can always --disable-shared, the test was removed, and we
9395 # assume the GNU/Linux dynamic linker is in use.
9396 dynamic_linker='GNU/Linux ld.so'
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9408 dynamic_linker='GNU ld.so'
9415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418 dynamic_linker='NetBSD (a.out) ld.so'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 dynamic_linker='NetBSD ld.elf_so'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 shlibpath_overrides_runpath=yes
9426 hardcode_into_libs=yes
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=yes
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9452 *) need_version=no ;;
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9459 openbsd2.[89] | openbsd2.[89].*)
9460 shlibpath_overrides_runpath=no
9463 shlibpath_overrides_runpath=yes
9467 shlibpath_overrides_runpath=yes
9472 libname_spec='$name'
9475 library_names_spec='$libname${shared_ext} $libname.a'
9476 dynamic_linker='OS/2 ld.exe'
9477 shlibpath_var=LIBPATH
9480 osf3* | osf4* | osf5*)
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 shlibpath_var=LD_LIBRARY_PATH
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=yes
9506 hardcode_into_libs=yes
9507 # ldd complains unless libraries are executable
9508 postinstall_cmds='chmod +x $lib'
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=yes
9517 if test "$with_gnu_ld" = yes; then
9523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 case $host_vendor in
9530 shlibpath_overrides_runpath=no
9532 export_dynamic_flag_spec='${wl}-Blargedynsym'
9533 runpath_var=LD_RUN_PATH
9541 shlibpath_overrides_runpath=no
9542 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9548 if test -d /usr/nec ;then
9550 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9551 soname_spec='$libname${shared_ext}.$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 shlibpath_var=LD_LIBRARY_PATH
9567 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9568 echo "${ECHO_T}$dynamic_linker" >&6
9569 test "$dynamic_linker" = no && can_build_shared=no
9571 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9574 if test -n "$hardcode_libdir_flag_spec" || \
9575 test -n "$runpath_var" || \
9576 test "X$hardcode_automatic" = "Xyes" ; then
9578 # We can hardcode non-existant directories.
9579 if test "$hardcode_direct" != no &&
9580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9581 # have to relink, otherwise we might link with an installed library
9582 # when we should be linking with a yet-to-be-installed one
9583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9584 test "$hardcode_minus_L" != no; then
9585 # Linking always hardcodes the temporary library directory.
9586 hardcode_action=relink
9588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9589 hardcode_action=immediate
9592 # We cannot hardcode anything, or else we can only hardcode existing
9594 hardcode_action=unsupported
9596 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9597 echo "${ECHO_T}$hardcode_action" >&6
9599 if test "$hardcode_action" = relink; then
9600 # Fast installation is not supported
9601 enable_fast_install=no
9602 elif test "$shlibpath_overrides_runpath" = yes ||
9603 test "$enable_shared" = no; then
9604 # Fast installation is not necessary
9605 enable_fast_install=needless
9610 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9611 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9612 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9613 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9614 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9615 echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6
9618 # FIXME - insert some real tests, host_os isn't really good enough
9621 if test -n "$STRIP" ; then
9622 striplib="$STRIP -x"
9623 echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9626 echo "$as_me:$LINENO: result: no" >&5
9627 echo "${ECHO_T}no" >&6
9631 echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6
9637 if test "x$enable_dlopen" != xyes; then
9638 enable_dlopen=unknown
9639 enable_dlopen_self=unknown
9640 enable_dlopen_self_static=unknown
9647 lt_cv_dlopen="load_add_on"
9649 lt_cv_dlopen_self=yes
9653 lt_cv_dlopen="LoadLibrary"
9658 lt_cv_dlopen="dlopen"
9663 # if libdl is installed we need to link against it
9664 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 ac_check_lib_save_LIBS=$LIBS
9671 cat >conftest.$ac_ext <<_ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9678 /* Override any gcc2 internal prototype to avoid an error. */
9682 /* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_lib_dl_dlopen=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_lib_dl_dlopen=no
9722 rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9726 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9727 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9728 if test $ac_cv_lib_dl_dlopen = yes; then
9729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9734 lt_cv_dlopen_self=yes
9741 echo "$as_me:$LINENO: checking for shl_load" >&5
9742 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9743 if test "${ac_cv_func_shl_load+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9754 #define shl_load innocuous_shl_load
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char shl_load (); below.
9758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759 <limits.h> exists even on freestanding compilers. */
9762 # include <limits.h>
9764 # include <assert.h>
9769 /* Override any gcc2 internal prototype to avoid an error. */
9774 /* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9783 char (*f) () = shl_load;
9792 return f != shl_load;
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag"
9807 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_func_shl_load=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_func_shl_load=no
9826 rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9829 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9830 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9831 if test $ac_cv_func_shl_load = yes; then
9832 lt_cv_dlopen="shl_load"
9834 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 ac_check_lib_save_LIBS=$LIBS
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_lib_dld_shl_load=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lib_dld_shl_load=no
9892 rm -f conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9897 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9898 if test $ac_cv_lib_dld_shl_load = yes; then
9899 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9901 echo "$as_me:$LINENO: checking for dlopen" >&5
9902 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9903 if test "${ac_cv_func_dlopen+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914 #define dlopen innocuous_dlopen
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char dlopen (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9922 # include <limits.h>
9924 # include <assert.h>
9929 /* Override any gcc2 internal prototype to avoid an error. */
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9937 /* The GNU C library defines this for functions which it implements
9938 to always fail with ENOSYS. Some functions are actually named
9939 something starting with __ and the normal name is an alias. */
9940 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9943 char (*f) () = dlopen;
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_func_dlopen=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_func_dlopen=no
9986 rm -f conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9991 if test $ac_cv_func_dlopen = yes; then
9992 lt_cv_dlopen="dlopen"
9994 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_check_lib_save_LIBS=$LIBS
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dl_dlopen=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_lib_dl_dlopen=no
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10061 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lib_svld_dlopen=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_lib_svld_dlopen=no
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10123 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10124 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10125 if test $ac_cv_lib_svld_dlopen = yes; then
10126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10128 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10129 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10130 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 ac_check_lib_save_LIBS=$LIBS
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10142 /* Override any gcc2 internal prototype to avoid an error. */
10146 /* We use char because int might match the return type of a gcc2
10147 builtin and then its argument prototype would still apply. */
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_lib_dld_dld_link=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_dld_dld_link=no
10186 rm -f conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10191 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10192 if test $ac_cv_lib_dld_dld_link = yes; then
10193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10214 if test "x$lt_cv_dlopen" != xno; then
10220 case $lt_cv_dlopen in
10222 save_CPPFLAGS="$CPPFLAGS"
10223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10225 save_LDFLAGS="$LDFLAGS"
10226 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10229 LIBS="$lt_cv_dlopen_libs $LIBS"
10231 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10232 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10233 if test "${lt_cv_dlopen_self+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 if test "$cross_compiling" = yes; then :
10237 lt_cv_dlopen_self=cross
10239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240 lt_status=$lt_dlunknown
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10242 "configure"
10243 #include "confdefs.h"
10252 # define LT_DLGLOBAL RTLD_GLOBAL
10255 # define LT_DLGLOBAL DL_GLOBAL
10257 # define LT_DLGLOBAL 0
10261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262 find out it does not work in some platform. */
10263 #ifndef LT_DLLAZY_OR_NOW
10265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10268 # define LT_DLLAZY_OR_NOW DL_LAZY
10271 # define LT_DLLAZY_OR_NOW RTLD_NOW
10274 # define LT_DLLAZY_OR_NOW DL_NOW
10276 # define LT_DLLAZY_OR_NOW 0
10284 extern "C" void exit (int);
10287 void fnord() { int i=42;}
10290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291 int status = $lt_dlunknown;
10295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297 /* dlclose (self); */
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308 (./conftest; exit; ) >&5 2>/dev/null
10310 case x$lt_status in
10311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10316 # compilation failed
10317 lt_cv_dlopen_self=no
10324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10327 if test "x$lt_cv_dlopen_self" = xyes; then
10328 LDFLAGS="$LDFLAGS $link_static_flag"
10329 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10331 if test "${lt_cv_dlopen_self_static+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self_static=cross
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10350 # define LT_DLGLOBAL RTLD_GLOBAL
10353 # define LT_DLGLOBAL DL_GLOBAL
10355 # define LT_DLGLOBAL 0
10359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361 #ifndef LT_DLLAZY_OR_NOW
10363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10366 # define LT_DLLAZY_OR_NOW DL_LAZY
10369 # define LT_DLLAZY_OR_NOW RTLD_NOW
10372 # define LT_DLLAZY_OR_NOW DL_NOW
10374 # define LT_DLLAZY_OR_NOW 0
10382 extern "C" void exit (int);
10385 void fnord() { int i=42;}
10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389 int status = $lt_dlunknown;
10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395 /* dlclose (self); */
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10406 (./conftest; exit; ) >&5 2>/dev/null
10408 case x$lt_status in
10409 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10410 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10411 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10414 # compilation failed
10415 lt_cv_dlopen_self_static=no
10422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10423 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10426 CPPFLAGS="$save_CPPFLAGS"
10427 LDFLAGS="$save_LDFLAGS"
10432 case $lt_cv_dlopen_self in
10433 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10434 *) enable_dlopen_self=unknown ;;
10437 case $lt_cv_dlopen_self_static in
10438 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10439 *) enable_dlopen_self_static=unknown ;;
10444 # Report which librarie types wil actually be built
10445 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10446 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10447 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10448 echo "${ECHO_T}$can_build_shared" >&6
10450 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10451 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10452 test "$can_build_shared" = "no" && enable_shared=no
10454 # On AIX, shared libraries and static libraries use the same namespace, and
10455 # are all built from PIC.
10458 test "$enable_shared" = yes && enable_static=no
10459 if test -n "$RANLIB"; then
10460 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10461 postinstall_cmds='$RANLIB $lib'
10466 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10467 test "$enable_shared" = yes && enable_static=no
10471 echo "$as_me:$LINENO: result: $enable_shared" >&5
10472 echo "${ECHO_T}$enable_shared" >&6
10474 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10475 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10476 # Make sure either enable_shared or enable_static is yes.
10477 test "$enable_shared" = yes || enable_static=yes
10478 echo "$as_me:$LINENO: result: $enable_static" >&5
10479 echo "${ECHO_T}$enable_static" >&6
10481 # The else clause should only fire when bootstrapping the
10482 # libtool distribution, otherwise you forgot to ship ltmain.sh
10483 # with your package, and you will get complaints that there are
10484 # no rules to generate ltmain.sh.
10485 if test -f "$ltmain"; then
10486 # See if we are running on zsh, and set the options which allow our commands through
10487 # without removal of \ escapes.
10488 if test -n "${ZSH_VERSION+set}" ; then
10489 setopt NO_GLOB_SUBST
10491 # Now quote all the things that may contain metacharacters while being
10492 # careful not to overquote the AC_SUBSTed values. We take copies of the
10493 # variables and quote the copies for generation of the libtool script.
10494 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10496 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10497 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10498 deplibs_check_method reload_flag reload_cmds need_locks \
10499 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10500 lt_cv_sys_global_symbol_to_c_name_address \
10501 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10502 old_postinstall_cmds old_postuninstall_cmds \
10506 lt_prog_compiler_wl \
10507 lt_prog_compiler_pic \
10508 lt_prog_compiler_static \
10509 lt_prog_compiler_no_builtin_flag \
10510 export_dynamic_flag_spec \
10511 thread_safe_flag_spec \
10512 whole_archive_flag_spec \
10513 enable_shared_with_static_runtimes \
10515 old_archive_from_new_cmds \
10520 compiler_lib_search_path \
10522 archive_expsym_cmds \
10524 postuninstall_cmds \
10525 old_archive_from_expsyms_cmds \
10526 allow_undefined_flag \
10527 no_undefined_flag \
10528 export_symbols_cmds \
10529 hardcode_libdir_flag_spec \
10530 hardcode_libdir_flag_spec_ld \
10531 hardcode_libdir_separator \
10532 hardcode_automatic \
10534 module_expsym_cmds \
10535 lt_cv_prog_compiler_c_o \
10537 include_expsyms; do
10540 old_archive_cmds | \
10541 old_archive_from_new_cmds | \
10543 archive_expsym_cmds | \
10545 module_expsym_cmds | \
10546 old_archive_from_expsyms_cmds | \
10547 export_symbols_cmds | \
10548 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10549 postinstall_cmds | postuninstall_cmds | \
10550 old_postinstall_cmds | old_postuninstall_cmds | \
10551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10552 # Double-quote double-evaled strings.
10553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10562 *'\$0 --fallback-echo"')
10563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10567 cfgfile="${ofile}T"
10568 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10570 { echo "$as_me:$LINENO: creating $ofile" >&5
10571 echo "$as_me: creating $ofile" >&6;}
10573 cat <<__EOF__ >> "$cfgfile"
10576 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10577 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10578 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10580 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10581 # Free Software Foundation, Inc.
10583 # This file is part of GNU Libtool:
10584 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10586 # This program is free software; you can redistribute it and/or modify
10587 # it under the terms of the GNU General Public License as published by
10588 # the Free Software Foundation; either version 2 of the License, or
10589 # (at your option) any later version.
10591 # This program is distributed in the hope that it will be useful, but
10592 # WITHOUT ANY WARRANTY; without even the implied warranty of
10593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10594 # General Public License for more details.
10596 # You should have received a copy of the GNU General Public License
10597 # along with this program; if not, write to the Free Software
10598 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10600 # As a special exception to the GNU General Public License, if you
10601 # distribute this file as part of a program that contains a
10602 # configuration script generated by Autoconf, you may include it under
10603 # the same distribution terms that you use for the rest of that program.
10605 # A sed program that does not truncate output.
10608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10609 Xsed="$SED -e 1s/^X//"
10611 # The HP-UX ksh and POSIX shell print the target directory to stdout
10612 # if CDPATH is set.
10613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10615 # The names of the tagged configurations supported by this script.
10618 # ### BEGIN LIBTOOL CONFIG
10620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10622 # Shell to use when invoking shell scripts.
10625 # Whether or not to build shared libraries.
10626 build_libtool_libs=$enable_shared
10628 # Whether or not to build static libraries.
10629 build_old_libs=$enable_static
10631 # Whether or not to add -lc for building shared libraries.
10632 build_libtool_need_lc=$archive_cmds_need_lc
10634 # Whether or not to disallow shared libs when runtime libs are static
10635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10637 # Whether or not to optimize for fast installation.
10638 fast_install=$enable_fast_install
10641 host_alias=$host_alias
10645 # The build system.
10646 build_alias=$build_alias
10650 # An echo program that does not interpret backslashes.
10655 AR_FLAGS=$lt_AR_FLAGS
10660 # A language-specific compiler.
10663 # Is the compiler the GNU C compiler?
10669 # The linker used to build libraries.
10672 # Whether we need hard or soft links.
10675 # A BSD-compatible nm program.
10678 # A symbol stripping program
10681 # Used to examine libraries when file_magic_cmd begins "file"
10682 MAGIC_CMD=$MAGIC_CMD
10684 # Used on cygwin: DLL creation program.
10687 # Used on cygwin: object dumper.
10690 # Used on cygwin: assembler.
10693 # The name of the directory that contains temporary libtool files.
10696 # How to create reloadable object files.
10697 reload_flag=$lt_reload_flag
10698 reload_cmds=$lt_reload_cmds
10700 # How to pass a linker flag through the compiler.
10701 wl=$lt_lt_prog_compiler_wl
10703 # Object file suffix (normally "o").
10704 objext="$ac_objext"
10706 # Old archive suffix (normally "a").
10709 # Shared library suffix (normally ".so").
10710 shrext_cmds='$shrext_cmds'
10712 # Executable file suffix (normally "").
10715 # Additional compiler flags for building library objects.
10716 pic_flag=$lt_lt_prog_compiler_pic
10719 # What is the maximum length of a command?
10720 max_cmd_len=$lt_cv_sys_max_cmd_len
10722 # Does compiler simultaneously support -c and -o options?
10723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10725 # Must we lock files when doing compilation?
10726 need_locks=$lt_need_locks
10728 # Do we need the lib prefix for modules?
10729 need_lib_prefix=$need_lib_prefix
10731 # Do we need a version for libraries?
10732 need_version=$need_version
10734 # Whether dlopen is supported.
10735 dlopen_support=$enable_dlopen
10737 # Whether dlopen of programs is supported.
10738 dlopen_self=$enable_dlopen_self
10740 # Whether dlopen of statically linked programs is supported.
10741 dlopen_self_static=$enable_dlopen_self_static
10743 # Compiler flag to prevent dynamic linking.
10744 link_static_flag=$lt_lt_prog_compiler_static
10746 # Compiler flag to turn off builtin functions.
10747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10749 # Compiler flag to allow reflexive dlopens.
10750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10752 # Compiler flag to generate shared objects directly from archives.
10753 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10755 # Compiler flag to generate thread-safe objects.
10756 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10758 # Library versioning type.
10759 version_type=$version_type
10761 # Format of library name prefix.
10762 libname_spec=$lt_libname_spec
10764 # List of archive names. First name is the real one, the rest are links.
10765 # The last name is the one that the linker finds with -lNAME.
10766 library_names_spec=$lt_library_names_spec
10768 # The coded name of the library, if different from the real name.
10769 soname_spec=$lt_soname_spec
10771 # Commands used to build and install an old-style archive.
10773 old_archive_cmds=$lt_old_archive_cmds
10774 old_postinstall_cmds=$lt_old_postinstall_cmds
10775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10777 # Create an old-style archive from a shared archive.
10778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10780 # Create a temporary old-style archive to link instead of a shared archive.
10781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10783 # Commands used to build and install a shared archive.
10784 archive_cmds=$lt_archive_cmds
10785 archive_expsym_cmds=$lt_archive_expsym_cmds
10786 postinstall_cmds=$lt_postinstall_cmds
10787 postuninstall_cmds=$lt_postuninstall_cmds
10789 # Commands used to build a loadable module (assumed same as above if empty)
10790 module_cmds=$lt_module_cmds
10791 module_expsym_cmds=$lt_module_expsym_cmds
10793 # Commands to strip libraries.
10794 old_striplib=$lt_old_striplib
10795 striplib=$lt_striplib
10797 # Dependencies to place before the objects being linked to create a
10799 predep_objects=$lt_predep_objects
10801 # Dependencies to place after the objects being linked to create a
10803 postdep_objects=$lt_postdep_objects
10805 # Dependencies to place before the objects being linked to create a
10807 predeps=$lt_predeps
10809 # Dependencies to place after the objects being linked to create a
10811 postdeps=$lt_postdeps
10813 # The library search path used internally by the compiler when linking
10814 # a shared library.
10815 compiler_lib_search_path=$lt_compiler_lib_search_path
10817 # Method to check whether dependent libraries are shared objects.
10818 deplibs_check_method=$lt_deplibs_check_method
10820 # Command to use when deplibs_check_method == file_magic.
10821 file_magic_cmd=$lt_file_magic_cmd
10823 # Flag that allows shared libraries with undefined symbols to be built.
10824 allow_undefined_flag=$lt_allow_undefined_flag
10826 # Flag that forces no undefined symbols.
10827 no_undefined_flag=$lt_no_undefined_flag
10829 # Commands used to finish a libtool library installation in a directory.
10830 finish_cmds=$lt_finish_cmds
10832 # Same as above, but a single script fragment to be evaled but not shown.
10833 finish_eval=$lt_finish_eval
10835 # Take the output of nm and produce a listing of raw symbols and C names.
10836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10838 # Transform the output of nm in a proper C declaration
10839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10841 # Transform the output of nm in a C name address pair
10842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10844 # This is the shared library runtime path variable.
10845 runpath_var=$runpath_var
10847 # This is the shared library path variable.
10848 shlibpath_var=$shlibpath_var
10850 # Is shlibpath searched before the hard-coded library search path?
10851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10853 # How to hardcode a shared library path into an executable.
10854 hardcode_action=$hardcode_action
10856 # Whether we should hardcode library paths into libraries.
10857 hardcode_into_libs=$hardcode_into_libs
10859 # Flag to hardcode \$libdir into a binary during linking.
10860 # This must work even if \$libdir does not exist.
10861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10863 # If ld is used when linking, flag to hardcode \$libdir into
10864 # a binary during linking. This must work even if \$libdir does
10866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10868 # Whether we need a single -rpath flag with a separated argument.
10869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10872 # resulting binary.
10873 hardcode_direct=$hardcode_direct
10875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10876 # resulting binary.
10877 hardcode_minus_L=$hardcode_minus_L
10879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10880 # the resulting binary.
10881 hardcode_shlibpath_var=$hardcode_shlibpath_var
10883 # Set to yes if building a shared library automatically hardcodes DIR into the library
10884 # and all subsequent libraries and executables linked against it.
10885 hardcode_automatic=$hardcode_automatic
10887 # Variables whose values should be saved in libtool wrapper scripts and
10888 # restored at relink time.
10889 variables_saved_for_relink="$variables_saved_for_relink"
10891 # Whether libtool must link a program against all its dependency libraries.
10892 link_all_deplibs=$link_all_deplibs
10894 # Compile-time system search path for libraries
10895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10897 # Run-time system search path for libraries
10898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10900 # Fix the shell variable \$srcfile for the compiler.
10901 fix_srcfile_path="$fix_srcfile_path"
10903 # Set to yes if exported symbols are required.
10904 always_export_symbols=$always_export_symbols
10906 # The commands to list exported symbols.
10907 export_symbols_cmds=$lt_export_symbols_cmds
10909 # The commands to extract the exported symbol list from a shared archive.
10910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10912 # Symbols that should not be listed in the preloaded symbols.
10913 exclude_expsyms=$lt_exclude_expsyms
10915 # Symbols that must always be exported.
10916 include_expsyms=$lt_include_expsyms
10918 # ### END LIBTOOL CONFIG
10925 cat <<\EOF >> "$cfgfile"
10927 # AIX sometimes has problems with the GCC collect2 program. For some
10928 # reason, if we set the COLLECT_NAMES environment variable, the problems
10929 # vanish in a puff of smoke.
10930 if test "X${COLLECT_NAMES+set}" != Xset; then
10932 export COLLECT_NAMES
10938 # We use sed instead of cat because bash on DJGPP gets confused if
10939 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10940 # text mode, it properly converts lines to CR/LF. This bash problem
10941 # is reportedly fixed, but why not run on old versions too?
10942 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10944 mv -f "$cfgfile" "$ofile" || \
10945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10949 # If there is no Makefile yet, we rely on a make rule to execute
10950 # `config.status --recheck' to rerun these tests and create the
10951 # libtool script then.
10952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10953 if test -f "$ltmain_in"; then
10954 test -f Makefile && make "$ltmain"
10960 ac_cpp='$CPP $CPPFLAGS'
10961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10968 # Check whether --with-tags or --without-tags was given.
10969 if test "${with_tags+set}" = set; then
10970 withval="$with_tags"
10971 tagnames="$withval"
10974 if test -f "$ltmain" && test -n "$tagnames"; then
10975 if test ! -f "${ofile}"; then
10976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10977 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10980 if test -z "$LTCC"; then
10981 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10982 if test -z "$LTCC"; then
10983 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10984 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10987 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10991 # Extract list of available tagged configurations in $ofile.
10992 # Note that this assumes the entire list is on one line.
10993 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10996 for tagname in $tagnames; do
10998 # Check whether tagname contains only valid characters
10999 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11001 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11002 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11003 { (exit 1); exit 1; }; }
11007 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11009 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11010 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11011 { (exit 1); exit 1; }; }
11014 # Update the list of available tags.
11015 if test -n "$tagname"; then
11016 echo appending configuration tag \"$tagname\" to $ofile
11020 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11021 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11022 (test "X$CXX" != "Xg++"))) ; then
11030 if test -n "$F77" && test "X$F77" != "Xno"; then
11038 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11049 # Source file extension for RC test sources.
11052 # Object file extension for compiled RC test sources.
11056 # Code to be used in simple compile tests
11057 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11059 # Code to be used in simple link tests
11060 lt_simple_link_test_code="$lt_simple_compile_test_code"
11062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11064 # If no C compiler was specified, use CC.
11067 # Allow CC to be a program name with arguments.
11071 # save warnings/boilerplate of simple test code
11072 ac_outfile=conftest.$ac_objext
11073 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11075 _lt_compiler_boilerplate=`cat conftest.err`
11078 ac_outfile=conftest.$ac_objext
11079 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11081 _lt_linker_boilerplate=`cat conftest.err`
11085 # Allow CC to be a program name with arguments.
11090 for cc_temp in $compiler""; do
11092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11100 lt_cv_prog_compiler_c_o_RC=yes
11102 # The else clause should only fire when bootstrapping the
11103 # libtool distribution, otherwise you forgot to ship ltmain.sh
11104 # with your package, and you will get complaints that there are
11105 # no rules to generate ltmain.sh.
11106 if test -f "$ltmain"; then
11107 # See if we are running on zsh, and set the options which allow our commands through
11108 # without removal of \ escapes.
11109 if test -n "${ZSH_VERSION+set}" ; then
11110 setopt NO_GLOB_SUBST
11112 # Now quote all the things that may contain metacharacters while being
11113 # careful not to overquote the AC_SUBSTed values. We take copies of the
11114 # variables and quote the copies for generation of the libtool script.
11115 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11117 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11118 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11119 deplibs_check_method reload_flag reload_cmds need_locks \
11120 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11121 lt_cv_sys_global_symbol_to_c_name_address \
11122 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11123 old_postinstall_cmds old_postuninstall_cmds \
11127 lt_prog_compiler_wl_RC \
11128 lt_prog_compiler_pic_RC \
11129 lt_prog_compiler_static_RC \
11130 lt_prog_compiler_no_builtin_flag_RC \
11131 export_dynamic_flag_spec_RC \
11132 thread_safe_flag_spec_RC \
11133 whole_archive_flag_spec_RC \
11134 enable_shared_with_static_runtimes_RC \
11135 old_archive_cmds_RC \
11136 old_archive_from_new_cmds_RC \
11137 predep_objects_RC \
11138 postdep_objects_RC \
11141 compiler_lib_search_path_RC \
11143 archive_expsym_cmds_RC \
11144 postinstall_cmds_RC \
11145 postuninstall_cmds_RC \
11146 old_archive_from_expsyms_cmds_RC \
11147 allow_undefined_flag_RC \
11148 no_undefined_flag_RC \
11149 export_symbols_cmds_RC \
11150 hardcode_libdir_flag_spec_RC \
11151 hardcode_libdir_flag_spec_ld_RC \
11152 hardcode_libdir_separator_RC \
11153 hardcode_automatic_RC \
11155 module_expsym_cmds_RC \
11156 lt_cv_prog_compiler_c_o_RC \
11157 exclude_expsyms_RC \
11158 include_expsyms_RC; do
11161 old_archive_cmds_RC | \
11162 old_archive_from_new_cmds_RC | \
11163 archive_cmds_RC | \
11164 archive_expsym_cmds_RC | \
11166 module_expsym_cmds_RC | \
11167 old_archive_from_expsyms_cmds_RC | \
11168 export_symbols_cmds_RC | \
11169 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11170 postinstall_cmds | postuninstall_cmds | \
11171 old_postinstall_cmds | old_postuninstall_cmds | \
11172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11173 # Double-quote double-evaled strings.
11174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11183 *'\$0 --fallback-echo"')
11184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11190 cat <<__EOF__ >> "$cfgfile"
11191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11195 # Shell to use when invoking shell scripts.
11198 # Whether or not to build shared libraries.
11199 build_libtool_libs=$enable_shared
11201 # Whether or not to build static libraries.
11202 build_old_libs=$enable_static
11204 # Whether or not to add -lc for building shared libraries.
11205 build_libtool_need_lc=$archive_cmds_need_lc_RC
11207 # Whether or not to disallow shared libs when runtime libs are static
11208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11210 # Whether or not to optimize for fast installation.
11211 fast_install=$enable_fast_install
11214 host_alias=$host_alias
11218 # The build system.
11219 build_alias=$build_alias
11223 # An echo program that does not interpret backslashes.
11228 AR_FLAGS=$lt_AR_FLAGS
11233 # A language-specific compiler.
11236 # Is the compiler the GNU C compiler?
11242 # The linker used to build libraries.
11245 # Whether we need hard or soft links.
11248 # A BSD-compatible nm program.
11251 # A symbol stripping program
11254 # Used to examine libraries when file_magic_cmd begins "file"
11255 MAGIC_CMD=$MAGIC_CMD
11257 # Used on cygwin: DLL creation program.
11260 # Used on cygwin: object dumper.
11263 # Used on cygwin: assembler.
11266 # The name of the directory that contains temporary libtool files.
11269 # How to create reloadable object files.
11270 reload_flag=$lt_reload_flag
11271 reload_cmds=$lt_reload_cmds
11273 # How to pass a linker flag through the compiler.
11274 wl=$lt_lt_prog_compiler_wl_RC
11276 # Object file suffix (normally "o").
11277 objext="$ac_objext"
11279 # Old archive suffix (normally "a").
11282 # Shared library suffix (normally ".so").
11283 shrext_cmds='$shrext_cmds'
11285 # Executable file suffix (normally "").
11288 # Additional compiler flags for building library objects.
11289 pic_flag=$lt_lt_prog_compiler_pic_RC
11292 # What is the maximum length of a command?
11293 max_cmd_len=$lt_cv_sys_max_cmd_len
11295 # Does compiler simultaneously support -c and -o options?
11296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11298 # Must we lock files when doing compilation?
11299 need_locks=$lt_need_locks
11301 # Do we need the lib prefix for modules?
11302 need_lib_prefix=$need_lib_prefix
11304 # Do we need a version for libraries?
11305 need_version=$need_version
11307 # Whether dlopen is supported.
11308 dlopen_support=$enable_dlopen
11310 # Whether dlopen of programs is supported.
11311 dlopen_self=$enable_dlopen_self
11313 # Whether dlopen of statically linked programs is supported.
11314 dlopen_self_static=$enable_dlopen_self_static
11316 # Compiler flag to prevent dynamic linking.
11317 link_static_flag=$lt_lt_prog_compiler_static_RC
11319 # Compiler flag to turn off builtin functions.
11320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11322 # Compiler flag to allow reflexive dlopens.
11323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11325 # Compiler flag to generate shared objects directly from archives.
11326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11328 # Compiler flag to generate thread-safe objects.
11329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11331 # Library versioning type.
11332 version_type=$version_type
11334 # Format of library name prefix.
11335 libname_spec=$lt_libname_spec
11337 # List of archive names. First name is the real one, the rest are links.
11338 # The last name is the one that the linker finds with -lNAME.
11339 library_names_spec=$lt_library_names_spec
11341 # The coded name of the library, if different from the real name.
11342 soname_spec=$lt_soname_spec
11344 # Commands used to build and install an old-style archive.
11346 old_archive_cmds=$lt_old_archive_cmds_RC
11347 old_postinstall_cmds=$lt_old_postinstall_cmds
11348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11350 # Create an old-style archive from a shared archive.
11351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11353 # Create a temporary old-style archive to link instead of a shared archive.
11354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11356 # Commands used to build and install a shared archive.
11357 archive_cmds=$lt_archive_cmds_RC
11358 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11359 postinstall_cmds=$lt_postinstall_cmds
11360 postuninstall_cmds=$lt_postuninstall_cmds
11362 # Commands used to build a loadable module (assumed same as above if empty)
11363 module_cmds=$lt_module_cmds_RC
11364 module_expsym_cmds=$lt_module_expsym_cmds_RC
11366 # Commands to strip libraries.
11367 old_striplib=$lt_old_striplib
11368 striplib=$lt_striplib
11370 # Dependencies to place before the objects being linked to create a
11372 predep_objects=$lt_predep_objects_RC
11374 # Dependencies to place after the objects being linked to create a
11376 postdep_objects=$lt_postdep_objects_RC
11378 # Dependencies to place before the objects being linked to create a
11380 predeps=$lt_predeps_RC
11382 # Dependencies to place after the objects being linked to create a
11384 postdeps=$lt_postdeps_RC
11386 # The library search path used internally by the compiler when linking
11387 # a shared library.
11388 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11390 # Method to check whether dependent libraries are shared objects.
11391 deplibs_check_method=$lt_deplibs_check_method
11393 # Command to use when deplibs_check_method == file_magic.
11394 file_magic_cmd=$lt_file_magic_cmd
11396 # Flag that allows shared libraries with undefined symbols to be built.
11397 allow_undefined_flag=$lt_allow_undefined_flag_RC
11399 # Flag that forces no undefined symbols.
11400 no_undefined_flag=$lt_no_undefined_flag_RC
11402 # Commands used to finish a libtool library installation in a directory.
11403 finish_cmds=$lt_finish_cmds
11405 # Same as above, but a single script fragment to be evaled but not shown.
11406 finish_eval=$lt_finish_eval
11408 # Take the output of nm and produce a listing of raw symbols and C names.
11409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11411 # Transform the output of nm in a proper C declaration
11412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11414 # Transform the output of nm in a C name address pair
11415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11417 # This is the shared library runtime path variable.
11418 runpath_var=$runpath_var
11420 # This is the shared library path variable.
11421 shlibpath_var=$shlibpath_var
11423 # Is shlibpath searched before the hard-coded library search path?
11424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11426 # How to hardcode a shared library path into an executable.
11427 hardcode_action=$hardcode_action_RC
11429 # Whether we should hardcode library paths into libraries.
11430 hardcode_into_libs=$hardcode_into_libs
11432 # Flag to hardcode \$libdir into a binary during linking.
11433 # This must work even if \$libdir does not exist.
11434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11436 # If ld is used when linking, flag to hardcode \$libdir into
11437 # a binary during linking. This must work even if \$libdir does
11439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11441 # Whether we need a single -rpath flag with a separated argument.
11442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11445 # resulting binary.
11446 hardcode_direct=$hardcode_direct_RC
11448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11449 # resulting binary.
11450 hardcode_minus_L=$hardcode_minus_L_RC
11452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11453 # the resulting binary.
11454 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11456 # Set to yes if building a shared library automatically hardcodes DIR into the library
11457 # and all subsequent libraries and executables linked against it.
11458 hardcode_automatic=$hardcode_automatic_RC
11460 # Variables whose values should be saved in libtool wrapper scripts and
11461 # restored at relink time.
11462 variables_saved_for_relink="$variables_saved_for_relink"
11464 # Whether libtool must link a program against all its dependency libraries.
11465 link_all_deplibs=$link_all_deplibs_RC
11467 # Compile-time system search path for libraries
11468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11470 # Run-time system search path for libraries
11471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11473 # Fix the shell variable \$srcfile for the compiler.
11474 fix_srcfile_path="$fix_srcfile_path_RC"
11476 # Set to yes if exported symbols are required.
11477 always_export_symbols=$always_export_symbols_RC
11479 # The commands to list exported symbols.
11480 export_symbols_cmds=$lt_export_symbols_cmds_RC
11482 # The commands to extract the exported symbol list from a shared archive.
11483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11485 # Symbols that should not be listed in the preloaded symbols.
11486 exclude_expsyms=$lt_exclude_expsyms_RC
11488 # Symbols that must always be exported.
11489 include_expsyms=$lt_include_expsyms_RC
11491 # ### END LIBTOOL TAG CONFIG: $tagname
11497 # If there is no Makefile yet, we rely on a make rule to execute
11498 # `config.status --recheck' to rerun these tests and create the
11499 # libtool script then.
11500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11501 if test -f "$ltmain_in"; then
11502 test -f Makefile && make "$ltmain"
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11518 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11519 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11520 { (exit 1); exit 1; }; }
11524 # Append the new tag name to the list of available tags.
11525 if test -n "$tagname" ; then
11526 available_tags="$available_tags $tagname"
11532 # Now substitute the updated list of available tags.
11533 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11534 mv "${ofile}T" "$ofile"
11538 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11539 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11540 { (exit 1); exit 1; }; }
11546 # This can be used to rebuild libtool when needed
11547 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11549 # Always use our own libtool.
11550 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11552 # Prevent multiple expansion
11564 if test $ol_enable_perl != no ; then
11565 # Extract the first word of "perl", so it can be a program name with args.
11566 set dummy perl; ac_word=$2
11567 echo "$as_me:$LINENO: checking for $ac_word" >&5
11568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11569 if test "${ac_cv_path_PERLBIN+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11595 PERLBIN=$ac_cv_path_PERLBIN
11597 if test -n "$PERLBIN"; then
11598 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11599 echo "${ECHO_T}$PERLBIN" >&6
11601 echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11606 if test "no$PERLBIN" = "no" ; then
11607 if test $ol_enable_perl = yes ; then
11608 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11609 echo "$as_me: error: could not locate perl" >&2;}
11610 { (exit 1); exit 1; }; }
11614 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11615 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11617 if test x"$ol_enable_perl" = "xyes" ; then
11618 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11620 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11627 ac_cpp='$CPP $CPPFLAGS'
11628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11633 # On Suns, sometimes $CPP names a directory.
11634 if test -n "$CPP" && test -d "$CPP"; then
11637 if test -z "$CPP"; then
11638 if test "${ac_cv_prog_CPP+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 # Double quotes because CPP needs to be expanded
11642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11644 ac_preproc_ok=false
11645 for ac_c_preproc_warn_flag in '' yes
11647 # Use a header file that comes with gcc, so configuring glibc
11648 # with a fresh cross-compiler works.
11649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650 # <limits.h> exists even on freestanding compilers.
11651 # On the NeXT, cc -E runs the code through the compiler's parser,
11652 # not just through cpp. "Syntax error" is here to catch this case.
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11660 # include <limits.h>
11662 # include <assert.h>
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } >/dev/null; then
11674 if test -s conftest.err; then
11675 ac_cpp_err=$ac_c_preproc_warn_flag
11676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11683 if test -z "$ac_cpp_err"; then
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 # Broken: fails on valid input.
11692 rm -f conftest.err conftest.$ac_ext
11694 # OK, works on sane cases. Now check whether non-existent headers
11695 # can be detected and how.
11696 cat >conftest.$ac_ext <<_ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 #include <ac_nonexistent.h>
11704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } >/dev/null; then
11712 if test -s conftest.err; then
11713 ac_cpp_err=$ac_c_preproc_warn_flag
11714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11721 if test -z "$ac_cpp_err"; then
11722 # Broken: success on invalid input.
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 # Passes both tests.
11732 rm -f conftest.err conftest.$ac_ext
11735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11736 rm -f conftest.err conftest.$ac_ext
11737 if $ac_preproc_ok; then
11742 ac_cv_prog_CPP=$CPP
11745 CPP=$ac_cv_prog_CPP
11747 ac_cv_prog_CPP=$CPP
11749 echo "$as_me:$LINENO: result: $CPP" >&5
11750 echo "${ECHO_T}$CPP" >&6
11751 ac_preproc_ok=false
11752 for ac_c_preproc_warn_flag in '' yes
11754 # Use a header file that comes with gcc, so configuring glibc
11755 # with a fresh cross-compiler works.
11756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 # <limits.h> exists even on freestanding compilers.
11758 # On the NeXT, cc -E runs the code through the compiler's parser,
11759 # not just through cpp. "Syntax error" is here to catch this case.
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 # include <limits.h>
11769 # include <assert.h>
11773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } >/dev/null; then
11781 if test -s conftest.err; then
11782 ac_cpp_err=$ac_c_preproc_warn_flag
11783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11790 if test -z "$ac_cpp_err"; then
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 # Broken: fails on valid input.
11799 rm -f conftest.err conftest.$ac_ext
11801 # OK, works on sane cases. Now check whether non-existent headers
11802 # can be detected and how.
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 #include <ac_nonexistent.h>
11811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } >/dev/null; then
11819 if test -s conftest.err; then
11820 ac_cpp_err=$ac_c_preproc_warn_flag
11821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11828 if test -z "$ac_cpp_err"; then
11829 # Broken: success on invalid input.
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 # Passes both tests.
11839 rm -f conftest.err conftest.$ac_ext
11842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11843 rm -f conftest.err conftest.$ac_ext
11844 if $ac_preproc_ok; then
11847 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11848 See \`config.log' for more details." >&5
11849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11850 See \`config.log' for more details." >&2;}
11851 { (exit 1); exit 1; }; }
11855 ac_cpp='$CPP $CPPFLAGS'
11856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11862 *mingw32* ) ac_cv_mingw32=yes ;;
11863 *cygwin* ) ac_cv_cygwin=yes ;;
11869 cat >>confdefs.h <<_ACEOF
11870 #define EXEEXT "${EXEEXT}"
11874 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11875 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11876 if test "${ac_cv_lib_be_be_app+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lbe -lroot -lnet $LIBS"
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11888 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>conftest.er1
11907 grep -v '^ *+' conftest.er1 >conftest.err
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag"
11913 || test ! -s conftest.err'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_lib_be_be_app=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_lib_be_be_app=no
11932 rm -f conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11936 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11937 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11938 if test $ac_cv_lib_be_be_app = yes; then
11939 LIBS="$LIBS -lbe -lroot -lnet"
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11950 if test -n "$ac_tool_prefix"; then
11951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11953 echo "$as_me:$LINENO: checking for $ac_word" >&5
11954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11955 if test "${ac_cv_prog_CC+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 if test -n "$CC"; then
11959 ac_cv_prog_CC="$CC" # Let the user override the test.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 if test -n "$CC"; then
11979 echo "$as_me:$LINENO: result: $CC" >&5
11980 echo "${ECHO_T}$CC" >&6
11982 echo "$as_me:$LINENO: result: no" >&5
11983 echo "${ECHO_T}no" >&6
11987 if test -z "$ac_cv_prog_CC"; then
11989 # Extract the first word of "gcc", so it can be a program name with args.
11990 set dummy gcc; ac_word=$2
11991 echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 if test -n "$ac_ct_CC"; then
11997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_prog_ac_ct_CC="gcc"
12007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12016 if test -n "$ac_ct_CC"; then
12017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12018 echo "${ECHO_T}$ac_ct_CC" >&6
12020 echo "$as_me:$LINENO: result: no" >&5
12021 echo "${ECHO_T}no" >&6
12026 CC="$ac_cv_prog_CC"
12029 if test -z "$CC"; then
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}cc; ac_word=$2
12033 echo "$as_me:$LINENO: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12035 if test "${ac_cv_prog_CC+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 if test -n "$CC"; then
12039 ac_cv_prog_CC="$CC" # Let the user override the test.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_CC="${ac_tool_prefix}cc"
12049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 if test -n "$CC"; then
12059 echo "$as_me:$LINENO: result: $CC" >&5
12060 echo "${ECHO_T}$CC" >&6
12062 echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6
12067 if test -z "$ac_cv_prog_CC"; then
12069 # Extract the first word of "cc", so it can be a program name with args.
12070 set dummy cc; ac_word=$2
12071 echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 if test -n "$ac_ct_CC"; then
12077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086 ac_cv_prog_ac_ct_CC="cc"
12087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12096 if test -n "$ac_ct_CC"; then
12097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12098 echo "${ECHO_T}$ac_ct_CC" >&6
12100 echo "$as_me:$LINENO: result: no" >&5
12101 echo "${ECHO_T}no" >&6
12106 CC="$ac_cv_prog_CC"
12110 if test -z "$CC"; then
12111 # Extract the first word of "cc", so it can be a program name with args.
12112 set dummy cc; ac_word=$2
12113 echo "$as_me:$LINENO: checking for $ac_word" >&5
12114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12115 if test "${ac_cv_prog_CC+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 if test -n "$CC"; then
12119 ac_cv_prog_CC="$CC" # Let the user override the test.
12121 ac_prog_rejected=no
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12130 ac_prog_rejected=yes
12134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 if test $ac_prog_rejected = yes; then
12141 # We found a bogon in the path, so make sure we never use it.
12142 set dummy $ac_cv_prog_CC
12144 if test $# != 0; then
12145 # We chose a different compiler from the bogus one.
12146 # However, it has the same basename, so the bogon will be chosen
12147 # first if we set CC to just the basename; use the full file name.
12149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12155 if test -n "$CC"; then
12156 echo "$as_me:$LINENO: result: $CC" >&5
12157 echo "${ECHO_T}$CC" >&6
12159 echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6
12164 if test -z "$CC"; then
12165 if test -n "$ac_tool_prefix"; then
12168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_prog_CC+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 if test -n "$CC"; then
12176 ac_cv_prog_CC="$CC" # Let the user override the test.
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 if test -n "$CC"; then
12196 echo "$as_me:$LINENO: result: $CC" >&5
12197 echo "${ECHO_T}$CC" >&6
12199 echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12203 test -n "$CC" && break
12206 if test -z "$CC"; then
12210 # Extract the first word of "$ac_prog", so it can be a program name with args.
12211 set dummy $ac_prog; ac_word=$2
12212 echo "$as_me:$LINENO: checking for $ac_word" >&5
12213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 if test -n "$ac_ct_CC"; then
12218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227 ac_cv_prog_ac_ct_CC="$ac_prog"
12228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12237 if test -n "$ac_ct_CC"; then
12238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12239 echo "${ECHO_T}$ac_ct_CC" >&6
12241 echo "$as_me:$LINENO: result: no" >&5
12242 echo "${ECHO_T}no" >&6
12245 test -n "$ac_ct_CC" && break
12254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12255 See \`config.log' for more details." >&5
12256 echo "$as_me: error: no acceptable C compiler found in \$PATH
12257 See \`config.log' for more details." >&2;}
12258 { (exit 1); exit 1; }; }
12260 # Provide some information about the compiler.
12261 echo "$as_me:$LINENO:" \
12262 "checking for C compiler version" >&5
12263 ac_compiler=`set X $ac_compile; echo $2`
12264 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12265 (eval $ac_compiler --version </dev/null >&5) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }
12269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12270 (eval $ac_compiler -v </dev/null >&5) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }
12274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12275 (eval $ac_compiler -V </dev/null >&5) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }
12280 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12281 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12282 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_compiler_gnu=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12336 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12338 GCC=`test $ac_compiler_gnu = yes && echo yes`
12339 ac_test_CFLAGS=${CFLAGS+set}
12340 ac_save_CFLAGS=$CFLAGS
12342 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12344 if test "${ac_cv_prog_cc_g+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_c_werror_flag"
12372 || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_prog_cc_g=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12395 if test "$ac_test_CFLAGS" = set; then
12396 CFLAGS=$ac_save_CFLAGS
12397 elif test $ac_cv_prog_cc_g = yes; then
12398 if test "$GCC" = yes; then
12404 if test "$GCC" = yes; then
12410 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12411 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12412 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 ac_cv_prog_cc_stdc=no
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 #include <stdarg.h>
12425 #include <sys/types.h>
12426 #include <sys/stat.h>
12427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12428 struct buf { int x; };
12429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12430 static char *e (p, i)
12436 static char *f (char * (*g) (char **, int), char **p, ...)
12441 s = g (p, va_arg (v,int));
12446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12447 function prototypes and stuff, but not '\xHH' hex character constants.
12448 These don't provoke an error unfortunately, instead are silently treated
12449 as 'x'. The following induces an error, until -std1 is added to get
12450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12451 array size at least. It's necessary to write '\x00'==0 to get something
12452 that's true only with -std1. */
12453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12455 int test (int i, double x);
12456 struct s1 {int (*f) (int a);};
12457 struct s2 {int (*f) (double a);};
12458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12469 # Don't try gcc -ansi; that turns off useful extensions and
12470 # breaks some systems' header files.
12471 # AIX -qlanglvl=ansi
12472 # Ultrix and OSF/1 -std1
12473 # HP-UX 10.20 and later -Ae
12474 # HP-UX older versions -Aa -D_HPUX_SOURCE
12475 # SVR4 -Xc -D__EXTENSIONS__
12476 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12478 CC="$ac_save_CC $ac_arg"
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12483 grep -v '^ *+' conftest.er1 >conftest.err
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_cv_prog_cc_stdc=$ac_arg
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12508 rm -f conftest.err conftest.$ac_objext
12510 rm -f conftest.$ac_ext conftest.$ac_objext
12515 case "x$ac_cv_prog_cc_stdc" in
12517 echo "$as_me:$LINENO: result: none needed" >&5
12518 echo "${ECHO_T}none needed" >&6 ;;
12520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12521 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12522 CC="$CC $ac_cv_prog_cc_stdc" ;;
12525 # Some people use a C++ compiler to compile C. Since we use `exit',
12526 # in C++ we need to declare it. In case someone uses the same compiler
12527 # for both compiling C and C++ we need to have the C++ compiler decide
12528 # the declaration of exit, since it's the most demanding environment.
12529 cat >conftest.$ac_ext <<_ACEOF
12530 #ifndef __cplusplus
12534 rm -f conftest.$ac_objext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag"
12544 || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 for ac_declaration in \
12558 'extern "C" void std::exit (int) throw (); using std::exit;' \
12559 'extern "C" void std::exit (int); using std::exit;' \
12560 'extern "C" void exit (int) throw ();' \
12561 'extern "C" void exit (int);' \
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #include <stdlib.h>
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582 (eval $ac_compile) 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_c_werror_flag"
12590 || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest.$ac_objext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12656 if test -n "$ac_declaration"; then
12657 echo '#ifdef __cplusplus' >>confdefs.h
12658 echo $ac_declaration >>confdefs.h
12659 echo '#endif' >>confdefs.h
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12674 depcc="$CC" am_compiler_list=
12676 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12677 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12682 # We make a subdir and do the tests there. Otherwise we can end up
12683 # making bogus files that we don't know about and never remove. For
12684 # instance it was reported that on HP-UX the gcc test will end up
12685 # making a dummy file named `D' -- because `-MD' means `put the output
12688 # Copy depcomp to subdir because otherwise we won't find it if we're
12689 # using a relative directory.
12690 cp "$am_depcomp" conftest.dir
12692 # We will build objects and dependencies in a subdirectory because
12693 # it helps to detect inapplicable dependency modes. For instance
12694 # both Tru64's cc and ICC support -MD to output dependencies as a
12695 # side effect of compilation, but ICC will put the dependencies in
12696 # the current directory while Tru64 will put them in the object
12700 am_cv_CC_dependencies_compiler_type=none
12701 if test "$am_compiler_list" = ""; then
12702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12704 for depmode in $am_compiler_list; do
12705 # Setup a source with many dependencies, because some compilers
12706 # like to wrap large dependency lists on column 80 (with \), and
12707 # we should not choose a depcomp mode which is confused by this.
12709 # We need to recreate these files for each test, as the compiler may
12710 # overwrite some of them when testing with obscure command lines.
12711 # This happens at least with the AIX C compiler.
12713 for i in 1 2 3 4 5 6; do
12714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12716 # Solaris 8's {/usr,}/bin/sh.
12717 touch sub/conftst$i.h
12719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12723 # after this tag, mechanisms are not by side-effect, so they'll
12724 # only be used when explicitly requested
12725 if test "x$enable_dependency_tracking" = xyes; then
12733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12734 # mode. It turns out that the SunPro C++ compiler does not properly
12735 # handle `-M -o', and we need to detect this.
12736 if depmode=$depmode \
12737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12740 >/dev/null 2>conftest.err &&
12741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12742 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12744 # icc doesn't choke on unknown options, it will just issue warnings
12745 # or remarks (even with -Werror). So we grep stderr for any message
12746 # that says an option was ignored or not supported.
12747 # When given -MP, icc 7.0 and 7.1 complain thusly:
12748 # icc: Command line warning: ignoring option '-M'; no argument required
12749 # The diagnosis changed in icc 8.0:
12750 # icc: Command line remark: option '-MP' not supported
12751 if (grep 'ignoring option' conftest.err ||
12752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12753 am_cv_CC_dependencies_compiler_type=$depmode
12760 rm -rf conftest.dir
12762 am_cv_CC_dependencies_compiler_type=none
12766 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12767 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12768 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12773 test "x$enable_dependency_tracking" != xno \
12774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12775 am__fastdepCC_TRUE=
12776 am__fastdepCC_FALSE='#'
12778 am__fastdepCC_TRUE='#'
12779 am__fastdepCC_FALSE=
12783 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12784 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12785 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12786 { (exit 1); exit 1; }; }
12789 # test for make depend flag
12792 if test -z "${MKDEP}"; then
12793 OL_MKDEP="${CC-cc}"
12794 if test -z "${MKDEP_FLAGS}"; then
12795 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12796 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12797 if test "${ol_cv_mkdep+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 for flag in "-M" "-xM"; do
12803 cat > conftest.c <<EOF
12806 if { ac_try='$OL_MKDEP $flag conftest.c'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } \
12812 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12814 if test ! -f conftest."${ac_object}" ; then
12816 OL_MKDEP_FLAGS="$flag"
12824 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12825 echo "${ECHO_T}$ol_cv_mkdep" >&6
12828 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12832 OL_MKDEP="${MKDEP}"
12833 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12838 if test "${ol_cv_mkdep}" = no ; then
12839 # this will soon become an error
12840 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12841 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12844 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12845 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12846 if test "${ac_cv_lib_s_afopen+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_check_lib_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any gcc2 internal prototype to avoid an error. */
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1 >conftest.err
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_lib_s_afopen=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 ac_cv_lib_s_afopen=no
12902 rm -f conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 LIBS=$ac_check_lib_save_LIBS
12906 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12907 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12908 if test $ac_cv_lib_s_afopen = yes; then
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAVE_AIX_SECURITY 1
12922 ac_cv_func_getopt=no
12924 cat >>confdefs.h <<\_ACEOF
12925 #define BOTH_STRINGS_H 1
12932 WITH_MODULES_ENABLED=no
12933 if test $ol_enable_modules != no ; then
12935 for ac_header in ltdl.h
12937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939 echo "$as_me:$LINENO: checking for $ac_header" >&5
12940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947 # Is the header compilable?
12948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 $ac_includes_default
12957 #include <$ac_header>
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_header_compiler=yes
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_header_compiler=no
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990 echo "${ECHO_T}$ac_header_compiler" >&6
12992 # Is the header present?
12993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 #include <$ac_header>
13003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13006 grep -v '^ *+' conftest.er1 >conftest.err
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } >/dev/null; then
13011 if test -s conftest.err; then
13012 ac_cpp_err=$ac_c_preproc_warn_flag
13013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13020 if test -z "$ac_cpp_err"; then
13021 ac_header_preproc=yes
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_preproc=no
13028 rm -f conftest.err conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030 echo "${ECHO_T}$ac_header_preproc" >&6
13032 # So? What about this header?
13033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039 ac_header_preproc=yes
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13056 ## ------------------------------------------ ##
13057 ## Report this to the AC_PACKAGE_NAME lists. ##
13058 ## ------------------------------------------ ##
13061 sed "s/^/$as_me: WARNING: /" >&2
13064 echo "$as_me:$LINENO: checking for $ac_header" >&5
13065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 eval "$as_ac_Header=\$ac_header_preproc"
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13085 if test $ac_cv_header_ltdl_h = no ; then
13086 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13087 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13088 { (exit 1); exit 1; }; }
13091 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13092 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13093 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-lltdl $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 /* Override any gcc2 internal prototype to avoid an error. */
13109 /* We use char because int might match the return type of a gcc2
13110 builtin and then its argument prototype would still apply. */
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -z "$ac_c_werror_flag"
13130 || test ! -s conftest.err'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; } &&
13136 { ac_try='test -s conftest$ac_exeext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13142 ac_cv_lib_ltdl_lt_dlinit=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_cv_lib_ltdl_lt_dlinit=no
13149 rm -f conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13153 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13154 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13155 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13157 MODULES_LIBS=-lltdl
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_LIBLTDL 1
13167 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13168 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13169 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13170 { (exit 1); exit 1; }; }
13172 ol_link_modules=yes
13173 WITH_MODULES_ENABLED=yes
13176 for i in $Backends; do
13177 eval "ol_tmp=\$ol_enable_$i"
13178 if test $ol_tmp = mod ; then
13179 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13180 echo "$as_me: WARNING: building static $i backend" >&2;}
13181 eval "ol_enable_$i=yes"
13184 for i in $Overlays; do
13185 eval "ol_tmp=\$ol_enable_$i"
13186 if test $ol_tmp = mod ; then
13187 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13188 echo "$as_me: WARNING: building static $i overlay" >&2;}
13189 eval "ol_enable_$i=yes"
13195 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13196 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13197 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13209 #include <__ASCII__/generate_error.h>
13213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } >/dev/null; then
13221 if test -s conftest.err; then
13222 ac_cpp_err=$ac_c_preproc_warn_flag
13223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13230 if test -z "$ac_cpp_err"; then
13231 ol_cv_cpp_ebcdic=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ol_cv_cpp_ebcdic=no
13238 rm -f conftest.err conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13241 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13242 if test $ol_cv_cpp_ebcdic = yes ; then
13244 cat >>confdefs.h <<\_ACEOF
13245 #define HAVE_EBCDIC 1
13250 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13251 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13252 if test "${ol_cv_header_stdc+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 #include <stdlib.h>
13262 #include <stdarg.h>
13263 #include <string.h>
13266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } >/dev/null; then
13274 if test -s conftest.err; then
13275 ac_cpp_err=$ac_c_preproc_warn_flag
13276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13283 if test -z "$ac_cpp_err"; then
13284 ol_cv_header_stdc=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ol_cv_header_stdc=no
13291 rm -f conftest.err conftest.$ac_ext
13293 if test $ol_cv_header_stdc = yes; then
13294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 #include <string.h>
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305 $EGREP "memchr" >/dev/null 2>&1; then
13308 ol_cv_header_stdc=no
13314 if test $ol_cv_header_stdc = yes; then
13315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 #include <stdlib.h>
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 $EGREP "free" >/dev/null 2>&1; then
13329 ol_cv_header_stdc=no
13335 if test $ol_cv_header_stdc = yes; then
13336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13337 if test "$cross_compiling" = yes; then
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 #ifndef HAVE_EBCDIC
13348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13351 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13352 || ('j' <= (c) && (c) <= 'r') \
13353 || ('s' <= (c) && (c) <= 'z'))
13354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13357 int main () { int i; for (i = 0; i < 256; i++)
13358 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13362 rm -f conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364 (eval $ac_link) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13375 echo "$as_me: program exited with status $ac_status" >&5
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ( exit $ac_status )
13380 ol_cv_header_stdc=no
13382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13386 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13387 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13388 if test $ol_cv_header_stdc = yes; then
13389 cat >>confdefs.h <<\_ACEOF
13390 #define STDC_HEADERS 1
13394 ac_cv_header_stdc=disable
13397 if test $ol_cv_header_stdc != yes; then
13398 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13399 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13407 ac_header_dirent=no
13408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13409 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include <sys/types.h>
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest.$ac_objext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 eval "$as_ac_Header=yes"
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 eval "$as_ac_Header=no"
13462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13467 cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13471 ac_header_dirent=$ac_hdr; break
13475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13476 if test $ac_header_dirent = dirent.h; then
13477 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13479 if test "${ac_cv_search_opendir+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 ac_func_search_save_LIBS=$LIBS
13483 ac_cv_search_opendir=no
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 /* Override any gcc2 internal prototype to avoid an error. */
13495 /* We use char because int might match the return type of a gcc2
13496 builtin and then its argument prototype would still apply. */
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest$ac_exeext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_search_opendir="none required"
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13534 rm -f conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536 if test "$ac_cv_search_opendir" = no; then
13537 for ac_lib in dir; do
13538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13546 /* Override any gcc2 internal prototype to avoid an error. */
13550 /* We use char because int might match the return type of a gcc2
13551 builtin and then its argument prototype would still apply. */
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563 (eval $ac_link) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest$ac_exeext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_search_opendir="-l$ac_lib"
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13590 rm -f conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_func_search_save_LIBS
13596 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13597 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13598 if test "$ac_cv_search_opendir" != no; then
13599 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13604 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13605 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13606 if test "${ac_cv_search_opendir+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 ac_func_search_save_LIBS=$LIBS
13610 ac_cv_search_opendir=no
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13618 /* Override any gcc2 internal prototype to avoid an error. */
13622 /* We use char because int might match the return type of a gcc2
13623 builtin and then its argument prototype would still apply. */
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635 (eval $ac_link) 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest$ac_exeext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_search_opendir="none required"
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13661 rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663 if test "$ac_cv_search_opendir" = no; then
13664 for ac_lib in x; do
13665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any gcc2 internal prototype to avoid an error. */
13677 /* We use char because int might match the return type of a gcc2
13678 builtin and then its argument prototype would still apply. */
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>conftest.er1
13692 grep -v '^ *+' conftest.er1 >conftest.err
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_search_opendir="-l$ac_lib"
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13717 rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_func_search_save_LIBS
13723 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13724 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13725 if test "$ac_cv_search_opendir" != no; then
13726 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13732 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13733 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13734 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 cat >conftest.$ac_ext <<_ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 #include <sys/types.h>
13744 #include <sys/wait.h>
13745 #ifndef WEXITSTATUS
13746 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13749 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13757 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_header_sys_wait_h=yes
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 ac_cv_header_sys_wait_h=no
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13794 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13795 if test $ac_cv_header_sys_wait_h = yes; then
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_SYS_WAIT_H 1
13803 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13804 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13805 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 #include <sys/types.h>
13815 #include <termios.h>
13821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13822 $EGREP "yes" >/dev/null 2>&1; then
13823 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13825 ac_cv_sys_tiocgwinsz_in_termios_h=no
13830 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13831 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13833 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13834 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13835 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13836 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 #include <sys/types.h>
13846 #include <sys/ioctl.h>
13852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13853 $EGREP "yes" >/dev/null 2>&1; then
13854 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13856 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13861 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13862 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13864 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13866 cat >>confdefs.h <<\_ACEOF
13867 #define GWINSZ_IN_SYS_IOCTL 1
13971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13973 echo "$as_me:$LINENO: checking for $ac_header" >&5
13974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13981 # Is the header compilable?
13982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 $ac_includes_default
13991 #include <$ac_header>
13993 rm -f conftest.$ac_objext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest.$ac_objext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_header_compiler=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_compiler=no
14022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024 echo "${ECHO_T}$ac_header_compiler" >&6
14026 # Is the header present?
14027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <$ac_header>
14037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14040 grep -v '^ *+' conftest.er1 >conftest.err
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } >/dev/null; then
14045 if test -s conftest.err; then
14046 ac_cpp_err=$ac_c_preproc_warn_flag
14047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14054 if test -z "$ac_cpp_err"; then
14055 ac_header_preproc=yes
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_header_preproc=no
14062 rm -f conftest.err conftest.$ac_ext
14063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14064 echo "${ECHO_T}$ac_header_preproc" >&6
14066 # So? What about this header?
14067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14073 ac_header_preproc=yes
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14090 ## ------------------------------------------ ##
14091 ## Report this to the AC_PACKAGE_NAME lists. ##
14092 ## ------------------------------------------ ##
14095 sed "s/^/$as_me: WARNING: /" >&2
14098 echo "$as_me:$LINENO: checking for $ac_header" >&5
14099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 eval "$as_ac_Header=\$ac_header_preproc"
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14110 cat >>confdefs.h <<_ACEOF
14111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14120 for ac_header in resolv.h
14122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14123 echo "$as_me:$LINENO: checking for $ac_header" >&5
14124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 $ac_includes_default
14135 #include <netinet/in.h>
14138 #include <$ac_header>
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 eval "$as_ac_Header=yes"
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 eval "$as_ac_Header=no"
14169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14174 cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14184 for ac_header in sys/ucred.h
14186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14187 echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14199 #ifdef HAVE_SYS_PARAM_H
14200 #include <sys/param.h>
14204 #include <$ac_header>
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 eval "$as_ac_Header=yes"
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 eval "$as_ac_Header=no"
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14240 cat >>confdefs.h <<_ACEOF
14241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14252 for ac_func in sigaction sigset
14254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14255 echo "$as_me:$LINENO: checking for $ac_func" >&5
14256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_var+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14268 #define $ac_func innocuous_$ac_func
14270 /* System header to define __stub macros and hopefully few prototypes,
14271 which can conflict with char $ac_func (); below.
14272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14273 <limits.h> exists even on freestanding compilers. */
14276 # include <limits.h>
14278 # include <assert.h>
14283 /* Override any gcc2 internal prototype to avoid an error. */
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14291 /* The GNU C library defines this for functions which it implements
14292 to always fail with ENOSYS. Some functions are actually named
14293 something starting with __ and the normal name is an alias. */
14294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14297 char (*f) () = $ac_func;
14306 return f != $ac_func;
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 eval "$as_ac_var=yes"
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 eval "$as_ac_var=no"
14340 rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14345 if test `eval echo '${'$as_ac_var'}'` = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14354 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14356 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14357 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14358 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_check_lib_save_LIBS=$LIBS
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14370 /* Override any gcc2 internal prototype to avoid an error. */
14374 /* We use char because int might match the return type of a gcc2
14375 builtin and then its argument prototype would still apply. */
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14387 (eval $ac_link) 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag"
14395 || test ! -s conftest.err'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest$ac_exeext'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_cv_lib_V3_sigset=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_lib_V3_sigset=no
14414 rm -f conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS
14418 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14419 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14420 if test $ac_cv_lib_V3_sigset = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define HAVE_LIBV3 1
14431 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14432 echo "$as_me:$LINENO: checking for winsock" >&5
14433 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14434 if test "${ol_cv_winsock+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 for curlib in ws2_32 wsock32; do
14439 LIBS="$LIBS -l$curlib"
14440 cat >conftest.$ac_ext <<_ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <winsock.h>
14453 select(0,NULL,NULL,NULL,NULL);
14455 gethostname(NULL,0);
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -z "$ac_c_werror_flag"
14471 || test ! -s conftest.err'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } &&
14477 { ac_try='test -s conftest$ac_exeext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14490 rm -f conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14493 if test $ol_cv_winsock = yes; then
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_WINSOCK 1
14499 ac_cv_func_socket=yes
14500 ac_cv_func_select=yes
14501 ac_cv_func_closesocket=yes
14502 ac_cv_func_gethostname=yes
14503 if test $curlib = ws2_32; then
14504 ol_cv_winsock=winsock2
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_WINSOCK2 1
14516 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14517 echo "${ECHO_T}$ol_cv_winsock" >&6
14521 echo "$as_me:$LINENO: checking for socket" >&5
14522 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14523 if test "${ac_cv_func_socket+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14534 #define socket innocuous_socket
14536 /* System header to define __stub macros and hopefully few prototypes,
14537 which can conflict with char socket (); below.
14538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14539 <limits.h> exists even on freestanding compilers. */
14542 # include <limits.h>
14544 # include <assert.h>
14549 /* Override any gcc2 internal prototype to avoid an error. */
14554 /* We use char because int might match the return type of a gcc2
14555 builtin and then its argument prototype would still apply. */
14557 /* The GNU C library defines this for functions which it implements
14558 to always fail with ENOSYS. Some functions are actually named
14559 something starting with __ and the normal name is an alias. */
14560 #if defined (__stub_socket) || defined (__stub___socket)
14563 char (*f) () = socket;
14572 return f != socket;
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579 (eval $ac_link) 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -z "$ac_c_werror_flag"
14587 || test ! -s conftest.err'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest$ac_exeext'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_cv_func_socket=yes
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_cv_func_socket=no
14606 rm -f conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14609 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14610 echo "${ECHO_T}$ac_cv_func_socket" >&6
14611 if test $ac_cv_func_socket = yes; then
14616 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14617 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14618 if test "${ac_cv_lib_socket_main+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lsocket $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest$ac_exeext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_cv_lib_socket_main=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_cv_lib_socket_main=no
14668 rm -f conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14670 LIBS=$ac_check_lib_save_LIBS
14672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14673 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14674 if test $ac_cv_lib_socket_main = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676 #define HAVE_LIBSOCKET 1
14679 LIBS="-lsocket $LIBS"
14684 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14685 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14686 if test "${ac_cv_lib_net_main+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 ac_check_lib_save_LIBS=$LIBS
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>conftest.er1
14711 grep -v '^ *+' conftest.er1 >conftest.err
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -z "$ac_c_werror_flag"
14717 || test ! -s conftest.err'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest$ac_exeext'
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_cv_lib_net_main=yes
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_cv_lib_net_main=no
14736 rm -f conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14738 LIBS=$ac_check_lib_save_LIBS
14740 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14741 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14742 if test $ac_cv_lib_net_main = yes; then
14743 cat >>confdefs.h <<_ACEOF
14744 #define HAVE_LIBNET 1
14752 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14753 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14754 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lnsl_s $LIBS"
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_lib_nsl_s_main=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_lib_nsl_s_main=no
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14806 LIBS=$ac_check_lib_save_LIBS
14808 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14809 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14810 if test $ac_cv_lib_nsl_s_main = yes; then
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_LIBNSL_S 1
14815 LIBS="-lnsl_s $LIBS"
14820 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14821 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14822 if test "${ac_cv_lib_nsl_main+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 ac_check_lib_save_LIBS=$LIBS
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845 (eval $ac_link) 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest$ac_exeext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_lib_nsl_main=yes
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_cv_lib_nsl_main=no
14872 rm -f conftest.err conftest.$ac_objext \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14877 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14878 if test $ac_cv_lib_nsl_main = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBNSL 1
14888 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14889 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14890 if test "${ac_cv_lib_inet_socket+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-linet $LIBS"
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14902 /* Override any gcc2 internal prototype to avoid an error. */
14906 /* We use char because int might match the return type of a gcc2
14907 builtin and then its argument prototype would still apply. */
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919 (eval $ac_link) 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_lib_inet_socket=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_lib_inet_socket=no
14946 rm -f conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14948 LIBS=$ac_check_lib_save_LIBS
14950 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14951 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14952 if test $ac_cv_lib_inet_socket = yes; then
14953 cat >>confdefs.h <<_ACEOF
14954 #define HAVE_LIBINET 1
14957 LIBS="-linet $LIBS"
14962 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14963 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14964 if test "${ac_cv_lib_gen_main+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 ac_check_lib_save_LIBS=$LIBS
14969 cat >conftest.$ac_ext <<_ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest$ac_exeext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_lib_gen_main=yes
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15012 ac_cv_lib_gen_main=no
15014 rm -f conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 LIBS=$ac_check_lib_save_LIBS
15018 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15019 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15020 if test $ac_cv_lib_gen_main = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define HAVE_LIBGEN 1
15033 echo "$as_me:$LINENO: checking for select" >&5
15034 echo $ECHO_N "checking for select... $ECHO_C" >&6
15035 if test "${ac_cv_func_select+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 /* Define select to an innocuous variant, in case <limits.h> declares select.
15045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15046 #define select innocuous_select
15048 /* System header to define __stub macros and hopefully few prototypes,
15049 which can conflict with char select (); below.
15050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15051 <limits.h> exists even on freestanding compilers. */
15054 # include <limits.h>
15056 # include <assert.h>
15061 /* Override any gcc2 internal prototype to avoid an error. */
15066 /* We use char because int might match the return type of a gcc2
15067 builtin and then its argument prototype would still apply. */
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined (__stub_select) || defined (__stub___select)
15075 char (*f) () = select;
15084 return f != select;
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091 (eval $ac_link) 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -z "$ac_c_werror_flag"
15099 || test ! -s conftest.err'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } &&
15105 { ac_try='test -s conftest$ac_exeext'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_cv_func_select=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_func_select=no
15118 rm -f conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext conftest.$ac_ext
15121 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15122 echo "${ECHO_T}$ac_cv_func_select" >&6
15123 if test $ac_cv_func_select = yes; then
15126 { { echo "$as_me:$LINENO: error: select() required." >&5
15127 echo "$as_me: error: select() required." >&2;}
15128 { (exit 1); exit 1; }; }
15132 if test "${ac_cv_header_winsock_h}" != yes; then
15135 for ac_header in sys/select.h sys/socket.h
15137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15139 echo "$as_me:$LINENO: checking for $ac_header" >&5
15140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15147 # Is the header compilable?
15148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 #include <$ac_header>
15159 rm -f conftest.$ac_objext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15161 (eval $ac_compile) 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag"
15169 || test ! -s conftest.err'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } &&
15175 { ac_try='test -s conftest.$ac_objext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_header_compiler=yes
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_header_compiler=no
15188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15190 echo "${ECHO_T}$ac_header_compiler" >&6
15192 # Is the header present?
15193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 #include <$ac_header>
15203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15206 grep -v '^ *+' conftest.er1 >conftest.err
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } >/dev/null; then
15211 if test -s conftest.err; then
15212 ac_cpp_err=$ac_c_preproc_warn_flag
15213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15220 if test -z "$ac_cpp_err"; then
15221 ac_header_preproc=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_header_preproc=no
15228 rm -f conftest.err conftest.$ac_ext
15229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15230 echo "${ECHO_T}$ac_header_preproc" >&6
15232 # So? What about this header?
15233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15239 ac_header_preproc=yes
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15256 ## ------------------------------------------ ##
15257 ## Report this to the AC_PACKAGE_NAME lists. ##
15258 ## ------------------------------------------ ##
15261 sed "s/^/$as_me: WARNING: /" >&2
15264 echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 eval "$as_ac_Header=\$ac_header_preproc"
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276 cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15284 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15285 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15286 if test "${ac_cv_func_select_args+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15290 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15291 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 #if HAVE_SYS_SELECT_H
15300 # include <sys/select.h>
15302 #if HAVE_SYS_SOCKET_H
15303 # include <sys/socket.h>
15309 extern int select ($ac_arg1,
15310 $ac_arg234, $ac_arg234, $ac_arg234,
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15348 # Provide a safe default value.
15349 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15352 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15353 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15354 ac_save_IFS=$IFS; IFS=','
15355 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15359 cat >>confdefs.h <<_ACEOF
15360 #define SELECT_TYPE_ARG1 $1
15364 cat >>confdefs.h <<_ACEOF
15365 #define SELECT_TYPE_ARG234 ($2)
15369 cat >>confdefs.h <<_ACEOF
15370 #define SELECT_TYPE_ARG5 ($3)
15379 for ac_func in poll
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 echo "$as_me:$LINENO: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_var+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15395 #define $ac_func innocuous_$ac_func
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func (); below.
15399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15400 <limits.h> exists even on freestanding compilers. */
15403 # include <limits.h>
15405 # include <assert.h>
15410 /* Override any gcc2 internal prototype to avoid an error. */
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15418 /* The GNU C library defines this for functions which it implements
15419 to always fail with ENOSYS. Some functions are actually named
15420 something starting with __ and the normal name is an alias. */
15421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15424 char (*f) () = $ac_func;
15433 return f != $ac_func;
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest$ac_exeext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 eval "$as_ac_var=yes"
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 eval "$as_ac_var=no"
15467 rm -f conftest.err conftest.$ac_objext \
15468 conftest$ac_exeext conftest.$ac_ext
15470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15481 for ac_header in poll.h
15483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15485 echo "$as_me:$LINENO: checking for $ac_header" >&5
15486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15493 # Is the header compilable?
15494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15496 cat >conftest.$ac_ext <<_ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 $ac_includes_default
15503 #include <$ac_header>
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507 (eval $ac_compile) 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag"
15515 || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_header_compiler=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_compiler=no
15534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6
15538 # Is the header present?
15539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <$ac_header>
15549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } >/dev/null; then
15557 if test -s conftest.err; then
15558 ac_cpp_err=$ac_c_preproc_warn_flag
15559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15566 if test -z "$ac_cpp_err"; then
15567 ac_header_preproc=yes
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_header_preproc=no
15574 rm -f conftest.err conftest.$ac_ext
15575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6
15578 # So? What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 ## ------------------------------------------ ##
15603 ## Report this to the AC_PACKAGE_NAME lists. ##
15604 ## ------------------------------------------ ##
15607 sed "s/^/$as_me: WARNING: /" >&2
15610 echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 eval "$as_ac_Header=\$ac_header_preproc"
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15632 for ac_header in sys/epoll.h
15634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15636 echo "$as_me:$LINENO: checking for $ac_header" >&5
15637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15644 # Is the header compilable?
15645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 $ac_includes_default
15654 #include <$ac_header>
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag"
15666 || test ! -s conftest.err'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_header_compiler=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_header_compiler=no
15685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687 echo "${ECHO_T}$ac_header_compiler" >&6
15689 # Is the header present?
15690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 #include <$ac_header>
15700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15717 if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_preproc=no
15725 rm -f conftest.err conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15727 echo "${ECHO_T}$ac_header_preproc" >&6
15729 # So? What about this header?
15730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15736 ac_header_preproc=yes
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15753 ## ------------------------------------------ ##
15754 ## Report this to the AC_PACKAGE_NAME lists. ##
15755 ## ------------------------------------------ ##
15758 sed "s/^/$as_me: WARNING: /" >&2
15761 echo "$as_me:$LINENO: checking for $ac_header" >&5
15762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 eval "$as_ac_Header=\$ac_header_preproc"
15768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15781 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15782 echo "$as_me:$LINENO: checking for epoll system call" >&5
15783 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15784 if test "$cross_compiling" = yes; then
15785 echo "$as_me:$LINENO: result: no" >&5
15786 echo "${ECHO_T}no" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 int main(int argc, char *argv)
15796 int epfd = epoll_create(256);
15797 exit (epfd == -1 ? 1 : 0);
15800 rm -f conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_EPOLL 1
15819 echo "$as_me: program exited with status $ac_status" >&5
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ( exit $ac_status )
15824 echo "$as_me:$LINENO: result: no" >&5
15825 echo "${ECHO_T}no" >&6
15827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15832 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15833 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15834 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15846 #include <sys/types.h>
15849 #include <stdlib.h>
15854 char *c = (char *) *sys_errlist
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag"
15869 || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ol_cv_dcl_sys_errlist=yes
15882 ol_cv_have_sys_errlist=yes
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 ol_cv_dcl_sys_errlist=no
15889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15892 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15894 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15895 if test $ol_cv_dcl_sys_errlist = no ; then
15897 cat >>confdefs.h <<\_ACEOF
15898 #define DECL_SYS_ERRLIST 1
15902 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15903 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15904 if test "${ol_cv_have_sys_errlist+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15918 char *c = (char *) *sys_errlist
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
15932 { ac_try='test -z "$ac_c_werror_flag"
15933 || test ! -s conftest.err'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest$ac_exeext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ol_cv_have_sys_errlist=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ol_cv_have_sys_errlist=no
15952 rm -f conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15955 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15956 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15958 if test $ol_cv_have_sys_errlist = yes ; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE_SYS_ERRLIST 1
15967 for ac_func in strerror strerror_r
15969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15970 echo "$as_me:$LINENO: checking for $ac_func" >&5
15971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15972 if eval "test \"\${$as_ac_var+set}\" = set"; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15983 #define $ac_func innocuous_$ac_func
15985 /* System header to define __stub macros and hopefully few prototypes,
15986 which can conflict with char $ac_func (); below.
15987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15988 <limits.h> exists even on freestanding compilers. */
15991 # include <limits.h>
15993 # include <assert.h>
15998 /* Override any gcc2 internal prototype to avoid an error. */
16003 /* We use char because int might match the return type of a gcc2
16004 builtin and then its argument prototype would still apply. */
16006 /* The GNU C library defines this for functions which it implements
16007 to always fail with ENOSYS. Some functions are actually named
16008 something starting with __ and the normal name is an alias. */
16009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16012 char (*f) () = $ac_func;
16021 return f != $ac_func;
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028 (eval $ac_link) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest$ac_exeext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 eval "$as_ac_var=yes"
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 eval "$as_ac_var=no"
16055 rm -f conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16060 if test `eval echo '${'$as_ac_var'}'` = yes; then
16061 cat >>confdefs.h <<_ACEOF
16062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16068 ol_cv_func_strerror_r=no
16069 if test "${ac_cv_func_strerror_r}" = yes ; then
16070 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16071 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16072 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <string.h>
16084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16085 $EGREP "strerror_r" >/dev/null 2>&1; then
16086 ol_decl_strerror_r=yes
16088 ol_decl_strerror_r=no
16092 if test $ol_decl_strerror_r = yes ; then
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 #include <string.h>
16103 /* from autoconf 2.59 */
16105 char x = *strerror_r (0, buf, sizeof buf);
16106 char *p = strerror_r (0, buf, sizeof buf);
16112 rm -f conftest.$ac_objext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16114 (eval $ac_compile) 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest.$ac_objext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ol_cv_nonposix_strerror_r=yes
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ol_cv_nonposix_strerror_r=no
16141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16143 if test "$cross_compiling" = yes; then
16144 ol_cv_nonposix_strerror=no
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16156 strerror_r( 1, buf, sizeof buf );
16157 exit( buf[0] == 0 );
16161 rm -f conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163 (eval $ac_link) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16172 ol_cv_nonposix_strerror_r=yes
16174 echo "$as_me: program exited with status $ac_status" >&5
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ( exit $ac_status )
16179 ol_cv_nonposix_strerror=no
16181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16187 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16188 if test $ol_cv_nonposix_strerror_r = yes ; then
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE_NONPOSIX_STRERROR_R 1
16196 elif test "${ac_cv_func_strerror}" = no ; then
16197 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16198 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16199 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16211 #include <sys/types.h>
16214 #include <stdlib.h>
16219 char *c = (char *) *sys_errlist
16224 rm -f conftest.$ac_objext
16225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16226 (eval $ac_compile) 2>conftest.er1
16228 grep -v '^ *+' conftest.er1 >conftest.err
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -z "$ac_c_werror_flag"
16234 || test ! -s conftest.err'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ol_cv_dcl_sys_errlist=yes
16247 ol_cv_have_sys_errlist=yes
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ol_cv_dcl_sys_errlist=no
16254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16256 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16257 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16259 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16260 if test $ol_cv_dcl_sys_errlist = no ; then
16262 cat >>confdefs.h <<\_ACEOF
16263 #define DECL_SYS_ERRLIST 1
16267 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16268 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16269 if test "${ol_cv_have_sys_errlist+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16283 char *c = (char *) *sys_errlist
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 ol_cv_have_sys_errlist=yes
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ol_cv_have_sys_errlist=no
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16321 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16323 if test $ol_cv_have_sys_errlist = yes ; then
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_SYS_ERRLIST 1
16335 for ac_header in regex.h
16337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16339 echo "$as_me:$LINENO: checking for $ac_header" >&5
16340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16347 # Is the header compilable?
16348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 $ac_includes_default
16357 #include <$ac_header>
16359 rm -f conftest.$ac_objext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16361 (eval $ac_compile) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_header_compiler=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_header_compiler=no
16388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16390 echo "${ECHO_T}$ac_header_compiler" >&6
16392 # Is the header present?
16393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <$ac_header>
16403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16406 grep -v '^ *+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } >/dev/null; then
16411 if test -s conftest.err; then
16412 ac_cpp_err=$ac_c_preproc_warn_flag
16413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16420 if test -z "$ac_cpp_err"; then
16421 ac_header_preproc=yes
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_header_preproc=no
16428 rm -f conftest.err conftest.$ac_ext
16429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16430 echo "${ECHO_T}$ac_header_preproc" >&6
16432 # So? What about this header?
16433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16439 ac_header_preproc=yes
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16456 ## ------------------------------------------ ##
16457 ## Report this to the AC_PACKAGE_NAME lists. ##
16458 ## ------------------------------------------ ##
16461 sed "s/^/$as_me: WARNING: /" >&2
16464 echo "$as_me:$LINENO: checking for $ac_header" >&5
16465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 eval "$as_ac_Header=\$ac_header_preproc"
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16484 if test "$ac_cv_header_regex_h" != yes ; then
16485 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16486 echo "$as_me: error: POSIX regex.h required." >&2;}
16487 { (exit 1); exit 1; }; }
16489 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16490 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16491 if test "${ac_cv_search_regfree+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 ac_func_search_save_LIBS=$LIBS
16495 ac_cv_search_regfree=no
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16503 /* Override any gcc2 internal prototype to avoid an error. */
16507 /* We use char because int might match the return type of a gcc2
16508 builtin and then its argument prototype would still apply. */
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520 (eval $ac_link) 2>conftest.er1
16522 grep -v '^ *+' conftest.er1 >conftest.err
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try='test -z "$ac_c_werror_flag"
16528 || test ! -s conftest.err'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_search_regfree="none required"
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16546 rm -f conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 if test "$ac_cv_search_regfree" = no; then
16549 for ac_lib in regex gnuregex; do
16550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16551 cat >conftest.$ac_ext <<_ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16558 /* Override any gcc2 internal prototype to avoid an error. */
16562 /* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag"
16583 || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_search_regfree="-l$ac_lib"
16598 echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16602 rm -f conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_func_search_save_LIBS
16608 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16609 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16610 if test "$ac_cv_search_regfree" != no; then
16611 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16614 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16615 echo "$as_me: error: POSIX regex required." >&2;}
16616 { (exit 1); exit 1; }; }
16621 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16622 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16623 if test "${ol_cv_c_posix_regex+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 if test "$cross_compiling" = yes; then
16628 ol_cv_c_posix_regex=cross
16630 cat >conftest.$ac_ext <<_ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 #include <sys/types.h>
16639 static char *pattern, *string;
16647 if(regcomp(&re, pattern, 0)) {
16651 string = "ALL MATCH";
16653 rc = regexec(&re, string, 0, (void*)0, 0);
16660 rm -f conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ol_cv_c_posix_regex=yes
16673 echo "$as_me: program exited with status $ac_status" >&5
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ( exit $ac_status )
16678 ol_cv_c_posix_regex=no
16680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16683 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16684 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16686 if test "$ol_cv_c_posix_regex" = no ; then
16687 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16688 echo "$as_me: error: broken POSIX regex!" >&2;}
16689 { (exit 1); exit 1; }; }
16695 for ac_header in sys/uuid.h
16697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16699 echo "$as_me:$LINENO: checking for $ac_header" >&5
16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16707 # Is the header compilable?
16708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <$ac_header>
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16723 grep -v '^ *+' conftest.er1 >conftest.err
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_header_compiler=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_header_compiler=no
16748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6
16752 # Is the header present?
16753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <$ac_header>
16763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } >/dev/null; then
16771 if test -s conftest.err; then
16772 ac_cpp_err=$ac_c_preproc_warn_flag
16773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16780 if test -z "$ac_cpp_err"; then
16781 ac_header_preproc=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_header_preproc=no
16788 rm -f conftest.err conftest.$ac_ext
16789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16790 echo "${ECHO_T}$ac_header_preproc" >&6
16792 # So? What about this header?
16793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16799 ac_header_preproc=yes
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16816 ## ------------------------------------------ ##
16817 ## Report this to the AC_PACKAGE_NAME lists. ##
16818 ## ------------------------------------------ ##
16821 sed "s/^/$as_me: WARNING: /" >&2
16824 echo "$as_me:$LINENO: checking for $ac_header" >&5
16825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 eval "$as_ac_Header=\$ac_header_preproc"
16831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 if test $ac_cv_header_sys_uuid_h = yes ; then
16846 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16847 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16848 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 ac_func_search_save_LIBS=$LIBS
16852 ac_cv_search_uuid_to_str=no
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 /* Override any gcc2 internal prototype to avoid an error. */
16864 /* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16866 char uuid_to_str ();
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_search_uuid_to_str="none required"
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16903 rm -f conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905 if test "$ac_cv_search_uuid_to_str" = no; then
16906 for ac_lib in uuid; do
16907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 /* Override any gcc2 internal prototype to avoid an error. */
16919 /* We use char because int might match the return type of a gcc2
16920 builtin and then its argument prototype would still apply. */
16921 char uuid_to_str ();
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>conftest.er1
16934 grep -v '^ *+' conftest.er1 >conftest.err
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -z "$ac_c_werror_flag"
16940 || test ! -s conftest.err'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_search_uuid_to_str="-l$ac_lib"
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16959 rm -f conftest.err conftest.$ac_objext \
16960 conftest$ac_exeext conftest.$ac_ext
16963 LIBS=$ac_func_search_save_LIBS
16965 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16966 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16967 if test "$ac_cv_search_uuid_to_str" != no; then
16968 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16976 if test have_uuid = yes ; then
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_UUID_TO_STR 1
16983 test "$ac_cv_search_uuid_to_str" = "none required" || \
16984 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16988 if test $have_uuid = no ; then
16989 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16990 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16992 LIBS="$LIBS -lrpcrt4"
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17000 int __stdcall UuidCreate(void *);
17001 int __stdcall UuidToStringA(void *,void **);
17008 UuidToStringA(0,0);
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>conftest.er1
17018 grep -v '^ *+' conftest.er1 >conftest.err
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17043 rm -f conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 if test $need_rpcrt = yes; then
17046 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17049 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17050 echo "${ECHO_T}$need_rpcrt" >&6
17053 ol_cv_lib_resolver=no
17054 if test $ol_cv_lib_resolver = no ; then
17055 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17056 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17057 if test "${ol_cv_resolver_none+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 LIBS="$ol_RESOLVER_LIB $LIBS"
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 #ifdef HAVE_SYS_TYPES_H
17073 # include <sys/types.h>
17075 #include <netinet/in.h>
17076 #ifdef HAVE_ARPA_NAMESER_H
17077 # include <arpa/nameser.h>
17079 #ifdef HAVE_RESOLV_H
17080 # include <resolv.h>
17088 char *request = NULL;
17089 unsigned char reply[64*1024];
17090 unsigned char host[64*1024];
17094 /* Bind 8/9 interface */
17095 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17097 /* Bind 4 interface */
17101 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17105 /* Bind 8/9 interface */
17107 #elif defined(HFIXEDSZ)
17108 /* Bind 4 interface w/ HFIXEDSZ */
17111 /* Bind 4 interface w/o HFIXEDSZ */
17112 p += sizeof(HEADER);
17114 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest$ac_exeext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ol_cv_resolver_none=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ol_cv_resolver_none=no
17149 rm -f conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17155 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17156 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17158 if test $ol_cv_resolver_none = yes ; then
17159 ol_cv_lib_resolver=yes
17163 if test $ol_cv_lib_resolver = no ; then
17164 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17165 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17166 if test "${ol_cv_resolver_resolv+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 ol_RESOLVER_LIB=-lresolv
17172 LIBS="$ol_RESOLVER_LIB $LIBS"
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17181 #ifdef HAVE_SYS_TYPES_H
17182 # include <sys/types.h>
17184 #include <netinet/in.h>
17185 #ifdef HAVE_ARPA_NAMESER_H
17186 # include <arpa/nameser.h>
17188 #ifdef HAVE_RESOLV_H
17189 # include <resolv.h>
17197 char *request = NULL;
17198 unsigned char reply[64*1024];
17199 unsigned char host[64*1024];
17203 /* Bind 8/9 interface */
17204 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17206 /* Bind 4 interface */
17210 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17214 /* Bind 8/9 interface */
17216 #elif defined(HFIXEDSZ)
17217 /* Bind 4 interface w/ HFIXEDSZ */
17220 /* Bind 4 interface w/o HFIXEDSZ */
17221 p += sizeof(HEADER);
17223 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231 (eval $ac_link) 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag"
17239 || test ! -s conftest.err'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ol_cv_resolver_resolv=yes
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ol_cv_resolver_resolv=no
17258 rm -f conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17265 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17267 if test $ol_cv_resolver_resolv = yes ; then
17268 ol_cv_lib_resolver=-lresolv
17272 if test $ol_cv_lib_resolver = no ; then
17273 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17274 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17275 if test "${ol_cv_resolver_bind+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 ol_RESOLVER_LIB=-lbind
17281 LIBS="$ol_RESOLVER_LIB $LIBS"
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17290 #ifdef HAVE_SYS_TYPES_H
17291 # include <sys/types.h>
17293 #include <netinet/in.h>
17294 #ifdef HAVE_ARPA_NAMESER_H
17295 # include <arpa/nameser.h>
17297 #ifdef HAVE_RESOLV_H
17298 # include <resolv.h>
17306 char *request = NULL;
17307 unsigned char reply[64*1024];
17308 unsigned char host[64*1024];
17312 /* Bind 8/9 interface */
17313 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17315 /* Bind 4 interface */
17319 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17323 /* Bind 8/9 interface */
17325 #elif defined(HFIXEDSZ)
17326 /* Bind 4 interface w/ HFIXEDSZ */
17329 /* Bind 4 interface w/o HFIXEDSZ */
17330 p += sizeof(HEADER);
17332 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17340 (eval $ac_link) 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag"
17348 || test ! -s conftest.err'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ol_cv_resolver_bind=yes
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ol_cv_resolver_bind=no
17367 rm -f conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17373 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17374 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17376 if test $ol_cv_resolver_bind = yes ; then
17377 ol_cv_lib_resolver=-lbind
17384 if test "$ol_cv_lib_resolver" != no ; then
17386 cat >>confdefs.h <<\_ACEOF
17387 #define HAVE_RES_QUERY 1
17391 if test "$ol_enable_dnssrv" != no ; then
17395 if test "$ol_cv_lib_resolver" != yes ; then
17396 LIBS="$ol_cv_lib_resolver $LIBS"
17400 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17401 if test "$ol_link_dnssrv" = no ; then
17402 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17403 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17404 { (exit 1); exit 1; }; }
17407 ol_enable_dnssrv=no
17411 for ac_func in hstrerror
17413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414 echo "$as_me:$LINENO: checking for $ac_func" >&5
17415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_var+set}\" = set"; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17427 #define $ac_func innocuous_$ac_func
17429 /* System header to define __stub macros and hopefully few prototypes,
17430 which can conflict with char $ac_func (); below.
17431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432 <limits.h> exists even on freestanding compilers. */
17435 # include <limits.h>
17437 # include <assert.h>
17442 /* Override any gcc2 internal prototype to avoid an error. */
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 char (*f) () = $ac_func;
17465 return f != $ac_func;
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17472 (eval $ac_link) 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag"
17480 || test ! -s conftest.err'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 eval "$as_ac_var=yes"
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 eval "$as_ac_var=no"
17499 rm -f conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17504 if test `eval echo '${'$as_ac_var'}'` = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17517 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17522 if eval "test \"\${$as_ac_var+set}\" = set"; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17541 # include <limits.h>
17543 # include <assert.h>
17548 /* Override any gcc2 internal prototype to avoid an error. */
17553 /* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17562 char (*f) () = $ac_func;
17571 return f != $ac_func;
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578 (eval $ac_link) 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 eval "$as_ac_var=yes"
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 eval "$as_ac_var=no"
17605 rm -f conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17610 if test `eval echo '${'$as_ac_var'}'` = yes; then
17611 cat >>confdefs.h <<_ACEOF
17612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17620 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17621 if test $ol_enable_ipv6 = yes ; then
17622 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17623 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17624 { (exit 1); exit 1; }; }
17626 elif test $ol_enable_ipv6 != no ; then
17627 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17628 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17629 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17640 # include <netinet/in.h>
17641 # ifdef INET6_ADDRSTRLEN
17642 __has_inet6_addrstrlen__;
17646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17647 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17648 ol_cv_inet6_addrstrlen=yes
17650 ol_cv_inet6_addrstrlen=no
17655 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17656 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17659 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17660 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17661 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17672 #include <sys/types.h>
17673 #include <sys/socket.h>
17679 struct sockaddr_storage ss;
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1 >conftest.err
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ol_cv_struct_sockaddr_storage=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ol_cv_struct_sockaddr_storage=no
17714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17717 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17719 if test $ol_cv_inet6_addrstrlen = yes &&
17720 test $ol_cv_struct_sockaddr_storage = yes ; then
17722 elif test $ol_enable_ipv6 = yes &&
17723 test $ol_cv_inet6_addrstrlen = no ; then
17724 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17725 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17726 { (exit 1); exit 1; }; }
17727 elif test $ol_enable_ipv6 = yes &&
17728 test $ol_cv_struct_sockaddr_storage = no ; then
17729 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17730 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17731 { (exit 1); exit 1; }; }
17735 if test $ol_enable_local != no ; then
17737 for ac_header in sys/un.h
17739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741 echo "$as_me:$LINENO: checking for $ac_header" >&5
17742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17749 # Is the header compilable?
17750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 $ac_includes_default
17759 #include <$ac_header>
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_header_compiler=yes
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_header_compiler=no
17790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17792 echo "${ECHO_T}$ac_header_compiler" >&6
17794 # Is the header present?
17795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803 #include <$ac_header>
17805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } >/dev/null; then
17813 if test -s conftest.err; then
17814 ac_cpp_err=$ac_c_preproc_warn_flag
17815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17822 if test -z "$ac_cpp_err"; then
17823 ac_header_preproc=yes
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 ac_header_preproc=no
17830 rm -f conftest.err conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17832 echo "${ECHO_T}$ac_header_preproc" >&6
17834 # So? What about this header?
17835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17841 ac_header_preproc=yes
17844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17858 ## ------------------------------------------ ##
17859 ## Report this to the AC_PACKAGE_NAME lists. ##
17860 ## ------------------------------------------ ##
17863 sed "s/^/$as_me: WARNING: /" >&2
17866 echo "$as_me:$LINENO: checking for $ac_header" >&5
17867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 eval "$as_ac_Header=\$ac_header_preproc"
17873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17878 cat >>confdefs.h <<_ACEOF
17879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17887 if test $ol_enable_local = auto ; then
17888 ol_enable_local=$ac_cv_header_sys_un_h
17889 elif test $ac_cv_header_sys_un_h = no ; then
17890 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17891 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17892 { (exit 1); exit 1; }; }
17900 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17903 for ac_header in krb5.h
17905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17907 echo "$as_me:$LINENO: checking for $ac_header" >&5
17908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17915 # Is the header compilable?
17916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 #include <$ac_header>
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_header_compiler=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_header_compiler=no
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17958 echo "${ECHO_T}$ac_header_compiler" >&6
17960 # Is the header present?
17961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 #include <$ac_header>
17971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } >/dev/null; then
17979 if test -s conftest.err; then
17980 ac_cpp_err=$ac_c_preproc_warn_flag
17981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17988 if test -z "$ac_cpp_err"; then
17989 ac_header_preproc=yes
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 ac_header_preproc=no
17996 rm -f conftest.err conftest.$ac_ext
17997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17998 echo "${ECHO_T}$ac_header_preproc" >&6
18000 # So? What about this header?
18001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18007 ac_header_preproc=yes
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18024 ## ------------------------------------------ ##
18025 ## Report this to the AC_PACKAGE_NAME lists. ##
18026 ## ------------------------------------------ ##
18029 sed "s/^/$as_me: WARNING: /" >&2
18032 echo "$as_me:$LINENO: checking for $ac_header" >&5
18033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 eval "$as_ac_Header=\$ac_header_preproc"
18039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18044 cat >>confdefs.h <<_ACEOF
18045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18053 if test $ac_cv_header_krb5_h = yes ; then
18055 for ac_header in heim_err.h
18057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059 echo "$as_me:$LINENO: checking for $ac_header" >&5
18060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18067 # Is the header compilable?
18068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 $ac_includes_default
18077 #include <$ac_header>
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest.$ac_objext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 ac_header_compiler=yes
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_header_compiler=no
18108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18110 echo "${ECHO_T}$ac_header_compiler" >&6
18112 # Is the header present?
18113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <$ac_header>
18123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } >/dev/null; then
18131 if test -s conftest.err; then
18132 ac_cpp_err=$ac_c_preproc_warn_flag
18133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18140 if test -z "$ac_cpp_err"; then
18141 ac_header_preproc=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_header_preproc=no
18148 rm -f conftest.err conftest.$ac_ext
18149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18150 echo "${ECHO_T}$ac_header_preproc" >&6
18152 # So? What about this header?
18153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18159 ac_header_preproc=yes
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18176 ## ------------------------------------------ ##
18177 ## Report this to the AC_PACKAGE_NAME lists. ##
18178 ## ------------------------------------------ ##
18181 sed "s/^/$as_me: WARNING: /" >&2
18184 echo "$as_me:$LINENO: checking for $ac_header" >&5
18185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 eval "$as_ac_Header=\$ac_header_preproc"
18191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18196 cat >>confdefs.h <<_ACEOF
18197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18204 if test $ac_cv_header_heim_err_h = yes ; then
18210 if test $krb5_impl = mit; then
18211 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18212 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18213 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-lk5crypto $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_lib_k5crypto_main=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_lib_k5crypto_main=no
18263 rm -f conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18268 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18269 if test $ac_cv_lib_k5crypto_main = yes; then
18270 krb5crypto=k5crypto
18276 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18277 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18278 if test "${ac_cv_lib_krb5_main+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>conftest.er1
18303 grep -v '^ *+' conftest.er1 >conftest.err
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_krb5_main=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_lib_krb5_main=no
18328 rm -f conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18333 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18334 if test $ac_cv_lib_krb5_main = yes; then
18336 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18342 elif test $krb5_impl = heimdal; then
18343 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18344 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18345 if test "${ac_cv_lib_des_main+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 ac_check_lib_save_LIBS=$LIBS
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag"
18376 || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_des_main=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_des_main=no
18395 rm -f conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18399 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18400 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18401 if test $ac_cv_lib_des_main = yes; then
18408 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18409 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18410 if test "${ac_cv_lib_krb5_main+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 ac_check_lib_save_LIBS=$LIBS
18414 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>conftest.er1
18435 grep -v '^ *+' conftest.er1 >conftest.err
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } &&
18440 { ac_try='test -z "$ac_c_werror_flag"
18441 || test ! -s conftest.err'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_lib_krb5_main=yes
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_cv_lib_krb5_main=no
18460 rm -f conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_check_lib_save_LIBS
18464 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18465 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18466 if test $ac_cv_lib_krb5_main = yes; then
18468 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE_HEIMDAL_KERBEROS 1
18482 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18483 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18486 if test $have_krb5 = yes ; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_KRB5 1
18495 if test $ol_with_kerberos = k5only ; then
18496 ol_with_kerberos=found
18499 elif test $ol_with_kerberos != auto ; then
18500 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18501 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18502 { (exit 1); exit 1; }; }
18509 if test $ol_link_krb5 = yes &&
18510 { test $ol_with_kerberos = yes ||
18511 test $ol_with_kerberos = auto ||
18512 test $ol_with_kerberos = k425; }; then
18516 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18520 echo "$as_me:$LINENO: checking for $ac_header" >&5
18521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18528 # Is the header compilable?
18529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 $ac_includes_default
18538 #include <$ac_header>
18540 rm -f conftest.$ac_objext
18541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18542 (eval $ac_compile) 2>conftest.er1
18544 grep -v '^ *+' conftest.er1 >conftest.err
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag"
18550 || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest.$ac_objext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_header_compiler=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 ac_header_compiler=no
18569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18571 echo "${ECHO_T}$ac_header_compiler" >&6
18573 # Is the header present?
18574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include <$ac_header>
18584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18587 grep -v '^ *+' conftest.er1 >conftest.err
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } >/dev/null; then
18592 if test -s conftest.err; then
18593 ac_cpp_err=$ac_c_preproc_warn_flag
18594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18601 if test -z "$ac_cpp_err"; then
18602 ac_header_preproc=yes
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_header_preproc=no
18609 rm -f conftest.err conftest.$ac_ext
18610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18611 echo "${ECHO_T}$ac_header_preproc" >&6
18613 # So? What about this header?
18614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18620 ac_header_preproc=yes
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18637 ## ------------------------------------------ ##
18638 ## Report this to the AC_PACKAGE_NAME lists. ##
18639 ## ------------------------------------------ ##
18642 sed "s/^/$as_me: WARNING: /" >&2
18645 echo "$as_me:$LINENO: checking for $ac_header" >&5
18646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 eval "$as_ac_Header=\$ac_header_preproc"
18652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18657 cat >>confdefs.h <<_ACEOF
18658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18666 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18667 if test $krb5_impl = mit; then
18668 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18669 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18670 if test "${ac_cv_lib_krb4_main+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 ac_check_lib_save_LIBS=$LIBS
18674 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18693 (eval $ac_link) 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_lib_krb4_main=yes
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18718 ac_cv_lib_krb4_main=no
18720 rm -f conftest.err conftest.$ac_objext \
18721 conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18724 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18725 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18726 if test $ac_cv_lib_krb4_main = yes; then
18728 KRB4_LIBS="-lkrb4 -ldes425"
18734 elif test $krb5_impl = heimdal; then
18735 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18736 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18737 if test "${ac_cv_lib_krb4_main+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 ac_check_lib_save_LIBS=$LIBS
18741 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18760 (eval $ac_link) 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_c_werror_flag"
18768 || test ! -s conftest.err'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; } &&
18774 { ac_try='test -s conftest$ac_exeext'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_cv_lib_krb4_main=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_cv_lib_krb4_main=no
18787 rm -f conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18792 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18793 if test $ac_cv_lib_krb4_main = yes; then
18803 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18804 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18807 if test $have_k425 = yes ; then
18808 ol_with_kerberos=found
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE_KRB425 1
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_KRB4 1
18822 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18823 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18824 if test "${ol_cv_var_des_debug+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 #include <kerberosIV/krb.h>
18838 #include <kerberosIV/des.h>
18839 extern int des_debug;
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853 (eval $ac_link) 2>conftest.er1
18855 grep -v '^ *+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_c_werror_flag"
18861 || test ! -s conftest.err'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest$ac_exeext'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ol_cv_var_des_debug=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ol_cv_var_des_debug=no
18880 rm -f conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18885 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18886 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18888 if test $ol_cv_var_des_debug = yes ; then
18890 cat >>confdefs.h <<\_ACEOF
18891 #define HAVE_DES_DEBUG 1
18901 if test $ol_link_krb5 = yes ; then
18902 ol_with_kerberos=found
18905 case $ol_with_kerberos in yes | auto | k4 | kth)
18910 for ac_header in krb.h des.h krb-archaeology.h
18912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914 echo "$as_me:$LINENO: checking for $ac_header" >&5
18915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922 # Is the header compilable?
18923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 $ac_includes_default
18932 #include <$ac_header>
18934 rm -f conftest.$ac_objext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936 (eval $ac_compile) 2>conftest.er1
18938 grep -v '^ *+' conftest.er1 >conftest.err
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_header_compiler=yes
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_compiler=no
18963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18965 echo "${ECHO_T}$ac_header_compiler" >&6
18967 # Is the header present?
18968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #include <$ac_header>
18978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } >/dev/null; then
18986 if test -s conftest.err; then
18987 ac_cpp_err=$ac_c_preproc_warn_flag
18988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18995 if test -z "$ac_cpp_err"; then
18996 ac_header_preproc=yes
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ac_header_preproc=no
19003 rm -f conftest.err conftest.$ac_ext
19004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6
19007 # So? What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19014 ac_header_preproc=yes
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19031 ## ------------------------------------------ ##
19032 ## Report this to the AC_PACKAGE_NAME lists. ##
19033 ## ------------------------------------------ ##
19036 sed "s/^/$as_me: WARNING: /" >&2
19039 echo "$as_me:$LINENO: checking for $ac_header" >&5
19040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 eval "$as_ac_Header=\$ac_header_preproc"
19046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19060 if test $ac_cv_header_krb_h = yes ; then
19061 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19062 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19063 if test "${ac_cv_lib_krb_main+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 ac_check_lib_save_LIBS=$LIBS
19067 LIBS="-lkrb -ldes $LIBS"
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086 (eval $ac_link) 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag"
19094 || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_krb_main=yes
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_cv_lib_krb_main=no
19113 rm -f conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19117 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19118 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19119 if test $ac_cv_lib_krb_main = yes; then
19126 if test $have_k4 = yes ; then
19127 ol_with_kerberos=found
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_KRB4 1
19136 KRB4_LIBS="-lkrb -ldes"
19138 if test $ac_cv_header_krb_archaeology_h = yes ; then
19140 cat >>confdefs.h <<\_ACEOF
19141 #define HAVE_KTH_KERBEROS 1
19150 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19153 elif test $ol_enable_kbind = yes ; then
19154 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19155 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19156 { (exit 1); exit 1; }; }
19159 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_KERBEROS 1
19166 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19167 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19168 echo "$as_me: error: Kerberos detection failed" >&2;}
19169 { (exit 1); exit 1; }; }
19174 if test $ol_with_tls != no ; then
19176 for ac_header in openssl/ssl.h
19178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19180 echo "$as_me:$LINENO: checking for $ac_header" >&5
19181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188 # Is the header compilable?
19189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 $ac_includes_default
19198 #include <$ac_header>
19200 rm -f conftest.$ac_objext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202 (eval $ac_compile) 2>conftest.er1
19204 grep -v '^ *+' conftest.er1 >conftest.err
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -z "$ac_c_werror_flag"
19210 || test ! -s conftest.err'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_header_compiler=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_header_compiler=no
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19231 echo "${ECHO_T}$ac_header_compiler" >&6
19233 # Is the header present?
19234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <$ac_header>
19244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } >/dev/null; then
19252 if test -s conftest.err; then
19253 ac_cpp_err=$ac_c_preproc_warn_flag
19254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19261 if test -z "$ac_cpp_err"; then
19262 ac_header_preproc=yes
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_header_preproc=no
19269 rm -f conftest.err conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271 echo "${ECHO_T}$ac_header_preproc" >&6
19273 # So? What about this header?
19274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280 ac_header_preproc=yes
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19297 ## ------------------------------------------ ##
19298 ## Report this to the AC_PACKAGE_NAME lists. ##
19299 ## ------------------------------------------ ##
19302 sed "s/^/$as_me: WARNING: /" >&2
19305 echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 eval "$as_ac_Header=\$ac_header_preproc"
19312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19326 if test $ac_cv_header_openssl_ssl_h = yes ; then
19327 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19328 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19329 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lssl -lcrypto $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any gcc2 internal prototype to avoid an error. */
19345 /* We use char because int might match the return type of a gcc2
19346 builtin and then its argument prototype would still apply. */
19347 char SSL_library_init ();
19351 SSL_library_init ();
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest$ac_exeext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_lib_ssl_SSL_library_init=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_lib_ssl_SSL_library_init=no
19385 rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19389 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19399 if test $have_openssl = no ; then
19400 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19414 /* Override any gcc2 internal prototype to avoid an error. */
19418 /* We use char because int might match the return type of a gcc2
19419 builtin and then its argument prototype would still apply. */
19420 char ssl3_accept ();
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431 (eval $ac_link) 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag"
19439 || test ! -s conftest.err'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest$ac_exeext'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_lib_ssl_ssl3_accept=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_cv_lib_ssl_ssl3_accept=no
19458 rm -f conftest.err conftest.$ac_objext \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19463 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19464 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19473 if test $have_openssl = yes ; then
19478 cat >>confdefs.h <<\_ACEOF
19479 #define HAVE_OPENSSL 1
19483 if test $need_rsaref = yes; then
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_RSAREF 1
19490 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19492 TLS_LIBS="-lssl -lcrypto"
19495 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19496 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19497 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19508 #ifdef HAVE_OPENSSL_SSL_H
19509 #include <openssl/ssl.h>
19514 /* Require 0.9.7d+ */
19515 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19516 char *__ssl_compat = "0.9.7d";
19520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19521 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19522 ol_cv_ssl_crl_compat=yes
19524 ol_cv_ssl_crl_compat=no
19529 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19530 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19532 if test $ol_cv_ssl_crl_compat = no ; then
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_OPENSSL_CRL 1
19544 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19545 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19549 if test $ol_link_tls = yes ; then
19551 cat >>confdefs.h <<\_ACEOF
19557 elif test $ol_with_tls = auto ; then
19558 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19559 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19560 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19561 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19563 elif test $ol_with_tls != no ; then
19564 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19565 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19566 { (exit 1); exit 1; }; }
19569 if test $ol_enable_lmpasswd != no; then
19570 if test $ol_link_tls != yes ; then
19571 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19572 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19573 { (exit 1); exit 1; }; }
19577 cat >>confdefs.h <<\_ACEOF
19578 #define SLAPD_LMHASH 1
19585 case $ol_with_threads in auto | yes | nt)
19588 echo "$as_me:$LINENO: checking for _beginthread" >&5
19589 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19590 if test "${ac_cv_func__beginthread+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19601 #define _beginthread innocuous__beginthread
19603 /* System header to define __stub macros and hopefully few prototypes,
19604 which can conflict with char _beginthread (); below.
19605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19606 <limits.h> exists even on freestanding compilers. */
19609 # include <limits.h>
19611 # include <assert.h>
19614 #undef _beginthread
19616 /* Override any gcc2 internal prototype to avoid an error. */
19621 /* We use char because int might match the return type of a gcc2
19622 builtin and then its argument prototype would still apply. */
19623 char _beginthread ();
19624 /* The GNU C library defines this for functions which it implements
19625 to always fail with ENOSYS. Some functions are actually named
19626 something starting with __ and the normal name is an alias. */
19627 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19630 char (*f) () = _beginthread;
19639 return f != _beginthread;
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>conftest.er1
19648 grep -v '^ *+' conftest.er1 >conftest.err
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag"
19654 || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest$ac_exeext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_func__beginthread=yes
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_func__beginthread=no
19673 rm -f conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19677 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19680 if test $ac_cv_func__beginthread = yes ; then
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_NT_THREADS 1
19686 ol_cv_nt_threads=yes
19690 if test "$ol_cv_nt_threads" = yes ; then
19692 ol_with_threads=found
19693 ol_with_yielding_select=yes
19696 cat >>confdefs.h <<\_ACEOF
19697 #define HAVE_NT_SERVICE_MANAGER 1
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE_NT_EVENT_LOG 1
19707 if test $ol_with_threads = nt ; then
19708 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19709 echo "$as_me: error: could not locate NT Threads" >&2;}
19710 { (exit 1); exit 1; }; }
19715 case $ol_with_threads in auto | yes | posix)
19718 for ac_header in pthread.h
19720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo "$as_me:$LINENO: checking for $ac_header" >&5
19723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 # Is the header compilable?
19731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 $ac_includes_default
19740 #include <$ac_header>
19742 rm -f conftest.$ac_objext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>conftest.er1
19746 grep -v '^ *+' conftest.er1 >conftest.err
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } &&
19751 { ac_try='test -z "$ac_c_werror_flag"
19752 || test ! -s conftest.err'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; } &&
19758 { ac_try='test -s conftest.$ac_objext'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19764 ac_header_compiler=yes
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 ac_header_compiler=no
19771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773 echo "${ECHO_T}$ac_header_compiler" >&6
19775 # Is the header present?
19776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19778 cat >conftest.$ac_ext <<_ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 #include <$ac_header>
19786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } >/dev/null; then
19794 if test -s conftest.err; then
19795 ac_cpp_err=$ac_c_preproc_warn_flag
19796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19803 if test -z "$ac_cpp_err"; then
19804 ac_header_preproc=yes
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 ac_header_preproc=no
19811 rm -f conftest.err conftest.$ac_ext
19812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813 echo "${ECHO_T}$ac_header_preproc" >&6
19815 # So? What about this header?
19816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19822 ac_header_preproc=yes
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19839 ## ------------------------------------------ ##
19840 ## Report this to the AC_PACKAGE_NAME lists. ##
19841 ## ------------------------------------------ ##
19844 sed "s/^/$as_me: WARNING: /" >&2
19847 echo "$as_me:$LINENO: checking for $ac_header" >&5
19848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 eval "$as_ac_Header=\$ac_header_preproc"
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19868 if test $ac_cv_header_pthread_h = yes ; then
19869 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19870 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19871 if test "${ol_cv_pthread_version+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19882 # include <pthread.h>
19888 int i = PTHREAD_CREATE_JOINABLE;
19894 rm -f conftest.$ac_objext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19896 (eval $ac_compile) 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -z "$ac_c_werror_flag"
19904 || test ! -s conftest.err'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <pthread.h>
19926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19927 $EGREP "pthread_detach" >/dev/null 2>&1; then
19928 ol_cv_pthread_version=10
19930 ol_cv_pthread_version=8
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19939 cat >conftest.$ac_ext <<_ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19946 # include <pthread.h>
19947 # ifdef PTHREAD_CREATE_UNDETACHED
19952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953 $EGREP "draft7" >/dev/null 2>&1; then
19954 ol_cv_pthread_version=7
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <pthread.h>
19966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19967 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19968 ol_cv_pthread_version=6
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 # include <pthread.h>
19979 #ifdef PTHREAD_MUTEX_INITIALIZER
19984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19985 $EGREP "draft5" >/dev/null 2>&1; then
19986 ol_cv_pthread_version=5
19988 ol_cv_pthread_version=4
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20002 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20003 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20006 if test $ol_cv_pthread_version != 0 ; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_PTHREADS $ol_cv_pthread_version
20013 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20014 echo "$as_me: error: unknown pthread version" >&2;}
20015 { (exit 1); exit 1; }; }
20018 # consider threads found
20019 ol_with_threads=found
20022 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20023 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20024 if test "${ol_cv_header_linux_threads+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #include <pthread.h>
20035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20036 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20037 ol_cv_header_linux_threads=yes
20039 ol_cv_header_linux_threads=no
20045 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20046 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20047 if test $ol_cv_header_linux_threads = yes; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_LINUX_THREADS 1
20056 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20057 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20058 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 #include <pthread.h>
20068 #ifdef _POSIX_THREAD_IS_GNU_PTH
20073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20074 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20075 ol_cv_header_gnu_pth_pthread_h=yes
20077 ol_cv_header_gnu_pth_pthread_h=no
20083 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20084 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20087 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20089 for ac_header in sched.h
20091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20093 echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20101 # Is the header compilable?
20102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 $ac_includes_default
20111 #include <$ac_header>
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20117 grep -v '^ *+' conftest.er1 >conftest.err
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag"
20123 || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_header_compiler=yes
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_compiler=no
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <$ac_header>
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev/null; then
20165 if test -s conftest.err; then
20166 ac_cpp_err=$ac_c_preproc_warn_flag
20167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20174 if test -z "$ac_cpp_err"; then
20175 ac_header_preproc=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_preproc=no
20182 rm -f conftest.err conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20186 # So? What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193 ac_header_preproc=yes
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20210 ## ------------------------------------------ ##
20211 ## Report this to the AC_PACKAGE_NAME lists. ##
20212 ## ------------------------------------------ ##
20215 sed "s/^/$as_me: WARNING: /" >&2
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230 cat >>confdefs.h <<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20241 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20242 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20243 if test "${ol_cv_pthread_create+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 if test "$cross_compiling" = yes; then
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20255 /* pthread test headers */
20256 #include <pthread.h>
20257 #if HAVE_PTHREADS < 7
20261 #define NULL (void*)0
20264 static void *task(p)
20267 return (void *) (p == NULL);
20274 /* pthread test function */
20275 #ifndef PTHREAD_CREATE_DETACHED
20276 #define PTHREAD_CREATE_DETACHED 1
20280 int detach = PTHREAD_CREATE_DETACHED;
20282 #if HAVE_PTHREADS > 4
20283 /* Final pthreads */
20284 pthread_attr_t attr;
20286 status = pthread_attr_init(&attr);
20287 if( status ) return status;
20289 #if HAVE_PTHREADS < 7
20290 status = pthread_attr_setdetachstate(&attr, &detach);
20291 if( status < 0 ) status = errno;
20293 status = pthread_attr_setdetachstate(&attr, detach);
20295 if( status ) return status;
20296 status = pthread_create( &t, &attr, task, NULL );
20297 #if HAVE_PTHREADS < 7
20298 if( status < 0 ) status = errno;
20300 if( status ) return status;
20302 /* Draft 4 pthreads */
20303 status = pthread_create( &t, pthread_attr_default, task, NULL );
20304 if( status ) return errno;
20306 /* give thread a chance to complete */
20307 /* it should remain joinable and hence detachable */
20310 status = pthread_detach( &t );
20311 if( status ) return errno;
20314 #ifdef HAVE_LINUX_THREADS
20315 pthread_kill_other_threads_np();
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326 (eval $ac_link) 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -z "$ac_c_werror_flag"
20334 || test ! -s conftest.err'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; } &&
20340 { ac_try='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ol_cv_pthread_create=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ol_cv_pthread_create=no
20353 rm -f conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20363 /* pthread test headers */
20364 #include <pthread.h>
20365 #if HAVE_PTHREADS < 7
20369 #define NULL (void*)0
20372 static void *task(p)
20375 return (void *) (p == NULL);
20379 int main(argc, argv)
20384 /* pthread test function */
20385 #ifndef PTHREAD_CREATE_DETACHED
20386 #define PTHREAD_CREATE_DETACHED 1
20390 int detach = PTHREAD_CREATE_DETACHED;
20392 #if HAVE_PTHREADS > 4
20393 /* Final pthreads */
20394 pthread_attr_t attr;
20396 status = pthread_attr_init(&attr);
20397 if( status ) return status;
20399 #if HAVE_PTHREADS < 7
20400 status = pthread_attr_setdetachstate(&attr, &detach);
20401 if( status < 0 ) status = errno;
20403 status = pthread_attr_setdetachstate(&attr, detach);
20405 if( status ) return status;
20406 status = pthread_create( &t, &attr, task, NULL );
20407 #if HAVE_PTHREADS < 7
20408 if( status < 0 ) status = errno;
20410 if( status ) return status;
20412 /* Draft 4 pthreads */
20413 status = pthread_create( &t, pthread_attr_default, task, NULL );
20414 if( status ) return errno;
20416 /* give thread a chance to complete */
20417 /* it should remain joinable and hence detachable */
20420 status = pthread_detach( &t );
20421 if( status ) return errno;
20424 #ifdef HAVE_LINUX_THREADS
20425 pthread_kill_other_threads_np();
20433 rm -f conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 ol_cv_pthread_create=yes
20446 echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ( exit $ac_status )
20451 ol_cv_pthread_create=no
20453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20457 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20459 if test $ol_cv_pthread_create != no ; then
20460 ol_link_threads=posix
20461 ol_link_pthreads=""
20464 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20465 if test "$ol_link_threads" = no ; then
20467 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20468 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20469 if test "${ol_cv_pthread_kthread+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 LIBS="-kthread $LIBS"
20477 if test "$cross_compiling" = yes; then
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20485 /* pthread test headers */
20486 #include <pthread.h>
20487 #if HAVE_PTHREADS < 7
20491 #define NULL (void*)0
20494 static void *task(p)
20497 return (void *) (p == NULL);
20504 /* pthread test function */
20505 #ifndef PTHREAD_CREATE_DETACHED
20506 #define PTHREAD_CREATE_DETACHED 1
20510 int detach = PTHREAD_CREATE_DETACHED;
20512 #if HAVE_PTHREADS > 4
20513 /* Final pthreads */
20514 pthread_attr_t attr;
20516 status = pthread_attr_init(&attr);
20517 if( status ) return status;
20519 #if HAVE_PTHREADS < 7
20520 status = pthread_attr_setdetachstate(&attr, &detach);
20521 if( status < 0 ) status = errno;
20523 status = pthread_attr_setdetachstate(&attr, detach);
20525 if( status ) return status;
20526 status = pthread_create( &t, &attr, task, NULL );
20527 #if HAVE_PTHREADS < 7
20528 if( status < 0 ) status = errno;
20530 if( status ) return status;
20532 /* Draft 4 pthreads */
20533 status = pthread_create( &t, pthread_attr_default, task, NULL );
20534 if( status ) return errno;
20536 /* give thread a chance to complete */
20537 /* it should remain joinable and hence detachable */
20540 status = pthread_detach( &t );
20541 if( status ) return errno;
20544 #ifdef HAVE_LINUX_THREADS
20545 pthread_kill_other_threads_np();
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20556 (eval $ac_link) 2>conftest.er1
20558 grep -v '^ *+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -z "$ac_c_werror_flag"
20564 || test ! -s conftest.err'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest$ac_exeext'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; }; then
20576 ol_cv_pthread_kthread=yes
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 ol_cv_pthread_kthread=no
20583 rm -f conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 /* pthread test headers */
20594 #include <pthread.h>
20595 #if HAVE_PTHREADS < 7
20599 #define NULL (void*)0
20602 static void *task(p)
20605 return (void *) (p == NULL);
20609 int main(argc, argv)
20614 /* pthread test function */
20615 #ifndef PTHREAD_CREATE_DETACHED
20616 #define PTHREAD_CREATE_DETACHED 1
20620 int detach = PTHREAD_CREATE_DETACHED;
20622 #if HAVE_PTHREADS > 4
20623 /* Final pthreads */
20624 pthread_attr_t attr;
20626 status = pthread_attr_init(&attr);
20627 if( status ) return status;
20629 #if HAVE_PTHREADS < 7
20630 status = pthread_attr_setdetachstate(&attr, &detach);
20631 if( status < 0 ) status = errno;
20633 status = pthread_attr_setdetachstate(&attr, detach);
20635 if( status ) return status;
20636 status = pthread_create( &t, &attr, task, NULL );
20637 #if HAVE_PTHREADS < 7
20638 if( status < 0 ) status = errno;
20640 if( status ) return status;
20642 /* Draft 4 pthreads */
20643 status = pthread_create( &t, pthread_attr_default, task, NULL );
20644 if( status ) return errno;
20646 /* give thread a chance to complete */
20647 /* it should remain joinable and hence detachable */
20650 status = pthread_detach( &t );
20651 if( status ) return errno;
20654 #ifdef HAVE_LINUX_THREADS
20655 pthread_kill_other_threads_np();
20663 rm -f conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ol_cv_pthread_kthread=yes
20676 echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ( exit $ac_status )
20681 ol_cv_pthread_kthread=no
20683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20690 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20691 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20693 if test $ol_cv_pthread_kthread = yes ; then
20694 ol_link_pthreads="-kthread"
20695 ol_link_threads=posix
20699 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20700 if test "$ol_link_threads" = no ; then
20702 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20703 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20704 if test "${ol_cv_pthread_pthread+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 LIBS="-pthread $LIBS"
20712 if test "$cross_compiling" = yes; then
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20720 /* pthread test headers */
20721 #include <pthread.h>
20722 #if HAVE_PTHREADS < 7
20726 #define NULL (void*)0
20729 static void *task(p)
20732 return (void *) (p == NULL);
20739 /* pthread test function */
20740 #ifndef PTHREAD_CREATE_DETACHED
20741 #define PTHREAD_CREATE_DETACHED 1
20745 int detach = PTHREAD_CREATE_DETACHED;
20747 #if HAVE_PTHREADS > 4
20748 /* Final pthreads */
20749 pthread_attr_t attr;
20751 status = pthread_attr_init(&attr);
20752 if( status ) return status;
20754 #if HAVE_PTHREADS < 7
20755 status = pthread_attr_setdetachstate(&attr, &detach);
20756 if( status < 0 ) status = errno;
20758 status = pthread_attr_setdetachstate(&attr, detach);
20760 if( status ) return status;
20761 status = pthread_create( &t, &attr, task, NULL );
20762 #if HAVE_PTHREADS < 7
20763 if( status < 0 ) status = errno;
20765 if( status ) return status;
20767 /* Draft 4 pthreads */
20768 status = pthread_create( &t, pthread_attr_default, task, NULL );
20769 if( status ) return errno;
20771 /* give thread a chance to complete */
20772 /* it should remain joinable and hence detachable */
20775 status = pthread_detach( &t );
20776 if( status ) return errno;
20779 #ifdef HAVE_LINUX_THREADS
20780 pthread_kill_other_threads_np();
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20791 (eval $ac_link) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ol_cv_pthread_pthread=yes
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ol_cv_pthread_pthread=no
20818 rm -f conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 /* pthread test headers */
20829 #include <pthread.h>
20830 #if HAVE_PTHREADS < 7
20834 #define NULL (void*)0
20837 static void *task(p)
20840 return (void *) (p == NULL);
20844 int main(argc, argv)
20849 /* pthread test function */
20850 #ifndef PTHREAD_CREATE_DETACHED
20851 #define PTHREAD_CREATE_DETACHED 1
20855 int detach = PTHREAD_CREATE_DETACHED;
20857 #if HAVE_PTHREADS > 4
20858 /* Final pthreads */
20859 pthread_attr_t attr;
20861 status = pthread_attr_init(&attr);
20862 if( status ) return status;
20864 #if HAVE_PTHREADS < 7
20865 status = pthread_attr_setdetachstate(&attr, &detach);
20866 if( status < 0 ) status = errno;
20868 status = pthread_attr_setdetachstate(&attr, detach);
20870 if( status ) return status;
20871 status = pthread_create( &t, &attr, task, NULL );
20872 #if HAVE_PTHREADS < 7
20873 if( status < 0 ) status = errno;
20875 if( status ) return status;
20877 /* Draft 4 pthreads */
20878 status = pthread_create( &t, pthread_attr_default, task, NULL );
20879 if( status ) return errno;
20881 /* give thread a chance to complete */
20882 /* it should remain joinable and hence detachable */
20885 status = pthread_detach( &t );
20886 if( status ) return errno;
20889 #ifdef HAVE_LINUX_THREADS
20890 pthread_kill_other_threads_np();
20898 rm -f conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900 (eval $ac_link) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ol_cv_pthread_pthread=yes
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ( exit $ac_status )
20916 ol_cv_pthread_pthread=no
20918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20925 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20926 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20928 if test $ol_cv_pthread_pthread = yes ; then
20929 ol_link_pthreads="-pthread"
20930 ol_link_threads=posix
20934 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20935 if test "$ol_link_threads" = no ; then
20937 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20938 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20939 if test "${ol_cv_pthread_pthreads+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 LIBS="-pthreads $LIBS"
20947 if test "$cross_compiling" = yes; then
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20955 /* pthread test headers */
20956 #include <pthread.h>
20957 #if HAVE_PTHREADS < 7
20961 #define NULL (void*)0
20964 static void *task(p)
20967 return (void *) (p == NULL);
20974 /* pthread test function */
20975 #ifndef PTHREAD_CREATE_DETACHED
20976 #define PTHREAD_CREATE_DETACHED 1
20980 int detach = PTHREAD_CREATE_DETACHED;
20982 #if HAVE_PTHREADS > 4
20983 /* Final pthreads */
20984 pthread_attr_t attr;
20986 status = pthread_attr_init(&attr);
20987 if( status ) return status;
20989 #if HAVE_PTHREADS < 7
20990 status = pthread_attr_setdetachstate(&attr, &detach);
20991 if( status < 0 ) status = errno;
20993 status = pthread_attr_setdetachstate(&attr, detach);
20995 if( status ) return status;
20996 status = pthread_create( &t, &attr, task, NULL );
20997 #if HAVE_PTHREADS < 7
20998 if( status < 0 ) status = errno;
21000 if( status ) return status;
21002 /* Draft 4 pthreads */
21003 status = pthread_create( &t, pthread_attr_default, task, NULL );
21004 if( status ) return errno;
21006 /* give thread a chance to complete */
21007 /* it should remain joinable and hence detachable */
21010 status = pthread_detach( &t );
21011 if( status ) return errno;
21014 #ifdef HAVE_LINUX_THREADS
21015 pthread_kill_other_threads_np();
21024 rm -f conftest.$ac_objext conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>conftest.er1
21028 grep -v '^ *+' conftest.er1 >conftest.err
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
21033 { ac_try='test -z "$ac_c_werror_flag"
21034 || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest$ac_exeext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ol_cv_pthread_pthreads=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 ol_cv_pthread_pthreads=no
21053 rm -f conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21063 /* pthread test headers */
21064 #include <pthread.h>
21065 #if HAVE_PTHREADS < 7
21069 #define NULL (void*)0
21072 static void *task(p)
21075 return (void *) (p == NULL);
21079 int main(argc, argv)
21084 /* pthread test function */
21085 #ifndef PTHREAD_CREATE_DETACHED
21086 #define PTHREAD_CREATE_DETACHED 1
21090 int detach = PTHREAD_CREATE_DETACHED;
21092 #if HAVE_PTHREADS > 4
21093 /* Final pthreads */
21094 pthread_attr_t attr;
21096 status = pthread_attr_init(&attr);
21097 if( status ) return status;
21099 #if HAVE_PTHREADS < 7
21100 status = pthread_attr_setdetachstate(&attr, &detach);
21101 if( status < 0 ) status = errno;
21103 status = pthread_attr_setdetachstate(&attr, detach);
21105 if( status ) return status;
21106 status = pthread_create( &t, &attr, task, NULL );
21107 #if HAVE_PTHREADS < 7
21108 if( status < 0 ) status = errno;
21110 if( status ) return status;
21112 /* Draft 4 pthreads */
21113 status = pthread_create( &t, pthread_attr_default, task, NULL );
21114 if( status ) return errno;
21116 /* give thread a chance to complete */
21117 /* it should remain joinable and hence detachable */
21120 status = pthread_detach( &t );
21121 if( status ) return errno;
21124 #ifdef HAVE_LINUX_THREADS
21125 pthread_kill_other_threads_np();
21133 rm -f conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 ol_cv_pthread_pthreads=yes
21146 echo "$as_me: program exited with status $ac_status" >&5
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ( exit $ac_status )
21151 ol_cv_pthread_pthreads=no
21153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21160 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21161 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21163 if test $ol_cv_pthread_pthreads = yes ; then
21164 ol_link_pthreads="-pthreads"
21165 ol_link_threads=posix
21169 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21170 if test "$ol_link_threads" = no ; then
21172 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21173 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21174 if test "${ol_cv_pthread_mthreads+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 LIBS="-mthreads $LIBS"
21182 if test "$cross_compiling" = yes; then
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21190 /* pthread test headers */
21191 #include <pthread.h>
21192 #if HAVE_PTHREADS < 7
21196 #define NULL (void*)0
21199 static void *task(p)
21202 return (void *) (p == NULL);
21209 /* pthread test function */
21210 #ifndef PTHREAD_CREATE_DETACHED
21211 #define PTHREAD_CREATE_DETACHED 1
21215 int detach = PTHREAD_CREATE_DETACHED;
21217 #if HAVE_PTHREADS > 4
21218 /* Final pthreads */
21219 pthread_attr_t attr;
21221 status = pthread_attr_init(&attr);
21222 if( status ) return status;
21224 #if HAVE_PTHREADS < 7
21225 status = pthread_attr_setdetachstate(&attr, &detach);
21226 if( status < 0 ) status = errno;
21228 status = pthread_attr_setdetachstate(&attr, detach);
21230 if( status ) return status;
21231 status = pthread_create( &t, &attr, task, NULL );
21232 #if HAVE_PTHREADS < 7
21233 if( status < 0 ) status = errno;
21235 if( status ) return status;
21237 /* Draft 4 pthreads */
21238 status = pthread_create( &t, pthread_attr_default, task, NULL );
21239 if( status ) return errno;
21241 /* give thread a chance to complete */
21242 /* it should remain joinable and hence detachable */
21245 status = pthread_detach( &t );
21246 if( status ) return errno;
21249 #ifdef HAVE_LINUX_THREADS
21250 pthread_kill_other_threads_np();
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261 (eval $ac_link) 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ol_cv_pthread_mthreads=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ol_cv_pthread_mthreads=no
21288 rm -f conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21298 /* pthread test headers */
21299 #include <pthread.h>
21300 #if HAVE_PTHREADS < 7
21304 #define NULL (void*)0
21307 static void *task(p)
21310 return (void *) (p == NULL);
21314 int main(argc, argv)
21319 /* pthread test function */
21320 #ifndef PTHREAD_CREATE_DETACHED
21321 #define PTHREAD_CREATE_DETACHED 1
21325 int detach = PTHREAD_CREATE_DETACHED;
21327 #if HAVE_PTHREADS > 4
21328 /* Final pthreads */
21329 pthread_attr_t attr;
21331 status = pthread_attr_init(&attr);
21332 if( status ) return status;
21334 #if HAVE_PTHREADS < 7
21335 status = pthread_attr_setdetachstate(&attr, &detach);
21336 if( status < 0 ) status = errno;
21338 status = pthread_attr_setdetachstate(&attr, detach);
21340 if( status ) return status;
21341 status = pthread_create( &t, &attr, task, NULL );
21342 #if HAVE_PTHREADS < 7
21343 if( status < 0 ) status = errno;
21345 if( status ) return status;
21347 /* Draft 4 pthreads */
21348 status = pthread_create( &t, pthread_attr_default, task, NULL );
21349 if( status ) return errno;
21351 /* give thread a chance to complete */
21352 /* it should remain joinable and hence detachable */
21355 status = pthread_detach( &t );
21356 if( status ) return errno;
21359 #ifdef HAVE_LINUX_THREADS
21360 pthread_kill_other_threads_np();
21368 rm -f conftest$ac_exeext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21370 (eval $ac_link) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ol_cv_pthread_mthreads=yes
21381 echo "$as_me: program exited with status $ac_status" >&5
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ( exit $ac_status )
21386 ol_cv_pthread_mthreads=no
21388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21395 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21398 if test $ol_cv_pthread_mthreads = yes ; then
21399 ol_link_pthreads="-mthreads"
21400 ol_link_threads=posix
21404 # Pthread try link: -thread (ol_cv_pthread_thread)
21405 if test "$ol_link_threads" = no ; then
21407 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21408 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21409 if test "${ol_cv_pthread_thread+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 LIBS="-thread $LIBS"
21417 if test "$cross_compiling" = yes; then
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21431 #define NULL (void*)0
21434 static void *task(p)
21437 return (void *) (p == NULL);
21444 /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21450 int detach = PTHREAD_CREATE_DETACHED;
21452 #if HAVE_PTHREADS > 4
21453 /* Final pthreads */
21454 pthread_attr_t attr;
21456 status = pthread_attr_init(&attr);
21457 if( status ) return status;
21459 #if HAVE_PTHREADS < 7
21460 status = pthread_attr_setdetachstate(&attr, &detach);
21461 if( status < 0 ) status = errno;
21463 status = pthread_attr_setdetachstate(&attr, detach);
21465 if( status ) return status;
21466 status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468 if( status < 0 ) status = errno;
21470 if( status ) return status;
21472 /* Draft 4 pthreads */
21473 status = pthread_create( &t, pthread_attr_default, task, NULL );
21474 if( status ) return errno;
21476 /* give thread a chance to complete */
21477 /* it should remain joinable and hence detachable */
21480 status = pthread_detach( &t );
21481 if( status ) return errno;
21484 #ifdef HAVE_LINUX_THREADS
21485 pthread_kill_other_threads_np();
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496 (eval $ac_link) 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } &&
21503 { ac_try='test -z "$ac_c_werror_flag"
21504 || test ! -s conftest.err'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ol_cv_pthread_thread=yes
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ol_cv_pthread_thread=no
21523 rm -f conftest.err conftest.$ac_objext \
21524 conftest$ac_exeext conftest.$ac_ext
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21533 /* pthread test headers */
21534 #include <pthread.h>
21535 #if HAVE_PTHREADS < 7
21539 #define NULL (void*)0
21542 static void *task(p)
21545 return (void *) (p == NULL);
21549 int main(argc, argv)
21554 /* pthread test function */
21555 #ifndef PTHREAD_CREATE_DETACHED
21556 #define PTHREAD_CREATE_DETACHED 1
21560 int detach = PTHREAD_CREATE_DETACHED;
21562 #if HAVE_PTHREADS > 4
21563 /* Final pthreads */
21564 pthread_attr_t attr;
21566 status = pthread_attr_init(&attr);
21567 if( status ) return status;
21569 #if HAVE_PTHREADS < 7
21570 status = pthread_attr_setdetachstate(&attr, &detach);
21571 if( status < 0 ) status = errno;
21573 status = pthread_attr_setdetachstate(&attr, detach);
21575 if( status ) return status;
21576 status = pthread_create( &t, &attr, task, NULL );
21577 #if HAVE_PTHREADS < 7
21578 if( status < 0 ) status = errno;
21580 if( status ) return status;
21582 /* Draft 4 pthreads */
21583 status = pthread_create( &t, pthread_attr_default, task, NULL );
21584 if( status ) return errno;
21586 /* give thread a chance to complete */
21587 /* it should remain joinable and hence detachable */
21590 status = pthread_detach( &t );
21591 if( status ) return errno;
21594 #ifdef HAVE_LINUX_THREADS
21595 pthread_kill_other_threads_np();
21603 rm -f conftest$ac_exeext
21604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21605 (eval $ac_link) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ol_cv_pthread_thread=yes
21616 echo "$as_me: program exited with status $ac_status" >&5
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ( exit $ac_status )
21621 ol_cv_pthread_thread=no
21623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21630 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21631 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21633 if test $ol_cv_pthread_thread = yes ; then
21634 ol_link_pthreads="-thread"
21635 ol_link_threads=posix
21640 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21641 if test "$ol_link_threads" = no ; then
21642 # try -lpthread -lmach -lexc -lc_r
21643 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21644 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21645 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21653 if test "$cross_compiling" = yes; then
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21661 /* pthread test headers */
21662 #include <pthread.h>
21663 #if HAVE_PTHREADS < 7
21667 #define NULL (void*)0
21670 static void *task(p)
21673 return (void *) (p == NULL);
21680 /* pthread test function */
21681 #ifndef PTHREAD_CREATE_DETACHED
21682 #define PTHREAD_CREATE_DETACHED 1
21686 int detach = PTHREAD_CREATE_DETACHED;
21688 #if HAVE_PTHREADS > 4
21689 /* Final pthreads */
21690 pthread_attr_t attr;
21692 status = pthread_attr_init(&attr);
21693 if( status ) return status;
21695 #if HAVE_PTHREADS < 7
21696 status = pthread_attr_setdetachstate(&attr, &detach);
21697 if( status < 0 ) status = errno;
21699 status = pthread_attr_setdetachstate(&attr, detach);
21701 if( status ) return status;
21702 status = pthread_create( &t, &attr, task, NULL );
21703 #if HAVE_PTHREADS < 7
21704 if( status < 0 ) status = errno;
21706 if( status ) return status;
21708 /* Draft 4 pthreads */
21709 status = pthread_create( &t, pthread_attr_default, task, NULL );
21710 if( status ) return errno;
21712 /* give thread a chance to complete */
21713 /* it should remain joinable and hence detachable */
21716 status = pthread_detach( &t );
21717 if( status ) return errno;
21720 #ifdef HAVE_LINUX_THREADS
21721 pthread_kill_other_threads_np();
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21732 (eval $ac_link) 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_c_werror_flag"
21740 || test ! -s conftest.err'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest$ac_exeext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21759 rm -f conftest.err conftest.$ac_objext \
21760 conftest$ac_exeext conftest.$ac_ext
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21769 /* pthread test headers */
21770 #include <pthread.h>
21771 #if HAVE_PTHREADS < 7
21775 #define NULL (void*)0
21778 static void *task(p)
21781 return (void *) (p == NULL);
21785 int main(argc, argv)
21790 /* pthread test function */
21791 #ifndef PTHREAD_CREATE_DETACHED
21792 #define PTHREAD_CREATE_DETACHED 1
21796 int detach = PTHREAD_CREATE_DETACHED;
21798 #if HAVE_PTHREADS > 4
21799 /* Final pthreads */
21800 pthread_attr_t attr;
21802 status = pthread_attr_init(&attr);
21803 if( status ) return status;
21805 #if HAVE_PTHREADS < 7
21806 status = pthread_attr_setdetachstate(&attr, &detach);
21807 if( status < 0 ) status = errno;
21809 status = pthread_attr_setdetachstate(&attr, detach);
21811 if( status ) return status;
21812 status = pthread_create( &t, &attr, task, NULL );
21813 #if HAVE_PTHREADS < 7
21814 if( status < 0 ) status = errno;
21816 if( status ) return status;
21818 /* Draft 4 pthreads */
21819 status = pthread_create( &t, pthread_attr_default, task, NULL );
21820 if( status ) return errno;
21822 /* give thread a chance to complete */
21823 /* it should remain joinable and hence detachable */
21826 status = pthread_detach( &t );
21827 if( status ) return errno;
21830 #ifdef HAVE_LINUX_THREADS
21831 pthread_kill_other_threads_np();
21839 rm -f conftest$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841 (eval $ac_link) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ( exit $ac_status )
21857 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21867 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21869 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21870 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21871 ol_link_threads=posix
21875 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21876 if test "$ol_link_threads" = no ; then
21877 # try -lpthread -lmach -lexc
21878 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21879 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21880 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 LIBS="-lpthread -lmach -lexc $LIBS"
21888 if test "$cross_compiling" = yes; then
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21896 /* pthread test headers */
21897 #include <pthread.h>
21898 #if HAVE_PTHREADS < 7
21902 #define NULL (void*)0
21905 static void *task(p)
21908 return (void *) (p == NULL);
21915 /* pthread test function */
21916 #ifndef PTHREAD_CREATE_DETACHED
21917 #define PTHREAD_CREATE_DETACHED 1
21921 int detach = PTHREAD_CREATE_DETACHED;
21923 #if HAVE_PTHREADS > 4
21924 /* Final pthreads */
21925 pthread_attr_t attr;
21927 status = pthread_attr_init(&attr);
21928 if( status ) return status;
21930 #if HAVE_PTHREADS < 7
21931 status = pthread_attr_setdetachstate(&attr, &detach);
21932 if( status < 0 ) status = errno;
21934 status = pthread_attr_setdetachstate(&attr, detach);
21936 if( status ) return status;
21937 status = pthread_create( &t, &attr, task, NULL );
21938 #if HAVE_PTHREADS < 7
21939 if( status < 0 ) status = errno;
21941 if( status ) return status;
21943 /* Draft 4 pthreads */
21944 status = pthread_create( &t, pthread_attr_default, task, NULL );
21945 if( status ) return errno;
21947 /* give thread a chance to complete */
21948 /* it should remain joinable and hence detachable */
21951 status = pthread_detach( &t );
21952 if( status ) return errno;
21955 #ifdef HAVE_LINUX_THREADS
21956 pthread_kill_other_threads_np();
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21967 (eval $ac_link) 2>conftest.er1
21969 grep -v '^ *+' conftest.er1 >conftest.err
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } &&
21974 { ac_try='test -z "$ac_c_werror_flag"
21975 || test ! -s conftest.err'
21976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977 (eval $ac_try) 2>&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; } &&
21981 { ac_try='test -s conftest$ac_exeext'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; }; then
21987 ol_cv_pthread_lpthread_lmach_lexc=yes
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 ol_cv_pthread_lpthread_lmach_lexc=no
21994 rm -f conftest.err conftest.$ac_objext \
21995 conftest$ac_exeext conftest.$ac_ext
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22004 /* pthread test headers */
22005 #include <pthread.h>
22006 #if HAVE_PTHREADS < 7
22010 #define NULL (void*)0
22013 static void *task(p)
22016 return (void *) (p == NULL);
22020 int main(argc, argv)
22025 /* pthread test function */
22026 #ifndef PTHREAD_CREATE_DETACHED
22027 #define PTHREAD_CREATE_DETACHED 1
22031 int detach = PTHREAD_CREATE_DETACHED;
22033 #if HAVE_PTHREADS > 4
22034 /* Final pthreads */
22035 pthread_attr_t attr;
22037 status = pthread_attr_init(&attr);
22038 if( status ) return status;
22040 #if HAVE_PTHREADS < 7
22041 status = pthread_attr_setdetachstate(&attr, &detach);
22042 if( status < 0 ) status = errno;
22044 status = pthread_attr_setdetachstate(&attr, detach);
22046 if( status ) return status;
22047 status = pthread_create( &t, &attr, task, NULL );
22048 #if HAVE_PTHREADS < 7
22049 if( status < 0 ) status = errno;
22051 if( status ) return status;
22053 /* Draft 4 pthreads */
22054 status = pthread_create( &t, pthread_attr_default, task, NULL );
22055 if( status ) return errno;
22057 /* give thread a chance to complete */
22058 /* it should remain joinable and hence detachable */
22061 status = pthread_detach( &t );
22062 if( status ) return errno;
22065 #ifdef HAVE_LINUX_THREADS
22066 pthread_kill_other_threads_np();
22074 rm -f conftest$ac_exeext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22076 (eval $ac_link) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }; then
22085 ol_cv_pthread_lpthread_lmach_lexc=yes
22087 echo "$as_me: program exited with status $ac_status" >&5
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ( exit $ac_status )
22092 ol_cv_pthread_lpthread_lmach_lexc=no
22094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22101 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22102 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22104 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22105 ol_link_pthreads="-lpthread -lmach -lexc"
22106 ol_link_threads=posix
22111 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22112 if test "$ol_link_threads" = no ; then
22113 # try -lpthread -Wl,-woff,85
22114 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22115 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22116 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22124 if test "$cross_compiling" = yes; then
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22132 /* pthread test headers */
22133 #include <pthread.h>
22134 #if HAVE_PTHREADS < 7
22138 #define NULL (void*)0
22141 static void *task(p)
22144 return (void *) (p == NULL);
22151 /* pthread test function */
22152 #ifndef PTHREAD_CREATE_DETACHED
22153 #define PTHREAD_CREATE_DETACHED 1
22157 int detach = PTHREAD_CREATE_DETACHED;
22159 #if HAVE_PTHREADS > 4
22160 /* Final pthreads */
22161 pthread_attr_t attr;
22163 status = pthread_attr_init(&attr);
22164 if( status ) return status;
22166 #if HAVE_PTHREADS < 7
22167 status = pthread_attr_setdetachstate(&attr, &detach);
22168 if( status < 0 ) status = errno;
22170 status = pthread_attr_setdetachstate(&attr, detach);
22172 if( status ) return status;
22173 status = pthread_create( &t, &attr, task, NULL );
22174 #if HAVE_PTHREADS < 7
22175 if( status < 0 ) status = errno;
22177 if( status ) return status;
22179 /* Draft 4 pthreads */
22180 status = pthread_create( &t, pthread_attr_default, task, NULL );
22181 if( status ) return errno;
22183 /* give thread a chance to complete */
22184 /* it should remain joinable and hence detachable */
22187 status = pthread_detach( &t );
22188 if( status ) return errno;
22191 #ifdef HAVE_LINUX_THREADS
22192 pthread_kill_other_threads_np();
22201 rm -f conftest.$ac_objext conftest$ac_exeext
22202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22203 (eval $ac_link) 2>conftest.er1
22205 grep -v '^ *+' conftest.er1 >conftest.err
22207 cat conftest.err >&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } &&
22210 { ac_try='test -z "$ac_c_werror_flag"
22211 || test ! -s conftest.err'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; } &&
22217 { ac_try='test -s conftest$ac_exeext'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ol_cv_pthread_lib_lpthread_woff=yes
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ol_cv_pthread_lib_lpthread_woff=no
22230 rm -f conftest.err conftest.$ac_objext \
22231 conftest$ac_exeext conftest.$ac_ext
22233 cat >conftest.$ac_ext <<_ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22240 /* pthread test headers */
22241 #include <pthread.h>
22242 #if HAVE_PTHREADS < 7
22246 #define NULL (void*)0
22249 static void *task(p)
22252 return (void *) (p == NULL);
22256 int main(argc, argv)
22261 /* pthread test function */
22262 #ifndef PTHREAD_CREATE_DETACHED
22263 #define PTHREAD_CREATE_DETACHED 1
22267 int detach = PTHREAD_CREATE_DETACHED;
22269 #if HAVE_PTHREADS > 4
22270 /* Final pthreads */
22271 pthread_attr_t attr;
22273 status = pthread_attr_init(&attr);
22274 if( status ) return status;
22276 #if HAVE_PTHREADS < 7
22277 status = pthread_attr_setdetachstate(&attr, &detach);
22278 if( status < 0 ) status = errno;
22280 status = pthread_attr_setdetachstate(&attr, detach);
22282 if( status ) return status;
22283 status = pthread_create( &t, &attr, task, NULL );
22284 #if HAVE_PTHREADS < 7
22285 if( status < 0 ) status = errno;
22287 if( status ) return status;
22289 /* Draft 4 pthreads */
22290 status = pthread_create( &t, pthread_attr_default, task, NULL );
22291 if( status ) return errno;
22293 /* give thread a chance to complete */
22294 /* it should remain joinable and hence detachable */
22297 status = pthread_detach( &t );
22298 if( status ) return errno;
22301 #ifdef HAVE_LINUX_THREADS
22302 pthread_kill_other_threads_np();
22310 rm -f conftest$ac_exeext
22311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22312 (eval $ac_link) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; }; then
22321 ol_cv_pthread_lib_lpthread_woff=yes
22323 echo "$as_me: program exited with status $ac_status" >&5
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ( exit $ac_status )
22328 ol_cv_pthread_lib_lpthread_woff=no
22330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22337 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22338 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22340 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22341 ol_link_pthreads="-lpthread -Wl,-woff,85"
22342 ol_link_threads=posix
22347 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22348 if test "$ol_link_threads" = no ; then
22350 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22351 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22352 if test "${ol_cv_pthread_lpthread+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 LIBS="-lpthread $LIBS"
22360 if test "$cross_compiling" = yes; then
22361 cat >conftest.$ac_ext <<_ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22368 /* pthread test headers */
22369 #include <pthread.h>
22370 #if HAVE_PTHREADS < 7
22374 #define NULL (void*)0
22377 static void *task(p)
22380 return (void *) (p == NULL);
22387 /* pthread test function */
22388 #ifndef PTHREAD_CREATE_DETACHED
22389 #define PTHREAD_CREATE_DETACHED 1
22393 int detach = PTHREAD_CREATE_DETACHED;
22395 #if HAVE_PTHREADS > 4
22396 /* Final pthreads */
22397 pthread_attr_t attr;
22399 status = pthread_attr_init(&attr);
22400 if( status ) return status;
22402 #if HAVE_PTHREADS < 7
22403 status = pthread_attr_setdetachstate(&attr, &detach);
22404 if( status < 0 ) status = errno;
22406 status = pthread_attr_setdetachstate(&attr, detach);
22408 if( status ) return status;
22409 status = pthread_create( &t, &attr, task, NULL );
22410 #if HAVE_PTHREADS < 7
22411 if( status < 0 ) status = errno;
22413 if( status ) return status;
22415 /* Draft 4 pthreads */
22416 status = pthread_create( &t, pthread_attr_default, task, NULL );
22417 if( status ) return errno;
22419 /* give thread a chance to complete */
22420 /* it should remain joinable and hence detachable */
22423 status = pthread_detach( &t );
22424 if( status ) return errno;
22427 #ifdef HAVE_LINUX_THREADS
22428 pthread_kill_other_threads_np();
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439 (eval $ac_link) 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } &&
22446 { ac_try='test -z "$ac_c_werror_flag"
22447 || test ! -s conftest.err'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest$ac_exeext'
22454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455 (eval $ac_try) 2>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); }; }; then
22459 ol_cv_pthread_lpthread=yes
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ol_cv_pthread_lpthread=no
22466 rm -f conftest.err conftest.$ac_objext \
22467 conftest$ac_exeext conftest.$ac_ext
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22476 /* pthread test headers */
22477 #include <pthread.h>
22478 #if HAVE_PTHREADS < 7
22482 #define NULL (void*)0
22485 static void *task(p)
22488 return (void *) (p == NULL);
22492 int main(argc, argv)
22497 /* pthread test function */
22498 #ifndef PTHREAD_CREATE_DETACHED
22499 #define PTHREAD_CREATE_DETACHED 1
22503 int detach = PTHREAD_CREATE_DETACHED;
22505 #if HAVE_PTHREADS > 4
22506 /* Final pthreads */
22507 pthread_attr_t attr;
22509 status = pthread_attr_init(&attr);
22510 if( status ) return status;
22512 #if HAVE_PTHREADS < 7
22513 status = pthread_attr_setdetachstate(&attr, &detach);
22514 if( status < 0 ) status = errno;
22516 status = pthread_attr_setdetachstate(&attr, detach);
22518 if( status ) return status;
22519 status = pthread_create( &t, &attr, task, NULL );
22520 #if HAVE_PTHREADS < 7
22521 if( status < 0 ) status = errno;
22523 if( status ) return status;
22525 /* Draft 4 pthreads */
22526 status = pthread_create( &t, pthread_attr_default, task, NULL );
22527 if( status ) return errno;
22529 /* give thread a chance to complete */
22530 /* it should remain joinable and hence detachable */
22533 status = pthread_detach( &t );
22534 if( status ) return errno;
22537 #ifdef HAVE_LINUX_THREADS
22538 pthread_kill_other_threads_np();
22546 rm -f conftest$ac_exeext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22548 (eval $ac_link) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557 ol_cv_pthread_lpthread=yes
22559 echo "$as_me: program exited with status $ac_status" >&5
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ( exit $ac_status )
22564 ol_cv_pthread_lpthread=no
22566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22573 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22574 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22576 if test $ol_cv_pthread_lpthread = yes ; then
22577 ol_link_pthreads="-lpthread"
22578 ol_link_threads=posix
22582 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22583 if test "$ol_link_threads" = no ; then
22585 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22586 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22587 if test "${ol_cv_pthread_lc_r+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 if test "$cross_compiling" = yes; then
22596 cat >conftest.$ac_ext <<_ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22603 /* pthread test headers */
22604 #include <pthread.h>
22605 #if HAVE_PTHREADS < 7
22609 #define NULL (void*)0
22612 static void *task(p)
22615 return (void *) (p == NULL);
22622 /* pthread test function */
22623 #ifndef PTHREAD_CREATE_DETACHED
22624 #define PTHREAD_CREATE_DETACHED 1
22628 int detach = PTHREAD_CREATE_DETACHED;
22630 #if HAVE_PTHREADS > 4
22631 /* Final pthreads */
22632 pthread_attr_t attr;
22634 status = pthread_attr_init(&attr);
22635 if( status ) return status;
22637 #if HAVE_PTHREADS < 7
22638 status = pthread_attr_setdetachstate(&attr, &detach);
22639 if( status < 0 ) status = errno;
22641 status = pthread_attr_setdetachstate(&attr, detach);
22643 if( status ) return status;
22644 status = pthread_create( &t, &attr, task, NULL );
22645 #if HAVE_PTHREADS < 7
22646 if( status < 0 ) status = errno;
22648 if( status ) return status;
22650 /* Draft 4 pthreads */
22651 status = pthread_create( &t, pthread_attr_default, task, NULL );
22652 if( status ) return errno;
22654 /* give thread a chance to complete */
22655 /* it should remain joinable and hence detachable */
22658 status = pthread_detach( &t );
22659 if( status ) return errno;
22662 #ifdef HAVE_LINUX_THREADS
22663 pthread_kill_other_threads_np();
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674 (eval $ac_link) 2>conftest.er1
22676 grep -v '^ *+' conftest.er1 >conftest.err
22678 cat conftest.err >&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } &&
22681 { ac_try='test -z "$ac_c_werror_flag"
22682 || test ! -s conftest.err'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; } &&
22688 { ac_try='test -s conftest$ac_exeext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ol_cv_pthread_lc_r=yes
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ol_cv_pthread_lc_r=no
22701 rm -f conftest.err conftest.$ac_objext \
22702 conftest$ac_exeext conftest.$ac_ext
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22711 /* pthread test headers */
22712 #include <pthread.h>
22713 #if HAVE_PTHREADS < 7
22717 #define NULL (void*)0
22720 static void *task(p)
22723 return (void *) (p == NULL);
22727 int main(argc, argv)
22732 /* pthread test function */
22733 #ifndef PTHREAD_CREATE_DETACHED
22734 #define PTHREAD_CREATE_DETACHED 1
22738 int detach = PTHREAD_CREATE_DETACHED;
22740 #if HAVE_PTHREADS > 4
22741 /* Final pthreads */
22742 pthread_attr_t attr;
22744 status = pthread_attr_init(&attr);
22745 if( status ) return status;
22747 #if HAVE_PTHREADS < 7
22748 status = pthread_attr_setdetachstate(&attr, &detach);
22749 if( status < 0 ) status = errno;
22751 status = pthread_attr_setdetachstate(&attr, detach);
22753 if( status ) return status;
22754 status = pthread_create( &t, &attr, task, NULL );
22755 #if HAVE_PTHREADS < 7
22756 if( status < 0 ) status = errno;
22758 if( status ) return status;
22760 /* Draft 4 pthreads */
22761 status = pthread_create( &t, pthread_attr_default, task, NULL );
22762 if( status ) return errno;
22764 /* give thread a chance to complete */
22765 /* it should remain joinable and hence detachable */
22768 status = pthread_detach( &t );
22769 if( status ) return errno;
22772 #ifdef HAVE_LINUX_THREADS
22773 pthread_kill_other_threads_np();
22781 rm -f conftest$ac_exeext
22782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22783 (eval $ac_link) 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 ol_cv_pthread_lc_r=yes
22794 echo "$as_me: program exited with status $ac_status" >&5
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ( exit $ac_status )
22799 ol_cv_pthread_lc_r=no
22801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22808 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22809 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22811 if test $ol_cv_pthread_lc_r = yes ; then
22812 ol_link_pthreads="-lc_r"
22813 ol_link_threads=posix
22818 # Pthread try link: -threads (ol_cv_pthread_threads)
22819 if test "$ol_link_threads" = no ; then
22821 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22822 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22823 if test "${ol_cv_pthread_threads+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 LIBS="-threads $LIBS"
22831 if test "$cross_compiling" = yes; then
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22839 /* pthread test headers */
22840 #include <pthread.h>
22841 #if HAVE_PTHREADS < 7
22845 #define NULL (void*)0
22848 static void *task(p)
22851 return (void *) (p == NULL);
22858 /* pthread test function */
22859 #ifndef PTHREAD_CREATE_DETACHED
22860 #define PTHREAD_CREATE_DETACHED 1
22864 int detach = PTHREAD_CREATE_DETACHED;
22866 #if HAVE_PTHREADS > 4
22867 /* Final pthreads */
22868 pthread_attr_t attr;
22870 status = pthread_attr_init(&attr);
22871 if( status ) return status;
22873 #if HAVE_PTHREADS < 7
22874 status = pthread_attr_setdetachstate(&attr, &detach);
22875 if( status < 0 ) status = errno;
22877 status = pthread_attr_setdetachstate(&attr, detach);
22879 if( status ) return status;
22880 status = pthread_create( &t, &attr, task, NULL );
22881 #if HAVE_PTHREADS < 7
22882 if( status < 0 ) status = errno;
22884 if( status ) return status;
22886 /* Draft 4 pthreads */
22887 status = pthread_create( &t, pthread_attr_default, task, NULL );
22888 if( status ) return errno;
22890 /* give thread a chance to complete */
22891 /* it should remain joinable and hence detachable */
22894 status = pthread_detach( &t );
22895 if( status ) return errno;
22898 #ifdef HAVE_LINUX_THREADS
22899 pthread_kill_other_threads_np();
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910 (eval $ac_link) 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
22917 { ac_try='test -z "$ac_c_werror_flag"
22918 || test ! -s conftest.err'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; } &&
22924 { ac_try='test -s conftest$ac_exeext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ol_cv_pthread_threads=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ol_cv_pthread_threads=no
22937 rm -f conftest.err conftest.$ac_objext \
22938 conftest$ac_exeext conftest.$ac_ext
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 /* pthread test headers */
22948 #include <pthread.h>
22949 #if HAVE_PTHREADS < 7
22953 #define NULL (void*)0
22956 static void *task(p)
22959 return (void *) (p == NULL);
22963 int main(argc, argv)
22968 /* pthread test function */
22969 #ifndef PTHREAD_CREATE_DETACHED
22970 #define PTHREAD_CREATE_DETACHED 1
22974 int detach = PTHREAD_CREATE_DETACHED;
22976 #if HAVE_PTHREADS > 4
22977 /* Final pthreads */
22978 pthread_attr_t attr;
22980 status = pthread_attr_init(&attr);
22981 if( status ) return status;
22983 #if HAVE_PTHREADS < 7
22984 status = pthread_attr_setdetachstate(&attr, &detach);
22985 if( status < 0 ) status = errno;
22987 status = pthread_attr_setdetachstate(&attr, detach);
22989 if( status ) return status;
22990 status = pthread_create( &t, &attr, task, NULL );
22991 #if HAVE_PTHREADS < 7
22992 if( status < 0 ) status = errno;
22994 if( status ) return status;
22996 /* Draft 4 pthreads */
22997 status = pthread_create( &t, pthread_attr_default, task, NULL );
22998 if( status ) return errno;
23000 /* give thread a chance to complete */
23001 /* it should remain joinable and hence detachable */
23004 status = pthread_detach( &t );
23005 if( status ) return errno;
23008 #ifdef HAVE_LINUX_THREADS
23009 pthread_kill_other_threads_np();
23017 rm -f conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ol_cv_pthread_threads=yes
23030 echo "$as_me: program exited with status $ac_status" >&5
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ( exit $ac_status )
23035 ol_cv_pthread_threads=no
23037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23044 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23045 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23047 if test $ol_cv_pthread_threads = yes ; then
23048 ol_link_pthreads="-threads"
23049 ol_link_threads=posix
23054 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23055 if test "$ol_link_threads" = no ; then
23056 # try -lpthreads -lmach -lexc -lc_r
23057 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23058 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23059 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23065 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23067 if test "$cross_compiling" = yes; then
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23075 /* pthread test headers */
23076 #include <pthread.h>
23077 #if HAVE_PTHREADS < 7
23081 #define NULL (void*)0
23084 static void *task(p)
23087 return (void *) (p == NULL);
23094 /* pthread test function */
23095 #ifndef PTHREAD_CREATE_DETACHED
23096 #define PTHREAD_CREATE_DETACHED 1
23100 int detach = PTHREAD_CREATE_DETACHED;
23102 #if HAVE_PTHREADS > 4
23103 /* Final pthreads */
23104 pthread_attr_t attr;
23106 status = pthread_attr_init(&attr);
23107 if( status ) return status;
23109 #if HAVE_PTHREADS < 7
23110 status = pthread_attr_setdetachstate(&attr, &detach);
23111 if( status < 0 ) status = errno;
23113 status = pthread_attr_setdetachstate(&attr, detach);
23115 if( status ) return status;
23116 status = pthread_create( &t, &attr, task, NULL );
23117 #if HAVE_PTHREADS < 7
23118 if( status < 0 ) status = errno;
23120 if( status ) return status;
23122 /* Draft 4 pthreads */
23123 status = pthread_create( &t, pthread_attr_default, task, NULL );
23124 if( status ) return errno;
23126 /* give thread a chance to complete */
23127 /* it should remain joinable and hence detachable */
23130 status = pthread_detach( &t );
23131 if( status ) return errno;
23134 #ifdef HAVE_LINUX_THREADS
23135 pthread_kill_other_threads_np();
23144 rm -f conftest.$ac_objext conftest$ac_exeext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23146 (eval $ac_link) 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest$ac_exeext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23173 rm -f conftest.err conftest.$ac_objext \
23174 conftest$ac_exeext conftest.$ac_ext
23176 cat >conftest.$ac_ext <<_ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23183 /* pthread test headers */
23184 #include <pthread.h>
23185 #if HAVE_PTHREADS < 7
23189 #define NULL (void*)0
23192 static void *task(p)
23195 return (void *) (p == NULL);
23199 int main(argc, argv)
23204 /* pthread test function */
23205 #ifndef PTHREAD_CREATE_DETACHED
23206 #define PTHREAD_CREATE_DETACHED 1
23210 int detach = PTHREAD_CREATE_DETACHED;
23212 #if HAVE_PTHREADS > 4
23213 /* Final pthreads */
23214 pthread_attr_t attr;
23216 status = pthread_attr_init(&attr);
23217 if( status ) return status;
23219 #if HAVE_PTHREADS < 7
23220 status = pthread_attr_setdetachstate(&attr, &detach);
23221 if( status < 0 ) status = errno;
23223 status = pthread_attr_setdetachstate(&attr, detach);
23225 if( status ) return status;
23226 status = pthread_create( &t, &attr, task, NULL );
23227 #if HAVE_PTHREADS < 7
23228 if( status < 0 ) status = errno;
23230 if( status ) return status;
23232 /* Draft 4 pthreads */
23233 status = pthread_create( &t, pthread_attr_default, task, NULL );
23234 if( status ) return errno;
23236 /* give thread a chance to complete */
23237 /* it should remain joinable and hence detachable */
23240 status = pthread_detach( &t );
23241 if( status ) return errno;
23244 #ifdef HAVE_LINUX_THREADS
23245 pthread_kill_other_threads_np();
23253 rm -f conftest$ac_exeext
23254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23255 (eval $ac_link) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23266 echo "$as_me: program exited with status $ac_status" >&5
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ( exit $ac_status )
23271 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23280 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23281 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23283 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23284 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23285 ol_link_threads=posix
23289 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23290 if test "$ol_link_threads" = no ; then
23291 # try -lpthreads -lmach -lexc
23292 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23293 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23294 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23295 echo $ECHO_N "(cached) $ECHO_C" >&6
23300 LIBS="-lpthreads -lmach -lexc $LIBS"
23302 if test "$cross_compiling" = yes; then
23303 cat >conftest.$ac_ext <<_ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23310 /* pthread test headers */
23311 #include <pthread.h>
23312 #if HAVE_PTHREADS < 7
23316 #define NULL (void*)0
23319 static void *task(p)
23322 return (void *) (p == NULL);
23329 /* pthread test function */
23330 #ifndef PTHREAD_CREATE_DETACHED
23331 #define PTHREAD_CREATE_DETACHED 1
23335 int detach = PTHREAD_CREATE_DETACHED;
23337 #if HAVE_PTHREADS > 4
23338 /* Final pthreads */
23339 pthread_attr_t attr;
23341 status = pthread_attr_init(&attr);
23342 if( status ) return status;
23344 #if HAVE_PTHREADS < 7
23345 status = pthread_attr_setdetachstate(&attr, &detach);
23346 if( status < 0 ) status = errno;
23348 status = pthread_attr_setdetachstate(&attr, detach);
23350 if( status ) return status;
23351 status = pthread_create( &t, &attr, task, NULL );
23352 #if HAVE_PTHREADS < 7
23353 if( status < 0 ) status = errno;
23355 if( status ) return status;
23357 /* Draft 4 pthreads */
23358 status = pthread_create( &t, pthread_attr_default, task, NULL );
23359 if( status ) return errno;
23361 /* give thread a chance to complete */
23362 /* it should remain joinable and hence detachable */
23365 status = pthread_detach( &t );
23366 if( status ) return errno;
23369 #ifdef HAVE_LINUX_THREADS
23370 pthread_kill_other_threads_np();
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381 (eval $ac_link) 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try='test -z "$ac_c_werror_flag"
23389 || test ! -s conftest.err'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; } &&
23395 { ac_try='test -s conftest$ac_exeext'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401 ol_cv_pthread_lpthreads_lmach_lexc=yes
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 ol_cv_pthread_lpthreads_lmach_lexc=no
23408 rm -f conftest.err conftest.$ac_objext \
23409 conftest$ac_exeext conftest.$ac_ext
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23418 /* pthread test headers */
23419 #include <pthread.h>
23420 #if HAVE_PTHREADS < 7
23424 #define NULL (void*)0
23427 static void *task(p)
23430 return (void *) (p == NULL);
23434 int main(argc, argv)
23439 /* pthread test function */
23440 #ifndef PTHREAD_CREATE_DETACHED
23441 #define PTHREAD_CREATE_DETACHED 1
23445 int detach = PTHREAD_CREATE_DETACHED;
23447 #if HAVE_PTHREADS > 4
23448 /* Final pthreads */
23449 pthread_attr_t attr;
23451 status = pthread_attr_init(&attr);
23452 if( status ) return status;
23454 #if HAVE_PTHREADS < 7
23455 status = pthread_attr_setdetachstate(&attr, &detach);
23456 if( status < 0 ) status = errno;
23458 status = pthread_attr_setdetachstate(&attr, detach);
23460 if( status ) return status;
23461 status = pthread_create( &t, &attr, task, NULL );
23462 #if HAVE_PTHREADS < 7
23463 if( status < 0 ) status = errno;
23465 if( status ) return status;
23467 /* Draft 4 pthreads */
23468 status = pthread_create( &t, pthread_attr_default, task, NULL );
23469 if( status ) return errno;
23471 /* give thread a chance to complete */
23472 /* it should remain joinable and hence detachable */
23475 status = pthread_detach( &t );
23476 if( status ) return errno;
23479 #ifdef HAVE_LINUX_THREADS
23480 pthread_kill_other_threads_np();
23488 rm -f conftest$ac_exeext
23489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23490 (eval $ac_link) 2>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23499 ol_cv_pthread_lpthreads_lmach_lexc=yes
23501 echo "$as_me: program exited with status $ac_status" >&5
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ( exit $ac_status )
23506 ol_cv_pthread_lpthreads_lmach_lexc=no
23508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23515 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23516 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23518 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23519 ol_link_pthreads="-lpthreads -lmach -lexc"
23520 ol_link_threads=posix
23524 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23525 if test "$ol_link_threads" = no ; then
23526 # try -lpthreads -lexc
23527 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23528 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23529 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 LIBS="-lpthreads -lexc $LIBS"
23537 if test "$cross_compiling" = yes; then
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23545 /* pthread test headers */
23546 #include <pthread.h>
23547 #if HAVE_PTHREADS < 7
23551 #define NULL (void*)0
23554 static void *task(p)
23557 return (void *) (p == NULL);
23564 /* pthread test function */
23565 #ifndef PTHREAD_CREATE_DETACHED
23566 #define PTHREAD_CREATE_DETACHED 1
23570 int detach = PTHREAD_CREATE_DETACHED;
23572 #if HAVE_PTHREADS > 4
23573 /* Final pthreads */
23574 pthread_attr_t attr;
23576 status = pthread_attr_init(&attr);
23577 if( status ) return status;
23579 #if HAVE_PTHREADS < 7
23580 status = pthread_attr_setdetachstate(&attr, &detach);
23581 if( status < 0 ) status = errno;
23583 status = pthread_attr_setdetachstate(&attr, detach);
23585 if( status ) return status;
23586 status = pthread_create( &t, &attr, task, NULL );
23587 #if HAVE_PTHREADS < 7
23588 if( status < 0 ) status = errno;
23590 if( status ) return status;
23592 /* Draft 4 pthreads */
23593 status = pthread_create( &t, pthread_attr_default, task, NULL );
23594 if( status ) return errno;
23596 /* give thread a chance to complete */
23597 /* it should remain joinable and hence detachable */
23600 status = pthread_detach( &t );
23601 if( status ) return errno;
23604 #ifdef HAVE_LINUX_THREADS
23605 pthread_kill_other_threads_np();
23614 rm -f conftest.$ac_objext conftest$ac_exeext
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616 (eval $ac_link) 2>conftest.er1
23618 grep -v '^ *+' conftest.er1 >conftest.err
23620 cat conftest.err >&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } &&
23623 { ac_try='test -z "$ac_c_werror_flag"
23624 || test ! -s conftest.err'
23625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626 (eval $ac_try) 2>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; } &&
23630 { ac_try='test -s conftest$ac_exeext'
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636 ol_cv_pthread_lpthreads_lexc=yes
23638 echo "$as_me: failed program was:" >&5
23639 sed 's/^/| /' conftest.$ac_ext >&5
23641 ol_cv_pthread_lpthreads_lexc=no
23643 rm -f conftest.err conftest.$ac_objext \
23644 conftest$ac_exeext conftest.$ac_ext
23646 cat >conftest.$ac_ext <<_ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23653 /* pthread test headers */
23654 #include <pthread.h>
23655 #if HAVE_PTHREADS < 7
23659 #define NULL (void*)0
23662 static void *task(p)
23665 return (void *) (p == NULL);
23669 int main(argc, argv)
23674 /* pthread test function */
23675 #ifndef PTHREAD_CREATE_DETACHED
23676 #define PTHREAD_CREATE_DETACHED 1
23680 int detach = PTHREAD_CREATE_DETACHED;
23682 #if HAVE_PTHREADS > 4
23683 /* Final pthreads */
23684 pthread_attr_t attr;
23686 status = pthread_attr_init(&attr);
23687 if( status ) return status;
23689 #if HAVE_PTHREADS < 7
23690 status = pthread_attr_setdetachstate(&attr, &detach);
23691 if( status < 0 ) status = errno;
23693 status = pthread_attr_setdetachstate(&attr, detach);
23695 if( status ) return status;
23696 status = pthread_create( &t, &attr, task, NULL );
23697 #if HAVE_PTHREADS < 7
23698 if( status < 0 ) status = errno;
23700 if( status ) return status;
23702 /* Draft 4 pthreads */
23703 status = pthread_create( &t, pthread_attr_default, task, NULL );
23704 if( status ) return errno;
23706 /* give thread a chance to complete */
23707 /* it should remain joinable and hence detachable */
23710 status = pthread_detach( &t );
23711 if( status ) return errno;
23714 #ifdef HAVE_LINUX_THREADS
23715 pthread_kill_other_threads_np();
23723 rm -f conftest$ac_exeext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725 (eval $ac_link) 2>&5
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ol_cv_pthread_lpthreads_lexc=yes
23736 echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ( exit $ac_status )
23741 ol_cv_pthread_lpthreads_lexc=no
23743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23750 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23751 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23753 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23754 ol_link_pthreads="-lpthreads -lexc"
23755 ol_link_threads=posix
23760 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23761 if test "$ol_link_threads" = no ; then
23763 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23764 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23765 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23771 LIBS="-lpthreads $LIBS"
23773 if test "$cross_compiling" = yes; then
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23781 /* pthread test headers */
23782 #include <pthread.h>
23783 #if HAVE_PTHREADS < 7
23787 #define NULL (void*)0
23790 static void *task(p)
23793 return (void *) (p == NULL);
23800 /* pthread test function */
23801 #ifndef PTHREAD_CREATE_DETACHED
23802 #define PTHREAD_CREATE_DETACHED 1
23806 int detach = PTHREAD_CREATE_DETACHED;
23808 #if HAVE_PTHREADS > 4
23809 /* Final pthreads */
23810 pthread_attr_t attr;
23812 status = pthread_attr_init(&attr);
23813 if( status ) return status;
23815 #if HAVE_PTHREADS < 7
23816 status = pthread_attr_setdetachstate(&attr, &detach);
23817 if( status < 0 ) status = errno;
23819 status = pthread_attr_setdetachstate(&attr, detach);
23821 if( status ) return status;
23822 status = pthread_create( &t, &attr, task, NULL );
23823 #if HAVE_PTHREADS < 7
23824 if( status < 0 ) status = errno;
23826 if( status ) return status;
23828 /* Draft 4 pthreads */
23829 status = pthread_create( &t, pthread_attr_default, task, NULL );
23830 if( status ) return errno;
23832 /* give thread a chance to complete */
23833 /* it should remain joinable and hence detachable */
23836 status = pthread_detach( &t );
23837 if( status ) return errno;
23840 #ifdef HAVE_LINUX_THREADS
23841 pthread_kill_other_threads_np();
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852 (eval $ac_link) 2>conftest.er1
23854 grep -v '^ *+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag"
23860 || test ! -s conftest.err'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest$ac_exeext'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 ol_cv_pthread_lib_lpthreads=yes
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 ol_cv_pthread_lib_lpthreads=no
23879 rm -f conftest.err conftest.$ac_objext \
23880 conftest$ac_exeext conftest.$ac_ext
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23889 /* pthread test headers */
23890 #include <pthread.h>
23891 #if HAVE_PTHREADS < 7
23895 #define NULL (void*)0
23898 static void *task(p)
23901 return (void *) (p == NULL);
23905 int main(argc, argv)
23910 /* pthread test function */
23911 #ifndef PTHREAD_CREATE_DETACHED
23912 #define PTHREAD_CREATE_DETACHED 1
23916 int detach = PTHREAD_CREATE_DETACHED;
23918 #if HAVE_PTHREADS > 4
23919 /* Final pthreads */
23920 pthread_attr_t attr;
23922 status = pthread_attr_init(&attr);
23923 if( status ) return status;
23925 #if HAVE_PTHREADS < 7
23926 status = pthread_attr_setdetachstate(&attr, &detach);
23927 if( status < 0 ) status = errno;
23929 status = pthread_attr_setdetachstate(&attr, detach);
23931 if( status ) return status;
23932 status = pthread_create( &t, &attr, task, NULL );
23933 #if HAVE_PTHREADS < 7
23934 if( status < 0 ) status = errno;
23936 if( status ) return status;
23938 /* Draft 4 pthreads */
23939 status = pthread_create( &t, pthread_attr_default, task, NULL );
23940 if( status ) return errno;
23942 /* give thread a chance to complete */
23943 /* it should remain joinable and hence detachable */
23946 status = pthread_detach( &t );
23947 if( status ) return errno;
23950 #ifdef HAVE_LINUX_THREADS
23951 pthread_kill_other_threads_np();
23959 rm -f conftest$ac_exeext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23961 (eval $ac_link) 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23970 ol_cv_pthread_lib_lpthreads=yes
23972 echo "$as_me: program exited with status $ac_status" >&5
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23976 ( exit $ac_status )
23977 ol_cv_pthread_lib_lpthreads=no
23979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23986 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23987 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23989 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23990 ol_link_pthreads="-lpthreads"
23991 ol_link_threads=posix
23996 if test $ol_link_threads != no ; then
23997 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23999 save_CPPFLAGS="$CPPFLAGS"
24001 LIBS="$LTHREAD_LIBS $LIBS"
24006 for ac_func in sched_yield pthread_yield thr_yield
24008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24009 echo "$as_me:$LINENO: checking for $ac_func" >&5
24010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24011 if eval "test \"\${$as_ac_var+set}\" = set"; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24022 #define $ac_func innocuous_$ac_func
24024 /* System header to define __stub macros and hopefully few prototypes,
24025 which can conflict with char $ac_func (); below.
24026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24027 <limits.h> exists even on freestanding compilers. */
24030 # include <limits.h>
24032 # include <assert.h>
24037 /* Override any gcc2 internal prototype to avoid an error. */
24042 /* We use char because int might match the return type of a gcc2
24043 builtin and then its argument prototype would still apply. */
24045 /* The GNU C library defines this for functions which it implements
24046 to always fail with ENOSYS. Some functions are actually named
24047 something starting with __ and the normal name is an alias. */
24048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24051 char (*f) () = $ac_func;
24060 return f != $ac_func;
24065 rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24067 (eval $ac_link) 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } &&
24074 { ac_try='test -z "$ac_c_werror_flag"
24075 || test ! -s conftest.err'
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; } &&
24081 { ac_try='test -s conftest$ac_exeext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087 eval "$as_ac_var=yes"
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24092 eval "$as_ac_var=no"
24094 rm -f conftest.err conftest.$ac_objext \
24095 conftest$ac_exeext conftest.$ac_ext
24097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24099 if test `eval echo '${'$as_ac_var'}'` = yes; then
24100 cat >>confdefs.h <<_ACEOF
24101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24108 if test $ac_cv_func_sched_yield = no &&
24109 test $ac_cv_func_pthread_yield = no &&
24110 test $ac_cv_func_thr_yield = no ; then
24111 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24112 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24113 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 ac_check_lib_save_LIBS=$LIBS
24118 cat >conftest.$ac_ext <<_ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h. */
24125 /* Override any gcc2 internal prototype to avoid an error. */
24129 /* We use char because int might match the return type of a gcc2
24130 builtin and then its argument prototype would still apply. */
24131 char sched_yield ();
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142 (eval $ac_link) 2>conftest.er1
24144 grep -v '^ *+' conftest.er1 >conftest.err
24146 cat conftest.err >&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } &&
24149 { ac_try='test -z "$ac_c_werror_flag"
24150 || test ! -s conftest.err'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest$ac_exeext'
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 ac_cv_lib_rt_sched_yield=yes
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24167 ac_cv_lib_rt_sched_yield=no
24169 rm -f conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
24171 LIBS=$ac_check_lib_save_LIBS
24173 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24174 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24175 if test $ac_cv_lib_rt_sched_yield = yes; then
24176 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24178 cat >>confdefs.h <<\_ACEOF
24179 #define HAVE_SCHED_YIELD 1
24182 ac_cv_func_sched_yield=yes
24184 ac_cv_func_sched_yield=no
24188 if test $ac_cv_func_sched_yield = no &&
24189 test $ac_cv_func_pthread_yield = no &&
24190 test "$ac_cv_func_thr_yield" = no ; then
24191 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24192 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24197 for ac_func in pthread_kill pthread_rwlock_destroy
24199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24200 echo "$as_me:$LINENO: checking for $ac_func" >&5
24201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24202 if eval "test \"\${$as_ac_var+set}\" = set"; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24205 cat >conftest.$ac_ext <<_ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24213 #define $ac_func innocuous_$ac_func
24215 /* System header to define __stub macros and hopefully few prototypes,
24216 which can conflict with char $ac_func (); below.
24217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24218 <limits.h> exists even on freestanding compilers. */
24221 # include <limits.h>
24223 # include <assert.h>
24228 /* Override any gcc2 internal prototype to avoid an error. */
24233 /* We use char because int might match the return type of a gcc2
24234 builtin and then its argument prototype would still apply. */
24236 /* The GNU C library defines this for functions which it implements
24237 to always fail with ENOSYS. Some functions are actually named
24238 something starting with __ and the normal name is an alias. */
24239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24242 char (*f) () = $ac_func;
24251 return f != $ac_func;
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258 (eval $ac_link) 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
24265 { ac_try='test -z "$ac_c_werror_flag"
24266 || test ! -s conftest.err'
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; } &&
24272 { ac_try='test -s conftest$ac_exeext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 eval "$as_ac_var=yes"
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 eval "$as_ac_var=no"
24285 rm -f conftest.err conftest.$ac_objext \
24286 conftest$ac_exeext conftest.$ac_ext
24288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24290 if test `eval echo '${'$as_ac_var'}'` = yes; then
24291 cat >>confdefs.h <<_ACEOF
24292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24299 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24300 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24301 if test "${ol_cv_func_pthread_detach+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24312 #include <pthread.h>
24314 #define NULL (void*)0
24320 pthread_detach(NULL);
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24327 (eval $ac_link) 2>conftest.er1
24329 grep -v '^ *+' conftest.er1 >conftest.err
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } &&
24334 { ac_try='test -z "$ac_c_werror_flag"
24335 || test ! -s conftest.err'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest$ac_exeext'
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ol_cv_func_pthread_detach=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ol_cv_func_pthread_detach=no
24354 rm -f conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24358 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24359 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24361 if test $ol_cv_func_pthread_detach = no ; then
24362 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24363 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24364 { (exit 1); exit 1; }; }
24368 cat >>confdefs.h <<\_ACEOF
24369 #define HAVE_PTHREAD_DETACH 1
24378 pthread_setconcurrency \
24379 pthread_getconcurrency \
24380 thr_setconcurrency \
24381 thr_getconcurrency \
24384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24385 echo "$as_me:$LINENO: checking for $ac_func" >&5
24386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24387 if eval "test \"\${$as_ac_var+set}\" = set"; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24398 #define $ac_func innocuous_$ac_func
24400 /* System header to define __stub macros and hopefully few prototypes,
24401 which can conflict with char $ac_func (); below.
24402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403 <limits.h> exists even on freestanding compilers. */
24406 # include <limits.h>
24408 # include <assert.h>
24413 /* Override any gcc2 internal prototype to avoid an error. */
24418 /* We use char because int might match the return type of a gcc2
24419 builtin and then its argument prototype would still apply. */
24421 /* The GNU C library defines this for functions which it implements
24422 to always fail with ENOSYS. Some functions are actually named
24423 something starting with __ and the normal name is an alias. */
24424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24427 char (*f) () = $ac_func;
24436 return f != $ac_func;
24441 rm -f conftest.$ac_objext conftest$ac_exeext
24442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24443 (eval $ac_link) 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
24450 { ac_try='test -z "$ac_c_werror_flag"
24451 || test ! -s conftest.err'
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest$ac_exeext'
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 eval "$as_ac_var=yes"
24465 echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24468 eval "$as_ac_var=no"
24470 rm -f conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
24473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24475 if test `eval echo '${'$as_ac_var'}'` = yes; then
24476 cat >>confdefs.h <<_ACEOF
24477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24486 for ac_func in pthread_kill_other_threads_np
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24491 if eval "test \"\${$as_ac_var+set}\" = set"; then
24492 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24502 #define $ac_func innocuous_$ac_func
24504 /* System header to define __stub macros and hopefully few prototypes,
24505 which can conflict with char $ac_func (); below.
24506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507 <limits.h> exists even on freestanding compilers. */
24510 # include <limits.h>
24512 # include <assert.h>
24517 /* Override any gcc2 internal prototype to avoid an error. */
24522 /* We use char because int might match the return type of a gcc2
24523 builtin and then its argument prototype would still apply. */
24525 /* The GNU C library defines this for functions which it implements
24526 to always fail with ENOSYS. Some functions are actually named
24527 something starting with __ and the normal name is an alias. */
24528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24531 char (*f) () = $ac_func;
24540 return f != $ac_func;
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24547 (eval $ac_link) 2>conftest.er1
24549 grep -v '^ *+' conftest.er1 >conftest.err
24551 cat conftest.err >&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } &&
24554 { ac_try='test -z "$ac_c_werror_flag"
24555 || test ! -s conftest.err'
24556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557 (eval $ac_try) 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try='test -s conftest$ac_exeext'
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; }; then
24567 eval "$as_ac_var=yes"
24569 echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 eval "$as_ac_var=no"
24574 rm -f conftest.err conftest.$ac_objext \
24575 conftest$ac_exeext conftest.$ac_ext
24577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24579 if test `eval echo '${'$as_ac_var'}'` = yes; then
24580 cat >>confdefs.h <<_ACEOF
24581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24587 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24588 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24589 if test "${ol_cv_sys_linux_threads+set}" = set; then
24590 echo $ECHO_N "(cached) $ECHO_C" >&6
24592 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24594 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24595 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24600 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24601 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24602 if test "${ol_cv_linux_threads+set}" = set; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 if test $ol_cv_header_linux_threads = yes &&
24607 test $ol_cv_sys_linux_threads = yes; then
24608 ol_cv_linux_threads=yes
24609 elif test $ol_cv_header_linux_threads = no &&
24610 test $ol_cv_sys_linux_threads = no; then
24611 ol_cv_linux_threads=no
24613 ol_cv_linux_threads=error
24617 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24618 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24621 if test $ol_cv_linux_threads = error; then
24622 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24623 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24624 { (exit 1); exit 1; }; };
24627 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24628 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24629 if test "${ol_cv_pthread_create_works+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 if test "$cross_compiling" = yes; then
24634 ol_cv_pthread_create_works=yes
24636 cat >conftest.$ac_ext <<_ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24643 /* pthread test headers */
24644 #include <pthread.h>
24645 #if HAVE_PTHREADS < 7
24649 #define NULL (void*)0
24652 static void *task(p)
24655 return (void *) (p == NULL);
24659 int main(argc, argv)
24664 /* pthread test function */
24665 #ifndef PTHREAD_CREATE_DETACHED
24666 #define PTHREAD_CREATE_DETACHED 1
24670 int detach = PTHREAD_CREATE_DETACHED;
24672 #if HAVE_PTHREADS > 4
24673 /* Final pthreads */
24674 pthread_attr_t attr;
24676 status = pthread_attr_init(&attr);
24677 if( status ) return status;
24679 #if HAVE_PTHREADS < 7
24680 status = pthread_attr_setdetachstate(&attr, &detach);
24681 if( status < 0 ) status = errno;
24683 status = pthread_attr_setdetachstate(&attr, detach);
24685 if( status ) return status;
24686 status = pthread_create( &t, &attr, task, NULL );
24687 #if HAVE_PTHREADS < 7
24688 if( status < 0 ) status = errno;
24690 if( status ) return status;
24692 /* Draft 4 pthreads */
24693 status = pthread_create( &t, pthread_attr_default, task, NULL );
24694 if( status ) return errno;
24696 /* give thread a chance to complete */
24697 /* it should remain joinable and hence detachable */
24700 status = pthread_detach( &t );
24701 if( status ) return errno;
24704 #ifdef HAVE_LINUX_THREADS
24705 pthread_kill_other_threads_np();
24713 rm -f conftest$ac_exeext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24715 (eval $ac_link) 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; }; then
24724 ol_cv_pthread_create_works=yes
24726 echo "$as_me: program exited with status $ac_status" >&5
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ( exit $ac_status )
24731 ol_cv_pthread_create_works=no
24733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24736 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24737 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24739 if test $ol_cv_pthread_create_works = no ; then
24740 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24741 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24742 { (exit 1); exit 1; }; }
24745 if test $ol_with_yielding_select = auto ; then
24746 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24747 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24748 if test "${ol_cv_pthread_select_yields+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24752 if test "$cross_compiling" = yes; then
24753 ol_cv_pthread_select_yields=cross
24755 cat >conftest.$ac_ext <<_ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24762 #include <sys/types.h>
24763 #include <sys/time.h>
24764 #include <unistd.h>
24765 #include <pthread.h>
24767 #define NULL (void*) 0
24770 static int fildes[2];
24772 static void *task(p)
24784 FD_SET(fildes[0], &rfds);
24786 /* we're not interested in any fds */
24787 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24794 exit(0); /* if we exit here, the select blocked the whole process */
24797 int main(argc, argv)
24803 /* create a pipe to select */
24804 if(pipe(&fildes[0])) {
24809 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24810 (void) pthread_setconcurrency(2);
24812 #ifdef HAVE_THR_SETCONCURRENCY
24813 /* Set Solaris LWP concurrency to 2 */
24814 thr_setconcurrency(2);
24818 #if HAVE_PTHREADS < 6
24819 pthread_create(&t, pthread_attr_default, task, NULL);
24821 pthread_create(&t, NULL, task, NULL);
24824 /* make sure task runs first */
24827 #elif defined( HAVE_SCHED_YIELD )
24829 #elif defined( HAVE_PTHREAD_YIELD )
24836 rm -f conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838 (eval $ac_link) 2>&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; }; then
24847 ol_cv_pthread_select_yields=no
24849 echo "$as_me: program exited with status $ac_status" >&5
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ( exit $ac_status )
24854 ol_cv_pthread_select_yields=yes
24856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24859 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24860 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24862 if test $ol_cv_pthread_select_yields = cross ; then
24863 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24864 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24865 { (exit 1); exit 1; }; }
24868 if test $ol_cv_pthread_select_yields = yes ; then
24869 ol_with_yielding_select=yes
24873 CPPFLAGS="$save_CPPFLAGS"
24876 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24877 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24878 { (exit 1); exit 1; }; }
24882 if test $ol_with_threads = posix ; then
24883 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24884 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24885 { (exit 1); exit 1; }; }
24890 case $ol_with_threads in auto | yes | mach)
24894 for ac_header in mach/cthreads.h cthreads.h
24896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24898 echo "$as_me:$LINENO: checking for $ac_header" >&5
24899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24906 # Is the header compilable?
24907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24909 cat >conftest.$ac_ext <<_ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h. */
24915 $ac_includes_default
24916 #include <$ac_header>
24918 rm -f conftest.$ac_objext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24920 (eval $ac_compile) 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest.$ac_objext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_header_compiler=yes
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ac_header_compiler=no
24947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24949 echo "${ECHO_T}$ac_header_compiler" >&6
24951 # Is the header present?
24952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24954 cat >conftest.$ac_ext <<_ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24960 #include <$ac_header>
24962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24965 grep -v '^ *+' conftest.er1 >conftest.err
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } >/dev/null; then
24970 if test -s conftest.err; then
24971 ac_cpp_err=$ac_c_preproc_warn_flag
24972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24979 if test -z "$ac_cpp_err"; then
24980 ac_header_preproc=yes
24982 echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24985 ac_header_preproc=no
24987 rm -f conftest.err conftest.$ac_ext
24988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24989 echo "${ECHO_T}$ac_header_preproc" >&6
24991 # So? What about this header?
24992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24998 ac_header_preproc=yes
25001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25015 ## ------------------------------------------ ##
25016 ## Report this to the AC_PACKAGE_NAME lists. ##
25017 ## ------------------------------------------ ##
25020 sed "s/^/$as_me: WARNING: /" >&2
25023 echo "$as_me:$LINENO: checking for $ac_header" >&5
25024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25028 eval "$as_ac_Header=\$ac_header_preproc"
25030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25043 if test $ac_cv_header_mach_cthreads_h = yes ; then
25044 ol_with_threads=found
25046 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25047 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25048 if test "${ac_cv_func_cthread_fork+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25059 #define cthread_fork innocuous_cthread_fork
25061 /* System header to define __stub macros and hopefully few prototypes,
25062 which can conflict with char cthread_fork (); below.
25063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25064 <limits.h> exists even on freestanding compilers. */
25067 # include <limits.h>
25069 # include <assert.h>
25072 #undef cthread_fork
25074 /* Override any gcc2 internal prototype to avoid an error. */
25079 /* We use char because int might match the return type of a gcc2
25080 builtin and then its argument prototype would still apply. */
25081 char cthread_fork ();
25082 /* The GNU C library defines this for functions which it implements
25083 to always fail with ENOSYS. Some functions are actually named
25084 something starting with __ and the normal name is an alias. */
25085 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25088 char (*f) () = cthread_fork;
25097 return f != cthread_fork;
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104 (eval $ac_link) 2>conftest.er1
25106 grep -v '^ *+' conftest.er1 >conftest.err
25108 cat conftest.err >&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } &&
25111 { ac_try='test -z "$ac_c_werror_flag"
25112 || test ! -s conftest.err'
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; } &&
25118 { ac_try='test -s conftest$ac_exeext'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; }; then
25124 ac_cv_func_cthread_fork=yes
25126 echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25129 ac_cv_func_cthread_fork=no
25131 rm -f conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25134 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25135 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25136 if test $ac_cv_func_cthread_fork = yes; then
25137 ol_link_threads=yes
25141 if test $ol_link_threads = no ; then
25142 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25143 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25144 if test "${ol_cv_cthread_all_load+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25149 LIBS="-all_load $LIBS"
25150 cat >conftest.$ac_ext <<_ACEOF
25153 cat confdefs.h >>conftest.$ac_ext
25154 cat >>conftest.$ac_ext <<_ACEOF
25155 /* end confdefs.h. */
25156 #include <mach/cthreads.h>
25161 cthread_fork((void *)0, (void *)0);
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25169 (eval $ac_link) 2>conftest.er1
25171 grep -v '^ *+' conftest.er1 >conftest.err
25173 cat conftest.err >&5
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } &&
25176 { ac_try='test -z "$ac_c_werror_flag"
25177 || test ! -s conftest.err'
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; } &&
25183 { ac_try='test -s conftest$ac_exeext'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 ol_cv_cthread_all_load=yes
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 ol_cv_cthread_all_load=no
25196 rm -f conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
25201 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25202 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25204 if test $ol_cv_cthread_all_load = yes ; then
25205 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25206 ol_link_threads=mach
25207 ol_with_threads=found
25211 elif test $ac_cv_header_cthreads_h = yes ; then
25213 ol_with_threads=found
25216 LIBS="$LIBS -lthreads"
25217 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25218 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25219 if test "${ac_cv_func_cthread_fork+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25230 #define cthread_fork innocuous_cthread_fork
25232 /* System header to define __stub macros and hopefully few prototypes,
25233 which can conflict with char cthread_fork (); below.
25234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25235 <limits.h> exists even on freestanding compilers. */
25238 # include <limits.h>
25240 # include <assert.h>
25243 #undef cthread_fork
25245 /* Override any gcc2 internal prototype to avoid an error. */
25250 /* We use char because int might match the return type of a gcc2
25251 builtin and then its argument prototype would still apply. */
25252 char cthread_fork ();
25253 /* The GNU C library defines this for functions which it implements
25254 to always fail with ENOSYS. Some functions are actually named
25255 something starting with __ and the normal name is an alias. */
25256 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25259 char (*f) () = cthread_fork;
25268 return f != cthread_fork;
25273 rm -f conftest.$ac_objext conftest$ac_exeext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275 (eval $ac_link) 2>conftest.er1
25277 grep -v '^ *+' conftest.er1 >conftest.err
25279 cat conftest.err >&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } &&
25282 { ac_try='test -z "$ac_c_werror_flag"
25283 || test ! -s conftest.err'
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; } &&
25289 { ac_try='test -s conftest$ac_exeext'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; }; then
25295 ac_cv_func_cthread_fork=yes
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25300 ac_cv_func_cthread_fork=no
25302 rm -f conftest.err conftest.$ac_objext \
25303 conftest$ac_exeext conftest.$ac_ext
25305 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25306 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25307 if test $ac_cv_func_cthread_fork = yes; then
25308 ol_link_threads=yes
25313 if test $ol_link_threads = yes ; then
25314 LTHREAD_LIBS="-lthreads"
25315 ol_link_threads=mach
25316 ol_with_threads=found
25318 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25319 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25320 { (exit 1); exit 1; }; }
25323 elif test $ol_with_threads = mach ; then
25324 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25325 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25326 { (exit 1); exit 1; }; }
25329 if test $ol_link_threads = mach ; then
25331 cat >>confdefs.h <<\_ACEOF
25332 #define HAVE_MACH_CTHREADS 1
25335 elif test $ol_with_threads = found ; then
25336 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25337 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25338 { (exit 1); exit 1; }; }
25343 case $ol_with_threads in auto | yes | pth)
25346 for ac_header in pth.h
25348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25350 echo "$as_me:$LINENO: checking for $ac_header" >&5
25351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25358 # Is the header compilable?
25359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 $ac_includes_default
25368 #include <$ac_header>
25370 rm -f conftest.$ac_objext
25371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25372 (eval $ac_compile) 2>conftest.er1
25374 grep -v '^ *+' conftest.er1 >conftest.err
25376 cat conftest.err >&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); } &&
25379 { ac_try='test -z "$ac_c_werror_flag"
25380 || test ! -s conftest.err'
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; } &&
25386 { ac_try='test -s conftest.$ac_objext'
25387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388 (eval $ac_try) 2>&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 ac_header_compiler=yes
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25397 ac_header_compiler=no
25399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25401 echo "${ECHO_T}$ac_header_compiler" >&6
25403 # Is the header present?
25404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25406 cat >conftest.$ac_ext <<_ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 #include <$ac_header>
25414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25417 grep -v '^ *+' conftest.er1 >conftest.err
25419 cat conftest.err >&5
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } >/dev/null; then
25422 if test -s conftest.err; then
25423 ac_cpp_err=$ac_c_preproc_warn_flag
25424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25431 if test -z "$ac_cpp_err"; then
25432 ac_header_preproc=yes
25434 echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25437 ac_header_preproc=no
25439 rm -f conftest.err conftest.$ac_ext
25440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25441 echo "${ECHO_T}$ac_header_preproc" >&6
25443 # So? What about this header?
25444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25450 ac_header_preproc=yes
25453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25467 ## ------------------------------------------ ##
25468 ## Report this to the AC_PACKAGE_NAME lists. ##
25469 ## ------------------------------------------ ##
25472 sed "s/^/$as_me: WARNING: /" >&2
25475 echo "$as_me:$LINENO: checking for $ac_header" >&5
25476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25478 echo $ECHO_N "(cached) $ECHO_C" >&6
25480 eval "$as_ac_Header=\$ac_header_preproc"
25482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25487 cat >>confdefs.h <<_ACEOF
25488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25496 if test $ac_cv_header_pth_h = yes ; then
25497 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25498 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25499 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25500 echo $ECHO_N "(cached) $ECHO_C" >&6
25502 ac_check_lib_save_LIBS=$LIBS
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25511 /* Override any gcc2 internal prototype to avoid an error. */
25515 /* We use char because int might match the return type of a gcc2
25516 builtin and then its argument prototype would still apply. */
25517 char pth_version ();
25526 rm -f conftest.$ac_objext conftest$ac_exeext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528 (eval $ac_link) 2>conftest.er1
25530 grep -v '^ *+' conftest.er1 >conftest.err
25532 cat conftest.err >&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } &&
25535 { ac_try='test -z "$ac_c_werror_flag"
25536 || test ! -s conftest.err'
25537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538 (eval $ac_try) 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; } &&
25542 { ac_try='test -s conftest$ac_exeext'
25543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544 (eval $ac_try) 2>&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); }; }; then
25548 ac_cv_lib_pth_pth_version=yes
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25553 ac_cv_lib_pth_pth_version=no
25555 rm -f conftest.err conftest.$ac_objext \
25556 conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_check_lib_save_LIBS
25559 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25560 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25561 if test $ac_cv_lib_pth_pth_version = yes; then
25568 if test $have_pth = yes ; then
25570 cat >>confdefs.h <<\_ACEOF
25571 #define HAVE_GNU_PTH 1
25574 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25575 ol_link_threads=pth
25576 ol_with_threads=found
25578 if test $ol_with_yielding_select = auto ; then
25579 ol_with_yielding_select=yes
25586 case $ol_with_threads in auto | yes | lwp)
25590 for ac_header in thread.h synch.h
25592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25594 echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25602 # Is the header compilable?
25603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25605 cat >conftest.$ac_ext <<_ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25612 #include <$ac_header>
25614 rm -f conftest.$ac_objext
25615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25616 (eval $ac_compile) 2>conftest.er1
25618 grep -v '^ *+' conftest.er1 >conftest.err
25620 cat conftest.err >&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } &&
25623 { ac_try='test -z "$ac_c_werror_flag"
25624 || test ! -s conftest.err'
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; } &&
25630 { ac_try='test -s conftest.$ac_objext'
25631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632 (eval $ac_try) 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_header_compiler=yes
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25641 ac_header_compiler=no
25643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25645 echo "${ECHO_T}$ac_header_compiler" >&6
25647 # Is the header present?
25648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25650 cat >conftest.$ac_ext <<_ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 #include <$ac_header>
25658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25661 grep -v '^ *+' conftest.er1 >conftest.err
25663 cat conftest.err >&5
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } >/dev/null; then
25666 if test -s conftest.err; then
25667 ac_cpp_err=$ac_c_preproc_warn_flag
25668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25675 if test -z "$ac_cpp_err"; then
25676 ac_header_preproc=yes
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 ac_header_preproc=no
25683 rm -f conftest.err conftest.$ac_ext
25684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25685 echo "${ECHO_T}$ac_header_preproc" >&6
25687 # So? What about this header?
25688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25694 ac_header_preproc=yes
25697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25711 ## ------------------------------------------ ##
25712 ## Report this to the AC_PACKAGE_NAME lists. ##
25713 ## ------------------------------------------ ##
25716 sed "s/^/$as_me: WARNING: /" >&2
25719 echo "$as_me:$LINENO: checking for $ac_header" >&5
25720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25722 echo $ECHO_N "(cached) $ECHO_C" >&6
25724 eval "$as_ac_Header=\$ac_header_preproc"
25726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25731 cat >>confdefs.h <<_ACEOF
25732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25739 if test $ac_cv_header_thread_h = yes &&
25740 test $ac_cv_header_synch_h = yes ; then
25741 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25742 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25743 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 ac_check_lib_save_LIBS=$LIBS
25747 LIBS="-lthread $LIBS"
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25755 /* Override any gcc2 internal prototype to avoid an error. */
25759 /* We use char because int might match the return type of a gcc2
25760 builtin and then its argument prototype would still apply. */
25761 char thr_create ();
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772 (eval $ac_link) 2>conftest.er1
25774 grep -v '^ *+' conftest.er1 >conftest.err
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
25779 { ac_try='test -z "$ac_c_werror_flag"
25780 || test ! -s conftest.err'
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_lib_thread_thr_create=yes
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ac_cv_lib_thread_thr_create=no
25799 rm -f conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801 LIBS=$ac_check_lib_save_LIBS
25803 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25804 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25805 if test $ac_cv_lib_thread_thr_create = yes; then
25812 if test $have_thr = yes ; then
25814 cat >>confdefs.h <<\_ACEOF
25818 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25819 ol_link_threads=thr
25821 if test $ol_with_yielding_select = auto ; then
25822 ol_with_yielding_select=yes
25828 thr_setconcurrency \
25829 thr_getconcurrency \
25832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25833 echo "$as_me:$LINENO: checking for $ac_func" >&5
25834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25835 if eval "test \"\${$as_ac_var+set}\" = set"; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25846 #define $ac_func innocuous_$ac_func
25848 /* System header to define __stub macros and hopefully few prototypes,
25849 which can conflict with char $ac_func (); below.
25850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25851 <limits.h> exists even on freestanding compilers. */
25854 # include <limits.h>
25856 # include <assert.h>
25861 /* Override any gcc2 internal prototype to avoid an error. */
25866 /* We use char because int might match the return type of a gcc2
25867 builtin and then its argument prototype would still apply. */
25869 /* The GNU C library defines this for functions which it implements
25870 to always fail with ENOSYS. Some functions are actually named
25871 something starting with __ and the normal name is an alias. */
25872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25875 char (*f) () = $ac_func;
25884 return f != $ac_func;
25889 rm -f conftest.$ac_objext conftest$ac_exeext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25891 (eval $ac_link) 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } &&
25898 { ac_try='test -z "$ac_c_werror_flag"
25899 || test ! -s conftest.err'
25900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901 (eval $ac_try) 2>&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); }; } &&
25905 { ac_try='test -s conftest$ac_exeext'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; }; then
25911 eval "$as_ac_var=yes"
25913 echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25916 eval "$as_ac_var=no"
25918 rm -f conftest.err conftest.$ac_objext \
25919 conftest$ac_exeext conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25923 if test `eval echo '${'$as_ac_var'}'` = yes; then
25924 cat >>confdefs.h <<_ACEOF
25925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25935 for ac_header in lwp/lwp.h
25937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25939 echo "$as_me:$LINENO: checking for $ac_header" >&5
25940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
25944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25947 # Is the header compilable?
25948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25950 cat >conftest.$ac_ext <<_ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h. */
25956 $ac_includes_default
25957 #include <$ac_header>
25959 rm -f conftest.$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961 (eval $ac_compile) 2>conftest.er1
25963 grep -v '^ *+' conftest.er1 >conftest.err
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
25968 { ac_try='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest.$ac_objext'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; }; then
25981 ac_header_compiler=yes
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 ac_header_compiler=no
25988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25990 echo "${ECHO_T}$ac_header_compiler" >&6
25992 # Is the header present?
25993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 #include <$ac_header>
26003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } >/dev/null; then
26011 if test -s conftest.err; then
26012 ac_cpp_err=$ac_c_preproc_warn_flag
26013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26020 if test -z "$ac_cpp_err"; then
26021 ac_header_preproc=yes
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_header_preproc=no
26028 rm -f conftest.err conftest.$ac_ext
26029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26030 echo "${ECHO_T}$ac_header_preproc" >&6
26032 # So? What about this header?
26033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26039 ac_header_preproc=yes
26042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26056 ## ------------------------------------------ ##
26057 ## Report this to the AC_PACKAGE_NAME lists. ##
26058 ## ------------------------------------------ ##
26061 sed "s/^/$as_me: WARNING: /" >&2
26064 echo "$as_me:$LINENO: checking for $ac_header" >&5
26065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26069 eval "$as_ac_Header=\$ac_header_preproc"
26071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26076 cat >>confdefs.h <<_ACEOF
26077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26084 if test $ac_cv_header_lwp_lwp_h = yes ; then
26085 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26086 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26087 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26090 ac_check_lib_save_LIBS=$LIBS
26092 cat >conftest.$ac_ext <<_ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26099 /* Override any gcc2 internal prototype to avoid an error. */
26103 /* We use char because int might match the return type of a gcc2
26104 builtin and then its argument prototype would still apply. */
26105 char lwp_create ();
26114 rm -f conftest.$ac_objext conftest$ac_exeext
26115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26116 (eval $ac_link) 2>conftest.er1
26118 grep -v '^ *+' conftest.er1 >conftest.err
26120 cat conftest.err >&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } &&
26123 { ac_try='test -z "$ac_c_werror_flag"
26124 || test ! -s conftest.err'
26125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); }; } &&
26130 { ac_try='test -s conftest$ac_exeext'
26131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26132 (eval $ac_try) 2>&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); }; }; then
26136 ac_cv_lib_lwp_lwp_create=yes
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_cv_lib_lwp_lwp_create=no
26143 rm -f conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
26145 LIBS=$ac_check_lib_save_LIBS
26147 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26148 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26149 if test $ac_cv_lib_lwp_lwp_create = yes; then
26156 if test $have_lwp = yes ; then
26158 cat >>confdefs.h <<\_ACEOF
26162 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26163 ol_link_threads=lwp
26165 if test $ol_with_yielding_select = auto ; then
26166 ol_with_yielding_select=no
26173 if test $ol_with_yielding_select = yes ; then
26175 cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_YIELDING_SELECT 1
26181 if test $ol_with_threads = manual ; then
26182 ol_link_threads=yes
26184 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26185 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26189 for ac_header in pthread.h sched.h
26191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26193 echo "$as_me:$LINENO: checking for $ac_header" >&5
26194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26201 # Is the header compilable?
26202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26204 cat >conftest.$ac_ext <<_ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h. */
26210 $ac_includes_default
26211 #include <$ac_header>
26213 rm -f conftest.$ac_objext
26214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26215 (eval $ac_compile) 2>conftest.er1
26217 grep -v '^ *+' conftest.er1 >conftest.err
26219 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } &&
26222 { ac_try='test -z "$ac_c_werror_flag"
26223 || test ! -s conftest.err'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; } &&
26229 { ac_try='test -s conftest.$ac_objext'
26230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231 (eval $ac_try) 2>&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); }; }; then
26235 ac_header_compiler=yes
26237 echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26240 ac_header_compiler=no
26242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26244 echo "${ECHO_T}$ac_header_compiler" >&6
26246 # Is the header present?
26247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26249 cat >conftest.$ac_ext <<_ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h. */
26255 #include <$ac_header>
26257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26260 grep -v '^ *+' conftest.er1 >conftest.err
26262 cat conftest.err >&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); } >/dev/null; then
26265 if test -s conftest.err; then
26266 ac_cpp_err=$ac_c_preproc_warn_flag
26267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26274 if test -z "$ac_cpp_err"; then
26275 ac_header_preproc=yes
26277 echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26280 ac_header_preproc=no
26282 rm -f conftest.err conftest.$ac_ext
26283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26284 echo "${ECHO_T}$ac_header_preproc" >&6
26286 # So? What about this header?
26287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26293 ac_header_preproc=yes
26296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26310 ## ------------------------------------------ ##
26311 ## Report this to the AC_PACKAGE_NAME lists. ##
26312 ## ------------------------------------------ ##
26315 sed "s/^/$as_me: WARNING: /" >&2
26318 echo "$as_me:$LINENO: checking for $ac_header" >&5
26319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26321 echo $ECHO_N "(cached) $ECHO_C" >&6
26323 eval "$as_ac_Header=\$ac_header_preproc"
26325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26330 cat >>confdefs.h <<_ACEOF
26331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26340 for ac_func in sched_yield pthread_yield
26342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26343 echo "$as_me:$LINENO: checking for $ac_func" >&5
26344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26345 if eval "test \"\${$as_ac_var+set}\" = set"; then
26346 echo $ECHO_N "(cached) $ECHO_C" >&6
26348 cat >conftest.$ac_ext <<_ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26356 #define $ac_func innocuous_$ac_func
26358 /* System header to define __stub macros and hopefully few prototypes,
26359 which can conflict with char $ac_func (); below.
26360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26361 <limits.h> exists even on freestanding compilers. */
26364 # include <limits.h>
26366 # include <assert.h>
26371 /* Override any gcc2 internal prototype to avoid an error. */
26376 /* We use char because int might match the return type of a gcc2
26377 builtin and then its argument prototype would still apply. */
26379 /* The GNU C library defines this for functions which it implements
26380 to always fail with ENOSYS. Some functions are actually named
26381 something starting with __ and the normal name is an alias. */
26382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26385 char (*f) () = $ac_func;
26394 return f != $ac_func;
26399 rm -f conftest.$ac_objext conftest$ac_exeext
26400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26401 (eval $ac_link) 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } &&
26408 { ac_try='test -z "$ac_c_werror_flag"
26409 || test ! -s conftest.err'
26410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411 (eval $ac_try) 2>&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); }; } &&
26415 { ac_try='test -s conftest$ac_exeext'
26416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417 (eval $ac_try) 2>&5
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); }; }; then
26421 eval "$as_ac_var=yes"
26423 echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26426 eval "$as_ac_var=no"
26428 rm -f conftest.err conftest.$ac_objext \
26429 conftest$ac_exeext conftest.$ac_ext
26431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26433 if test `eval echo '${'$as_ac_var'}'` = yes; then
26434 cat >>confdefs.h <<_ACEOF
26435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26442 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26443 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26444 if test "${ol_cv_header_linux_threads+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 cat >conftest.$ac_ext <<_ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h. */
26453 #include <pthread.h>
26455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26456 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26457 ol_cv_header_linux_threads=yes
26459 ol_cv_header_linux_threads=no
26465 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26466 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26467 if test $ol_cv_header_linux_threads = yes; then
26469 cat >>confdefs.h <<\_ACEOF
26470 #define HAVE_LINUX_THREADS 1
26477 for ac_header in mach/cthreads.h
26479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26481 echo "$as_me:$LINENO: checking for $ac_header" >&5
26482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26484 echo $ECHO_N "(cached) $ECHO_C" >&6
26486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489 # Is the header compilable?
26490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 $ac_includes_default
26499 #include <$ac_header>
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503 (eval $ac_compile) 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
26510 { ac_try='test -z "$ac_c_werror_flag"
26511 || test ! -s conftest.err'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest.$ac_objext'
26518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519 (eval $ac_try) 2>&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); }; }; then
26523 ac_header_compiler=yes
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_header_compiler=no
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26532 echo "${ECHO_T}$ac_header_compiler" >&6
26534 # Is the header present?
26535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 #include <$ac_header>
26545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26548 grep -v '^ *+' conftest.er1 >conftest.err
26550 cat conftest.err >&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } >/dev/null; then
26553 if test -s conftest.err; then
26554 ac_cpp_err=$ac_c_preproc_warn_flag
26555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26562 if test -z "$ac_cpp_err"; then
26563 ac_header_preproc=yes
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26568 ac_header_preproc=no
26570 rm -f conftest.err conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26572 echo "${ECHO_T}$ac_header_preproc" >&6
26574 # So? What about this header?
26575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26581 ac_header_preproc=yes
26584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26598 ## ------------------------------------------ ##
26599 ## Report this to the AC_PACKAGE_NAME lists. ##
26600 ## ------------------------------------------ ##
26603 sed "s/^/$as_me: WARNING: /" >&2
26606 echo "$as_me:$LINENO: checking for $ac_header" >&5
26607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
26611 eval "$as_ac_Header=\$ac_header_preproc"
26613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26618 cat >>confdefs.h <<_ACEOF
26619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26627 for ac_header in lwp/lwp.h
26629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26631 echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639 # Is the header compilable?
26640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26642 cat >conftest.$ac_ext <<_ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h. */
26648 $ac_includes_default
26649 #include <$ac_header>
26651 rm -f conftest.$ac_objext
26652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26653 (eval $ac_compile) 2>conftest.er1
26655 grep -v '^ *+' conftest.er1 >conftest.err
26657 cat conftest.err >&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } &&
26660 { ac_try='test -z "$ac_c_werror_flag"
26661 || test ! -s conftest.err'
26662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 (eval $ac_try) 2>&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; } &&
26667 { ac_try='test -s conftest.$ac_objext'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; }; then
26673 ac_header_compiler=yes
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678 ac_header_compiler=no
26680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26682 echo "${ECHO_T}$ac_header_compiler" >&6
26684 # Is the header present?
26685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26687 cat >conftest.$ac_ext <<_ACEOF
26690 cat confdefs.h >>conftest.$ac_ext
26691 cat >>conftest.$ac_ext <<_ACEOF
26692 /* end confdefs.h. */
26693 #include <$ac_header>
26695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26698 grep -v '^ *+' conftest.er1 >conftest.err
26700 cat conftest.err >&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); } >/dev/null; then
26703 if test -s conftest.err; then
26704 ac_cpp_err=$ac_c_preproc_warn_flag
26705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26712 if test -z "$ac_cpp_err"; then
26713 ac_header_preproc=yes
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 ac_header_preproc=no
26720 rm -f conftest.err conftest.$ac_ext
26721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26722 echo "${ECHO_T}$ac_header_preproc" >&6
26724 # So? What about this header?
26725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26731 ac_header_preproc=yes
26734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26748 ## ------------------------------------------ ##
26749 ## Report this to the AC_PACKAGE_NAME lists. ##
26750 ## ------------------------------------------ ##
26753 sed "s/^/$as_me: WARNING: /" >&2
26756 echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 eval "$as_ac_Header=\$ac_header_preproc"
26763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26768 cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26778 for ac_header in thread.h synch.h
26780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782 echo "$as_me:$LINENO: checking for $ac_header" >&5
26783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26790 # Is the header compilable?
26791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26793 cat >conftest.$ac_ext <<_ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26799 $ac_includes_default
26800 #include <$ac_header>
26802 rm -f conftest.$ac_objext
26803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26804 (eval $ac_compile) 2>conftest.er1
26806 grep -v '^ *+' conftest.er1 >conftest.err
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -z "$ac_c_werror_flag"
26812 || test ! -s conftest.err'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; } &&
26818 { ac_try='test -s conftest.$ac_objext'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_header_compiler=yes
26826 echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26829 ac_header_compiler=no
26831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 echo "${ECHO_T}$ac_header_compiler" >&6
26835 # Is the header present?
26836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <$ac_header>
26846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } >/dev/null; then
26854 if test -s conftest.err; then
26855 ac_cpp_err=$ac_c_preproc_warn_flag
26856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26863 if test -z "$ac_cpp_err"; then
26864 ac_header_preproc=yes
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26869 ac_header_preproc=no
26871 rm -f conftest.err conftest.$ac_ext
26872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 echo "${ECHO_T}$ac_header_preproc" >&6
26875 # So? What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882 ac_header_preproc=yes
26885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26899 ## ------------------------------------------ ##
26900 ## Report this to the AC_PACKAGE_NAME lists. ##
26901 ## ------------------------------------------ ##
26904 sed "s/^/$as_me: WARNING: /" >&2
26907 echo "$as_me:$LINENO: checking for $ac_header" >&5
26908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910 echo $ECHO_N "(cached) $ECHO_C" >&6
26912 eval "$as_ac_Header=\$ac_header_preproc"
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26919 cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26929 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26930 cat >>confdefs.h <<\_ACEOF
26931 #define REENTRANT 1
26934 cat >>confdefs.h <<\_ACEOF
26935 #define _REENTRANT 1
26938 cat >>confdefs.h <<\_ACEOF
26939 #define THREAD_SAFE 1
26942 cat >>confdefs.h <<\_ACEOF
26943 #define _THREAD_SAFE 1
26946 cat >>confdefs.h <<\_ACEOF
26947 #define THREADSAFE 1
26950 cat >>confdefs.h <<\_ACEOF
26951 #define _THREADSAFE 1
26954 cat >>confdefs.h <<\_ACEOF
26955 #define _SGI_MP_SOURCE 1
26959 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26960 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26961 if test "${ol_cv_errno_thread_specific+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26982 (eval $ac_link) 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } &&
26989 { ac_try='test -z "$ac_c_werror_flag"
26990 || test ! -s conftest.err'
26991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992 (eval $ac_try) 2>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; } &&
26996 { ac_try='test -s conftest$ac_exeext'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; }; then
27002 ol_cv_errno_thread_specific=yes
27004 echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27007 ol_cv_errno_thread_specific=no
27009 rm -f conftest.err conftest.$ac_objext \
27010 conftest$ac_exeext conftest.$ac_ext
27013 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27014 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27016 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27017 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27018 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27037 rm -f conftest.$ac_objext conftest$ac_exeext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27039 (eval $ac_link) 2>conftest.er1
27041 grep -v '^ *+' conftest.er1 >conftest.err
27043 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
27046 { ac_try='test -z "$ac_c_werror_flag"
27047 || test ! -s conftest.err'
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest$ac_exeext'
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
27059 ol_cv_h_errno_thread_specific=yes
27061 echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27064 ol_cv_h_errno_thread_specific=no
27066 rm -f conftest.err conftest.$ac_objext \
27067 conftest$ac_exeext conftest.$ac_ext
27070 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27071 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27073 if test $ol_cv_errno_thread_specific != yes ||
27074 test $ol_cv_h_errno_thread_specific != yes ; then
27075 LIBS="$LTHREAD_LIBS $LIBS"
27081 if test $ol_link_threads = no ; then
27082 if test $ol_with_threads = yes ; then
27083 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27084 echo "$as_me: error: no suitable thread support" >&2;}
27085 { (exit 1); exit 1; }; }
27088 if test $ol_with_threads = auto ; then
27089 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27090 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27095 cat >>confdefs.h <<\_ACEOF
27096 #define NO_THREADS 1
27102 if test $ol_link_threads != no ; then
27104 cat >>confdefs.h <<\_ACEOF
27105 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27115 gethostbyname_r gethostbyaddr_r \
27118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27119 echo "$as_me:$LINENO: checking for $ac_func" >&5
27120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27121 if eval "test \"\${$as_ac_var+set}\" = set"; then
27122 echo $ECHO_N "(cached) $ECHO_C" >&6
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27132 #define $ac_func innocuous_$ac_func
27134 /* System header to define __stub macros and hopefully few prototypes,
27135 which can conflict with char $ac_func (); below.
27136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27137 <limits.h> exists even on freestanding compilers. */
27140 # include <limits.h>
27142 # include <assert.h>
27147 /* Override any gcc2 internal prototype to avoid an error. */
27152 /* We use char because int might match the return type of a gcc2
27153 builtin and then its argument prototype would still apply. */
27155 /* The GNU C library defines this for functions which it implements
27156 to always fail with ENOSYS. Some functions are actually named
27157 something starting with __ and the normal name is an alias. */
27158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27161 char (*f) () = $ac_func;
27170 return f != $ac_func;
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27177 (eval $ac_link) 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } &&
27184 { ac_try='test -z "$ac_c_werror_flag"
27185 || test ! -s conftest.err'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; } &&
27191 { ac_try='test -s conftest$ac_exeext'
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; }; then
27197 eval "$as_ac_var=yes"
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27202 eval "$as_ac_var=no"
27204 rm -f conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
27207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27209 if test `eval echo '${'$as_ac_var'}'` = yes; then
27210 cat >>confdefs.h <<_ACEOF
27211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27218 if test "$ac_cv_func_ctime_r" = no ; then
27219 ol_cv_func_ctime_r_nargs=0
27221 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27222 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27223 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 cat >conftest.$ac_ext <<_ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h. */
27236 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27241 rm -f conftest.$ac_objext
27242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27243 (eval $ac_compile) 2>conftest.er1
27245 grep -v '^ *+' conftest.er1 >conftest.err
27247 cat conftest.err >&5
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); } &&
27250 { ac_try='test -z "$ac_c_werror_flag"
27251 || test ! -s conftest.err'
27252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27253 (eval $ac_try) 2>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; } &&
27257 { ac_try='test -s conftest.$ac_objext'
27258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259 (eval $ac_try) 2>&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; }; then
27263 ol_cv_func_ctime_r_nargs3=yes
27265 echo "$as_me: failed program was:" >&5
27266 sed 's/^/| /' conftest.$ac_ext >&5
27268 ol_cv_func_ctime_r_nargs3=no
27270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27272 cat >conftest.$ac_ext <<_ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h. */
27282 time_t ti; char *buffer; ctime_r(&ti,buffer);
27287 rm -f conftest.$ac_objext
27288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27289 (eval $ac_compile) 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
27296 { ac_try='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try='test -s conftest.$ac_objext'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ol_cv_func_ctime_r_nargs2=yes
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 ol_cv_func_ctime_r_nargs2=no
27316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27318 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27319 test $ol_cv_func_ctime_r_nargs2 = no ; then
27321 ol_cv_func_ctime_r_nargs=3
27323 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27324 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27326 ol_cv_func_ctime_r_nargs=2
27329 ol_cv_func_ctime_r_nargs=0
27333 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27334 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27336 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27338 cat >>confdefs.h <<_ACEOF
27339 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27346 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27347 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27348 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27349 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27350 echo $ECHO_N "(cached) $ECHO_C" >&6
27352 cat >conftest.$ac_ext <<_ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h. */
27358 #include <sys/types.h>
27359 #include <sys/socket.h>
27360 #include <netinet/in.h>
27362 #define BUFSIZE (sizeof(struct hostent)+10)
27366 struct hostent hent; char buffer[BUFSIZE];
27367 int bufsize=BUFSIZE;int h_errno;
27368 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27369 buffer, bufsize, &h_errno);
27374 rm -f conftest.$ac_objext
27375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27376 (eval $ac_compile) 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag"
27384 || test ! -s conftest.err'
27385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386 (eval $ac_try) 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest.$ac_objext'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; }; then
27396 ol_cv_func_gethostbyname_r_nargs5=yes
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ol_cv_func_gethostbyname_r_nargs5=no
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27405 cat >conftest.$ac_ext <<_ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h. */
27411 #include <sys/types.h>
27412 #include <sys/socket.h>
27413 #include <netinet/in.h>
27415 #define BUFSIZE (sizeof(struct hostent)+10)
27419 struct hostent hent;struct hostent *rhent;
27420 char buffer[BUFSIZE];
27421 int bufsize=BUFSIZE;int h_errno;
27422 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27428 rm -f conftest.$ac_objext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27430 (eval $ac_compile) 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag"
27438 || test ! -s conftest.err'
27439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440 (eval $ac_try) 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
27450 ol_cv_func_gethostbyname_r_nargs6=yes
27452 echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27455 ol_cv_func_gethostbyname_r_nargs6=no
27457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27459 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27460 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27462 ol_cv_func_gethostbyname_r_nargs=5
27464 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27465 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27467 ol_cv_func_gethostbyname_r_nargs=6
27470 ol_cv_func_gethostbyname_r_nargs=0
27474 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27475 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27476 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27478 cat >>confdefs.h <<_ACEOF
27479 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27485 ol_cv_func_gethostbyname_r_nargs=0
27488 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27489 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27490 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27491 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27492 echo $ECHO_N "(cached) $ECHO_C" >&6
27494 cat >conftest.$ac_ext <<_ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h. */
27500 #include <sys/types.h>
27501 #include <sys/socket.h>
27502 #include <netinet/in.h>
27504 #define BUFSIZE (sizeof(struct hostent)+10)
27508 struct hostent hent; char buffer[BUFSIZE];
27509 struct in_addr add;
27510 size_t alen=sizeof(struct in_addr);
27511 int bufsize=BUFSIZE;int h_errno;
27512 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27513 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27518 rm -f conftest.$ac_objext
27519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27520 (eval $ac_compile) 2>conftest.er1
27522 grep -v '^ *+' conftest.er1 >conftest.err
27524 cat conftest.err >&5
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
27527 { ac_try='test -z "$ac_c_werror_flag"
27528 || test ! -s conftest.err'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest.$ac_objext'
27535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536 (eval $ac_try) 2>&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
27540 ol_cv_func_gethostbyaddr_r_nargs7=yes
27542 echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27545 ol_cv_func_gethostbyaddr_r_nargs7=no
27547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27549 cat >conftest.$ac_ext <<_ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 #include <sys/types.h>
27556 #include <sys/socket.h>
27557 #include <netinet/in.h>
27559 #define BUFSIZE (sizeof(struct hostent)+10)
27563 struct hostent hent;
27564 struct hostent *rhent; char buffer[BUFSIZE];
27565 struct in_addr add;
27566 size_t alen=sizeof(struct in_addr);
27567 int bufsize=BUFSIZE;int h_errno;
27568 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27569 alen, AF_INET, &hent, buffer, bufsize,
27575 rm -f conftest.$ac_objext
27576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27577 (eval $ac_compile) 2>conftest.er1
27579 grep -v '^ *+' conftest.er1 >conftest.err
27581 cat conftest.err >&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } &&
27584 { ac_try='test -z "$ac_c_werror_flag"
27585 || test ! -s conftest.err'
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; } &&
27591 { ac_try='test -s conftest.$ac_objext'
27592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593 (eval $ac_try) 2>&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; }; then
27597 ol_cv_func_gethostbyaddr_r_nargs8=yes
27599 echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27602 ol_cv_func_gethostbyaddr_r_nargs8=no
27604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27606 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27607 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27609 ol_cv_func_gethostbyaddr_r_nargs=7
27611 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27612 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27614 ol_cv_func_gethostbyaddr_r_nargs=8
27617 ol_cv_func_gethostbyaddr_r_nargs=0
27621 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27622 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27623 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27625 cat >>confdefs.h <<_ACEOF
27626 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27632 ol_cv_func_gethostbyaddr_r_nargs=0
27637 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27639 if test $ol_enable_ldbm_api = bcompat; then \
27642 for ac_header in db_185.h db.h
27644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27646 echo "$as_me:$LINENO: checking for $ac_header" >&5
27647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27654 # Is the header compilable?
27655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27663 $ac_includes_default
27664 #include <$ac_header>
27666 rm -f conftest.$ac_objext
27667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27668 (eval $ac_compile) 2>conftest.er1
27670 grep -v '^ *+' conftest.er1 >conftest.err
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
27675 { ac_try='test -z "$ac_c_werror_flag"
27676 || test ! -s conftest.err'
27677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678 (eval $ac_try) 2>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; } &&
27682 { ac_try='test -s conftest.$ac_objext'
27683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684 (eval $ac_try) 2>&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
27688 ac_header_compiler=yes
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 ac_header_compiler=no
27695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27697 echo "${ECHO_T}$ac_header_compiler" >&6
27699 # Is the header present?
27700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27702 cat >conftest.$ac_ext <<_ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27708 #include <$ac_header>
27710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27713 grep -v '^ *+' conftest.er1 >conftest.err
27715 cat conftest.err >&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } >/dev/null; then
27718 if test -s conftest.err; then
27719 ac_cpp_err=$ac_c_preproc_warn_flag
27720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27727 if test -z "$ac_cpp_err"; then
27728 ac_header_preproc=yes
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ac_header_preproc=no
27735 rm -f conftest.err conftest.$ac_ext
27736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27737 echo "${ECHO_T}$ac_header_preproc" >&6
27739 # So? What about this header?
27740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27746 ac_header_preproc=yes
27749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27763 ## ------------------------------------------ ##
27764 ## Report this to the AC_PACKAGE_NAME lists. ##
27765 ## ------------------------------------------ ##
27768 sed "s/^/$as_me: WARNING: /" >&2
27771 echo "$as_me:$LINENO: checking for $ac_header" >&5
27772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27776 eval "$as_ac_Header=\$ac_header_preproc"
27778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27783 cat >>confdefs.h <<_ACEOF
27784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27791 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27792 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27793 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27794 if test "${ol_cv_header_db1+set}" = set; then
27795 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27806 # include <db_185.h>
27811 /* this check could be improved */
27812 #ifndef DB_VERSION_MAJOR
27813 # define DB_VERSION_MAJOR 1
27816 #if DB_VERSION_MAJOR == 1
27821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27822 $EGREP "__db_version_1" >/dev/null 2>&1; then
27823 ol_cv_header_db1=yes
27825 ol_cv_header_db1=no
27830 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27831 echo "${ECHO_T}$ol_cv_header_db1" >&6
27833 if test $ol_cv_header_db1 = yes ; then
27835 if test $ol_cv_lib_db = no ; then
27836 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27837 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27838 if test "${ol_cv_db_none+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27844 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27853 #ifdef HAVE_DB_185_H
27854 # include <db_185.h>
27859 #ifndef DB_VERSION_MAJOR
27860 # define DB_VERSION_MAJOR 1
27864 #define NULL ((void*)0)
27871 #if DB_VERSION_MAJOR > 1
27874 int major, minor, patch;
27876 version = db_version( &major, &minor, &patch );
27878 if( major != DB_VERSION_MAJOR ||
27879 minor < DB_VERSION_MINOR )
27881 printf("Berkeley DB version mismatch\n"
27882 "\theader: %s\n\tlibrary: %s\n",
27883 DB_VERSION_STRING, version);
27889 #if DB_VERSION_MAJOR > 2
27890 db_env_create( NULL, 0 );
27891 #elif DB_VERSION_MAJOR > 1
27892 db_appexit( NULL );
27894 (void) dbopen( NULL, 0, 0, 0, NULL);
27901 rm -f conftest.$ac_objext conftest$ac_exeext
27902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27903 (eval $ac_link) 2>conftest.er1
27905 grep -v '^ *+' conftest.er1 >conftest.err
27907 cat conftest.err >&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); } &&
27910 { ac_try='test -z "$ac_c_werror_flag"
27911 || test ! -s conftest.err'
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; } &&
27917 { ac_try='test -s conftest$ac_exeext'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27925 echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27930 rm -f conftest.err conftest.$ac_objext \
27931 conftest$ac_exeext conftest.$ac_ext
27936 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
27937 echo "${ECHO_T}$ol_cv_db_none" >&6
27939 if test $ol_cv_db_none = yes ; then
27944 if test $ol_cv_lib_db = no ; then
27945 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27946 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27947 if test "${ol_cv_db_db43+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27955 cat >conftest.$ac_ext <<_ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h. */
27962 #ifdef HAVE_DB_185_H
27963 # include <db_185.h>
27968 #ifndef DB_VERSION_MAJOR
27969 # define DB_VERSION_MAJOR 1
27973 #define NULL ((void*)0)
27980 #if DB_VERSION_MAJOR > 1
27983 int major, minor, patch;
27985 version = db_version( &major, &minor, &patch );
27987 if( major != DB_VERSION_MAJOR ||
27988 minor < DB_VERSION_MINOR )
27990 printf("Berkeley DB version mismatch\n"
27991 "\theader: %s\n\tlibrary: %s\n",
27992 DB_VERSION_STRING, version);
27998 #if DB_VERSION_MAJOR > 2
27999 db_env_create( NULL, 0 );
28000 #elif DB_VERSION_MAJOR > 1
28001 db_appexit( NULL );
28003 (void) dbopen( NULL, 0, 0, 0, NULL);
28010 rm -f conftest.$ac_objext conftest$ac_exeext
28011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28012 (eval $ac_link) 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } &&
28019 { ac_try='test -z "$ac_c_werror_flag"
28020 || test ! -s conftest.err'
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; } &&
28026 { ac_try='test -s conftest$ac_exeext'
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28034 echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28039 rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
28045 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28046 echo "${ECHO_T}$ol_cv_db_db43" >&6
28048 if test $ol_cv_db_db43 = yes ; then
28049 ol_cv_lib_db=-ldb43
28053 if test $ol_cv_lib_db = no ; then
28054 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28055 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28056 if test "${ol_cv_db_db_43+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28064 cat >conftest.$ac_ext <<_ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28071 #ifdef HAVE_DB_185_H
28072 # include <db_185.h>
28077 #ifndef DB_VERSION_MAJOR
28078 # define DB_VERSION_MAJOR 1
28082 #define NULL ((void*)0)
28089 #if DB_VERSION_MAJOR > 1
28092 int major, minor, patch;
28094 version = db_version( &major, &minor, &patch );
28096 if( major != DB_VERSION_MAJOR ||
28097 minor < DB_VERSION_MINOR )
28099 printf("Berkeley DB version mismatch\n"
28100 "\theader: %s\n\tlibrary: %s\n",
28101 DB_VERSION_STRING, version);
28107 #if DB_VERSION_MAJOR > 2
28108 db_env_create( NULL, 0 );
28109 #elif DB_VERSION_MAJOR > 1
28110 db_appexit( NULL );
28112 (void) dbopen( NULL, 0, 0, 0, NULL);
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28121 (eval $ac_link) 2>conftest.er1
28123 grep -v '^ *+' conftest.er1 >conftest.err
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag"
28129 || test ! -s conftest.err'
28130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; } &&
28135 { ac_try='test -s conftest$ac_exeext'
28136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137 (eval $ac_try) 2>&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; }; then
28143 echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28148 rm -f conftest.err conftest.$ac_objext \
28149 conftest$ac_exeext conftest.$ac_ext
28154 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28155 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28157 if test $ol_cv_db_db_43 = yes ; then
28158 ol_cv_lib_db=-ldb-43
28162 if test $ol_cv_lib_db = no ; then
28163 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28164 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28165 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28171 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28173 cat >conftest.$ac_ext <<_ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28180 #ifdef HAVE_DB_185_H
28181 # include <db_185.h>
28186 #ifndef DB_VERSION_MAJOR
28187 # define DB_VERSION_MAJOR 1
28191 #define NULL ((void*)0)
28198 #if DB_VERSION_MAJOR > 1
28201 int major, minor, patch;
28203 version = db_version( &major, &minor, &patch );
28205 if( major != DB_VERSION_MAJOR ||
28206 minor < DB_VERSION_MINOR )
28208 printf("Berkeley DB version mismatch\n"
28209 "\theader: %s\n\tlibrary: %s\n",
28210 DB_VERSION_STRING, version);
28216 #if DB_VERSION_MAJOR > 2
28217 db_env_create( NULL, 0 );
28218 #elif DB_VERSION_MAJOR > 1
28219 db_appexit( NULL );
28221 (void) dbopen( NULL, 0, 0, 0, NULL);
28228 rm -f conftest.$ac_objext conftest$ac_exeext
28229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28230 (eval $ac_link) 2>conftest.er1
28232 grep -v '^ *+' conftest.er1 >conftest.err
28234 cat conftest.err >&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } &&
28237 { ac_try='test -z "$ac_c_werror_flag"
28238 || test ! -s conftest.err'
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; } &&
28244 { ac_try='test -s conftest$ac_exeext'
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; }; then
28250 ol_cv_db_db_4_dot_3=yes
28252 echo "$as_me: failed program was:" >&5
28253 sed 's/^/| /' conftest.$ac_ext >&5
28255 ol_cv_db_db_4_dot_3=no
28257 rm -f conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
28263 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28264 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28266 if test $ol_cv_db_db_4_dot_3 = yes ; then
28267 ol_cv_lib_db=-ldb-4.3
28271 if test $ol_cv_lib_db = no ; then
28272 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28273 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28274 if test "${ol_cv_db_db_4_3+set}" = set; then
28275 echo $ECHO_N "(cached) $ECHO_C" >&6
28280 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28282 cat >conftest.$ac_ext <<_ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h. */
28289 #ifdef HAVE_DB_185_H
28290 # include <db_185.h>
28295 #ifndef DB_VERSION_MAJOR
28296 # define DB_VERSION_MAJOR 1
28300 #define NULL ((void*)0)
28307 #if DB_VERSION_MAJOR > 1
28310 int major, minor, patch;
28312 version = db_version( &major, &minor, &patch );
28314 if( major != DB_VERSION_MAJOR ||
28315 minor < DB_VERSION_MINOR )
28317 printf("Berkeley DB version mismatch\n"
28318 "\theader: %s\n\tlibrary: %s\n",
28319 DB_VERSION_STRING, version);
28325 #if DB_VERSION_MAJOR > 2
28326 db_env_create( NULL, 0 );
28327 #elif DB_VERSION_MAJOR > 1
28328 db_appexit( NULL );
28330 (void) dbopen( NULL, 0, 0, 0, NULL);
28337 rm -f conftest.$ac_objext conftest$ac_exeext
28338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28339 (eval $ac_link) 2>conftest.er1
28341 grep -v '^ *+' conftest.er1 >conftest.err
28343 cat conftest.err >&5
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); } &&
28346 { ac_try='test -z "$ac_c_werror_flag"
28347 || test ! -s conftest.err'
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; } &&
28353 { ac_try='test -s conftest$ac_exeext'
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; }; then
28359 ol_cv_db_db_4_3=yes
28361 echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28366 rm -f conftest.err conftest.$ac_objext \
28367 conftest$ac_exeext conftest.$ac_ext
28372 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28373 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28375 if test $ol_cv_db_db_4_3 = yes ; then
28376 ol_cv_lib_db=-ldb-4-3
28380 if test $ol_cv_lib_db = no ; then
28381 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28382 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28383 if test "${ol_cv_db_db42+set}" = set; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28391 cat >conftest.$ac_ext <<_ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28398 #ifdef HAVE_DB_185_H
28399 # include <db_185.h>
28404 #ifndef DB_VERSION_MAJOR
28405 # define DB_VERSION_MAJOR 1
28409 #define NULL ((void*)0)
28416 #if DB_VERSION_MAJOR > 1
28419 int major, minor, patch;
28421 version = db_version( &major, &minor, &patch );
28423 if( major != DB_VERSION_MAJOR ||
28424 minor < DB_VERSION_MINOR )
28426 printf("Berkeley DB version mismatch\n"
28427 "\theader: %s\n\tlibrary: %s\n",
28428 DB_VERSION_STRING, version);
28434 #if DB_VERSION_MAJOR > 2
28435 db_env_create( NULL, 0 );
28436 #elif DB_VERSION_MAJOR > 1
28437 db_appexit( NULL );
28439 (void) dbopen( NULL, 0, 0, 0, NULL);
28446 rm -f conftest.$ac_objext conftest$ac_exeext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448 (eval $ac_link) 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
28455 { ac_try='test -z "$ac_c_werror_flag"
28456 || test ! -s conftest.err'
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest$ac_exeext'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; }; then
28470 echo "$as_me: failed program was:" >&5
28471 sed 's/^/| /' conftest.$ac_ext >&5
28475 rm -f conftest.err conftest.$ac_objext \
28476 conftest$ac_exeext conftest.$ac_ext
28481 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28482 echo "${ECHO_T}$ol_cv_db_db42" >&6
28484 if test $ol_cv_db_db42 = yes ; then
28485 ol_cv_lib_db=-ldb42
28489 if test $ol_cv_lib_db = no ; then
28490 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28491 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28492 if test "${ol_cv_db_db_42+set}" = set; then
28493 echo $ECHO_N "(cached) $ECHO_C" >&6
28498 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28500 cat >conftest.$ac_ext <<_ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h. */
28507 #ifdef HAVE_DB_185_H
28508 # include <db_185.h>
28513 #ifndef DB_VERSION_MAJOR
28514 # define DB_VERSION_MAJOR 1
28518 #define NULL ((void*)0)
28525 #if DB_VERSION_MAJOR > 1
28528 int major, minor, patch;
28530 version = db_version( &major, &minor, &patch );
28532 if( major != DB_VERSION_MAJOR ||
28533 minor < DB_VERSION_MINOR )
28535 printf("Berkeley DB version mismatch\n"
28536 "\theader: %s\n\tlibrary: %s\n",
28537 DB_VERSION_STRING, version);
28543 #if DB_VERSION_MAJOR > 2
28544 db_env_create( NULL, 0 );
28545 #elif DB_VERSION_MAJOR > 1
28546 db_appexit( NULL );
28548 (void) dbopen( NULL, 0, 0, 0, NULL);
28555 rm -f conftest.$ac_objext conftest$ac_exeext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28557 (eval $ac_link) 2>conftest.er1
28559 grep -v '^ *+' conftest.er1 >conftest.err
28561 cat conftest.err >&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } &&
28564 { ac_try='test -z "$ac_c_werror_flag"
28565 || test ! -s conftest.err'
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; } &&
28571 { ac_try='test -s conftest$ac_exeext'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28579 echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28584 rm -f conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
28590 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28591 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28593 if test $ol_cv_db_db_42 = yes ; then
28594 ol_cv_lib_db=-ldb-42
28598 if test $ol_cv_lib_db = no ; then
28599 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28600 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28601 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28607 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28609 cat >conftest.$ac_ext <<_ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28616 #ifdef HAVE_DB_185_H
28617 # include <db_185.h>
28622 #ifndef DB_VERSION_MAJOR
28623 # define DB_VERSION_MAJOR 1
28627 #define NULL ((void*)0)
28634 #if DB_VERSION_MAJOR > 1
28637 int major, minor, patch;
28639 version = db_version( &major, &minor, &patch );
28641 if( major != DB_VERSION_MAJOR ||
28642 minor < DB_VERSION_MINOR )
28644 printf("Berkeley DB version mismatch\n"
28645 "\theader: %s\n\tlibrary: %s\n",
28646 DB_VERSION_STRING, version);
28652 #if DB_VERSION_MAJOR > 2
28653 db_env_create( NULL, 0 );
28654 #elif DB_VERSION_MAJOR > 1
28655 db_appexit( NULL );
28657 (void) dbopen( NULL, 0, 0, 0, NULL);
28664 rm -f conftest.$ac_objext conftest$ac_exeext
28665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28666 (eval $ac_link) 2>conftest.er1
28668 grep -v '^ *+' conftest.er1 >conftest.err
28670 cat conftest.err >&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } &&
28673 { ac_try='test -z "$ac_c_werror_flag"
28674 || test ! -s conftest.err'
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest$ac_exeext'
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 ol_cv_db_db_4_dot_2=yes
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ol_cv_db_db_4_dot_2=no
28693 rm -f conftest.err conftest.$ac_objext \
28694 conftest$ac_exeext conftest.$ac_ext
28699 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28700 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28702 if test $ol_cv_db_db_4_dot_2 = yes ; then
28703 ol_cv_lib_db=-ldb-4.2
28707 if test $ol_cv_lib_db = no ; then
28708 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28709 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28710 if test "${ol_cv_db_db_4_2+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28716 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28718 cat >conftest.$ac_ext <<_ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h. */
28725 #ifdef HAVE_DB_185_H
28726 # include <db_185.h>
28731 #ifndef DB_VERSION_MAJOR
28732 # define DB_VERSION_MAJOR 1
28736 #define NULL ((void*)0)
28743 #if DB_VERSION_MAJOR > 1
28746 int major, minor, patch;
28748 version = db_version( &major, &minor, &patch );
28750 if( major != DB_VERSION_MAJOR ||
28751 minor < DB_VERSION_MINOR )
28753 printf("Berkeley DB version mismatch\n"
28754 "\theader: %s\n\tlibrary: %s\n",
28755 DB_VERSION_STRING, version);
28761 #if DB_VERSION_MAJOR > 2
28762 db_env_create( NULL, 0 );
28763 #elif DB_VERSION_MAJOR > 1
28764 db_appexit( NULL );
28766 (void) dbopen( NULL, 0, 0, 0, NULL);
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28775 (eval $ac_link) 2>conftest.er1
28777 grep -v '^ *+' conftest.er1 >conftest.err
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
28782 { ac_try='test -z "$ac_c_werror_flag"
28783 || test ! -s conftest.err'
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest$ac_exeext'
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; }; then
28795 ol_cv_db_db_4_2=yes
28797 echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28802 rm -f conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
28808 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28809 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28811 if test $ol_cv_db_db_4_2 = yes ; then
28812 ol_cv_lib_db=-ldb-4-2
28816 if test $ol_cv_lib_db = no ; then
28817 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28818 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28819 if test "${ol_cv_db_db_4+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28825 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28834 #ifdef HAVE_DB_185_H
28835 # include <db_185.h>
28840 #ifndef DB_VERSION_MAJOR
28841 # define DB_VERSION_MAJOR 1
28845 #define NULL ((void*)0)
28852 #if DB_VERSION_MAJOR > 1
28855 int major, minor, patch;
28857 version = db_version( &major, &minor, &patch );
28859 if( major != DB_VERSION_MAJOR ||
28860 minor < DB_VERSION_MINOR )
28862 printf("Berkeley DB version mismatch\n"
28863 "\theader: %s\n\tlibrary: %s\n",
28864 DB_VERSION_STRING, version);
28870 #if DB_VERSION_MAJOR > 2
28871 db_env_create( NULL, 0 );
28872 #elif DB_VERSION_MAJOR > 1
28873 db_appexit( NULL );
28875 (void) dbopen( NULL, 0, 0, 0, NULL);
28882 rm -f conftest.$ac_objext conftest$ac_exeext
28883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28884 (eval $ac_link) 2>conftest.er1
28886 grep -v '^ *+' conftest.er1 >conftest.err
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try='test -z "$ac_c_werror_flag"
28892 || test ! -s conftest.err'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } &&
28898 { ac_try='test -s conftest$ac_exeext'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
28906 echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28911 rm -f conftest.err conftest.$ac_objext \
28912 conftest$ac_exeext conftest.$ac_ext
28917 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28918 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28920 if test $ol_cv_db_db_4 = yes ; then
28921 ol_cv_lib_db=-ldb-4
28925 if test $ol_cv_lib_db = no ; then
28926 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28927 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28928 if test "${ol_cv_db_db4+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28934 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28936 cat >conftest.$ac_ext <<_ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28943 #ifdef HAVE_DB_185_H
28944 # include <db_185.h>
28949 #ifndef DB_VERSION_MAJOR
28950 # define DB_VERSION_MAJOR 1
28954 #define NULL ((void*)0)
28961 #if DB_VERSION_MAJOR > 1
28964 int major, minor, patch;
28966 version = db_version( &major, &minor, &patch );
28968 if( major != DB_VERSION_MAJOR ||
28969 minor < DB_VERSION_MINOR )
28971 printf("Berkeley DB version mismatch\n"
28972 "\theader: %s\n\tlibrary: %s\n",
28973 DB_VERSION_STRING, version);
28979 #if DB_VERSION_MAJOR > 2
28980 db_env_create( NULL, 0 );
28981 #elif DB_VERSION_MAJOR > 1
28982 db_appexit( NULL );
28984 (void) dbopen( NULL, 0, 0, 0, NULL);
28991 rm -f conftest.$ac_objext conftest$ac_exeext
28992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28993 (eval $ac_link) 2>conftest.er1
28995 grep -v '^ *+' conftest.er1 >conftest.err
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag"
29001 || test ! -s conftest.err'
29002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003 (eval $ac_try) 2>&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); }; } &&
29007 { ac_try='test -s conftest$ac_exeext'
29008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009 (eval $ac_try) 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; }; then
29015 echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29020 rm -f conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
29026 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29027 echo "${ECHO_T}$ol_cv_db_db4" >&6
29029 if test $ol_cv_db_db4 = yes ; then
29034 if test $ol_cv_lib_db = no ; then
29035 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29036 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29037 if test "${ol_cv_db_db+set}" = set; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29045 cat >conftest.$ac_ext <<_ACEOF
29048 cat confdefs.h >>conftest.$ac_ext
29049 cat >>conftest.$ac_ext <<_ACEOF
29050 /* end confdefs.h. */
29052 #ifdef HAVE_DB_185_H
29053 # include <db_185.h>
29058 #ifndef DB_VERSION_MAJOR
29059 # define DB_VERSION_MAJOR 1
29063 #define NULL ((void*)0)
29070 #if DB_VERSION_MAJOR > 1
29073 int major, minor, patch;
29075 version = db_version( &major, &minor, &patch );
29077 if( major != DB_VERSION_MAJOR ||
29078 minor < DB_VERSION_MINOR )
29080 printf("Berkeley DB version mismatch\n"
29081 "\theader: %s\n\tlibrary: %s\n",
29082 DB_VERSION_STRING, version);
29088 #if DB_VERSION_MAJOR > 2
29089 db_env_create( NULL, 0 );
29090 #elif DB_VERSION_MAJOR > 1
29091 db_appexit( NULL );
29093 (void) dbopen( NULL, 0, 0, 0, NULL);
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29102 (eval $ac_link) 2>conftest.er1
29104 grep -v '^ *+' conftest.er1 >conftest.err
29106 cat conftest.err >&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
29109 { ac_try='test -z "$ac_c_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest$ac_exeext'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29124 echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29129 rm -f conftest.err conftest.$ac_objext \
29130 conftest$ac_exeext conftest.$ac_ext
29135 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29136 echo "${ECHO_T}$ol_cv_db_db" >&6
29138 if test $ol_cv_db_db = yes ; then
29143 if test $ol_cv_lib_db = no ; then
29144 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29145 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29146 if test "${ol_cv_db_db41+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29152 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29161 #ifdef HAVE_DB_185_H
29162 # include <db_185.h>
29167 #ifndef DB_VERSION_MAJOR
29168 # define DB_VERSION_MAJOR 1
29172 #define NULL ((void*)0)
29179 #if DB_VERSION_MAJOR > 1
29182 int major, minor, patch;
29184 version = db_version( &major, &minor, &patch );
29186 if( major != DB_VERSION_MAJOR ||
29187 minor < DB_VERSION_MINOR )
29189 printf("Berkeley DB version mismatch\n"
29190 "\theader: %s\n\tlibrary: %s\n",
29191 DB_VERSION_STRING, version);
29197 #if DB_VERSION_MAJOR > 2
29198 db_env_create( NULL, 0 );
29199 #elif DB_VERSION_MAJOR > 1
29200 db_appexit( NULL );
29202 (void) dbopen( NULL, 0, 0, 0, NULL);
29209 rm -f conftest.$ac_objext conftest$ac_exeext
29210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29211 (eval $ac_link) 2>conftest.er1
29213 grep -v '^ *+' conftest.er1 >conftest.err
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag"
29219 || test ! -s conftest.err'
29220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221 (eval $ac_try) 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest$ac_exeext'
29226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227 (eval $ac_try) 2>&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29233 echo "$as_me: failed program was:" >&5
29234 sed 's/^/| /' conftest.$ac_ext >&5
29238 rm -f conftest.err conftest.$ac_objext \
29239 conftest$ac_exeext conftest.$ac_ext
29244 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29245 echo "${ECHO_T}$ol_cv_db_db41" >&6
29247 if test $ol_cv_db_db41 = yes ; then
29248 ol_cv_lib_db=-ldb41
29252 if test $ol_cv_lib_db = no ; then
29253 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29254 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29255 if test "${ol_cv_db_db_41+set}" = set; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29261 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29263 cat >conftest.$ac_ext <<_ACEOF
29266 cat confdefs.h >>conftest.$ac_ext
29267 cat >>conftest.$ac_ext <<_ACEOF
29268 /* end confdefs.h. */
29270 #ifdef HAVE_DB_185_H
29271 # include <db_185.h>
29276 #ifndef DB_VERSION_MAJOR
29277 # define DB_VERSION_MAJOR 1
29281 #define NULL ((void*)0)
29288 #if DB_VERSION_MAJOR > 1
29291 int major, minor, patch;
29293 version = db_version( &major, &minor, &patch );
29295 if( major != DB_VERSION_MAJOR ||
29296 minor < DB_VERSION_MINOR )
29298 printf("Berkeley DB version mismatch\n"
29299 "\theader: %s\n\tlibrary: %s\n",
29300 DB_VERSION_STRING, version);
29306 #if DB_VERSION_MAJOR > 2
29307 db_env_create( NULL, 0 );
29308 #elif DB_VERSION_MAJOR > 1
29309 db_appexit( NULL );
29311 (void) dbopen( NULL, 0, 0, 0, NULL);
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320 (eval $ac_link) 2>conftest.er1
29322 grep -v '^ *+' conftest.er1 >conftest.err
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } &&
29327 { ac_try='test -z "$ac_c_werror_flag"
29328 || test ! -s conftest.err'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
29342 echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29347 rm -f conftest.err conftest.$ac_objext \
29348 conftest$ac_exeext conftest.$ac_ext
29353 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29354 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29356 if test $ol_cv_db_db_41 = yes ; then
29357 ol_cv_lib_db=-ldb-41
29361 if test $ol_cv_lib_db = no ; then
29362 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29363 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29364 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29372 cat >conftest.$ac_ext <<_ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h. */
29379 #ifdef HAVE_DB_185_H
29380 # include <db_185.h>
29385 #ifndef DB_VERSION_MAJOR
29386 # define DB_VERSION_MAJOR 1
29390 #define NULL ((void*)0)
29397 #if DB_VERSION_MAJOR > 1
29400 int major, minor, patch;
29402 version = db_version( &major, &minor, &patch );
29404 if( major != DB_VERSION_MAJOR ||
29405 minor < DB_VERSION_MINOR )
29407 printf("Berkeley DB version mismatch\n"
29408 "\theader: %s\n\tlibrary: %s\n",
29409 DB_VERSION_STRING, version);
29415 #if DB_VERSION_MAJOR > 2
29416 db_env_create( NULL, 0 );
29417 #elif DB_VERSION_MAJOR > 1
29418 db_appexit( NULL );
29420 (void) dbopen( NULL, 0, 0, 0, NULL);
29427 rm -f conftest.$ac_objext conftest$ac_exeext
29428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29429 (eval $ac_link) 2>conftest.er1
29431 grep -v '^ *+' conftest.er1 >conftest.err
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
29436 { ac_try='test -z "$ac_c_werror_flag"
29437 || test ! -s conftest.err'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; } &&
29443 { ac_try='test -s conftest$ac_exeext'
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 ol_cv_db_db_4_dot_1=yes
29451 echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29454 ol_cv_db_db_4_dot_1=no
29456 rm -f conftest.err conftest.$ac_objext \
29457 conftest$ac_exeext conftest.$ac_ext
29462 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29463 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29465 if test $ol_cv_db_db_4_dot_1 = yes ; then
29466 ol_cv_lib_db=-ldb-4.1
29470 if test $ol_cv_lib_db = no ; then
29471 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29472 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29473 if test "${ol_cv_db_db_4_1+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29479 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29481 cat >conftest.$ac_ext <<_ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h. */
29488 #ifdef HAVE_DB_185_H
29489 # include <db_185.h>
29494 #ifndef DB_VERSION_MAJOR
29495 # define DB_VERSION_MAJOR 1
29499 #define NULL ((void*)0)
29506 #if DB_VERSION_MAJOR > 1
29509 int major, minor, patch;
29511 version = db_version( &major, &minor, &patch );
29513 if( major != DB_VERSION_MAJOR ||
29514 minor < DB_VERSION_MINOR )
29516 printf("Berkeley DB version mismatch\n"
29517 "\theader: %s\n\tlibrary: %s\n",
29518 DB_VERSION_STRING, version);
29524 #if DB_VERSION_MAJOR > 2
29525 db_env_create( NULL, 0 );
29526 #elif DB_VERSION_MAJOR > 1
29527 db_appexit( NULL );
29529 (void) dbopen( NULL, 0, 0, 0, NULL);
29536 rm -f conftest.$ac_objext conftest$ac_exeext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29538 (eval $ac_link) 2>conftest.er1
29540 grep -v '^ *+' conftest.er1 >conftest.err
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } &&
29545 { ac_try='test -z "$ac_c_werror_flag"
29546 || test ! -s conftest.err'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; } &&
29552 { ac_try='test -s conftest$ac_exeext'
29553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554 (eval $ac_try) 2>&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
29558 ol_cv_db_db_4_1=yes
29560 echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29565 rm -f conftest.err conftest.$ac_objext \
29566 conftest$ac_exeext conftest.$ac_ext
29571 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29572 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29574 if test $ol_cv_db_db_4_1 = yes ; then
29575 ol_cv_lib_db=-ldb-4-1
29579 if test $ol_cv_lib_db = no ; then
29580 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29581 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29582 if test "${ol_cv_db_db3+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29590 cat >conftest.$ac_ext <<_ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29597 #ifdef HAVE_DB_185_H
29598 # include <db_185.h>
29603 #ifndef DB_VERSION_MAJOR
29604 # define DB_VERSION_MAJOR 1
29608 #define NULL ((void*)0)
29615 #if DB_VERSION_MAJOR > 1
29618 int major, minor, patch;
29620 version = db_version( &major, &minor, &patch );
29622 if( major != DB_VERSION_MAJOR ||
29623 minor < DB_VERSION_MINOR )
29625 printf("Berkeley DB version mismatch\n"
29626 "\theader: %s\n\tlibrary: %s\n",
29627 DB_VERSION_STRING, version);
29633 #if DB_VERSION_MAJOR > 2
29634 db_env_create( NULL, 0 );
29635 #elif DB_VERSION_MAJOR > 1
29636 db_appexit( NULL );
29638 (void) dbopen( NULL, 0, 0, 0, NULL);
29645 rm -f conftest.$ac_objext conftest$ac_exeext
29646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29647 (eval $ac_link) 2>conftest.er1
29649 grep -v '^ *+' conftest.er1 >conftest.err
29651 cat conftest.err >&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
29654 { ac_try='test -z "$ac_c_werror_flag"
29655 || test ! -s conftest.err'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest$ac_exeext'
29662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663 (eval $ac_try) 2>&5
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29674 rm -f conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
29680 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29681 echo "${ECHO_T}$ol_cv_db_db3" >&6
29683 if test $ol_cv_db_db3 = yes ; then
29688 if test $ol_cv_lib_db = no ; then
29689 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29690 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29691 if test "${ol_cv_db_db_3+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29706 #ifdef HAVE_DB_185_H
29707 # include <db_185.h>
29712 #ifndef DB_VERSION_MAJOR
29713 # define DB_VERSION_MAJOR 1
29717 #define NULL ((void*)0)
29724 #if DB_VERSION_MAJOR > 1
29727 int major, minor, patch;
29729 version = db_version( &major, &minor, &patch );
29731 if( major != DB_VERSION_MAJOR ||
29732 minor < DB_VERSION_MINOR )
29734 printf("Berkeley DB version mismatch\n"
29735 "\theader: %s\n\tlibrary: %s\n",
29736 DB_VERSION_STRING, version);
29742 #if DB_VERSION_MAJOR > 2
29743 db_env_create( NULL, 0 );
29744 #elif DB_VERSION_MAJOR > 1
29745 db_appexit( NULL );
29747 (void) dbopen( NULL, 0, 0, 0, NULL);
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29756 (eval $ac_link) 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
29763 { ac_try='test -z "$ac_c_werror_flag"
29764 || test ! -s conftest.err'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest$ac_exeext'
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29778 echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29783 rm -f conftest.err conftest.$ac_objext \
29784 conftest$ac_exeext conftest.$ac_ext
29789 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29790 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29792 if test $ol_cv_db_db_3 = yes ; then
29793 ol_cv_lib_db=-ldb-3
29797 if test $ol_cv_lib_db = no ; then
29798 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29799 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29800 if test "${ol_cv_db_db2+set}" = set; then
29801 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29808 cat >conftest.$ac_ext <<_ACEOF
29811 cat confdefs.h >>conftest.$ac_ext
29812 cat >>conftest.$ac_ext <<_ACEOF
29813 /* end confdefs.h. */
29815 #ifdef HAVE_DB_185_H
29816 # include <db_185.h>
29821 #ifndef DB_VERSION_MAJOR
29822 # define DB_VERSION_MAJOR 1
29826 #define NULL ((void*)0)
29833 #if DB_VERSION_MAJOR > 1
29836 int major, minor, patch;
29838 version = db_version( &major, &minor, &patch );
29840 if( major != DB_VERSION_MAJOR ||
29841 minor < DB_VERSION_MINOR )
29843 printf("Berkeley DB version mismatch\n"
29844 "\theader: %s\n\tlibrary: %s\n",
29845 DB_VERSION_STRING, version);
29851 #if DB_VERSION_MAJOR > 2
29852 db_env_create( NULL, 0 );
29853 #elif DB_VERSION_MAJOR > 1
29854 db_appexit( NULL );
29856 (void) dbopen( NULL, 0, 0, 0, NULL);
29863 rm -f conftest.$ac_objext conftest$ac_exeext
29864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29865 (eval $ac_link) 2>conftest.er1
29867 grep -v '^ *+' conftest.er1 >conftest.err
29869 cat conftest.err >&5
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); } &&
29872 { ac_try='test -z "$ac_c_werror_flag"
29873 || test ! -s conftest.err'
29874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875 (eval $ac_try) 2>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest$ac_exeext'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29887 echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29892 rm -f conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
29898 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29899 echo "${ECHO_T}$ol_cv_db_db2" >&6
29901 if test $ol_cv_db_db2 = yes ; then
29906 if test $ol_cv_lib_db = no ; then
29907 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29908 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29909 if test "${ol_cv_db_db_2+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29917 cat >conftest.$ac_ext <<_ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29924 #ifdef HAVE_DB_185_H
29925 # include <db_185.h>
29930 #ifndef DB_VERSION_MAJOR
29931 # define DB_VERSION_MAJOR 1
29935 #define NULL ((void*)0)
29942 #if DB_VERSION_MAJOR > 1
29945 int major, minor, patch;
29947 version = db_version( &major, &minor, &patch );
29949 if( major != DB_VERSION_MAJOR ||
29950 minor < DB_VERSION_MINOR )
29952 printf("Berkeley DB version mismatch\n"
29953 "\theader: %s\n\tlibrary: %s\n",
29954 DB_VERSION_STRING, version);
29960 #if DB_VERSION_MAJOR > 2
29961 db_env_create( NULL, 0 );
29962 #elif DB_VERSION_MAJOR > 1
29963 db_appexit( NULL );
29965 (void) dbopen( NULL, 0, 0, 0, NULL);
29972 rm -f conftest.$ac_objext conftest$ac_exeext
29973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29974 (eval $ac_link) 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
29981 { ac_try='test -z "$ac_c_werror_flag"
29982 || test ! -s conftest.err'
29983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; } &&
29988 { ac_try='test -s conftest$ac_exeext'
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
30001 rm -f conftest.err conftest.$ac_objext \
30002 conftest$ac_exeext conftest.$ac_ext
30007 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30008 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30010 if test $ol_cv_db_db_2 = yes ; then
30011 ol_cv_lib_db=-ldb-2
30015 if test $ol_cv_lib_db = no ; then
30016 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30017 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30018 if test "${ol_cv_db_db1+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30026 cat >conftest.$ac_ext <<_ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h. */
30033 #ifdef HAVE_DB_185_H
30034 # include <db_185.h>
30039 #ifndef DB_VERSION_MAJOR
30040 # define DB_VERSION_MAJOR 1
30044 #define NULL ((void*)0)
30051 #if DB_VERSION_MAJOR > 1
30054 int major, minor, patch;
30056 version = db_version( &major, &minor, &patch );
30058 if( major != DB_VERSION_MAJOR ||
30059 minor < DB_VERSION_MINOR )
30061 printf("Berkeley DB version mismatch\n"
30062 "\theader: %s\n\tlibrary: %s\n",
30063 DB_VERSION_STRING, version);
30069 #if DB_VERSION_MAJOR > 2
30070 db_env_create( NULL, 0 );
30071 #elif DB_VERSION_MAJOR > 1
30072 db_appexit( NULL );
30074 (void) dbopen( NULL, 0, 0, 0, NULL);
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083 (eval $ac_link) 2>conftest.er1
30085 grep -v '^ *+' conftest.er1 >conftest.err
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_c_werror_flag"
30091 || test ! -s conftest.err'
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest$ac_exeext'
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30110 rm -f conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
30116 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30117 echo "${ECHO_T}$ol_cv_db_db1" >&6
30119 if test $ol_cv_db_db1 = yes ; then
30124 if test $ol_cv_lib_db = no ; then
30125 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30126 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30127 if test "${ol_cv_db_db_1+set}" = set; then
30128 echo $ECHO_N "(cached) $ECHO_C" >&6
30133 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30135 cat >conftest.$ac_ext <<_ACEOF
30138 cat confdefs.h >>conftest.$ac_ext
30139 cat >>conftest.$ac_ext <<_ACEOF
30140 /* end confdefs.h. */
30142 #ifdef HAVE_DB_185_H
30143 # include <db_185.h>
30148 #ifndef DB_VERSION_MAJOR
30149 # define DB_VERSION_MAJOR 1
30153 #define NULL ((void*)0)
30160 #if DB_VERSION_MAJOR > 1
30163 int major, minor, patch;
30165 version = db_version( &major, &minor, &patch );
30167 if( major != DB_VERSION_MAJOR ||
30168 minor < DB_VERSION_MINOR )
30170 printf("Berkeley DB version mismatch\n"
30171 "\theader: %s\n\tlibrary: %s\n",
30172 DB_VERSION_STRING, version);
30178 #if DB_VERSION_MAJOR > 2
30179 db_env_create( NULL, 0 );
30180 #elif DB_VERSION_MAJOR > 1
30181 db_appexit( NULL );
30183 (void) dbopen( NULL, 0, 0, 0, NULL);
30190 rm -f conftest.$ac_objext conftest$ac_exeext
30191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30192 (eval $ac_link) 2>conftest.er1
30194 grep -v '^ *+' conftest.er1 >conftest.err
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } &&
30199 { ac_try='test -z "$ac_c_werror_flag"
30200 || test ! -s conftest.err'
30201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30202 (eval $ac_try) 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; } &&
30206 { ac_try='test -s conftest$ac_exeext'
30207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30208 (eval $ac_try) 2>&5
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30219 rm -f conftest.err conftest.$ac_objext \
30220 conftest$ac_exeext conftest.$ac_ext
30225 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30226 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30228 if test $ol_cv_db_db_1 = yes ; then
30229 ol_cv_lib_db=-ldb-1
30234 if test "$ol_cv_lib_db" != no ; then
30235 ol_cv_berkeley_db=yes
30241 ol_cv_berkeley_db=no
30243 for ac_header in db.h
30245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30247 echo "$as_me:$LINENO: checking for $ac_header" >&5
30248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30255 # Is the header compilable?
30256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30258 cat >conftest.$ac_ext <<_ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30264 $ac_includes_default
30265 #include <$ac_header>
30267 rm -f conftest.$ac_objext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30269 (eval $ac_compile) 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30289 ac_header_compiler=yes
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30294 ac_header_compiler=no
30296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30298 echo "${ECHO_T}$ac_header_compiler" >&6
30300 # Is the header present?
30301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 #include <$ac_header>
30311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30314 grep -v '^ *+' conftest.er1 >conftest.err
30316 cat conftest.err >&5
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); } >/dev/null; then
30319 if test -s conftest.err; then
30320 ac_cpp_err=$ac_c_preproc_warn_flag
30321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30328 if test -z "$ac_cpp_err"; then
30329 ac_header_preproc=yes
30331 echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30334 ac_header_preproc=no
30336 rm -f conftest.err conftest.$ac_ext
30337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30338 echo "${ECHO_T}$ac_header_preproc" >&6
30340 # So? What about this header?
30341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30347 ac_header_preproc=yes
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30364 ## ------------------------------------------ ##
30365 ## Report this to the AC_PACKAGE_NAME lists. ##
30366 ## ------------------------------------------ ##
30369 sed "s/^/$as_me: WARNING: /" >&2
30372 echo "$as_me:$LINENO: checking for $ac_header" >&5
30373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30375 echo $ECHO_N "(cached) $ECHO_C" >&6
30377 eval "$as_ac_Header=\$ac_header_preproc"
30379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30384 cat >>confdefs.h <<_ACEOF
30385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30392 if test $ac_cv_header_db_h = yes; then
30394 if test $ol_cv_lib_db = no ; then
30395 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30396 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30397 if test "${ol_cv_db_none+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30412 #ifdef HAVE_DB_185_H
30413 # include <db_185.h>
30418 #ifndef DB_VERSION_MAJOR
30419 # define DB_VERSION_MAJOR 1
30423 #define NULL ((void*)0)
30430 #if DB_VERSION_MAJOR > 1
30433 int major, minor, patch;
30435 version = db_version( &major, &minor, &patch );
30437 if( major != DB_VERSION_MAJOR ||
30438 minor < DB_VERSION_MINOR )
30440 printf("Berkeley DB version mismatch\n"
30441 "\theader: %s\n\tlibrary: %s\n",
30442 DB_VERSION_STRING, version);
30448 #if DB_VERSION_MAJOR > 2
30449 db_env_create( NULL, 0 );
30450 #elif DB_VERSION_MAJOR > 1
30451 db_appexit( NULL );
30453 (void) dbopen( NULL, 0, 0, 0, NULL);
30460 rm -f conftest.$ac_objext conftest$ac_exeext
30461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30462 (eval $ac_link) 2>conftest.er1
30464 grep -v '^ *+' conftest.er1 >conftest.err
30466 cat conftest.err >&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } &&
30469 { ac_try='test -z "$ac_c_werror_flag"
30470 || test ! -s conftest.err'
30471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472 (eval $ac_try) 2>&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); }; } &&
30476 { ac_try='test -s conftest$ac_exeext'
30477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478 (eval $ac_try) 2>&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); }; }; then
30484 echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30489 rm -f conftest.err conftest.$ac_objext \
30490 conftest$ac_exeext conftest.$ac_ext
30495 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30496 echo "${ECHO_T}$ol_cv_db_none" >&6
30498 if test $ol_cv_db_none = yes ; then
30503 if test $ol_cv_lib_db = no ; then
30504 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30505 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30506 if test "${ol_cv_db_db43+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30514 cat >conftest.$ac_ext <<_ACEOF
30517 cat confdefs.h >>conftest.$ac_ext
30518 cat >>conftest.$ac_ext <<_ACEOF
30519 /* end confdefs.h. */
30521 #ifdef HAVE_DB_185_H
30522 # include <db_185.h>
30527 #ifndef DB_VERSION_MAJOR
30528 # define DB_VERSION_MAJOR 1
30532 #define NULL ((void*)0)
30539 #if DB_VERSION_MAJOR > 1
30542 int major, minor, patch;
30544 version = db_version( &major, &minor, &patch );
30546 if( major != DB_VERSION_MAJOR ||
30547 minor < DB_VERSION_MINOR )
30549 printf("Berkeley DB version mismatch\n"
30550 "\theader: %s\n\tlibrary: %s\n",
30551 DB_VERSION_STRING, version);
30557 #if DB_VERSION_MAJOR > 2
30558 db_env_create( NULL, 0 );
30559 #elif DB_VERSION_MAJOR > 1
30560 db_appexit( NULL );
30562 (void) dbopen( NULL, 0, 0, 0, NULL);
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30571 (eval $ac_link) 2>conftest.er1
30573 grep -v '^ *+' conftest.er1 >conftest.err
30575 cat conftest.err >&5
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); } &&
30578 { ac_try='test -z "$ac_c_werror_flag"
30579 || test ! -s conftest.err'
30580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30581 (eval $ac_try) 2>&5
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); }; } &&
30585 { ac_try='test -s conftest$ac_exeext'
30586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587 (eval $ac_try) 2>&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; }; then
30593 echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30598 rm -f conftest.err conftest.$ac_objext \
30599 conftest$ac_exeext conftest.$ac_ext
30604 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30605 echo "${ECHO_T}$ol_cv_db_db43" >&6
30607 if test $ol_cv_db_db43 = yes ; then
30608 ol_cv_lib_db=-ldb43
30612 if test $ol_cv_lib_db = no ; then
30613 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30614 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30615 if test "${ol_cv_db_db_43+set}" = set; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30621 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30623 cat >conftest.$ac_ext <<_ACEOF
30626 cat confdefs.h >>conftest.$ac_ext
30627 cat >>conftest.$ac_ext <<_ACEOF
30628 /* end confdefs.h. */
30630 #ifdef HAVE_DB_185_H
30631 # include <db_185.h>
30636 #ifndef DB_VERSION_MAJOR
30637 # define DB_VERSION_MAJOR 1
30641 #define NULL ((void*)0)
30648 #if DB_VERSION_MAJOR > 1
30651 int major, minor, patch;
30653 version = db_version( &major, &minor, &patch );
30655 if( major != DB_VERSION_MAJOR ||
30656 minor < DB_VERSION_MINOR )
30658 printf("Berkeley DB version mismatch\n"
30659 "\theader: %s\n\tlibrary: %s\n",
30660 DB_VERSION_STRING, version);
30666 #if DB_VERSION_MAJOR > 2
30667 db_env_create( NULL, 0 );
30668 #elif DB_VERSION_MAJOR > 1
30669 db_appexit( NULL );
30671 (void) dbopen( NULL, 0, 0, 0, NULL);
30678 rm -f conftest.$ac_objext conftest$ac_exeext
30679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30680 (eval $ac_link) 2>conftest.er1
30682 grep -v '^ *+' conftest.er1 >conftest.err
30684 cat conftest.err >&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } &&
30687 { ac_try='test -z "$ac_c_werror_flag"
30688 || test ! -s conftest.err'
30689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690 (eval $ac_try) 2>&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); }; } &&
30694 { ac_try='test -s conftest$ac_exeext'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; }; then
30702 echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30707 rm -f conftest.err conftest.$ac_objext \
30708 conftest$ac_exeext conftest.$ac_ext
30713 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30714 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30716 if test $ol_cv_db_db_43 = yes ; then
30717 ol_cv_lib_db=-ldb-43
30721 if test $ol_cv_lib_db = no ; then
30722 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30723 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30724 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30732 cat >conftest.$ac_ext <<_ACEOF
30735 cat confdefs.h >>conftest.$ac_ext
30736 cat >>conftest.$ac_ext <<_ACEOF
30737 /* end confdefs.h. */
30739 #ifdef HAVE_DB_185_H
30740 # include <db_185.h>
30745 #ifndef DB_VERSION_MAJOR
30746 # define DB_VERSION_MAJOR 1
30750 #define NULL ((void*)0)
30757 #if DB_VERSION_MAJOR > 1
30760 int major, minor, patch;
30762 version = db_version( &major, &minor, &patch );
30764 if( major != DB_VERSION_MAJOR ||
30765 minor < DB_VERSION_MINOR )
30767 printf("Berkeley DB version mismatch\n"
30768 "\theader: %s\n\tlibrary: %s\n",
30769 DB_VERSION_STRING, version);
30775 #if DB_VERSION_MAJOR > 2
30776 db_env_create( NULL, 0 );
30777 #elif DB_VERSION_MAJOR > 1
30778 db_appexit( NULL );
30780 (void) dbopen( NULL, 0, 0, 0, NULL);
30787 rm -f conftest.$ac_objext conftest$ac_exeext
30788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30789 (eval $ac_link) 2>conftest.er1
30791 grep -v '^ *+' conftest.er1 >conftest.err
30793 cat conftest.err >&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
30796 { ac_try='test -z "$ac_c_werror_flag"
30797 || test ! -s conftest.err'
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; } &&
30803 { ac_try='test -s conftest$ac_exeext'
30804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805 (eval $ac_try) 2>&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); }; }; then
30809 ol_cv_db_db_4_dot_3=yes
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ol_cv_db_db_4_dot_3=no
30816 rm -f conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
30822 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30823 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30825 if test $ol_cv_db_db_4_dot_3 = yes ; then
30826 ol_cv_lib_db=-ldb-4.3
30830 if test $ol_cv_lib_db = no ; then
30831 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30832 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30833 if test "${ol_cv_db_db_4_3+set}" = set; then
30834 echo $ECHO_N "(cached) $ECHO_C" >&6
30839 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30841 cat >conftest.$ac_ext <<_ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h. */
30848 #ifdef HAVE_DB_185_H
30849 # include <db_185.h>
30854 #ifndef DB_VERSION_MAJOR
30855 # define DB_VERSION_MAJOR 1
30859 #define NULL ((void*)0)
30866 #if DB_VERSION_MAJOR > 1
30869 int major, minor, patch;
30871 version = db_version( &major, &minor, &patch );
30873 if( major != DB_VERSION_MAJOR ||
30874 minor < DB_VERSION_MINOR )
30876 printf("Berkeley DB version mismatch\n"
30877 "\theader: %s\n\tlibrary: %s\n",
30878 DB_VERSION_STRING, version);
30884 #if DB_VERSION_MAJOR > 2
30885 db_env_create( NULL, 0 );
30886 #elif DB_VERSION_MAJOR > 1
30887 db_appexit( NULL );
30889 (void) dbopen( NULL, 0, 0, 0, NULL);
30896 rm -f conftest.$ac_objext conftest$ac_exeext
30897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30898 (eval $ac_link) 2>conftest.er1
30900 grep -v '^ *+' conftest.er1 >conftest.err
30902 cat conftest.err >&5
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); } &&
30905 { ac_try='test -z "$ac_c_werror_flag"
30906 || test ! -s conftest.err'
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; } &&
30912 { ac_try='test -s conftest$ac_exeext'
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918 ol_cv_db_db_4_3=yes
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30925 rm -f conftest.err conftest.$ac_objext \
30926 conftest$ac_exeext conftest.$ac_ext
30931 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30932 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30934 if test $ol_cv_db_db_4_3 = yes ; then
30935 ol_cv_lib_db=-ldb-4-3
30939 if test $ol_cv_lib_db = no ; then
30940 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
30941 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
30942 if test "${ol_cv_db_db42+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30948 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30950 cat >conftest.$ac_ext <<_ACEOF
30953 cat confdefs.h >>conftest.$ac_ext
30954 cat >>conftest.$ac_ext <<_ACEOF
30955 /* end confdefs.h. */
30957 #ifdef HAVE_DB_185_H
30958 # include <db_185.h>
30963 #ifndef DB_VERSION_MAJOR
30964 # define DB_VERSION_MAJOR 1
30968 #define NULL ((void*)0)
30975 #if DB_VERSION_MAJOR > 1
30978 int major, minor, patch;
30980 version = db_version( &major, &minor, &patch );
30982 if( major != DB_VERSION_MAJOR ||
30983 minor < DB_VERSION_MINOR )
30985 printf("Berkeley DB version mismatch\n"
30986 "\theader: %s\n\tlibrary: %s\n",
30987 DB_VERSION_STRING, version);
30993 #if DB_VERSION_MAJOR > 2
30994 db_env_create( NULL, 0 );
30995 #elif DB_VERSION_MAJOR > 1
30996 db_appexit( NULL );
30998 (void) dbopen( NULL, 0, 0, 0, NULL);
31005 rm -f conftest.$ac_objext conftest$ac_exeext
31006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31007 (eval $ac_link) 2>conftest.er1
31009 grep -v '^ *+' conftest.er1 >conftest.err
31011 cat conftest.err >&5
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); } &&
31014 { ac_try='test -z "$ac_c_werror_flag"
31015 || test ! -s conftest.err'
31016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31017 (eval $ac_try) 2>&5
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020 (exit $ac_status); }; } &&
31021 { ac_try='test -s conftest$ac_exeext'
31022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023 (eval $ac_try) 2>&5
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); }; }; then
31029 echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31034 rm -f conftest.err conftest.$ac_objext \
31035 conftest$ac_exeext conftest.$ac_ext
31040 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31041 echo "${ECHO_T}$ol_cv_db_db42" >&6
31043 if test $ol_cv_db_db42 = yes ; then
31044 ol_cv_lib_db=-ldb42
31048 if test $ol_cv_lib_db = no ; then
31049 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31050 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31051 if test "${ol_cv_db_db_42+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31059 cat >conftest.$ac_ext <<_ACEOF
31062 cat confdefs.h >>conftest.$ac_ext
31063 cat >>conftest.$ac_ext <<_ACEOF
31064 /* end confdefs.h. */
31066 #ifdef HAVE_DB_185_H
31067 # include <db_185.h>
31072 #ifndef DB_VERSION_MAJOR
31073 # define DB_VERSION_MAJOR 1
31077 #define NULL ((void*)0)
31084 #if DB_VERSION_MAJOR > 1
31087 int major, minor, patch;
31089 version = db_version( &major, &minor, &patch );
31091 if( major != DB_VERSION_MAJOR ||
31092 minor < DB_VERSION_MINOR )
31094 printf("Berkeley DB version mismatch\n"
31095 "\theader: %s\n\tlibrary: %s\n",
31096 DB_VERSION_STRING, version);
31102 #if DB_VERSION_MAJOR > 2
31103 db_env_create( NULL, 0 );
31104 #elif DB_VERSION_MAJOR > 1
31105 db_appexit( NULL );
31107 (void) dbopen( NULL, 0, 0, 0, NULL);
31114 rm -f conftest.$ac_objext conftest$ac_exeext
31115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31116 (eval $ac_link) 2>conftest.er1
31118 grep -v '^ *+' conftest.er1 >conftest.err
31120 cat conftest.err >&5
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
31123 { ac_try='test -z "$ac_c_werror_flag"
31124 || test ! -s conftest.err'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest$ac_exeext'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31138 echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31143 rm -f conftest.err conftest.$ac_objext \
31144 conftest$ac_exeext conftest.$ac_ext
31149 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31150 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31152 if test $ol_cv_db_db_42 = yes ; then
31153 ol_cv_lib_db=-ldb-42
31157 if test $ol_cv_lib_db = no ; then
31158 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31159 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31160 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31175 #ifdef HAVE_DB_185_H
31176 # include <db_185.h>
31181 #ifndef DB_VERSION_MAJOR
31182 # define DB_VERSION_MAJOR 1
31186 #define NULL ((void*)0)
31193 #if DB_VERSION_MAJOR > 1
31196 int major, minor, patch;
31198 version = db_version( &major, &minor, &patch );
31200 if( major != DB_VERSION_MAJOR ||
31201 minor < DB_VERSION_MINOR )
31203 printf("Berkeley DB version mismatch\n"
31204 "\theader: %s\n\tlibrary: %s\n",
31205 DB_VERSION_STRING, version);
31211 #if DB_VERSION_MAJOR > 2
31212 db_env_create( NULL, 0 );
31213 #elif DB_VERSION_MAJOR > 1
31214 db_appexit( NULL );
31216 (void) dbopen( NULL, 0, 0, 0, NULL);
31223 rm -f conftest.$ac_objext conftest$ac_exeext
31224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31225 (eval $ac_link) 2>conftest.er1
31227 grep -v '^ *+' conftest.er1 >conftest.err
31229 cat conftest.err >&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } &&
31232 { ac_try='test -z "$ac_c_werror_flag"
31233 || test ! -s conftest.err'
31234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235 (eval $ac_try) 2>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest$ac_exeext'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ol_cv_db_db_4_dot_2=yes
31247 echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ol_cv_db_db_4_dot_2=no
31252 rm -f conftest.err conftest.$ac_objext \
31253 conftest$ac_exeext conftest.$ac_ext
31258 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31259 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31261 if test $ol_cv_db_db_4_dot_2 = yes ; then
31262 ol_cv_lib_db=-ldb-4.2
31266 if test $ol_cv_lib_db = no ; then
31267 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31268 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31269 if test "${ol_cv_db_db_4_2+set}" = set; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31275 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31277 cat >conftest.$ac_ext <<_ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31284 #ifdef HAVE_DB_185_H
31285 # include <db_185.h>
31290 #ifndef DB_VERSION_MAJOR
31291 # define DB_VERSION_MAJOR 1
31295 #define NULL ((void*)0)
31302 #if DB_VERSION_MAJOR > 1
31305 int major, minor, patch;
31307 version = db_version( &major, &minor, &patch );
31309 if( major != DB_VERSION_MAJOR ||
31310 minor < DB_VERSION_MINOR )
31312 printf("Berkeley DB version mismatch\n"
31313 "\theader: %s\n\tlibrary: %s\n",
31314 DB_VERSION_STRING, version);
31320 #if DB_VERSION_MAJOR > 2
31321 db_env_create( NULL, 0 );
31322 #elif DB_VERSION_MAJOR > 1
31323 db_appexit( NULL );
31325 (void) dbopen( NULL, 0, 0, 0, NULL);
31332 rm -f conftest.$ac_objext conftest$ac_exeext
31333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31334 (eval $ac_link) 2>conftest.er1
31336 grep -v '^ *+' conftest.er1 >conftest.err
31338 cat conftest.err >&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); } &&
31341 { ac_try='test -z "$ac_c_werror_flag"
31342 || test ! -s conftest.err'
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try='test -s conftest$ac_exeext'
31349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350 (eval $ac_try) 2>&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; }; then
31354 ol_cv_db_db_4_2=yes
31356 echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31361 rm -f conftest.err conftest.$ac_objext \
31362 conftest$ac_exeext conftest.$ac_ext
31367 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31368 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31370 if test $ol_cv_db_db_4_2 = yes ; then
31371 ol_cv_lib_db=-ldb-4-2
31375 if test $ol_cv_lib_db = no ; then
31376 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31377 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31378 if test "${ol_cv_db_db_4+set}" = set; then
31379 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31386 cat >conftest.$ac_ext <<_ACEOF
31389 cat confdefs.h >>conftest.$ac_ext
31390 cat >>conftest.$ac_ext <<_ACEOF
31391 /* end confdefs.h. */
31393 #ifdef HAVE_DB_185_H
31394 # include <db_185.h>
31399 #ifndef DB_VERSION_MAJOR
31400 # define DB_VERSION_MAJOR 1
31404 #define NULL ((void*)0)
31411 #if DB_VERSION_MAJOR > 1
31414 int major, minor, patch;
31416 version = db_version( &major, &minor, &patch );
31418 if( major != DB_VERSION_MAJOR ||
31419 minor < DB_VERSION_MINOR )
31421 printf("Berkeley DB version mismatch\n"
31422 "\theader: %s\n\tlibrary: %s\n",
31423 DB_VERSION_STRING, version);
31429 #if DB_VERSION_MAJOR > 2
31430 db_env_create( NULL, 0 );
31431 #elif DB_VERSION_MAJOR > 1
31432 db_appexit( NULL );
31434 (void) dbopen( NULL, 0, 0, 0, NULL);
31441 rm -f conftest.$ac_objext conftest$ac_exeext
31442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31443 (eval $ac_link) 2>conftest.er1
31445 grep -v '^ *+' conftest.er1 >conftest.err
31447 cat conftest.err >&5
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); } &&
31450 { ac_try='test -z "$ac_c_werror_flag"
31451 || test ! -s conftest.err'
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest$ac_exeext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31465 echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31470 rm -f conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
31476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31477 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31479 if test $ol_cv_db_db_4 = yes ; then
31480 ol_cv_lib_db=-ldb-4
31484 if test $ol_cv_lib_db = no ; then
31485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31486 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31487 if test "${ol_cv_db_db4+set}" = set; then
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31495 cat >conftest.$ac_ext <<_ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31502 #ifdef HAVE_DB_185_H
31503 # include <db_185.h>
31508 #ifndef DB_VERSION_MAJOR
31509 # define DB_VERSION_MAJOR 1
31513 #define NULL ((void*)0)
31520 #if DB_VERSION_MAJOR > 1
31523 int major, minor, patch;
31525 version = db_version( &major, &minor, &patch );
31527 if( major != DB_VERSION_MAJOR ||
31528 minor < DB_VERSION_MINOR )
31530 printf("Berkeley DB version mismatch\n"
31531 "\theader: %s\n\tlibrary: %s\n",
31532 DB_VERSION_STRING, version);
31538 #if DB_VERSION_MAJOR > 2
31539 db_env_create( NULL, 0 );
31540 #elif DB_VERSION_MAJOR > 1
31541 db_appexit( NULL );
31543 (void) dbopen( NULL, 0, 0, 0, NULL);
31550 rm -f conftest.$ac_objext conftest$ac_exeext
31551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31552 (eval $ac_link) 2>conftest.er1
31554 grep -v '^ *+' conftest.er1 >conftest.err
31556 cat conftest.err >&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); } &&
31559 { ac_try='test -z "$ac_c_werror_flag"
31560 || test ! -s conftest.err'
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest$ac_exeext'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
31574 echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31579 rm -f conftest.err conftest.$ac_objext \
31580 conftest$ac_exeext conftest.$ac_ext
31585 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31586 echo "${ECHO_T}$ol_cv_db_db4" >&6
31588 if test $ol_cv_db_db4 = yes ; then
31593 if test $ol_cv_lib_db = no ; then
31594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31595 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31596 if test "${ol_cv_db_db+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31604 cat >conftest.$ac_ext <<_ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31611 #ifdef HAVE_DB_185_H
31612 # include <db_185.h>
31617 #ifndef DB_VERSION_MAJOR
31618 # define DB_VERSION_MAJOR 1
31622 #define NULL ((void*)0)
31629 #if DB_VERSION_MAJOR > 1
31632 int major, minor, patch;
31634 version = db_version( &major, &minor, &patch );
31636 if( major != DB_VERSION_MAJOR ||
31637 minor < DB_VERSION_MINOR )
31639 printf("Berkeley DB version mismatch\n"
31640 "\theader: %s\n\tlibrary: %s\n",
31641 DB_VERSION_STRING, version);
31647 #if DB_VERSION_MAJOR > 2
31648 db_env_create( NULL, 0 );
31649 #elif DB_VERSION_MAJOR > 1
31650 db_appexit( NULL );
31652 (void) dbopen( NULL, 0, 0, 0, NULL);
31659 rm -f conftest.$ac_objext conftest$ac_exeext
31660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31661 (eval $ac_link) 2>conftest.er1
31663 grep -v '^ *+' conftest.er1 >conftest.err
31665 cat conftest.err >&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } &&
31668 { ac_try='test -z "$ac_c_werror_flag"
31669 || test ! -s conftest.err'
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest$ac_exeext'
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31683 echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31688 rm -f conftest.err conftest.$ac_objext \
31689 conftest$ac_exeext conftest.$ac_ext
31694 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31695 echo "${ECHO_T}$ol_cv_db_db" >&6
31697 if test $ol_cv_db_db = yes ; then
31702 if test $ol_cv_lib_db = no ; then
31703 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31704 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31705 if test "${ol_cv_db_db41+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31713 cat >conftest.$ac_ext <<_ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h. */
31720 #ifdef HAVE_DB_185_H
31721 # include <db_185.h>
31726 #ifndef DB_VERSION_MAJOR
31727 # define DB_VERSION_MAJOR 1
31731 #define NULL ((void*)0)
31738 #if DB_VERSION_MAJOR > 1
31741 int major, minor, patch;
31743 version = db_version( &major, &minor, &patch );
31745 if( major != DB_VERSION_MAJOR ||
31746 minor < DB_VERSION_MINOR )
31748 printf("Berkeley DB version mismatch\n"
31749 "\theader: %s\n\tlibrary: %s\n",
31750 DB_VERSION_STRING, version);
31756 #if DB_VERSION_MAJOR > 2
31757 db_env_create( NULL, 0 );
31758 #elif DB_VERSION_MAJOR > 1
31759 db_appexit( NULL );
31761 (void) dbopen( NULL, 0, 0, 0, NULL);
31768 rm -f conftest.$ac_objext conftest$ac_exeext
31769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31770 (eval $ac_link) 2>conftest.er1
31772 grep -v '^ *+' conftest.er1 >conftest.err
31774 cat conftest.err >&5
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } &&
31777 { ac_try='test -z "$ac_c_werror_flag"
31778 || test ! -s conftest.err'
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; } &&
31784 { ac_try='test -s conftest$ac_exeext'
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31797 rm -f conftest.err conftest.$ac_objext \
31798 conftest$ac_exeext conftest.$ac_ext
31803 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31804 echo "${ECHO_T}$ol_cv_db_db41" >&6
31806 if test $ol_cv_db_db41 = yes ; then
31807 ol_cv_lib_db=-ldb41
31811 if test $ol_cv_lib_db = no ; then
31812 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31813 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31814 if test "${ol_cv_db_db_41+set}" = set; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31822 cat >conftest.$ac_ext <<_ACEOF
31825 cat confdefs.h >>conftest.$ac_ext
31826 cat >>conftest.$ac_ext <<_ACEOF
31827 /* end confdefs.h. */
31829 #ifdef HAVE_DB_185_H
31830 # include <db_185.h>
31835 #ifndef DB_VERSION_MAJOR
31836 # define DB_VERSION_MAJOR 1
31840 #define NULL ((void*)0)
31847 #if DB_VERSION_MAJOR > 1
31850 int major, minor, patch;
31852 version = db_version( &major, &minor, &patch );
31854 if( major != DB_VERSION_MAJOR ||
31855 minor < DB_VERSION_MINOR )
31857 printf("Berkeley DB version mismatch\n"
31858 "\theader: %s\n\tlibrary: %s\n",
31859 DB_VERSION_STRING, version);
31865 #if DB_VERSION_MAJOR > 2
31866 db_env_create( NULL, 0 );
31867 #elif DB_VERSION_MAJOR > 1
31868 db_appexit( NULL );
31870 (void) dbopen( NULL, 0, 0, 0, NULL);
31877 rm -f conftest.$ac_objext conftest$ac_exeext
31878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31879 (eval $ac_link) 2>conftest.er1
31881 grep -v '^ *+' conftest.er1 >conftest.err
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
31886 { ac_try='test -z "$ac_c_werror_flag"
31887 || test ! -s conftest.err'
31888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889 (eval $ac_try) 2>&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }; } &&
31893 { ac_try='test -s conftest$ac_exeext'
31894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895 (eval $ac_try) 2>&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; }; then
31901 echo "$as_me: failed program was:" >&5
31902 sed 's/^/| /' conftest.$ac_ext >&5
31906 rm -f conftest.err conftest.$ac_objext \
31907 conftest$ac_exeext conftest.$ac_ext
31912 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31913 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31915 if test $ol_cv_db_db_41 = yes ; then
31916 ol_cv_lib_db=-ldb-41
31920 if test $ol_cv_lib_db = no ; then
31921 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31922 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31923 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31924 echo $ECHO_N "(cached) $ECHO_C" >&6
31929 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31931 cat >conftest.$ac_ext <<_ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31938 #ifdef HAVE_DB_185_H
31939 # include <db_185.h>
31944 #ifndef DB_VERSION_MAJOR
31945 # define DB_VERSION_MAJOR 1
31949 #define NULL ((void*)0)
31956 #if DB_VERSION_MAJOR > 1
31959 int major, minor, patch;
31961 version = db_version( &major, &minor, &patch );
31963 if( major != DB_VERSION_MAJOR ||
31964 minor < DB_VERSION_MINOR )
31966 printf("Berkeley DB version mismatch\n"
31967 "\theader: %s\n\tlibrary: %s\n",
31968 DB_VERSION_STRING, version);
31974 #if DB_VERSION_MAJOR > 2
31975 db_env_create( NULL, 0 );
31976 #elif DB_VERSION_MAJOR > 1
31977 db_appexit( NULL );
31979 (void) dbopen( NULL, 0, 0, 0, NULL);
31986 rm -f conftest.$ac_objext conftest$ac_exeext
31987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31988 (eval $ac_link) 2>conftest.er1
31990 grep -v '^ *+' conftest.er1 >conftest.err
31992 cat conftest.err >&5
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } &&
31995 { ac_try='test -z "$ac_c_werror_flag"
31996 || test ! -s conftest.err'
31997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998 (eval $ac_try) 2>&5
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest$ac_exeext'
32003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004 (eval $ac_try) 2>&5
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
32008 ol_cv_db_db_4_dot_1=yes
32010 echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32013 ol_cv_db_db_4_dot_1=no
32015 rm -f conftest.err conftest.$ac_objext \
32016 conftest$ac_exeext conftest.$ac_ext
32021 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32022 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32024 if test $ol_cv_db_db_4_dot_1 = yes ; then
32025 ol_cv_lib_db=-ldb-4.1
32029 if test $ol_cv_lib_db = no ; then
32030 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32031 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32032 if test "${ol_cv_db_db_4_1+set}" = set; then
32033 echo $ECHO_N "(cached) $ECHO_C" >&6
32038 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32040 cat >conftest.$ac_ext <<_ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32047 #ifdef HAVE_DB_185_H
32048 # include <db_185.h>
32053 #ifndef DB_VERSION_MAJOR
32054 # define DB_VERSION_MAJOR 1
32058 #define NULL ((void*)0)
32065 #if DB_VERSION_MAJOR > 1
32068 int major, minor, patch;
32070 version = db_version( &major, &minor, &patch );
32072 if( major != DB_VERSION_MAJOR ||
32073 minor < DB_VERSION_MINOR )
32075 printf("Berkeley DB version mismatch\n"
32076 "\theader: %s\n\tlibrary: %s\n",
32077 DB_VERSION_STRING, version);
32083 #if DB_VERSION_MAJOR > 2
32084 db_env_create( NULL, 0 );
32085 #elif DB_VERSION_MAJOR > 1
32086 db_appexit( NULL );
32088 (void) dbopen( NULL, 0, 0, 0, NULL);
32095 rm -f conftest.$ac_objext conftest$ac_exeext
32096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32097 (eval $ac_link) 2>conftest.er1
32099 grep -v '^ *+' conftest.er1 >conftest.err
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_c_werror_flag"
32105 || test ! -s conftest.err'
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; } &&
32111 { ac_try='test -s conftest$ac_exeext'
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; }; then
32117 ol_cv_db_db_4_1=yes
32119 echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32124 rm -f conftest.err conftest.$ac_objext \
32125 conftest$ac_exeext conftest.$ac_ext
32130 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32131 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32133 if test $ol_cv_db_db_4_1 = yes ; then
32134 ol_cv_lib_db=-ldb-4-1
32138 if test $ol_cv_lib_db = no ; then
32139 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32140 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32141 if test "${ol_cv_db_db3+set}" = set; then
32142 echo $ECHO_N "(cached) $ECHO_C" >&6
32147 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32149 cat >conftest.$ac_ext <<_ACEOF
32152 cat confdefs.h >>conftest.$ac_ext
32153 cat >>conftest.$ac_ext <<_ACEOF
32154 /* end confdefs.h. */
32156 #ifdef HAVE_DB_185_H
32157 # include <db_185.h>
32162 #ifndef DB_VERSION_MAJOR
32163 # define DB_VERSION_MAJOR 1
32167 #define NULL ((void*)0)
32174 #if DB_VERSION_MAJOR > 1
32177 int major, minor, patch;
32179 version = db_version( &major, &minor, &patch );
32181 if( major != DB_VERSION_MAJOR ||
32182 minor < DB_VERSION_MINOR )
32184 printf("Berkeley DB version mismatch\n"
32185 "\theader: %s\n\tlibrary: %s\n",
32186 DB_VERSION_STRING, version);
32192 #if DB_VERSION_MAJOR > 2
32193 db_env_create( NULL, 0 );
32194 #elif DB_VERSION_MAJOR > 1
32195 db_appexit( NULL );
32197 (void) dbopen( NULL, 0, 0, 0, NULL);
32204 rm -f conftest.$ac_objext conftest$ac_exeext
32205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32206 (eval $ac_link) 2>conftest.er1
32208 grep -v '^ *+' conftest.er1 >conftest.err
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } &&
32213 { ac_try='test -z "$ac_c_werror_flag"
32214 || test ! -s conftest.err'
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; } &&
32220 { ac_try='test -s conftest$ac_exeext'
32221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32222 (eval $ac_try) 2>&5
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
32228 echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32233 rm -f conftest.err conftest.$ac_objext \
32234 conftest$ac_exeext conftest.$ac_ext
32239 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32240 echo "${ECHO_T}$ol_cv_db_db3" >&6
32242 if test $ol_cv_db_db3 = yes ; then
32247 if test $ol_cv_lib_db = no ; then
32248 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32249 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32250 if test "${ol_cv_db_db_3+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32256 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32258 cat >conftest.$ac_ext <<_ACEOF
32261 cat confdefs.h >>conftest.$ac_ext
32262 cat >>conftest.$ac_ext <<_ACEOF
32263 /* end confdefs.h. */
32265 #ifdef HAVE_DB_185_H
32266 # include <db_185.h>
32271 #ifndef DB_VERSION_MAJOR
32272 # define DB_VERSION_MAJOR 1
32276 #define NULL ((void*)0)
32283 #if DB_VERSION_MAJOR > 1
32286 int major, minor, patch;
32288 version = db_version( &major, &minor, &patch );
32290 if( major != DB_VERSION_MAJOR ||
32291 minor < DB_VERSION_MINOR )
32293 printf("Berkeley DB version mismatch\n"
32294 "\theader: %s\n\tlibrary: %s\n",
32295 DB_VERSION_STRING, version);
32301 #if DB_VERSION_MAJOR > 2
32302 db_env_create( NULL, 0 );
32303 #elif DB_VERSION_MAJOR > 1
32304 db_appexit( NULL );
32306 (void) dbopen( NULL, 0, 0, 0, NULL);
32313 rm -f conftest.$ac_objext conftest$ac_exeext
32314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32315 (eval $ac_link) 2>conftest.er1
32317 grep -v '^ *+' conftest.er1 >conftest.err
32319 cat conftest.err >&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
32322 { ac_try='test -z "$ac_c_werror_flag"
32323 || test ! -s conftest.err'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; } &&
32329 { ac_try='test -s conftest$ac_exeext'
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32342 rm -f conftest.err conftest.$ac_objext \
32343 conftest$ac_exeext conftest.$ac_ext
32348 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32349 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32351 if test $ol_cv_db_db_3 = yes ; then
32352 ol_cv_lib_db=-ldb-3
32356 if test $ol_cv_lib_db = no ; then
32357 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32358 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32359 if test "${ol_cv_db_db2+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32365 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32367 cat >conftest.$ac_ext <<_ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h. */
32374 #ifdef HAVE_DB_185_H
32375 # include <db_185.h>
32380 #ifndef DB_VERSION_MAJOR
32381 # define DB_VERSION_MAJOR 1
32385 #define NULL ((void*)0)
32392 #if DB_VERSION_MAJOR > 1
32395 int major, minor, patch;
32397 version = db_version( &major, &minor, &patch );
32399 if( major != DB_VERSION_MAJOR ||
32400 minor < DB_VERSION_MINOR )
32402 printf("Berkeley DB version mismatch\n"
32403 "\theader: %s\n\tlibrary: %s\n",
32404 DB_VERSION_STRING, version);
32410 #if DB_VERSION_MAJOR > 2
32411 db_env_create( NULL, 0 );
32412 #elif DB_VERSION_MAJOR > 1
32413 db_appexit( NULL );
32415 (void) dbopen( NULL, 0, 0, 0, NULL);
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32424 (eval $ac_link) 2>conftest.er1
32426 grep -v '^ *+' conftest.er1 >conftest.err
32428 cat conftest.err >&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); } &&
32431 { ac_try='test -z "$ac_c_werror_flag"
32432 || test ! -s conftest.err'
32433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434 (eval $ac_try) 2>&5
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); }; } &&
32438 { ac_try='test -s conftest$ac_exeext'
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; }; then
32446 echo "$as_me: failed program was:" >&5
32447 sed 's/^/| /' conftest.$ac_ext >&5
32451 rm -f conftest.err conftest.$ac_objext \
32452 conftest$ac_exeext conftest.$ac_ext
32457 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32458 echo "${ECHO_T}$ol_cv_db_db2" >&6
32460 if test $ol_cv_db_db2 = yes ; then
32465 if test $ol_cv_lib_db = no ; then
32466 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32467 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32468 if test "${ol_cv_db_db_2+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32474 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32476 cat >conftest.$ac_ext <<_ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h. */
32483 #ifdef HAVE_DB_185_H
32484 # include <db_185.h>
32489 #ifndef DB_VERSION_MAJOR
32490 # define DB_VERSION_MAJOR 1
32494 #define NULL ((void*)0)
32501 #if DB_VERSION_MAJOR > 1
32504 int major, minor, patch;
32506 version = db_version( &major, &minor, &patch );
32508 if( major != DB_VERSION_MAJOR ||
32509 minor < DB_VERSION_MINOR )
32511 printf("Berkeley DB version mismatch\n"
32512 "\theader: %s\n\tlibrary: %s\n",
32513 DB_VERSION_STRING, version);
32519 #if DB_VERSION_MAJOR > 2
32520 db_env_create( NULL, 0 );
32521 #elif DB_VERSION_MAJOR > 1
32522 db_appexit( NULL );
32524 (void) dbopen( NULL, 0, 0, 0, NULL);
32531 rm -f conftest.$ac_objext conftest$ac_exeext
32532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32533 (eval $ac_link) 2>conftest.er1
32535 grep -v '^ *+' conftest.er1 >conftest.err
32537 cat conftest.err >&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); } &&
32540 { ac_try='test -z "$ac_c_werror_flag"
32541 || test ! -s conftest.err'
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; } &&
32547 { ac_try='test -s conftest$ac_exeext'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32560 rm -f conftest.err conftest.$ac_objext \
32561 conftest$ac_exeext conftest.$ac_ext
32566 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32567 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32569 if test $ol_cv_db_db_2 = yes ; then
32570 ol_cv_lib_db=-ldb-2
32574 if test $ol_cv_lib_db = no ; then
32575 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32576 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32577 if test "${ol_cv_db_db1+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32583 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32585 cat >conftest.$ac_ext <<_ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32592 #ifdef HAVE_DB_185_H
32593 # include <db_185.h>
32598 #ifndef DB_VERSION_MAJOR
32599 # define DB_VERSION_MAJOR 1
32603 #define NULL ((void*)0)
32610 #if DB_VERSION_MAJOR > 1
32613 int major, minor, patch;
32615 version = db_version( &major, &minor, &patch );
32617 if( major != DB_VERSION_MAJOR ||
32618 minor < DB_VERSION_MINOR )
32620 printf("Berkeley DB version mismatch\n"
32621 "\theader: %s\n\tlibrary: %s\n",
32622 DB_VERSION_STRING, version);
32628 #if DB_VERSION_MAJOR > 2
32629 db_env_create( NULL, 0 );
32630 #elif DB_VERSION_MAJOR > 1
32631 db_appexit( NULL );
32633 (void) dbopen( NULL, 0, 0, 0, NULL);
32640 rm -f conftest.$ac_objext conftest$ac_exeext
32641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32642 (eval $ac_link) 2>conftest.er1
32644 grep -v '^ *+' conftest.er1 >conftest.err
32646 cat conftest.err >&5
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } &&
32649 { ac_try='test -z "$ac_c_werror_flag"
32650 || test ! -s conftest.err'
32651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652 (eval $ac_try) 2>&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; } &&
32656 { ac_try='test -s conftest$ac_exeext'
32657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32658 (eval $ac_try) 2>&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); }; }; then
32664 echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32669 rm -f conftest.err conftest.$ac_objext \
32670 conftest$ac_exeext conftest.$ac_ext
32675 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32676 echo "${ECHO_T}$ol_cv_db_db1" >&6
32678 if test $ol_cv_db_db1 = yes ; then
32683 if test $ol_cv_lib_db = no ; then
32684 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32685 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32686 if test "${ol_cv_db_db_1+set}" = set; then
32687 echo $ECHO_N "(cached) $ECHO_C" >&6
32692 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32694 cat >conftest.$ac_ext <<_ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h. */
32701 #ifdef HAVE_DB_185_H
32702 # include <db_185.h>
32707 #ifndef DB_VERSION_MAJOR
32708 # define DB_VERSION_MAJOR 1
32712 #define NULL ((void*)0)
32719 #if DB_VERSION_MAJOR > 1
32722 int major, minor, patch;
32724 version = db_version( &major, &minor, &patch );
32726 if( major != DB_VERSION_MAJOR ||
32727 minor < DB_VERSION_MINOR )
32729 printf("Berkeley DB version mismatch\n"
32730 "\theader: %s\n\tlibrary: %s\n",
32731 DB_VERSION_STRING, version);
32737 #if DB_VERSION_MAJOR > 2
32738 db_env_create( NULL, 0 );
32739 #elif DB_VERSION_MAJOR > 1
32740 db_appexit( NULL );
32742 (void) dbopen( NULL, 0, 0, 0, NULL);
32749 rm -f conftest.$ac_objext conftest$ac_exeext
32750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32751 (eval $ac_link) 2>conftest.er1
32753 grep -v '^ *+' conftest.er1 >conftest.err
32755 cat conftest.err >&5
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); } &&
32758 { ac_try='test -z "$ac_c_werror_flag"
32759 || test ! -s conftest.err'
32760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761 (eval $ac_try) 2>&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; } &&
32765 { ac_try='test -s conftest$ac_exeext'
32766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32767 (eval $ac_try) 2>&5
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; }; then
32773 echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32778 rm -f conftest.err conftest.$ac_objext \
32779 conftest$ac_exeext conftest.$ac_ext
32784 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32785 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32787 if test $ol_cv_db_db_1 = yes ; then
32788 ol_cv_lib_db=-ldb-1
32793 if test "$ol_cv_lib_db" != no ; then
32794 ol_cv_berkeley_db=yes
32795 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32796 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32797 if test "${ol_cv_berkeley_db_version+set}" = set; then
32798 echo $ECHO_N "(cached) $ECHO_C" >&6
32802 LIBS="$LTHREAD_LIBS $LIBS"
32803 if test $ol_cv_lib_db != yes ; then
32804 LIBS="$ol_cv_lib_db $LIBS"
32807 if test "$cross_compiling" = yes; then
32808 ol_cv_berkeley_db_version=cross
32810 cat >conftest.$ac_ext <<_ACEOF
32813 cat confdefs.h >>conftest.$ac_ext
32814 cat >>conftest.$ac_ext <<_ACEOF
32815 /* end confdefs.h. */
32817 #ifdef HAVE_DB_185_H
32822 #ifndef DB_VERSION_MAJOR
32823 # define DB_VERSION_MAJOR 1
32826 #define NULL ((void *)0)
32830 #if DB_VERSION_MAJOR > 1
32832 int major, minor, patch;
32834 version = db_version( &major, &minor, &patch );
32836 if( major != DB_VERSION_MAJOR ||
32837 minor != DB_VERSION_MINOR ||
32838 patch != DB_VERSION_PATCH )
32840 printf("Berkeley DB version mismatch\n"
32841 "\theader: %s\n\tlibrary: %s\n",
32842 DB_VERSION_STRING, version);
32850 rm -f conftest$ac_exeext
32851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32852 (eval $ac_link) 2>&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32857 (eval $ac_try) 2>&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); }; }; then
32861 ol_cv_berkeley_db_version=yes
32863 echo "$as_me: program exited with status $ac_status" >&5
32864 echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 ( exit $ac_status )
32868 ol_cv_berkeley_db_version=no
32870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32876 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32877 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32879 if test $ol_cv_berkeley_db_version = no ; then
32880 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32881 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32882 { (exit 1); exit 1; }; }
32885 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32886 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32887 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32888 echo $ECHO_N "(cached) $ECHO_C" >&6
32892 LIBS="$LTHREAD_LIBS $LIBS"
32893 if test $ol_cv_lib_db != yes ; then
32894 LIBS="$ol_cv_lib_db $LIBS"
32897 if test "$cross_compiling" = yes; then
32898 ol_cv_berkeley_db_thread=cross
32900 cat >conftest.$ac_ext <<_ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h. */
32907 #ifdef HAVE_DB_185_H
32913 #define NULL ((void *)0)
32918 u_int32_t flags = DB_CREATE |
32924 #if DB_VERSION_MAJOR > 2
32925 DB_ENV *env = NULL;
32927 rc = db_env_create( &env, 0 );
32929 flags |= DB_INIT_MPOOL;
32930 #ifdef DB_MPOOL_PRIVATE
32931 flags |= DB_MPOOL_PRIVATE;
32935 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32939 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
32940 rc = env->open( env, NULL, flags, 0 );
32942 rc = env->open( env, NULL, NULL, flags, 0 );
32946 rc = env->close( env, 0 );
32950 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32956 memset( &env, '\0', sizeof(env) );
32958 rc = db_appinit( NULL, NULL, &env, flags );
32961 db_appexit( &env );
32964 unlink("__db_mpool.share");
32965 unlink("__db_lock.share");
32971 rm -f conftest$ac_exeext
32972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32973 (eval $ac_link) 2>&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982 ol_cv_berkeley_db_thread=yes
32984 echo "$as_me: program exited with status $ac_status" >&5
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ( exit $ac_status )
32989 ol_cv_berkeley_db_thread=no
32991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32997 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
32998 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33000 if test $ol_cv_berkeley_db_thread != no ; then
33002 cat >>confdefs.h <<\_ACEOF
33003 #define HAVE_BERKELEY_DB_THREAD 1
33013 if test $ol_cv_berkeley_db != no ; then
33015 cat >>confdefs.h <<\_ACEOF
33016 #define HAVE_BERKELEY_DB 1
33020 ol_link_ldbm=berkeley
33021 ol_enable_ldbm_api=berkeley
33023 if test $ol_enable_ldbm_type = hash ; then
33025 cat >>confdefs.h <<\_ACEOF
33026 #define LDBM_USE_DBHASH 1
33031 cat >>confdefs.h <<\_ACEOF
33032 #define LDBM_USE_DBBTREE 1
33037 if test $ol_cv_lib_db != yes ; then
33038 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33044 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33045 if test $ol_link_ldbm != berkeley ; then
33046 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33047 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33048 { (exit 1); exit 1; }; }
33050 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33051 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33052 if test "${ol_cv_bdb_compat+set}" = set; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33056 cat >conftest.$ac_ext <<_ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h. */
33065 /* this check could be improved */
33066 #ifndef DB_VERSION_MAJOR
33067 # define DB_VERSION_MAJOR 1
33069 #ifndef DB_VERSION_MINOR
33070 # define DB_VERSION_MINOR 0
33073 /* require 4.2 or later */
33074 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33075 __db_version_compat
33079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33080 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33081 ol_cv_bdb_compat=yes
33083 ol_cv_bdb_compat=no
33088 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33089 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33092 if test $ol_cv_bdb_compat != yes ; then
33093 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33094 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33095 { (exit 1); exit 1; }; }
33100 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33101 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33102 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33103 ol_enable_ldbm_api=none
33106 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33107 echo "$as_me:$LINENO: checking for MDBM library" >&5
33108 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33109 if test "${ol_cv_lib_mdbm+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33114 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33115 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33118 cat >conftest.$ac_ext <<_ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33126 #define mdbm_set_chain innocuous_mdbm_set_chain
33128 /* System header to define __stub macros and hopefully few prototypes,
33129 which can conflict with char mdbm_set_chain (); below.
33130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33131 <limits.h> exists even on freestanding compilers. */
33134 # include <limits.h>
33136 # include <assert.h>
33139 #undef mdbm_set_chain
33141 /* Override any gcc2 internal prototype to avoid an error. */
33146 /* We use char because int might match the return type of a gcc2
33147 builtin and then its argument prototype would still apply. */
33148 char mdbm_set_chain ();
33149 /* The GNU C library defines this for functions which it implements
33150 to always fail with ENOSYS. Some functions are actually named
33151 something starting with __ and the normal name is an alias. */
33152 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33155 char (*f) () = mdbm_set_chain;
33164 return f != mdbm_set_chain;
33169 rm -f conftest.$ac_objext conftest$ac_exeext
33170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33171 (eval $ac_link) 2>conftest.er1
33173 grep -v '^ *+' conftest.er1 >conftest.err
33175 cat conftest.err >&5
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); } &&
33178 { ac_try='test -z "$ac_c_werror_flag"
33179 || test ! -s conftest.err'
33180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33181 (eval $ac_try) 2>&5
33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184 (exit $ac_status); }; } &&
33185 { ac_try='test -s conftest$ac_exeext'
33186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33187 (eval $ac_try) 2>&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; }; then
33191 ac_cv_func_mdbm_set_chain=yes
33193 echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33196 ac_cv_func_mdbm_set_chain=no
33198 rm -f conftest.err conftest.$ac_objext \
33199 conftest$ac_exeext conftest.$ac_ext
33201 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33202 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33203 if test $ac_cv_func_mdbm_set_chain = yes; then
33207 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33208 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33209 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33210 echo $ECHO_N "(cached) $ECHO_C" >&6
33212 ac_check_lib_save_LIBS=$LIBS
33213 LIBS="-lmdbm $LIBS"
33214 cat >conftest.$ac_ext <<_ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33221 /* Override any gcc2 internal prototype to avoid an error. */
33225 /* We use char because int might match the return type of a gcc2
33226 builtin and then its argument prototype would still apply. */
33227 char mdbm_set_chain ();
33236 rm -f conftest.$ac_objext conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238 (eval $ac_link) 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_c_werror_flag"
33246 || test ! -s conftest.err'
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest$ac_exeext'
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; }; then
33258 ac_cv_lib_mdbm_mdbm_set_chain=yes
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33263 ac_cv_lib_mdbm_mdbm_set_chain=no
33265 rm -f conftest.err conftest.$ac_objext \
33266 conftest$ac_exeext conftest.$ac_ext
33267 LIBS=$ac_check_lib_save_LIBS
33269 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33270 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33271 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33272 ol_cv_lib_mdbm=-lmdbm
33283 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33284 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33288 for ac_header in mdbm.h
33290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33292 echo "$as_me:$LINENO: checking for $ac_header" >&5
33293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33300 # Is the header compilable?
33301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33303 cat >conftest.$ac_ext <<_ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33309 $ac_includes_default
33310 #include <$ac_header>
33312 rm -f conftest.$ac_objext
33313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33314 (eval $ac_compile) 2>conftest.er1
33316 grep -v '^ *+' conftest.er1 >conftest.err
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } &&
33321 { ac_try='test -z "$ac_c_werror_flag"
33322 || test ! -s conftest.err'
33323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33324 (eval $ac_try) 2>&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); }; } &&
33328 { ac_try='test -s conftest.$ac_objext'
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; }; then
33334 ac_header_compiler=yes
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33339 ac_header_compiler=no
33341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33343 echo "${ECHO_T}$ac_header_compiler" >&6
33345 # Is the header present?
33346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33348 cat >conftest.$ac_ext <<_ACEOF
33351 cat confdefs.h >>conftest.$ac_ext
33352 cat >>conftest.$ac_ext <<_ACEOF
33353 /* end confdefs.h. */
33354 #include <$ac_header>
33356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33359 grep -v '^ *+' conftest.er1 >conftest.err
33361 cat conftest.err >&5
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); } >/dev/null; then
33364 if test -s conftest.err; then
33365 ac_cpp_err=$ac_c_preproc_warn_flag
33366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33373 if test -z "$ac_cpp_err"; then
33374 ac_header_preproc=yes
33376 echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33379 ac_header_preproc=no
33381 rm -f conftest.err conftest.$ac_ext
33382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33383 echo "${ECHO_T}$ac_header_preproc" >&6
33385 # So? What about this header?
33386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33392 ac_header_preproc=yes
33395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33409 ## ------------------------------------------ ##
33410 ## Report this to the AC_PACKAGE_NAME lists. ##
33411 ## ------------------------------------------ ##
33414 sed "s/^/$as_me: WARNING: /" >&2
33417 echo "$as_me:$LINENO: checking for $ac_header" >&5
33418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33422 eval "$as_ac_Header=\$ac_header_preproc"
33424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33429 cat >>confdefs.h <<_ACEOF
33430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33437 echo "$as_me:$LINENO: checking for db" >&5
33438 echo $ECHO_N "checking for db... $ECHO_C" >&6
33439 if test "${ol_cv_mdbm+set}" = set; then
33440 echo $ECHO_N "(cached) $ECHO_C" >&6
33443 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33450 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33451 echo "${ECHO_T}$ol_cv_mdbm" >&6
33452 if test $ol_cv_mdbm = yes ; then
33454 cat >>confdefs.h <<\_ACEOF
33455 #define HAVE_MDBM 1
33461 if test $ol_cv_mdbm = yes ; then
33463 ol_enable_ldbm_api=mdbm
33464 if test $ol_cv_lib_mdbm != yes ; then
33465 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33470 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33471 echo "$as_me:$LINENO: checking for GDBM library" >&5
33472 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33473 if test "${ol_cv_lib_gdbm+set}" = set; then
33474 echo $ECHO_N "(cached) $ECHO_C" >&6
33477 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33478 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33479 if test "${ac_cv_func_gdbm_open+set}" = set; then
33480 echo $ECHO_N "(cached) $ECHO_C" >&6
33482 cat >conftest.$ac_ext <<_ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h. */
33488 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33490 #define gdbm_open innocuous_gdbm_open
33492 /* System header to define __stub macros and hopefully few prototypes,
33493 which can conflict with char gdbm_open (); below.
33494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33495 <limits.h> exists even on freestanding compilers. */
33498 # include <limits.h>
33500 # include <assert.h>
33505 /* Override any gcc2 internal prototype to avoid an error. */
33510 /* We use char because int might match the return type of a gcc2
33511 builtin and then its argument prototype would still apply. */
33513 /* The GNU C library defines this for functions which it implements
33514 to always fail with ENOSYS. Some functions are actually named
33515 something starting with __ and the normal name is an alias. */
33516 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33519 char (*f) () = gdbm_open;
33528 return f != gdbm_open;
33533 rm -f conftest.$ac_objext conftest$ac_exeext
33534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33535 (eval $ac_link) 2>conftest.er1
33537 grep -v '^ *+' conftest.er1 >conftest.err
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_c_werror_flag"
33543 || test ! -s conftest.err'
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; } &&
33549 { ac_try='test -s conftest$ac_exeext'
33550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551 (eval $ac_try) 2>&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_func_gdbm_open=yes
33557 echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33560 ac_cv_func_gdbm_open=no
33562 rm -f conftest.err conftest.$ac_objext \
33563 conftest$ac_exeext conftest.$ac_ext
33565 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33566 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33567 if test $ac_cv_func_gdbm_open = yes; then
33571 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33572 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33573 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33576 ac_check_lib_save_LIBS=$LIBS
33577 LIBS="-lgdbm $LIBS"
33578 cat >conftest.$ac_ext <<_ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33585 /* Override any gcc2 internal prototype to avoid an error. */
33589 /* We use char because int might match the return type of a gcc2
33590 builtin and then its argument prototype would still apply. */
33600 rm -f conftest.$ac_objext conftest$ac_exeext
33601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33602 (eval $ac_link) 2>conftest.er1
33604 grep -v '^ *+' conftest.er1 >conftest.err
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 ac_cv_lib_gdbm_gdbm_open=yes
33624 echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33627 ac_cv_lib_gdbm_gdbm_open=no
33629 rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
33631 LIBS=$ac_check_lib_save_LIBS
33633 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33634 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33635 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33636 ol_cv_lib_gdbm=-lgdbm
33647 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33648 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33652 for ac_header in gdbm.h
33654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33656 echo "$as_me:$LINENO: checking for $ac_header" >&5
33657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33659 echo $ECHO_N "(cached) $ECHO_C" >&6
33661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33664 # Is the header compilable?
33665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33667 cat >conftest.$ac_ext <<_ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h. */
33673 $ac_includes_default
33674 #include <$ac_header>
33676 rm -f conftest.$ac_objext
33677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33678 (eval $ac_compile) 2>conftest.er1
33680 grep -v '^ *+' conftest.er1 >conftest.err
33682 cat conftest.err >&5
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); } &&
33685 { ac_try='test -z "$ac_c_werror_flag"
33686 || test ! -s conftest.err'
33687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33688 (eval $ac_try) 2>&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; } &&
33692 { ac_try='test -s conftest.$ac_objext'
33693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33694 (eval $ac_try) 2>&5
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); }; }; then
33698 ac_header_compiler=yes
33700 echo "$as_me: failed program was:" >&5
33701 sed 's/^/| /' conftest.$ac_ext >&5
33703 ac_header_compiler=no
33705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33707 echo "${ECHO_T}$ac_header_compiler" >&6
33709 # Is the header present?
33710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33712 cat >conftest.$ac_ext <<_ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h. */
33718 #include <$ac_header>
33720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33723 grep -v '^ *+' conftest.er1 >conftest.err
33725 cat conftest.err >&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } >/dev/null; then
33728 if test -s conftest.err; then
33729 ac_cpp_err=$ac_c_preproc_warn_flag
33730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33737 if test -z "$ac_cpp_err"; then
33738 ac_header_preproc=yes
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_header_preproc=no
33745 rm -f conftest.err conftest.$ac_ext
33746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33747 echo "${ECHO_T}$ac_header_preproc" >&6
33749 # So? What about this header?
33750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33756 ac_header_preproc=yes
33759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33773 ## ------------------------------------------ ##
33774 ## Report this to the AC_PACKAGE_NAME lists. ##
33775 ## ------------------------------------------ ##
33778 sed "s/^/$as_me: WARNING: /" >&2
33781 echo "$as_me:$LINENO: checking for $ac_header" >&5
33782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33784 echo $ECHO_N "(cached) $ECHO_C" >&6
33786 eval "$as_ac_Header=\$ac_header_preproc"
33788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33793 cat >>confdefs.h <<_ACEOF
33794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33801 echo "$as_me:$LINENO: checking for db" >&5
33802 echo $ECHO_N "checking for db... $ECHO_C" >&6
33803 if test "${ol_cv_gdbm+set}" = set; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33807 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33814 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33815 echo "${ECHO_T}$ol_cv_gdbm" >&6
33816 if test $ol_cv_gdbm = yes ; then
33818 cat >>confdefs.h <<\_ACEOF
33819 #define HAVE_GDBM 1
33825 if test $ol_cv_gdbm = yes ; then
33827 ol_enable_ldbm_api=gdbm
33829 if test $ol_cv_lib_gdbm != yes ; then
33830 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33835 if test $ol_enable_ldbm_api = ndbm ; then
33836 echo "$as_me:$LINENO: checking for NDBM library" >&5
33837 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33838 if test "${ol_cv_lib_ndbm+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 echo "$as_me:$LINENO: checking for dbm_open" >&5
33843 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33844 if test "${ac_cv_func_dbm_open+set}" = set; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33847 cat >conftest.$ac_ext <<_ACEOF
33850 cat confdefs.h >>conftest.$ac_ext
33851 cat >>conftest.$ac_ext <<_ACEOF
33852 /* end confdefs.h. */
33853 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33855 #define dbm_open innocuous_dbm_open
33857 /* System header to define __stub macros and hopefully few prototypes,
33858 which can conflict with char dbm_open (); below.
33859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33860 <limits.h> exists even on freestanding compilers. */
33863 # include <limits.h>
33865 # include <assert.h>
33870 /* Override any gcc2 internal prototype to avoid an error. */
33875 /* We use char because int might match the return type of a gcc2
33876 builtin and then its argument prototype would still apply. */
33878 /* The GNU C library defines this for functions which it implements
33879 to always fail with ENOSYS. Some functions are actually named
33880 something starting with __ and the normal name is an alias. */
33881 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33884 char (*f) () = dbm_open;
33893 return f != dbm_open;
33898 rm -f conftest.$ac_objext conftest$ac_exeext
33899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33900 (eval $ac_link) 2>conftest.er1
33902 grep -v '^ *+' conftest.er1 >conftest.err
33904 cat conftest.err >&5
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); } &&
33907 { ac_try='test -z "$ac_c_werror_flag"
33908 || test ! -s conftest.err'
33909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33910 (eval $ac_try) 2>&5
33912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 (exit $ac_status); }; } &&
33914 { ac_try='test -s conftest$ac_exeext'
33915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33916 (eval $ac_try) 2>&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
33920 ac_cv_func_dbm_open=yes
33922 echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33925 ac_cv_func_dbm_open=no
33927 rm -f conftest.err conftest.$ac_objext \
33928 conftest$ac_exeext conftest.$ac_ext
33930 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33931 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33932 if test $ac_cv_func_dbm_open = yes; then
33936 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33937 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33938 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33941 ac_check_lib_save_LIBS=$LIBS
33942 LIBS="-lndbm $LIBS"
33943 cat >conftest.$ac_ext <<_ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h. */
33950 /* Override any gcc2 internal prototype to avoid an error. */
33954 /* We use char because int might match the return type of a gcc2
33955 builtin and then its argument prototype would still apply. */
33965 rm -f conftest.$ac_objext conftest$ac_exeext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967 (eval $ac_link) 2>conftest.er1
33969 grep -v '^ *+' conftest.er1 >conftest.err
33971 cat conftest.err >&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_c_werror_flag"
33975 || test ! -s conftest.err'
33976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 (eval $ac_try) 2>&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); }; } &&
33981 { ac_try='test -s conftest$ac_exeext'
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; }; then
33987 ac_cv_lib_ndbm_dbm_open=yes
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 ac_cv_lib_ndbm_dbm_open=no
33994 rm -f conftest.err conftest.$ac_objext \
33995 conftest$ac_exeext conftest.$ac_ext
33996 LIBS=$ac_check_lib_save_LIBS
33998 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33999 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34000 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34001 ol_cv_lib_ndbm=-lndbm
34004 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34005 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34006 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34007 echo $ECHO_N "(cached) $ECHO_C" >&6
34009 ac_check_lib_save_LIBS=$LIBS
34011 cat >conftest.$ac_ext <<_ACEOF
34014 cat confdefs.h >>conftest.$ac_ext
34015 cat >>conftest.$ac_ext <<_ACEOF
34016 /* end confdefs.h. */
34018 /* Override any gcc2 internal prototype to avoid an error. */
34022 /* We use char because int might match the return type of a gcc2
34023 builtin and then its argument prototype would still apply. */
34033 rm -f conftest.$ac_objext conftest$ac_exeext
34034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34035 (eval $ac_link) 2>conftest.er1
34037 grep -v '^ *+' conftest.er1 >conftest.err
34039 cat conftest.err >&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); } &&
34042 { ac_try='test -z "$ac_c_werror_flag"
34043 || test ! -s conftest.err'
34044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045 (eval $ac_try) 2>&5
34047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); }; } &&
34049 { ac_try='test -s conftest$ac_exeext'
34050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34051 (eval $ac_try) 2>&5
34053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054 (exit $ac_status); }; }; then
34055 ac_cv_lib_dbm_dbm_open=yes
34057 echo "$as_me: failed program was:" >&5
34058 sed 's/^/| /' conftest.$ac_ext >&5
34060 ac_cv_lib_dbm_dbm_open=no
34062 rm -f conftest.err conftest.$ac_objext \
34063 conftest$ac_exeext conftest.$ac_ext
34064 LIBS=$ac_check_lib_save_LIBS
34066 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34067 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34068 if test $ac_cv_lib_dbm_dbm_open = yes; then
34069 ol_cv_lib_ndbm=-ldbm
34082 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34083 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34087 for ac_header in ndbm.h
34089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34091 echo "$as_me:$LINENO: checking for $ac_header" >&5
34092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34094 echo $ECHO_N "(cached) $ECHO_C" >&6
34096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34099 # Is the header compilable?
34100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34102 cat >conftest.$ac_ext <<_ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h. */
34108 $ac_includes_default
34109 #include <$ac_header>
34111 rm -f conftest.$ac_objext
34112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34113 (eval $ac_compile) 2>conftest.er1
34115 grep -v '^ *+' conftest.er1 >conftest.err
34117 cat conftest.err >&5
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); } &&
34120 { ac_try='test -z "$ac_c_werror_flag"
34121 || test ! -s conftest.err'
34122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123 (eval $ac_try) 2>&5
34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 (exit $ac_status); }; } &&
34127 { ac_try='test -s conftest.$ac_objext'
34128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34129 (eval $ac_try) 2>&5
34131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132 (exit $ac_status); }; }; then
34133 ac_header_compiler=yes
34135 echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34138 ac_header_compiler=no
34140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34142 echo "${ECHO_T}$ac_header_compiler" >&6
34144 # Is the header present?
34145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34147 cat >conftest.$ac_ext <<_ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34153 #include <$ac_header>
34155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34158 grep -v '^ *+' conftest.er1 >conftest.err
34160 cat conftest.err >&5
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); } >/dev/null; then
34163 if test -s conftest.err; then
34164 ac_cpp_err=$ac_c_preproc_warn_flag
34165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34172 if test -z "$ac_cpp_err"; then
34173 ac_header_preproc=yes
34175 echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34178 ac_header_preproc=no
34180 rm -f conftest.err conftest.$ac_ext
34181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34182 echo "${ECHO_T}$ac_header_preproc" >&6
34184 # So? What about this header?
34185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34191 ac_header_preproc=yes
34194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34208 ## ------------------------------------------ ##
34209 ## Report this to the AC_PACKAGE_NAME lists. ##
34210 ## ------------------------------------------ ##
34213 sed "s/^/$as_me: WARNING: /" >&2
34216 echo "$as_me:$LINENO: checking for $ac_header" >&5
34217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34221 eval "$as_ac_Header=\$ac_header_preproc"
34223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34228 cat >>confdefs.h <<_ACEOF
34229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34236 echo "$as_me:$LINENO: checking for db" >&5
34237 echo $ECHO_N "checking for db... $ECHO_C" >&6
34238 if test "${ol_cv_ndbm+set}" = set; then
34239 echo $ECHO_N "(cached) $ECHO_C" >&6
34242 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34249 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34250 echo "${ECHO_T}$ol_cv_ndbm" >&6
34251 if test $ol_cv_ndbm = yes ; then
34253 cat >>confdefs.h <<\_ACEOF
34254 #define HAVE_NDBM 1
34260 if test $ol_cv_ndbm = yes ; then
34262 ol_enable_ldbm_api=ndbm
34264 if test $ol_cv_lib_ndbm != yes ; then
34265 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34270 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34271 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34272 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34273 { (exit 1); exit 1; }; }
34276 if test $ol_enable_bdb = yes ||
34277 test $ol_enable_hdb = yes ||
34278 test $ol_enable_ldbm = yes ; then
34279 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34283 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34284 BUILD_LIBS_DYNAMIC=shared
34286 cat >>confdefs.h <<\_ACEOF
34287 #define LDAP_LIBS_DYNAMIC 1
34292 BUILD_LIBS_DYNAMIC=static
34296 if test $ol_enable_wrappers != no ; then
34298 for ac_header in tcpd.h
34300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34302 echo "$as_me:$LINENO: checking for $ac_header" >&5
34303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34310 # Is the header compilable?
34311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34313 cat >conftest.$ac_ext <<_ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h. */
34319 $ac_includes_default
34320 #include <$ac_header>
34322 rm -f conftest.$ac_objext
34323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34324 (eval $ac_compile) 2>conftest.er1
34326 grep -v '^ *+' conftest.er1 >conftest.err
34328 cat conftest.err >&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); } &&
34331 { ac_try='test -z "$ac_c_werror_flag"
34332 || test ! -s conftest.err'
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; } &&
34338 { ac_try='test -s conftest.$ac_objext'
34339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340 (eval $ac_try) 2>&5
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); }; }; then
34344 ac_header_compiler=yes
34346 echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34349 ac_header_compiler=no
34351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34353 echo "${ECHO_T}$ac_header_compiler" >&6
34355 # Is the header present?
34356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34358 cat >conftest.$ac_ext <<_ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h. */
34364 #include <$ac_header>
34366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } >/dev/null; then
34374 if test -s conftest.err; then
34375 ac_cpp_err=$ac_c_preproc_warn_flag
34376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34383 if test -z "$ac_cpp_err"; then
34384 ac_header_preproc=yes
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34389 ac_header_preproc=no
34391 rm -f conftest.err conftest.$ac_ext
34392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34393 echo "${ECHO_T}$ac_header_preproc" >&6
34395 # So? What about this header?
34396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34402 ac_header_preproc=yes
34405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34419 ## ------------------------------------------ ##
34420 ## Report this to the AC_PACKAGE_NAME lists. ##
34421 ## ------------------------------------------ ##
34424 sed "s/^/$as_me: WARNING: /" >&2
34427 echo "$as_me:$LINENO: checking for $ac_header" >&5
34428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34432 eval "$as_ac_Header=\$ac_header_preproc"
34434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34439 cat >>confdefs.h <<_ACEOF
34440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34443 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34444 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34446 LIBS="$LIBS -lwrap"
34447 cat >conftest.$ac_ext <<_ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h. */
34455 int allow_severity = 0;
34456 int deny_severity = 0;
34458 struct request_info *req;
34470 rm -f conftest.$ac_objext conftest$ac_exeext
34471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34472 (eval $ac_link) 2>conftest.er1
34474 grep -v '^ *+' conftest.er1 >conftest.err
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
34479 { ac_try='test -z "$ac_c_werror_flag"
34480 || test ! -s conftest.err'
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest$ac_exeext'
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
34492 echo "$as_me:$LINENO: result: -lwrap" >&5
34493 echo "${ECHO_T}-lwrap" >&6
34497 echo "$as_me: failed program was:" >&5
34498 sed 's/^/| /' conftest.$ac_ext >&5
34502 cat >conftest.$ac_ext <<_ACEOF
34505 cat confdefs.h >>conftest.$ac_ext
34506 cat >>conftest.$ac_ext <<_ACEOF
34507 /* end confdefs.h. */
34510 int allow_severity = 0;
34511 int deny_severity = 0;
34513 struct request_info *req;
34525 rm -f conftest.$ac_objext conftest$ac_exeext
34526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34527 (eval $ac_link) 2>conftest.er1
34529 grep -v '^ *+' conftest.er1 >conftest.err
34531 cat conftest.err >&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); } &&
34534 { ac_try='test -z "$ac_c_werror_flag"
34535 || test ! -s conftest.err'
34536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34537 (eval $ac_try) 2>&5
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); }; } &&
34541 { ac_try='test -s conftest$ac_exeext'
34542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543 (eval $ac_try) 2>&5
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); }; }; then
34547 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34548 echo "${ECHO_T}-lwrap -lnsl" >&6
34550 LIBS="$save_LIBS -lnsl"
34552 echo "$as_me: failed program was:" >&5
34553 sed 's/^/| /' conftest.$ac_ext >&5
34556 echo "$as_me:$LINENO: result: no" >&5
34557 echo "${ECHO_T}no" >&6
34561 rm -f conftest.err conftest.$ac_objext \
34562 conftest$ac_exeext conftest.$ac_ext
34564 rm -f conftest.err conftest.$ac_objext \
34565 conftest$ac_exeext conftest.$ac_ext
34573 if test $have_wrappers = yes ; then
34575 cat >>confdefs.h <<\_ACEOF
34576 #define HAVE_TCPD 1
34580 elif test $ol_enable_wrappers = yes ; then
34581 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34582 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34583 { (exit 1); exit 1; }; }
34585 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34586 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34591 if test $ol_enable_syslog != no ; then
34592 echo "$as_me:$LINENO: checking for openlog" >&5
34593 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34594 if test "${ac_cv_func_openlog+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34597 cat >conftest.$ac_ext <<_ACEOF
34600 cat confdefs.h >>conftest.$ac_ext
34601 cat >>conftest.$ac_ext <<_ACEOF
34602 /* end confdefs.h. */
34603 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34605 #define openlog innocuous_openlog
34607 /* System header to define __stub macros and hopefully few prototypes,
34608 which can conflict with char openlog (); below.
34609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34610 <limits.h> exists even on freestanding compilers. */
34613 # include <limits.h>
34615 # include <assert.h>
34620 /* Override any gcc2 internal prototype to avoid an error. */
34625 /* We use char because int might match the return type of a gcc2
34626 builtin and then its argument prototype would still apply. */
34628 /* The GNU C library defines this for functions which it implements
34629 to always fail with ENOSYS. Some functions are actually named
34630 something starting with __ and the normal name is an alias. */
34631 #if defined (__stub_openlog) || defined (__stub___openlog)
34634 char (*f) () = openlog;
34643 return f != openlog;
34648 rm -f conftest.$ac_objext conftest$ac_exeext
34649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34650 (eval $ac_link) 2>conftest.er1
34652 grep -v '^ *+' conftest.er1 >conftest.err
34654 cat conftest.err >&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } &&
34657 { ac_try='test -z "$ac_c_werror_flag"
34658 || test ! -s conftest.err'
34659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660 (eval $ac_try) 2>&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; } &&
34664 { ac_try='test -s conftest$ac_exeext'
34665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666 (eval $ac_try) 2>&5
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); }; }; then
34670 ac_cv_func_openlog=yes
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34675 ac_cv_func_openlog=no
34677 rm -f conftest.err conftest.$ac_objext \
34678 conftest$ac_exeext conftest.$ac_ext
34680 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34681 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34683 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34684 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34685 echo "$as_me: error: could not find syslog" >&2;}
34686 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34688 ol_enable_syslog=$ac_cv_func_openlog
34692 if test $ol_enable_sql != no ; then
34695 for ac_header in sql.h sqlext.h
34697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34699 echo "$as_me:$LINENO: checking for $ac_header" >&5
34700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34707 # Is the header compilable?
34708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34710 cat >conftest.$ac_ext <<_ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34716 $ac_includes_default
34717 #include <$ac_header>
34719 rm -f conftest.$ac_objext
34720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34721 (eval $ac_compile) 2>conftest.er1
34723 grep -v '^ *+' conftest.er1 >conftest.err
34725 cat conftest.err >&5
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); } &&
34728 { ac_try='test -z "$ac_c_werror_flag"
34729 || test ! -s conftest.err'
34730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34731 (eval $ac_try) 2>&5
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); }; } &&
34735 { ac_try='test -s conftest.$ac_objext'
34736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34737 (eval $ac_try) 2>&5
34739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740 (exit $ac_status); }; }; then
34741 ac_header_compiler=yes
34743 echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34746 ac_header_compiler=no
34748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34750 echo "${ECHO_T}$ac_header_compiler" >&6
34752 # Is the header present?
34753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34755 cat >conftest.$ac_ext <<_ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h. */
34761 #include <$ac_header>
34763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34766 grep -v '^ *+' conftest.er1 >conftest.err
34768 cat conftest.err >&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } >/dev/null; then
34771 if test -s conftest.err; then
34772 ac_cpp_err=$ac_c_preproc_warn_flag
34773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34780 if test -z "$ac_cpp_err"; then
34781 ac_header_preproc=yes
34783 echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34786 ac_header_preproc=no
34788 rm -f conftest.err conftest.$ac_ext
34789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34790 echo "${ECHO_T}$ac_header_preproc" >&6
34792 # So? What about this header?
34793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34799 ac_header_preproc=yes
34802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34816 ## ------------------------------------------ ##
34817 ## Report this to the AC_PACKAGE_NAME lists. ##
34818 ## ------------------------------------------ ##
34821 sed "s/^/$as_me: WARNING: /" >&2
34824 echo "$as_me:$LINENO: checking for $ac_header" >&5
34825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34829 eval "$as_ac_Header=\$ac_header_preproc"
34831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34836 cat >>confdefs.h <<_ACEOF
34837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34842 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34843 echo "$as_me: error: could not locate SQL headers" >&2;}
34844 { (exit 1); exit 1; }; }
34852 LIBS="$LTHREAD_LIBS"
34854 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34855 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34856 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34857 echo $ECHO_N "(cached) $ECHO_C" >&6
34859 ac_check_lib_save_LIBS=$LIBS
34860 LIBS="-liodbc $LIBS"
34861 cat >conftest.$ac_ext <<_ACEOF
34864 cat confdefs.h >>conftest.$ac_ext
34865 cat >>conftest.$ac_ext <<_ACEOF
34866 /* end confdefs.h. */
34868 /* Override any gcc2 internal prototype to avoid an error. */
34872 /* We use char because int might match the return type of a gcc2
34873 builtin and then its argument prototype would still apply. */
34874 char SQLDriverConnect ();
34878 SQLDriverConnect ();
34883 rm -f conftest.$ac_objext conftest$ac_exeext
34884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34885 (eval $ac_link) 2>conftest.er1
34887 grep -v '^ *+' conftest.er1 >conftest.err
34889 cat conftest.err >&5
34890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34891 (exit $ac_status); } &&
34892 { ac_try='test -z "$ac_c_werror_flag"
34893 || test ! -s conftest.err'
34894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34895 (eval $ac_try) 2>&5
34897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34898 (exit $ac_status); }; } &&
34899 { ac_try='test -s conftest$ac_exeext'
34900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34901 (eval $ac_try) 2>&5
34903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904 (exit $ac_status); }; }; then
34905 ac_cv_lib_iodbc_SQLDriverConnect=yes
34907 echo "$as_me: failed program was:" >&5
34908 sed 's/^/| /' conftest.$ac_ext >&5
34910 ac_cv_lib_iodbc_SQLDriverConnect=no
34912 rm -f conftest.err conftest.$ac_objext \
34913 conftest$ac_exeext conftest.$ac_ext
34914 LIBS=$ac_check_lib_save_LIBS
34916 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34917 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34918 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34924 if test $have_iodbc = yes ; then
34925 ol_link_sql="-liodbc"
34927 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34928 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34929 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34930 echo $ECHO_N "(cached) $ECHO_C" >&6
34932 ac_check_lib_save_LIBS=$LIBS
34933 LIBS="-lodbc $LIBS"
34934 cat >conftest.$ac_ext <<_ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h. */
34941 /* Override any gcc2 internal prototype to avoid an error. */
34945 /* We use char because int might match the return type of a gcc2
34946 builtin and then its argument prototype would still apply. */
34947 char SQLDriverConnect ();
34951 SQLDriverConnect ();
34956 rm -f conftest.$ac_objext conftest$ac_exeext
34957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34958 (eval $ac_link) 2>conftest.er1
34960 grep -v '^ *+' conftest.er1 >conftest.err
34962 cat conftest.err >&5
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); } &&
34965 { ac_try='test -z "$ac_c_werror_flag"
34966 || test ! -s conftest.err'
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; } &&
34972 { ac_try='test -s conftest$ac_exeext'
34973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34974 (eval $ac_try) 2>&5
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); }; }; then
34978 ac_cv_lib_odbc_SQLDriverConnect=yes
34980 echo "$as_me: failed program was:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
34983 ac_cv_lib_odbc_SQLDriverConnect=no
34985 rm -f conftest.err conftest.$ac_objext \
34986 conftest$ac_exeext conftest.$ac_ext
34987 LIBS=$ac_check_lib_save_LIBS
34989 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
34990 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
34991 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
34997 if test $have_odbc = yes ; then
34998 ol_link_sql="-lodbc"
35004 if test $ol_link_sql != no ; then
35005 SLAPD_SQL_LIBS="$ol_link_sql"
35007 elif test $ol_enable_sql != auto ; then
35008 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35009 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35010 { (exit 1); exit 1; }; }
35017 if test $ol_with_cyrus_sasl != no ; then
35020 for ac_header in sasl/sasl.h sasl.h
35022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35024 echo "$as_me:$LINENO: checking for $ac_header" >&5
35025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35027 echo $ECHO_N "(cached) $ECHO_C" >&6
35029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35032 # Is the header compilable?
35033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35035 cat >conftest.$ac_ext <<_ACEOF
35038 cat confdefs.h >>conftest.$ac_ext
35039 cat >>conftest.$ac_ext <<_ACEOF
35040 /* end confdefs.h. */
35041 $ac_includes_default
35042 #include <$ac_header>
35044 rm -f conftest.$ac_objext
35045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35046 (eval $ac_compile) 2>conftest.er1
35048 grep -v '^ *+' conftest.er1 >conftest.err
35050 cat conftest.err >&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); } &&
35053 { ac_try='test -z "$ac_c_werror_flag"
35054 || test ! -s conftest.err'
35055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056 (eval $ac_try) 2>&5
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); }; } &&
35060 { ac_try='test -s conftest.$ac_objext'
35061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062 (eval $ac_try) 2>&5
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); }; }; then
35066 ac_header_compiler=yes
35068 echo "$as_me: failed program was:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35071 ac_header_compiler=no
35073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35075 echo "${ECHO_T}$ac_header_compiler" >&6
35077 # Is the header present?
35078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35080 cat >conftest.$ac_ext <<_ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h. */
35086 #include <$ac_header>
35088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35091 grep -v '^ *+' conftest.er1 >conftest.err
35093 cat conftest.err >&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); } >/dev/null; then
35096 if test -s conftest.err; then
35097 ac_cpp_err=$ac_c_preproc_warn_flag
35098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35105 if test -z "$ac_cpp_err"; then
35106 ac_header_preproc=yes
35108 echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35111 ac_header_preproc=no
35113 rm -f conftest.err conftest.$ac_ext
35114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35115 echo "${ECHO_T}$ac_header_preproc" >&6
35117 # So? What about this header?
35118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35124 ac_header_preproc=yes
35127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35141 ## ------------------------------------------ ##
35142 ## Report this to the AC_PACKAGE_NAME lists. ##
35143 ## ------------------------------------------ ##
35146 sed "s/^/$as_me: WARNING: /" >&2
35149 echo "$as_me:$LINENO: checking for $ac_header" >&5
35150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35154 eval "$as_ac_Header=\$ac_header_preproc"
35156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35161 cat >>confdefs.h <<_ACEOF
35162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35170 if test $ac_cv_header_sasl_sasl_h = yes ||
35171 test $ac_cv_header_sasl_h = yes; then
35172 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35173 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35174 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35175 echo $ECHO_N "(cached) $ECHO_C" >&6
35177 ac_check_lib_save_LIBS=$LIBS
35178 LIBS="-lsasl2 $LIBS"
35179 cat >conftest.$ac_ext <<_ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35186 /* Override any gcc2 internal prototype to avoid an error. */
35190 /* We use char because int might match the return type of a gcc2
35191 builtin and then its argument prototype would still apply. */
35192 char sasl_client_init ();
35196 sasl_client_init ();
35201 rm -f conftest.$ac_objext conftest$ac_exeext
35202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35203 (eval $ac_link) 2>conftest.er1
35205 grep -v '^ *+' conftest.er1 >conftest.err
35207 cat conftest.err >&5
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); } &&
35210 { ac_try='test -z "$ac_c_werror_flag"
35211 || test ! -s conftest.err'
35212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35213 (eval $ac_try) 2>&5
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; } &&
35217 { ac_try='test -s conftest$ac_exeext'
35218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35219 (eval $ac_try) 2>&5
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); }; }; then
35223 ac_cv_lib_sasl2_sasl_client_init=yes
35225 echo "$as_me: failed program was:" >&5
35226 sed 's/^/| /' conftest.$ac_ext >&5
35228 ac_cv_lib_sasl2_sasl_client_init=no
35230 rm -f conftest.err conftest.$ac_objext \
35231 conftest$ac_exeext conftest.$ac_ext
35232 LIBS=$ac_check_lib_save_LIBS
35234 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35235 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35236 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35237 ol_link_sasl="-lsasl2"
35239 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35240 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35241 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35244 ac_check_lib_save_LIBS=$LIBS
35245 LIBS="-lsasl $LIBS"
35246 cat >conftest.$ac_ext <<_ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h. */
35253 /* Override any gcc2 internal prototype to avoid an error. */
35257 /* We use char because int might match the return type of a gcc2
35258 builtin and then its argument prototype would still apply. */
35259 char sasl_client_init ();
35263 sasl_client_init ();
35268 rm -f conftest.$ac_objext conftest$ac_exeext
35269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35270 (eval $ac_link) 2>conftest.er1
35272 grep -v '^ *+' conftest.er1 >conftest.err
35274 cat conftest.err >&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); } &&
35277 { ac_try='test -z "$ac_c_werror_flag"
35278 || test ! -s conftest.err'
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; } &&
35284 { ac_try='test -s conftest$ac_exeext'
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; }; then
35290 ac_cv_lib_sasl_sasl_client_init=yes
35292 echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35295 ac_cv_lib_sasl_sasl_client_init=no
35297 rm -f conftest.err conftest.$ac_objext \
35298 conftest$ac_exeext conftest.$ac_ext
35299 LIBS=$ac_check_lib_save_LIBS
35301 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35302 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35303 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35304 ol_link_sasl="-lsasl"
35311 if test $ol_link_sasl = no ; then
35312 if test $ol_with_cyrus_sasl != auto ; then
35313 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35314 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35315 { (exit 1); exit 1; }; }
35317 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35318 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35319 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35320 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35321 if test $ol_link_tls = no ; then
35322 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35323 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35327 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35328 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35329 if test "${ol_cv_sasl_compat+set}" = set; then
35330 echo $ECHO_N "(cached) $ECHO_C" >&6
35333 cat >conftest.$ac_ext <<_ACEOF
35336 cat confdefs.h >>conftest.$ac_ext
35337 cat >>conftest.$ac_ext <<_ACEOF
35338 /* end confdefs.h. */
35340 #ifdef HAVE_SASL_SASL_H
35341 #include <sasl/sasl.h>
35346 /* Require 2.1.15+ */
35347 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35348 char *__sasl_compat = "2.2+ or better okay (we guess)";
35349 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35350 && SASL_VERSION_STEP >=15
35351 char *__sasl_compat = "2.1.15+ or better okay";
35355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35356 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35357 ol_cv_sasl_compat=yes
35359 ol_cv_sasl_compat=no
35364 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35365 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35367 if test $ol_cv_sasl_compat = no ; then
35369 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35370 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35371 { (exit 1); exit 1; }; }
35375 cat >>confdefs.h <<\_ACEOF
35376 #define HAVE_CYRUS_SASL 1
35379 SASL_LIBS="$ol_link_sasl"
35380 if test $ol_enable_spasswd != no ; then
35381 ol_link_spasswd=yes
35384 ac_save_LIBS="$LIBS"
35385 LIBS="$LIBS $ol_link_sasl"
35386 echo "$as_me:$LINENO: checking for sasl_version" >&5
35387 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35388 if test "${ac_cv_func_sasl_version+set}" = set; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35391 cat >conftest.$ac_ext <<_ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h. */
35397 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35399 #define sasl_version innocuous_sasl_version
35401 /* System header to define __stub macros and hopefully few prototypes,
35402 which can conflict with char sasl_version (); below.
35403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35404 <limits.h> exists even on freestanding compilers. */
35407 # include <limits.h>
35409 # include <assert.h>
35412 #undef sasl_version
35414 /* Override any gcc2 internal prototype to avoid an error. */
35419 /* We use char because int might match the return type of a gcc2
35420 builtin and then its argument prototype would still apply. */
35421 char sasl_version ();
35422 /* The GNU C library defines this for functions which it implements
35423 to always fail with ENOSYS. Some functions are actually named
35424 something starting with __ and the normal name is an alias. */
35425 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35428 char (*f) () = sasl_version;
35437 return f != sasl_version;
35442 rm -f conftest.$ac_objext conftest$ac_exeext
35443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35444 (eval $ac_link) 2>conftest.er1
35446 grep -v '^ *+' conftest.er1 >conftest.err
35448 cat conftest.err >&5
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } &&
35451 { ac_try='test -z "$ac_c_werror_flag"
35452 || test ! -s conftest.err'
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; } &&
35458 { ac_try='test -s conftest$ac_exeext'
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; }; then
35464 ac_cv_func_sasl_version=yes
35466 echo "$as_me: failed program was:" >&5
35467 sed 's/^/| /' conftest.$ac_ext >&5
35469 ac_cv_func_sasl_version=no
35471 rm -f conftest.err conftest.$ac_objext \
35472 conftest$ac_exeext conftest.$ac_ext
35474 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35475 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35476 if test $ac_cv_func_sasl_version = yes; then
35478 cat >>confdefs.h <<\_ACEOF
35479 #define HAVE_SASL_VERSION 1
35484 LIBS="$ac_save_LIBS"
35490 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35491 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35492 if test $ol_link_tls = no ; then
35493 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35494 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35498 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35500 if test -r /dev/urandom ; then
35501 dev="/dev/urandom";
35502 elif test -r /idev/urandom ; then
35503 dev="/idev/urandom";
35504 elif test -r /dev/srandom ; then
35505 dev="/dev/srandom";
35506 elif test -r /dev/random ; then
35508 elif test -r /idev/random ; then
35509 dev="/idev/random";
35512 if test $dev != no ; then
35514 cat >>confdefs.h <<_ACEOF
35515 #define URANDOM_DEVICE "$dev"
35522 if test $ol_with_fetch != no ; then
35524 LIBS="-lfetch -lcom_err $LIBS"
35525 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35526 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35527 if test "${ol_cv_lib_fetch+set}" = set; then
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35531 cat >conftest.$ac_ext <<_ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h. */
35538 #include <sys/param.h>
35544 struct url *u = fetchParseURL("file:///");
35549 rm -f conftest.$ac_objext conftest$ac_exeext
35550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35551 (eval $ac_link) 2>conftest.er1
35553 grep -v '^ *+' conftest.er1 >conftest.err
35555 cat conftest.err >&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); } &&
35558 { ac_try='test -z "$ac_c_werror_flag"
35559 || test ! -s conftest.err'
35560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561 (eval $ac_try) 2>&5
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; } &&
35565 { ac_try='test -s conftest$ac_exeext'
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; }; then
35571 ol_cv_lib_fetch=yes
35573 echo "$as_me: failed program was:" >&5
35574 sed 's/^/| /' conftest.$ac_ext >&5
35578 rm -f conftest.err conftest.$ac_objext \
35579 conftest$ac_exeext conftest.$ac_ext
35581 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35582 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35584 if test $ol_cv_lib_fetch != no ; then
35585 ol_link_fetch="-lfetch -lcom_err"
35587 cat >>confdefs.h <<\_ACEOF
35588 #define HAVE_FETCH 1
35594 if test $ol_cv_lib_fetch != no ; then
35595 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35596 ol_link_fetch=freebsd
35598 elif test $ol_with_fetch != auto ; then
35599 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35600 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35601 { (exit 1); exit 1; }; }
35605 if test $ol_enable_crypt != no ; then
35607 LIBS="$TLS_LIBS $LIBS"
35609 echo "$as_me:$LINENO: checking for crypt" >&5
35610 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35611 if test "${ac_cv_func_crypt+set}" = set; then
35612 echo $ECHO_N "(cached) $ECHO_C" >&6
35614 cat >conftest.$ac_ext <<_ACEOF
35617 cat confdefs.h >>conftest.$ac_ext
35618 cat >>conftest.$ac_ext <<_ACEOF
35619 /* end confdefs.h. */
35620 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35622 #define crypt innocuous_crypt
35624 /* System header to define __stub macros and hopefully few prototypes,
35625 which can conflict with char crypt (); below.
35626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35627 <limits.h> exists even on freestanding compilers. */
35630 # include <limits.h>
35632 # include <assert.h>
35637 /* Override any gcc2 internal prototype to avoid an error. */
35642 /* We use char because int might match the return type of a gcc2
35643 builtin and then its argument prototype would still apply. */
35645 /* The GNU C library defines this for functions which it implements
35646 to always fail with ENOSYS. Some functions are actually named
35647 something starting with __ and the normal name is an alias. */
35648 #if defined (__stub_crypt) || defined (__stub___crypt)
35651 char (*f) () = crypt;
35665 rm -f conftest.$ac_objext conftest$ac_exeext
35666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35667 (eval $ac_link) 2>conftest.er1
35669 grep -v '^ *+' conftest.er1 >conftest.err
35671 cat conftest.err >&5
35672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673 (exit $ac_status); } &&
35674 { ac_try='test -z "$ac_c_werror_flag"
35675 || test ! -s conftest.err'
35676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35677 (eval $ac_try) 2>&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); }; } &&
35681 { ac_try='test -s conftest$ac_exeext'
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; }; then
35687 ac_cv_func_crypt=yes
35689 echo "$as_me: failed program was:" >&5
35690 sed 's/^/| /' conftest.$ac_ext >&5
35692 ac_cv_func_crypt=no
35694 rm -f conftest.err conftest.$ac_objext \
35695 conftest$ac_exeext conftest.$ac_ext
35697 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35698 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35699 if test $ac_cv_func_crypt = yes; then
35704 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35705 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35706 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35707 echo $ECHO_N "(cached) $ECHO_C" >&6
35709 ac_check_lib_save_LIBS=$LIBS
35710 LIBS="-lcrypt $LIBS"
35711 cat >conftest.$ac_ext <<_ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h. */
35718 /* Override any gcc2 internal prototype to avoid an error. */
35722 /* We use char because int might match the return type of a gcc2
35723 builtin and then its argument prototype would still apply. */
35733 rm -f conftest.$ac_objext conftest$ac_exeext
35734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35735 (eval $ac_link) 2>conftest.er1
35737 grep -v '^ *+' conftest.er1 >conftest.err
35739 cat conftest.err >&5
35740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35741 (exit $ac_status); } &&
35742 { ac_try='test -z "$ac_c_werror_flag"
35743 || test ! -s conftest.err'
35744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35745 (eval $ac_try) 2>&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); }; } &&
35749 { ac_try='test -s conftest$ac_exeext'
35750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35751 (eval $ac_try) 2>&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); }; }; then
35755 ac_cv_lib_crypt_crypt=yes
35757 echo "$as_me: failed program was:" >&5
35758 sed 's/^/| /' conftest.$ac_ext >&5
35760 ac_cv_lib_crypt_crypt=no
35762 rm -f conftest.err conftest.$ac_objext \
35763 conftest$ac_exeext conftest.$ac_ext
35764 LIBS=$ac_check_lib_save_LIBS
35766 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35767 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35768 if test $ac_cv_lib_crypt_crypt = yes; then
35769 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35780 if test $have_crypt = yes ; then
35782 cat >>confdefs.h <<\_ACEOF
35783 #define HAVE_CRYPT 1
35787 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35788 echo "$as_me: WARNING: could not find crypt" >&2;}
35789 if test $ol_enable_crypt = yes ; then
35790 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35791 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35792 { (exit 1); exit 1; }; }
35795 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35796 echo "$as_me: WARNING: disabling crypt support" >&2;}
35801 if test $ol_enable_proctitle != no ; then
35802 echo "$as_me:$LINENO: checking for setproctitle" >&5
35803 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35804 if test "${ac_cv_func_setproctitle+set}" = set; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35807 cat >conftest.$ac_ext <<_ACEOF
35810 cat confdefs.h >>conftest.$ac_ext
35811 cat >>conftest.$ac_ext <<_ACEOF
35812 /* end confdefs.h. */
35813 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35815 #define setproctitle innocuous_setproctitle
35817 /* System header to define __stub macros and hopefully few prototypes,
35818 which can conflict with char setproctitle (); below.
35819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35820 <limits.h> exists even on freestanding compilers. */
35823 # include <limits.h>
35825 # include <assert.h>
35828 #undef setproctitle
35830 /* Override any gcc2 internal prototype to avoid an error. */
35835 /* We use char because int might match the return type of a gcc2
35836 builtin and then its argument prototype would still apply. */
35837 char setproctitle ();
35838 /* The GNU C library defines this for functions which it implements
35839 to always fail with ENOSYS. Some functions are actually named
35840 something starting with __ and the normal name is an alias. */
35841 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35844 char (*f) () = setproctitle;
35853 return f != setproctitle;
35858 rm -f conftest.$ac_objext conftest$ac_exeext
35859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35860 (eval $ac_link) 2>conftest.er1
35862 grep -v '^ *+' conftest.er1 >conftest.err
35864 cat conftest.err >&5
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } &&
35867 { ac_try='test -z "$ac_c_werror_flag"
35868 || test ! -s conftest.err'
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; } &&
35874 { ac_try='test -s conftest$ac_exeext'
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; }; then
35880 ac_cv_func_setproctitle=yes
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35885 ac_cv_func_setproctitle=no
35887 rm -f conftest.err conftest.$ac_objext \
35888 conftest$ac_exeext conftest.$ac_ext
35890 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35891 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35892 if test $ac_cv_func_setproctitle = yes; then
35893 have_setproctitle=yes
35896 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35897 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35898 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35899 echo $ECHO_N "(cached) $ECHO_C" >&6
35901 ac_check_lib_save_LIBS=$LIBS
35902 LIBS="-lutil $LIBS"
35903 cat >conftest.$ac_ext <<_ACEOF
35906 cat confdefs.h >>conftest.$ac_ext
35907 cat >>conftest.$ac_ext <<_ACEOF
35908 /* end confdefs.h. */
35910 /* Override any gcc2 internal prototype to avoid an error. */
35914 /* We use char because int might match the return type of a gcc2
35915 builtin and then its argument prototype would still apply. */
35916 char setproctitle ();
35925 rm -f conftest.$ac_objext conftest$ac_exeext
35926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35927 (eval $ac_link) 2>conftest.er1
35929 grep -v '^ *+' conftest.er1 >conftest.err
35931 cat conftest.err >&5
35932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933 (exit $ac_status); } &&
35934 { ac_try='test -z "$ac_c_werror_flag"
35935 || test ! -s conftest.err'
35936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937 (eval $ac_try) 2>&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); }; } &&
35941 { ac_try='test -s conftest$ac_exeext'
35942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35943 (eval $ac_try) 2>&5
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); }; }; then
35947 ac_cv_lib_util_setproctitle=yes
35949 echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35952 ac_cv_lib_util_setproctitle=no
35954 rm -f conftest.err conftest.$ac_objext \
35955 conftest$ac_exeext conftest.$ac_ext
35956 LIBS=$ac_check_lib_save_LIBS
35958 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
35959 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
35960 if test $ac_cv_lib_util_setproctitle = yes; then
35961 have_setproctitle=yes
35962 LUTIL_LIBS="$LUTIL_LIBS -lutil"
35964 have_setproctitle=no
35966 "setproctitle.$ac_objext" | \
35967 *" setproctitle.$ac_objext" | \
35968 "setproctitle.$ac_objext "* | \
35969 *" setproctitle.$ac_objext "* ) ;;
35970 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
35973 LIBSRCS="$LIBSRCS setproctitle.c"
35979 if test $have_setproctitle = yes ; then
35981 cat >>confdefs.h <<\_ACEOF
35982 #define HAVE_SETPROCTITLE 1
35988 if test $ol_enable_slp != no ; then
35990 for ac_header in slp.h
35992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36002 # Is the header compilable?
36003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005 cat >conftest.$ac_ext <<_ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h. */
36011 $ac_includes_default
36012 #include <$ac_header>
36014 rm -f conftest.$ac_objext
36015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36016 (eval $ac_compile) 2>conftest.er1
36018 grep -v '^ *+' conftest.er1 >conftest.err
36020 cat conftest.err >&5
36021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022 (exit $ac_status); } &&
36023 { ac_try='test -z "$ac_c_werror_flag"
36024 || test ! -s conftest.err'
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; } &&
36030 { ac_try='test -s conftest.$ac_objext'
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36036 ac_header_compiler=yes
36038 echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36041 ac_header_compiler=no
36043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36045 echo "${ECHO_T}$ac_header_compiler" >&6
36047 # Is the header present?
36048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36050 cat >conftest.$ac_ext <<_ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h. */
36056 #include <$ac_header>
36058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36061 grep -v '^ *+' conftest.er1 >conftest.err
36063 cat conftest.err >&5
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); } >/dev/null; then
36066 if test -s conftest.err; then
36067 ac_cpp_err=$ac_c_preproc_warn_flag
36068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36075 if test -z "$ac_cpp_err"; then
36076 ac_header_preproc=yes
36078 echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36081 ac_header_preproc=no
36083 rm -f conftest.err conftest.$ac_ext
36084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36085 echo "${ECHO_T}$ac_header_preproc" >&6
36087 # So? What about this header?
36088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36094 ac_header_preproc=yes
36097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36111 ## ------------------------------------------ ##
36112 ## Report this to the AC_PACKAGE_NAME lists. ##
36113 ## ------------------------------------------ ##
36116 sed "s/^/$as_me: WARNING: /" >&2
36119 echo "$as_me:$LINENO: checking for $ac_header" >&5
36120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36122 echo $ECHO_N "(cached) $ECHO_C" >&6
36124 eval "$as_ac_Header=\$ac_header_preproc"
36126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36131 cat >>confdefs.h <<_ACEOF
36132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36140 if test $ac_cv_header_slp_h = yes ; then
36141 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36142 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36143 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36144 echo $ECHO_N "(cached) $ECHO_C" >&6
36146 ac_check_lib_save_LIBS=$LIBS
36148 cat >conftest.$ac_ext <<_ACEOF
36151 cat confdefs.h >>conftest.$ac_ext
36152 cat >>conftest.$ac_ext <<_ACEOF
36153 /* end confdefs.h. */
36155 /* Override any gcc2 internal prototype to avoid an error. */
36159 /* We use char because int might match the return type of a gcc2
36160 builtin and then its argument prototype would still apply. */
36170 rm -f conftest.$ac_objext conftest$ac_exeext
36171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36172 (eval $ac_link) 2>conftest.er1
36174 grep -v '^ *+' conftest.er1 >conftest.err
36176 cat conftest.err >&5
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); } &&
36179 { ac_try='test -z "$ac_c_werror_flag"
36180 || test ! -s conftest.err'
36181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182 (eval $ac_try) 2>&5
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); }; } &&
36186 { ac_try='test -s conftest$ac_exeext'
36187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 (eval $ac_try) 2>&5
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); }; }; then
36192 ac_cv_lib_slp_SLPOpen=yes
36194 echo "$as_me: failed program was:" >&5
36195 sed 's/^/| /' conftest.$ac_ext >&5
36197 ac_cv_lib_slp_SLPOpen=no
36199 rm -f conftest.err conftest.$ac_objext \
36200 conftest$ac_exeext conftest.$ac_ext
36201 LIBS=$ac_check_lib_save_LIBS
36203 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36204 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36205 if test $ac_cv_lib_slp_SLPOpen = yes; then
36211 if test $have_slp = yes ; then
36213 cat >>confdefs.h <<\_ACEOF
36217 SLAPD_SLP_LIBS=-lslp
36220 elif test $ol_enable_slp = yes ; then
36221 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36222 echo "$as_me: error: SLP not found" >&2;}
36223 { (exit 1); exit 1; }; }
36227 if test "$ol_with_multiple_precision" != "no" ; then
36233 for ac_header in openssl/bn.h bn.h
36235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36237 echo "$as_me:$LINENO: checking for $ac_header" >&5
36238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36240 echo $ECHO_N "(cached) $ECHO_C" >&6
36242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36245 # Is the header compilable?
36246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36248 cat >conftest.$ac_ext <<_ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h. */
36254 $ac_includes_default
36255 #include <$ac_header>
36257 rm -f conftest.$ac_objext
36258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36259 (eval $ac_compile) 2>conftest.er1
36261 grep -v '^ *+' conftest.er1 >conftest.err
36263 cat conftest.err >&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); } &&
36266 { ac_try='test -z "$ac_c_werror_flag"
36267 || test ! -s conftest.err'
36268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36269 (eval $ac_try) 2>&5
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); }; } &&
36273 { ac_try='test -s conftest.$ac_objext'
36274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275 (eval $ac_try) 2>&5
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); }; }; then
36279 ac_header_compiler=yes
36281 echo "$as_me: failed program was:" >&5
36282 sed 's/^/| /' conftest.$ac_ext >&5
36284 ac_header_compiler=no
36286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36288 echo "${ECHO_T}$ac_header_compiler" >&6
36290 # Is the header present?
36291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36293 cat >conftest.$ac_ext <<_ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h. */
36299 #include <$ac_header>
36301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36304 grep -v '^ *+' conftest.er1 >conftest.err
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } >/dev/null; then
36309 if test -s conftest.err; then
36310 ac_cpp_err=$ac_c_preproc_warn_flag
36311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36318 if test -z "$ac_cpp_err"; then
36319 ac_header_preproc=yes
36321 echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36324 ac_header_preproc=no
36326 rm -f conftest.err conftest.$ac_ext
36327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36328 echo "${ECHO_T}$ac_header_preproc" >&6
36330 # So? What about this header?
36331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36337 ac_header_preproc=yes
36340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36354 ## ------------------------------------------ ##
36355 ## Report this to the AC_PACKAGE_NAME lists. ##
36356 ## ------------------------------------------ ##
36359 sed "s/^/$as_me: WARNING: /" >&2
36362 echo "$as_me:$LINENO: checking for $ac_header" >&5
36363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36365 echo $ECHO_N "(cached) $ECHO_C" >&6
36367 eval "$as_ac_Header=\$ac_header_preproc"
36369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36374 cat >>confdefs.h <<_ACEOF
36375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36384 for ac_header in openssl/crypto.h crypto.h
36386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36388 echo "$as_me:$LINENO: checking for $ac_header" >&5
36389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36396 # Is the header compilable?
36397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36399 cat >conftest.$ac_ext <<_ACEOF
36402 cat confdefs.h >>conftest.$ac_ext
36403 cat >>conftest.$ac_ext <<_ACEOF
36404 /* end confdefs.h. */
36405 $ac_includes_default
36406 #include <$ac_header>
36408 rm -f conftest.$ac_objext
36409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36410 (eval $ac_compile) 2>conftest.er1
36412 grep -v '^ *+' conftest.er1 >conftest.err
36414 cat conftest.err >&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); } &&
36417 { ac_try='test -z "$ac_c_werror_flag"
36418 || test ! -s conftest.err'
36419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36420 (eval $ac_try) 2>&5
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); }; } &&
36424 { ac_try='test -s conftest.$ac_objext'
36425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426 (eval $ac_try) 2>&5
36428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 (exit $ac_status); }; }; then
36430 ac_header_compiler=yes
36432 echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36435 ac_header_compiler=no
36437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36439 echo "${ECHO_T}$ac_header_compiler" >&6
36441 # Is the header present?
36442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36444 cat >conftest.$ac_ext <<_ACEOF
36447 cat confdefs.h >>conftest.$ac_ext
36448 cat >>conftest.$ac_ext <<_ACEOF
36449 /* end confdefs.h. */
36450 #include <$ac_header>
36452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36455 grep -v '^ *+' conftest.er1 >conftest.err
36457 cat conftest.err >&5
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); } >/dev/null; then
36460 if test -s conftest.err; then
36461 ac_cpp_err=$ac_c_preproc_warn_flag
36462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36469 if test -z "$ac_cpp_err"; then
36470 ac_header_preproc=yes
36472 echo "$as_me: failed program was:" >&5
36473 sed 's/^/| /' conftest.$ac_ext >&5
36475 ac_header_preproc=no
36477 rm -f conftest.err conftest.$ac_ext
36478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36479 echo "${ECHO_T}$ac_header_preproc" >&6
36481 # So? What about this header?
36482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36488 ac_header_preproc=yes
36491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36505 ## ------------------------------------------ ##
36506 ## Report this to the AC_PACKAGE_NAME lists. ##
36507 ## ------------------------------------------ ##
36510 sed "s/^/$as_me: WARNING: /" >&2
36513 echo "$as_me:$LINENO: checking for $ac_header" >&5
36514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36516 echo $ECHO_N "(cached) $ECHO_C" >&6
36518 eval "$as_ac_Header=\$ac_header_preproc"
36520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36525 cat >>confdefs.h <<_ACEOF
36526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36534 for ac_header in gmp.h
36536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538 echo "$as_me:$LINENO: checking for $ac_header" >&5
36539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36541 echo $ECHO_N "(cached) $ECHO_C" >&6
36543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36546 # Is the header compilable?
36547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 $ac_includes_default
36556 #include <$ac_header>
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560 (eval $ac_compile) 2>conftest.er1
36562 grep -v '^ *+' conftest.er1 >conftest.err
36564 cat conftest.err >&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } &&
36567 { ac_try='test -z "$ac_c_werror_flag"
36568 || test ! -s conftest.err'
36569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570 (eval $ac_try) 2>&5
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); }; } &&
36574 { ac_try='test -s conftest.$ac_objext'
36575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 (eval $ac_try) 2>&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); }; }; then
36580 ac_header_compiler=yes
36582 echo "$as_me: failed program was:" >&5
36583 sed 's/^/| /' conftest.$ac_ext >&5
36585 ac_header_compiler=no
36587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36589 echo "${ECHO_T}$ac_header_compiler" >&6
36591 # Is the header present?
36592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36594 cat >conftest.$ac_ext <<_ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h. */
36600 #include <$ac_header>
36602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36605 grep -v '^ *+' conftest.er1 >conftest.err
36607 cat conftest.err >&5
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); } >/dev/null; then
36610 if test -s conftest.err; then
36611 ac_cpp_err=$ac_c_preproc_warn_flag
36612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36619 if test -z "$ac_cpp_err"; then
36620 ac_header_preproc=yes
36622 echo "$as_me: failed program was:" >&5
36623 sed 's/^/| /' conftest.$ac_ext >&5
36625 ac_header_preproc=no
36627 rm -f conftest.err conftest.$ac_ext
36628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36629 echo "${ECHO_T}$ac_header_preproc" >&6
36631 # So? What about this header?
36632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36638 ac_header_preproc=yes
36641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36655 ## ------------------------------------------ ##
36656 ## Report this to the AC_PACKAGE_NAME lists. ##
36657 ## ------------------------------------------ ##
36660 sed "s/^/$as_me: WARNING: /" >&2
36663 echo "$as_me:$LINENO: checking for $ac_header" >&5
36664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36668 eval "$as_ac_Header=\$ac_header_preproc"
36670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36675 cat >>confdefs.h <<_ACEOF
36676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36684 if test "$ol_with_tls" = "found" ; then
36686 ol_have_crypto_h=no
36688 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36689 test "$ac_cv_header_bn_h" = "yes" ; then
36693 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36694 test "$ac_cv_header_crypto_h" = "yes" ; then
36695 ol_have_crypto_h=yes
36698 if test "$ol_have_bn_h" = "yes" &&
36699 test "$ol_have_crypto_h" = "yes" ; then
36704 if test $ac_cv_header_gmp_h = yes ; then
36705 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36706 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36707 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36708 echo $ECHO_N "(cached) $ECHO_C" >&6
36710 ac_check_lib_save_LIBS=$LIBS
36712 cat >conftest.$ac_ext <<_ACEOF
36715 cat confdefs.h >>conftest.$ac_ext
36716 cat >>conftest.$ac_ext <<_ACEOF
36717 /* end confdefs.h. */
36719 /* Override any gcc2 internal prototype to avoid an error. */
36723 /* We use char because int might match the return type of a gcc2
36724 builtin and then its argument prototype would still apply. */
36725 char __gmpz_add_ui ();
36734 rm -f conftest.$ac_objext conftest$ac_exeext
36735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36736 (eval $ac_link) 2>conftest.er1
36738 grep -v '^ *+' conftest.er1 >conftest.err
36740 cat conftest.err >&5
36741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742 (exit $ac_status); } &&
36743 { ac_try='test -z "$ac_c_werror_flag"
36744 || test ! -s conftest.err'
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; } &&
36750 { ac_try='test -s conftest$ac_exeext'
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756 ac_cv_lib_gmp___gmpz_add_ui=yes
36758 echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36761 ac_cv_lib_gmp___gmpz_add_ui=no
36763 rm -f conftest.err conftest.$ac_objext \
36764 conftest$ac_exeext conftest.$ac_ext
36765 LIBS=$ac_check_lib_save_LIBS
36767 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36768 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36769 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36775 if test $have_gmp = yes ; then
36780 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36781 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36783 ol_mp_support="none"
36784 case "$ol_with_multiple_precision" in
36786 if test "$ol_have_bignum" = "yes" ; then
36787 ol_mp_support="bignum"
36789 if test "$ol_have_gmp" = "yes" ; then
36790 ol_mp_support="gmp"
36795 if test "$ol_have_bignum" != "yes" ; then
36796 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36797 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36798 { (exit 1); exit 1; }; }
36800 ol_mp_support="bignum"
36803 if test "$ol_have_gmp" != "yes" ; then
36804 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36805 echo "$as_me: error: GMP not available" >&2;}
36806 { (exit 1); exit 1; }; }
36808 ol_mp_support="gmp"
36811 if test "$ol_have_bignum" = "yes" ; then
36812 ol_mp_support="bignum"
36813 elif test "$ol_have_gmp" = "yes" ; then
36814 ol_mp_support="gmp"
36816 { { echo "$as_me:$LINENO: error: not available" >&5
36817 echo "$as_me: error: not available" >&2;}
36818 { (exit 1); exit 1; }; }
36823 case "$ol_mp_support" in
36826 cat >>confdefs.h <<\_ACEOF
36827 #define HAVE_BIGNUM 1
36833 cat >>confdefs.h <<\_ACEOF
36837 SLAPD_GMP_LIBS=-lgmp
36843 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36844 echo "${ECHO_T}$ol_mp_support" >&6
36848 echo "$as_me:$LINENO: checking for mode_t" >&5
36849 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36850 if test "${ac_cv_type_mode_t+set}" = set; then
36851 echo $ECHO_N "(cached) $ECHO_C" >&6
36853 cat >conftest.$ac_ext <<_ACEOF
36856 cat confdefs.h >>conftest.$ac_ext
36857 cat >>conftest.$ac_ext <<_ACEOF
36858 /* end confdefs.h. */
36859 $ac_includes_default
36865 if (sizeof (mode_t))
36871 rm -f conftest.$ac_objext
36872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36873 (eval $ac_compile) 2>conftest.er1
36875 grep -v '^ *+' conftest.er1 >conftest.err
36877 cat conftest.err >&5
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
36880 { ac_try='test -z "$ac_c_werror_flag"
36881 || test ! -s conftest.err'
36882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36883 (eval $ac_try) 2>&5
36885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886 (exit $ac_status); }; } &&
36887 { ac_try='test -s conftest.$ac_objext'
36888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36889 (eval $ac_try) 2>&5
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); }; }; then
36893 ac_cv_type_mode_t=yes
36895 echo "$as_me: failed program was:" >&5
36896 sed 's/^/| /' conftest.$ac_ext >&5
36898 ac_cv_type_mode_t=no
36900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36902 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36903 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36904 if test $ac_cv_type_mode_t = yes; then
36908 cat >>confdefs.h <<_ACEOF
36914 echo "$as_me:$LINENO: checking for off_t" >&5
36915 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36916 if test "${ac_cv_type_off_t+set}" = set; then
36917 echo $ECHO_N "(cached) $ECHO_C" >&6
36919 cat >conftest.$ac_ext <<_ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h. */
36925 $ac_includes_default
36931 if (sizeof (off_t))
36937 rm -f conftest.$ac_objext
36938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36939 (eval $ac_compile) 2>conftest.er1
36941 grep -v '^ *+' conftest.er1 >conftest.err
36943 cat conftest.err >&5
36944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36945 (exit $ac_status); } &&
36946 { ac_try='test -z "$ac_c_werror_flag"
36947 || test ! -s conftest.err'
36948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949 (eval $ac_try) 2>&5
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; } &&
36953 { ac_try='test -s conftest.$ac_objext'
36954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36955 (eval $ac_try) 2>&5
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); }; }; then
36959 ac_cv_type_off_t=yes
36961 echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36964 ac_cv_type_off_t=no
36966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36968 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36969 echo "${ECHO_T}$ac_cv_type_off_t" >&6
36970 if test $ac_cv_type_off_t = yes; then
36974 cat >>confdefs.h <<_ACEOF
36980 echo "$as_me:$LINENO: checking for pid_t" >&5
36981 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
36982 if test "${ac_cv_type_pid_t+set}" = set; then
36983 echo $ECHO_N "(cached) $ECHO_C" >&6
36985 cat >conftest.$ac_ext <<_ACEOF
36988 cat confdefs.h >>conftest.$ac_ext
36989 cat >>conftest.$ac_ext <<_ACEOF
36990 /* end confdefs.h. */
36991 $ac_includes_default
36997 if (sizeof (pid_t))
37003 rm -f conftest.$ac_objext
37004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37005 (eval $ac_compile) 2>conftest.er1
37007 grep -v '^ *+' conftest.er1 >conftest.err
37009 cat conftest.err >&5
37010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011 (exit $ac_status); } &&
37012 { ac_try='test -z "$ac_c_werror_flag"
37013 || test ! -s conftest.err'
37014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37015 (eval $ac_try) 2>&5
37017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018 (exit $ac_status); }; } &&
37019 { ac_try='test -s conftest.$ac_objext'
37020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37021 (eval $ac_try) 2>&5
37023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024 (exit $ac_status); }; }; then
37025 ac_cv_type_pid_t=yes
37027 echo "$as_me: failed program was:" >&5
37028 sed 's/^/| /' conftest.$ac_ext >&5
37030 ac_cv_type_pid_t=no
37032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37034 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37035 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37036 if test $ac_cv_type_pid_t = yes; then
37040 cat >>confdefs.h <<_ACEOF
37046 echo "$as_me:$LINENO: checking for ssize_t" >&5
37047 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37048 if test "${ac_cv_type_ssize_t+set}" = set; then
37049 echo $ECHO_N "(cached) $ECHO_C" >&6
37051 cat >conftest.$ac_ext <<_ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h. */
37057 $ac_includes_default
37063 if (sizeof (ssize_t))
37069 rm -f conftest.$ac_objext
37070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37071 (eval $ac_compile) 2>conftest.er1
37073 grep -v '^ *+' conftest.er1 >conftest.err
37075 cat conftest.err >&5
37076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077 (exit $ac_status); } &&
37078 { ac_try='test -z "$ac_c_werror_flag"
37079 || test ! -s conftest.err'
37080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081 (eval $ac_try) 2>&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; } &&
37085 { ac_try='test -s conftest.$ac_objext'
37086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37087 (eval $ac_try) 2>&5
37089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37090 (exit $ac_status); }; }; then
37091 ac_cv_type_ssize_t=yes
37093 echo "$as_me: failed program was:" >&5
37094 sed 's/^/| /' conftest.$ac_ext >&5
37096 ac_cv_type_ssize_t=no
37098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37100 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37101 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37102 if test $ac_cv_type_ssize_t = yes; then
37106 cat >>confdefs.h <<_ACEOF
37107 #define ssize_t signed int
37112 echo "$as_me:$LINENO: checking for caddr_t" >&5
37113 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37114 if test "${ac_cv_type_caddr_t+set}" = set; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37117 cat >conftest.$ac_ext <<_ACEOF
37120 cat confdefs.h >>conftest.$ac_ext
37121 cat >>conftest.$ac_ext <<_ACEOF
37122 /* end confdefs.h. */
37123 $ac_includes_default
37129 if (sizeof (caddr_t))
37135 rm -f conftest.$ac_objext
37136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37137 (eval $ac_compile) 2>conftest.er1
37139 grep -v '^ *+' conftest.er1 >conftest.err
37141 cat conftest.err >&5
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); } &&
37144 { ac_try='test -z "$ac_c_werror_flag"
37145 || test ! -s conftest.err'
37146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37147 (eval $ac_try) 2>&5
37149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150 (exit $ac_status); }; } &&
37151 { ac_try='test -s conftest.$ac_objext'
37152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153 (eval $ac_try) 2>&5
37155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156 (exit $ac_status); }; }; then
37157 ac_cv_type_caddr_t=yes
37159 echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37162 ac_cv_type_caddr_t=no
37164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37166 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37167 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37168 if test $ac_cv_type_caddr_t = yes; then
37172 cat >>confdefs.h <<_ACEOF
37173 #define caddr_t char *
37178 echo "$as_me:$LINENO: checking for size_t" >&5
37179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37180 if test "${ac_cv_type_size_t+set}" = set; then
37181 echo $ECHO_N "(cached) $ECHO_C" >&6
37183 cat >conftest.$ac_ext <<_ACEOF
37186 cat confdefs.h >>conftest.$ac_ext
37187 cat >>conftest.$ac_ext <<_ACEOF
37188 /* end confdefs.h. */
37189 $ac_includes_default
37195 if (sizeof (size_t))
37201 rm -f conftest.$ac_objext
37202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37203 (eval $ac_compile) 2>conftest.er1
37205 grep -v '^ *+' conftest.er1 >conftest.err
37207 cat conftest.err >&5
37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209 (exit $ac_status); } &&
37210 { ac_try='test -z "$ac_c_werror_flag"
37211 || test ! -s conftest.err'
37212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37213 (eval $ac_try) 2>&5
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); }; } &&
37217 { ac_try='test -s conftest.$ac_objext'
37218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37219 (eval $ac_try) 2>&5
37221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); }; }; then
37223 ac_cv_type_size_t=yes
37225 echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37228 ac_cv_type_size_t=no
37230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37232 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37233 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37234 if test $ac_cv_type_size_t = yes; then
37238 cat >>confdefs.h <<_ACEOF
37239 #define size_t unsigned
37245 echo "$as_me:$LINENO: checking for long long" >&5
37246 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37247 if test "${ac_cv_type_long_long+set}" = set; then
37248 echo $ECHO_N "(cached) $ECHO_C" >&6
37250 cat >conftest.$ac_ext <<_ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h. */
37256 $ac_includes_default
37260 if ((long long *) 0)
37262 if (sizeof (long long))
37268 rm -f conftest.$ac_objext
37269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37270 (eval $ac_compile) 2>conftest.er1
37272 grep -v '^ *+' conftest.er1 >conftest.err
37274 cat conftest.err >&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); } &&
37277 { ac_try='test -z "$ac_c_werror_flag"
37278 || test ! -s conftest.err'
37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280 (eval $ac_try) 2>&5
37282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } &&
37284 { ac_try='test -s conftest.$ac_objext'
37285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37286 (eval $ac_try) 2>&5
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); }; }; then
37290 ac_cv_type_long_long=yes
37292 echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37295 ac_cv_type_long_long=no
37297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37299 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37300 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37301 if test $ac_cv_type_long_long = yes; then
37303 cat >>confdefs.h <<_ACEOF
37304 #define HAVE_LONG_LONG 1
37310 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37311 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37312 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37313 echo $ECHO_N "(cached) $ECHO_C" >&6
37315 cat >conftest.$ac_ext <<_ACEOF
37318 cat confdefs.h >>conftest.$ac_ext
37319 cat >>conftest.$ac_ext <<_ACEOF
37320 /* end confdefs.h. */
37321 $ac_includes_default
37325 if ((ptrdiff_t *) 0)
37327 if (sizeof (ptrdiff_t))
37333 rm -f conftest.$ac_objext
37334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37335 (eval $ac_compile) 2>conftest.er1
37337 grep -v '^ *+' conftest.er1 >conftest.err
37339 cat conftest.err >&5
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); } &&
37342 { ac_try='test -z "$ac_c_werror_flag"
37343 || test ! -s conftest.err'
37344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345 (eval $ac_try) 2>&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); }; } &&
37349 { ac_try='test -s conftest.$ac_objext'
37350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37351 (eval $ac_try) 2>&5
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); }; }; then
37355 ac_cv_type_ptrdiff_t=yes
37357 echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37360 ac_cv_type_ptrdiff_t=no
37362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37364 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37365 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37366 if test $ac_cv_type_ptrdiff_t = yes; then
37368 cat >>confdefs.h <<_ACEOF
37369 #define HAVE_PTRDIFF_T 1
37376 echo "$as_me:$LINENO: checking for socklen_t" >&5
37377 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37378 if test "${ac_cv_type_socklen_t+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37381 cat >conftest.$ac_ext <<_ACEOF
37384 cat confdefs.h >>conftest.$ac_ext
37385 cat >>conftest.$ac_ext <<_ACEOF
37386 /* end confdefs.h. */
37387 $ac_includes_default
37388 #ifdef HAVE_SYS_SOCKET_H
37389 #include <sys/socket.h>
37396 if ((socklen_t *) 0)
37398 if (sizeof (socklen_t))
37404 rm -f conftest.$ac_objext
37405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37406 (eval $ac_compile) 2>conftest.er1
37408 grep -v '^ *+' conftest.er1 >conftest.err
37410 cat conftest.err >&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } &&
37413 { ac_try='test -z "$ac_c_werror_flag"
37414 || test ! -s conftest.err'
37415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37416 (eval $ac_try) 2>&5
37418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37419 (exit $ac_status); }; } &&
37420 { ac_try='test -s conftest.$ac_objext'
37421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37422 (eval $ac_try) 2>&5
37424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37425 (exit $ac_status); }; }; then
37426 ac_cv_type_socklen_t=yes
37428 echo "$as_me: failed program was:" >&5
37429 sed 's/^/| /' conftest.$ac_ext >&5
37431 ac_cv_type_socklen_t=no
37433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37435 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37436 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37437 if test $ac_cv_type_socklen_t = yes; then
37441 cat >>confdefs.h <<_ACEOF
37442 #define socklen_t int
37448 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37449 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37450 if test "${ac_cv_type_signal+set}" = set; then
37451 echo $ECHO_N "(cached) $ECHO_C" >&6
37453 cat >conftest.$ac_ext <<_ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h. */
37459 #include <sys/types.h>
37460 #include <signal.h>
37465 extern "C" void (*signal (int, void (*)(int)))(int);
37467 void (*signal ()) ();
37478 rm -f conftest.$ac_objext
37479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37480 (eval $ac_compile) 2>conftest.er1
37482 grep -v '^ *+' conftest.er1 >conftest.err
37484 cat conftest.err >&5
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); } &&
37487 { ac_try='test -z "$ac_c_werror_flag"
37488 || test ! -s conftest.err'
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; } &&
37494 { ac_try='test -s conftest.$ac_objext'
37495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37496 (eval $ac_try) 2>&5
37498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499 (exit $ac_status); }; }; then
37500 ac_cv_type_signal=void
37502 echo "$as_me: failed program was:" >&5
37503 sed 's/^/| /' conftest.$ac_ext >&5
37505 ac_cv_type_signal=int
37507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37509 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37510 echo "${ECHO_T}$ac_cv_type_signal" >&6
37512 cat >>confdefs.h <<_ACEOF
37513 #define RETSIGTYPE $ac_cv_type_signal
37518 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37519 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37520 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37521 echo $ECHO_N "(cached) $ECHO_C" >&6
37523 cat >conftest.$ac_ext <<_ACEOF
37526 cat confdefs.h >>conftest.$ac_ext
37527 cat >>conftest.$ac_ext <<_ACEOF
37528 /* end confdefs.h. */
37529 $ac_includes_default
37530 #include <signal.h>
37536 if ((sig_atomic_t *) 0)
37538 if (sizeof (sig_atomic_t))
37544 rm -f conftest.$ac_objext
37545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37546 (eval $ac_compile) 2>conftest.er1
37548 grep -v '^ *+' conftest.er1 >conftest.err
37550 cat conftest.err >&5
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } &&
37553 { ac_try='test -z "$ac_c_werror_flag"
37554 || test ! -s conftest.err'
37555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556 (eval $ac_try) 2>&5
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; } &&
37560 { ac_try='test -s conftest.$ac_objext'
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 ac_cv_type_sig_atomic_t=yes
37568 echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37571 ac_cv_type_sig_atomic_t=no
37573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37575 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37576 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37577 if test $ac_cv_type_sig_atomic_t = yes; then
37581 cat >>confdefs.h <<_ACEOF
37582 #define sig_atomic_t int
37588 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37589 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37590 if test "${ac_cv_type_uid_t+set}" = set; then
37591 echo $ECHO_N "(cached) $ECHO_C" >&6
37593 cat >conftest.$ac_ext <<_ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h. */
37599 #include <sys/types.h>
37602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37603 $EGREP "uid_t" >/dev/null 2>&1; then
37604 ac_cv_type_uid_t=yes
37606 ac_cv_type_uid_t=no
37611 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37612 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37613 if test $ac_cv_type_uid_t = no; then
37615 cat >>confdefs.h <<\_ACEOF
37620 cat >>confdefs.h <<\_ACEOF
37627 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37628 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37629 if test "${ac_cv_header_time+set}" = set; then
37630 echo $ECHO_N "(cached) $ECHO_C" >&6
37632 cat >conftest.$ac_ext <<_ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h. */
37638 #include <sys/types.h>
37639 #include <sys/time.h>
37645 if ((struct tm *) 0)
37651 rm -f conftest.$ac_objext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37653 (eval $ac_compile) 2>conftest.er1
37655 grep -v '^ *+' conftest.er1 >conftest.err
37657 cat conftest.err >&5
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); } &&
37660 { ac_try='test -z "$ac_c_werror_flag"
37661 || test ! -s conftest.err'
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest.$ac_objext'
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 ac_cv_header_time=yes
37675 echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37678 ac_cv_header_time=no
37680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37682 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37683 echo "${ECHO_T}$ac_cv_header_time" >&6
37684 if test $ac_cv_header_time = yes; then
37686 cat >>confdefs.h <<\_ACEOF
37687 #define TIME_WITH_SYS_TIME 1
37692 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37694 if test "${ac_cv_struct_tm+set}" = set; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37697 cat >conftest.$ac_ext <<_ACEOF
37700 cat confdefs.h >>conftest.$ac_ext
37701 cat >>conftest.$ac_ext <<_ACEOF
37702 /* end confdefs.h. */
37703 #include <sys/types.h>
37709 struct tm *tp; tp->tm_sec;
37714 rm -f conftest.$ac_objext
37715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37716 (eval $ac_compile) 2>conftest.er1
37718 grep -v '^ *+' conftest.er1 >conftest.err
37720 cat conftest.err >&5
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); } &&
37723 { ac_try='test -z "$ac_c_werror_flag"
37724 || test ! -s conftest.err'
37725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37726 (eval $ac_try) 2>&5
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); }; } &&
37730 { ac_try='test -s conftest.$ac_objext'
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; }; then
37736 ac_cv_struct_tm=time.h
37738 echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37741 ac_cv_struct_tm=sys/time.h
37743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37745 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37746 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37747 if test $ac_cv_struct_tm = sys/time.h; then
37749 cat >>confdefs.h <<\_ACEOF
37750 #define TM_IN_SYS_TIME 1
37755 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37756 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37757 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37758 echo $ECHO_N "(cached) $ECHO_C" >&6
37760 cat >conftest.$ac_ext <<_ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37766 $ac_includes_default
37770 static struct stat ac_aggr;
37771 if (ac_aggr.st_blksize)
37777 rm -f conftest.$ac_objext
37778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37779 (eval $ac_compile) 2>conftest.er1
37781 grep -v '^ *+' conftest.er1 >conftest.err
37783 cat conftest.err >&5
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); } &&
37786 { ac_try='test -z "$ac_c_werror_flag"
37787 || test ! -s conftest.err'
37788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37789 (eval $ac_try) 2>&5
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); }; } &&
37793 { ac_try='test -s conftest.$ac_objext'
37794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37795 (eval $ac_try) 2>&5
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); }; }; then
37799 ac_cv_member_struct_stat_st_blksize=yes
37801 echo "$as_me: failed program was:" >&5
37802 sed 's/^/| /' conftest.$ac_ext >&5
37804 cat >conftest.$ac_ext <<_ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h. */
37810 $ac_includes_default
37814 static struct stat ac_aggr;
37815 if (sizeof ac_aggr.st_blksize)
37821 rm -f conftest.$ac_objext
37822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37823 (eval $ac_compile) 2>conftest.er1
37825 grep -v '^ *+' conftest.er1 >conftest.err
37827 cat conftest.err >&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } &&
37830 { ac_try='test -z "$ac_c_werror_flag"
37831 || test ! -s conftest.err'
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; } &&
37837 { ac_try='test -s conftest.$ac_objext'
37838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37839 (eval $ac_try) 2>&5
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); }; }; then
37843 ac_cv_member_struct_stat_st_blksize=yes
37845 echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37848 ac_cv_member_struct_stat_st_blksize=no
37850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37854 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37855 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37856 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37858 cat >>confdefs.h <<_ACEOF
37859 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37865 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37866 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37867 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37868 echo $ECHO_N "(cached) $ECHO_C" >&6
37870 cat >conftest.$ac_ext <<_ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h. */
37876 $ac_includes_default
37882 static struct passwd ac_aggr;
37883 if (ac_aggr.pw_gecos)
37889 rm -f conftest.$ac_objext
37890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37891 (eval $ac_compile) 2>conftest.er1
37893 grep -v '^ *+' conftest.er1 >conftest.err
37895 cat conftest.err >&5
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); } &&
37898 { ac_try='test -z "$ac_c_werror_flag"
37899 || test ! -s conftest.err'
37900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37901 (eval $ac_try) 2>&5
37903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904 (exit $ac_status); }; } &&
37905 { ac_try='test -s conftest.$ac_objext'
37906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37907 (eval $ac_try) 2>&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); }; }; then
37911 ac_cv_member_struct_passwd_pw_gecos=yes
37913 echo "$as_me: failed program was:" >&5
37914 sed 's/^/| /' conftest.$ac_ext >&5
37916 cat >conftest.$ac_ext <<_ACEOF
37919 cat confdefs.h >>conftest.$ac_ext
37920 cat >>conftest.$ac_ext <<_ACEOF
37921 /* end confdefs.h. */
37922 $ac_includes_default
37928 static struct passwd ac_aggr;
37929 if (sizeof ac_aggr.pw_gecos)
37935 rm -f conftest.$ac_objext
37936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37937 (eval $ac_compile) 2>conftest.er1
37939 grep -v '^ *+' conftest.er1 >conftest.err
37941 cat conftest.err >&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); } &&
37944 { ac_try='test -z "$ac_c_werror_flag"
37945 || test ! -s conftest.err'
37946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947 (eval $ac_try) 2>&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; } &&
37951 { ac_try='test -s conftest.$ac_objext'
37952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37953 (eval $ac_try) 2>&5
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); }; }; then
37957 ac_cv_member_struct_passwd_pw_gecos=yes
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ac_cv_member_struct_passwd_pw_gecos=no
37964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37968 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
37969 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
37970 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
37972 cat >>confdefs.h <<_ACEOF
37973 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
37979 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
37980 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
37981 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
37982 echo $ECHO_N "(cached) $ECHO_C" >&6
37984 cat >conftest.$ac_ext <<_ACEOF
37987 cat confdefs.h >>conftest.$ac_ext
37988 cat >>conftest.$ac_ext <<_ACEOF
37989 /* end confdefs.h. */
37990 $ac_includes_default
37996 static struct passwd ac_aggr;
37997 if (ac_aggr.pw_passwd)
38003 rm -f conftest.$ac_objext
38004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38005 (eval $ac_compile) 2>conftest.er1
38007 grep -v '^ *+' conftest.er1 >conftest.err
38009 cat conftest.err >&5
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); } &&
38012 { ac_try='test -z "$ac_c_werror_flag"
38013 || test ! -s conftest.err'
38014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015 (eval $ac_try) 2>&5
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); }; } &&
38019 { ac_try='test -s conftest.$ac_objext'
38020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38021 (eval $ac_try) 2>&5
38023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38024 (exit $ac_status); }; }; then
38025 ac_cv_member_struct_passwd_pw_passwd=yes
38027 echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38030 cat >conftest.$ac_ext <<_ACEOF
38033 cat confdefs.h >>conftest.$ac_ext
38034 cat >>conftest.$ac_ext <<_ACEOF
38035 /* end confdefs.h. */
38036 $ac_includes_default
38042 static struct passwd ac_aggr;
38043 if (sizeof ac_aggr.pw_passwd)
38049 rm -f conftest.$ac_objext
38050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38051 (eval $ac_compile) 2>conftest.er1
38053 grep -v '^ *+' conftest.er1 >conftest.err
38055 cat conftest.err >&5
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); } &&
38058 { ac_try='test -z "$ac_c_werror_flag"
38059 || test ! -s conftest.err'
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; } &&
38065 { ac_try='test -s conftest.$ac_objext'
38066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38067 (eval $ac_try) 2>&5
38069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070 (exit $ac_status); }; }; then
38071 ac_cv_member_struct_passwd_pw_passwd=yes
38073 echo "$as_me: failed program was:" >&5
38074 sed 's/^/| /' conftest.$ac_ext >&5
38076 ac_cv_member_struct_passwd_pw_passwd=no
38078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38083 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38084 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38094 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38095 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38096 if test "${ol_cv_c_upper_lower+set}" = set; then
38097 echo $ECHO_N "(cached) $ECHO_C" >&6
38100 if test "$cross_compiling" = yes; then
38101 ol_cv_c_upper_lower=safe
38103 cat >conftest.$ac_ext <<_ACEOF
38106 cat confdefs.h >>conftest.$ac_ext
38107 cat >>conftest.$ac_ext <<_ACEOF
38108 /* end confdefs.h. */
38113 if ('C' == toupper('C'))
38119 rm -f conftest$ac_exeext
38120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38121 (eval $ac_link) 2>&5
38123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38126 (eval $ac_try) 2>&5
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); }; }; then
38130 ol_cv_c_upper_lower=no
38132 echo "$as_me: program exited with status $ac_status" >&5
38133 echo "$as_me: failed program was:" >&5
38134 sed 's/^/| /' conftest.$ac_ext >&5
38136 ( exit $ac_status )
38137 ol_cv_c_upper_lower=yes
38139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38142 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38143 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38144 if test $ol_cv_c_upper_lower != no ; then
38146 cat >>confdefs.h <<\_ACEOF
38147 #define C_UPPER_LOWER 1
38152 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38153 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38154 if test "${ac_cv_c_const+set}" = set; then
38155 echo $ECHO_N "(cached) $ECHO_C" >&6
38157 cat >conftest.$ac_ext <<_ACEOF
38160 cat confdefs.h >>conftest.$ac_ext
38161 cat >>conftest.$ac_ext <<_ACEOF
38162 /* end confdefs.h. */
38167 /* FIXME: Include the comments suggested by Paul. */
38168 #ifndef __cplusplus
38169 /* Ultrix mips cc rejects this. */
38170 typedef int charset[2];
38172 /* SunOS 4.1.1 cc rejects this. */
38173 char const *const *ccp;
38175 /* NEC SVR4.0.2 mips cc rejects this. */
38176 struct point {int x, y;};
38177 static struct point const zero = {0,0};
38178 /* AIX XL C 1.02.0.0 rejects this.
38179 It does not let you subtract one const X* pointer from another in
38180 an arm of an if-expression whose if-part is not a constant
38182 const char *g = "string";
38183 ccp = &g + (g ? g-g : 0);
38184 /* HPUX 7.0 cc rejects these. */
38187 ccp = (char const *const *) p;
38188 { /* SCO 3.2v4 cc rejects this. */
38190 char const *s = 0 ? (char *) 0 : (char const *) 0;
38194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38195 int x[] = {25, 17};
38196 const int *foo = &x[0];
38199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38200 typedef const int *iptr;
38204 { /* AIX XL C 1.02.0.0 rejects this saying
38205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38206 struct s { int j; const int *ap[3]; };
38207 struct s *b; b->j = 5;
38209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38210 const int foo = 10;
38218 rm -f conftest.$ac_objext
38219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38220 (eval $ac_compile) 2>conftest.er1
38222 grep -v '^ *+' conftest.er1 >conftest.err
38224 cat conftest.err >&5
38225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226 (exit $ac_status); } &&
38227 { ac_try='test -z "$ac_c_werror_flag"
38228 || test ! -s conftest.err'
38229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38230 (eval $ac_try) 2>&5
38232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); }; } &&
38234 { ac_try='test -s conftest.$ac_objext'
38235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38236 (eval $ac_try) 2>&5
38238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239 (exit $ac_status); }; }; then
38242 echo "$as_me: failed program was:" >&5
38243 sed 's/^/| /' conftest.$ac_ext >&5
38247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38249 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38250 echo "${ECHO_T}$ac_cv_c_const" >&6
38251 if test $ac_cv_c_const = no; then
38253 cat >>confdefs.h <<\_ACEOF
38259 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38260 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38261 if test "${ol_cv_c_volatile+set}" = set; then
38262 echo $ECHO_N "(cached) $ECHO_C" >&6
38264 cat >conftest.$ac_ext <<_ACEOF
38267 cat confdefs.h >>conftest.$ac_ext
38268 cat >>conftest.$ac_ext <<_ACEOF
38269 /* end confdefs.h. */
38274 volatile int a; int * volatile b = x ? &y : &z;
38275 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38281 rm -f conftest.$ac_objext
38282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38283 (eval $ac_compile) 2>conftest.er1
38285 grep -v '^ *+' conftest.er1 >conftest.err
38287 cat conftest.err >&5
38288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); } &&
38290 { ac_try='test -z "$ac_c_werror_flag"
38291 || test ! -s conftest.err'
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; } &&
38297 { ac_try='test -s conftest.$ac_objext'
38298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299 (eval $ac_try) 2>&5
38301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); }; }; then
38303 ol_cv_c_volatile=yes
38305 echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38308 ol_cv_c_volatile=no
38310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38312 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38313 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38314 if test $ol_cv_c_volatile = yes; then
38318 cat >>confdefs.h <<\_ACEOF
38325 if test $cross_compiling = yes ; then
38326 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38327 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38329 cat >>confdefs.h <<\_ACEOF
38330 #define CROSS_COMPILING 1
38334 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38335 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38336 if test "${ac_cv_c_bigendian+set}" = set; then
38337 echo $ECHO_N "(cached) $ECHO_C" >&6
38339 # See if sys/param.h defines the BYTE_ORDER macro.
38340 cat >conftest.$ac_ext <<_ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h. */
38346 #include <sys/types.h>
38347 #include <sys/param.h>
38352 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38353 bogus endian macros
38360 rm -f conftest.$ac_objext
38361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38362 (eval $ac_compile) 2>conftest.er1
38364 grep -v '^ *+' conftest.er1 >conftest.err
38366 cat conftest.err >&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } &&
38369 { ac_try='test -z "$ac_c_werror_flag"
38370 || test ! -s conftest.err'
38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372 (eval $ac_try) 2>&5
38374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); }; } &&
38376 { ac_try='test -s conftest.$ac_objext'
38377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38378 (eval $ac_try) 2>&5
38380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381 (exit $ac_status); }; }; then
38382 # It does; now see whether it defined to BIG_ENDIAN or not.
38383 cat >conftest.$ac_ext <<_ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h. */
38389 #include <sys/types.h>
38390 #include <sys/param.h>
38395 #if BYTE_ORDER != BIG_ENDIAN
38403 rm -f conftest.$ac_objext
38404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38405 (eval $ac_compile) 2>conftest.er1
38407 grep -v '^ *+' conftest.er1 >conftest.err
38409 cat conftest.err >&5
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); } &&
38412 { ac_try='test -z "$ac_c_werror_flag"
38413 || test ! -s conftest.err'
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; } &&
38419 { ac_try='test -s conftest.$ac_objext'
38420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421 (eval $ac_try) 2>&5
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); }; }; then
38425 ac_cv_c_bigendian=yes
38427 echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38430 ac_cv_c_bigendian=no
38432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38434 echo "$as_me: failed program was:" >&5
38435 sed 's/^/| /' conftest.$ac_ext >&5
38437 # It does not; compile a test program.
38438 if test "$cross_compiling" = yes; then
38439 # try to guess the endianness by grepping values into an object file
38440 ac_cv_c_bigendian=unknown
38441 cat >conftest.$ac_ext <<_ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h. */
38447 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38448 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38449 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38450 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38451 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38452 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38456 _ascii (); _ebcdic ();
38461 rm -f conftest.$ac_objext
38462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38463 (eval $ac_compile) 2>conftest.er1
38465 grep -v '^ *+' conftest.er1 >conftest.err
38467 cat conftest.err >&5
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); } &&
38470 { ac_try='test -z "$ac_c_werror_flag"
38471 || test ! -s conftest.err'
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; } &&
38477 { ac_try='test -s conftest.$ac_objext'
38478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479 (eval $ac_try) 2>&5
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); }; }; then
38483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38484 ac_cv_c_bigendian=yes
38486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38487 if test "$ac_cv_c_bigendian" = unknown; then
38488 ac_cv_c_bigendian=no
38490 # finding both strings is unlikely to happen, but who knows?
38491 ac_cv_c_bigendian=unknown
38495 echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38501 cat >conftest.$ac_ext <<_ACEOF
38504 cat confdefs.h >>conftest.$ac_ext
38505 cat >>conftest.$ac_ext <<_ACEOF
38506 /* end confdefs.h. */
38510 /* Are we little or big endian? From Harbison&Steele. */
38514 char c[sizeof (long)];
38517 exit (u.c[sizeof (long) - 1] == 1);
38520 rm -f conftest$ac_exeext
38521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38522 (eval $ac_link) 2>&5
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38527 (eval $ac_try) 2>&5
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); }; }; then
38531 ac_cv_c_bigendian=no
38533 echo "$as_me: program exited with status $ac_status" >&5
38534 echo "$as_me: failed program was:" >&5
38535 sed 's/^/| /' conftest.$ac_ext >&5
38537 ( exit $ac_status )
38538 ac_cv_c_bigendian=yes
38540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38545 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38546 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38547 case $ac_cv_c_bigendian in
38550 cat >>confdefs.h <<\_ACEOF
38551 #define WORDS_BIGENDIAN 1
38557 { { echo "$as_me:$LINENO: error: unknown endianness
38558 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38559 echo "$as_me: error: unknown endianness
38560 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38561 { (exit 1); exit 1; }; } ;;
38566 echo "$as_me:$LINENO: checking for short" >&5
38567 echo $ECHO_N "checking for short... $ECHO_C" >&6
38568 if test "${ac_cv_type_short+set}" = set; then
38569 echo $ECHO_N "(cached) $ECHO_C" >&6
38571 cat >conftest.$ac_ext <<_ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h. */
38577 $ac_includes_default
38583 if (sizeof (short))
38589 rm -f conftest.$ac_objext
38590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38591 (eval $ac_compile) 2>conftest.er1
38593 grep -v '^ *+' conftest.er1 >conftest.err
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } &&
38598 { ac_try='test -z "$ac_c_werror_flag"
38599 || test ! -s conftest.err'
38600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38601 (eval $ac_try) 2>&5
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); }; } &&
38605 { ac_try='test -s conftest.$ac_objext'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607 (eval $ac_try) 2>&5
38609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; }; then
38611 ac_cv_type_short=yes
38613 echo "$as_me: failed program was:" >&5
38614 sed 's/^/| /' conftest.$ac_ext >&5
38616 ac_cv_type_short=no
38618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38620 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38621 echo "${ECHO_T}$ac_cv_type_short" >&6
38623 echo "$as_me:$LINENO: checking size of short" >&5
38624 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38625 if test "${ac_cv_sizeof_short+set}" = set; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38628 if test "$ac_cv_type_short" = yes; then
38629 # The cast to unsigned long works around a bug in the HP C Compiler
38630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38632 # This bug is HP SR number 8606223364.
38633 if test "$cross_compiling" = yes; then
38634 # Depending upon the size, compute the lo and hi bounds.
38635 cat >conftest.$ac_ext <<_ACEOF
38638 cat confdefs.h >>conftest.$ac_ext
38639 cat >>conftest.$ac_ext <<_ACEOF
38640 /* end confdefs.h. */
38641 $ac_includes_default
38645 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38652 rm -f conftest.$ac_objext
38653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38654 (eval $ac_compile) 2>conftest.er1
38656 grep -v '^ *+' conftest.er1 >conftest.err
38658 cat conftest.err >&5
38659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660 (exit $ac_status); } &&
38661 { ac_try='test -z "$ac_c_werror_flag"
38662 || test ! -s conftest.err'
38663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38664 (eval $ac_try) 2>&5
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); }; } &&
38668 { ac_try='test -s conftest.$ac_objext'
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; }; then
38676 cat >conftest.$ac_ext <<_ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h. */
38682 $ac_includes_default
38686 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38693 rm -f conftest.$ac_objext
38694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38695 (eval $ac_compile) 2>conftest.er1
38697 grep -v '^ *+' conftest.er1 >conftest.err
38699 cat conftest.err >&5
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); } &&
38702 { ac_try='test -z "$ac_c_werror_flag"
38703 || test ! -s conftest.err'
38704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38705 (eval $ac_try) 2>&5
38707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708 (exit $ac_status); }; } &&
38709 { ac_try='test -s conftest.$ac_objext'
38710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38711 (eval $ac_try) 2>&5
38713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714 (exit $ac_status); }; }; then
38715 ac_hi=$ac_mid; break
38717 echo "$as_me: failed program was:" >&5
38718 sed 's/^/| /' conftest.$ac_ext >&5
38720 ac_lo=`expr $ac_mid + 1`
38721 if test $ac_lo -le $ac_mid; then
38725 ac_mid=`expr 2 '*' $ac_mid + 1`
38727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38730 echo "$as_me: failed program was:" >&5
38731 sed 's/^/| /' conftest.$ac_ext >&5
38733 cat >conftest.$ac_ext <<_ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h. */
38739 $ac_includes_default
38743 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38750 rm -f conftest.$ac_objext
38751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38752 (eval $ac_compile) 2>conftest.er1
38754 grep -v '^ *+' conftest.er1 >conftest.err
38756 cat conftest.err >&5
38757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758 (exit $ac_status); } &&
38759 { ac_try='test -z "$ac_c_werror_flag"
38760 || test ! -s conftest.err'
38761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38762 (eval $ac_try) 2>&5
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); }; } &&
38766 { ac_try='test -s conftest.$ac_objext'
38767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38768 (eval $ac_try) 2>&5
38770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771 (exit $ac_status); }; }; then
38774 cat >conftest.$ac_ext <<_ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h. */
38780 $ac_includes_default
38784 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38791 rm -f conftest.$ac_objext
38792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38793 (eval $ac_compile) 2>conftest.er1
38795 grep -v '^ *+' conftest.er1 >conftest.err
38797 cat conftest.err >&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); } &&
38800 { ac_try='test -z "$ac_c_werror_flag"
38801 || test ! -s conftest.err'
38802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803 (eval $ac_try) 2>&5
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); }; } &&
38807 { ac_try='test -s conftest.$ac_objext'
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; }; then
38813 ac_lo=$ac_mid; break
38815 echo "$as_me: failed program was:" >&5
38816 sed 's/^/| /' conftest.$ac_ext >&5
38818 ac_hi=`expr '(' $ac_mid ')' - 1`
38819 if test $ac_mid -le $ac_hi; then
38823 ac_mid=`expr 2 '*' $ac_mid`
38825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38828 echo "$as_me: failed program was:" >&5
38829 sed 's/^/| /' conftest.$ac_ext >&5
38833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38836 # Binary search between lo and hi bounds.
38837 while test "x$ac_lo" != "x$ac_hi"; do
38838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38839 cat >conftest.$ac_ext <<_ACEOF
38842 cat confdefs.h >>conftest.$ac_ext
38843 cat >>conftest.$ac_ext <<_ACEOF
38844 /* end confdefs.h. */
38845 $ac_includes_default
38849 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38856 rm -f conftest.$ac_objext
38857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38858 (eval $ac_compile) 2>conftest.er1
38860 grep -v '^ *+' conftest.er1 >conftest.err
38862 cat conftest.err >&5
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); } &&
38865 { ac_try='test -z "$ac_c_werror_flag"
38866 || test ! -s conftest.err'
38867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38868 (eval $ac_try) 2>&5
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); }; } &&
38872 { ac_try='test -s conftest.$ac_objext'
38873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38874 (eval $ac_try) 2>&5
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); }; }; then
38880 echo "$as_me: failed program was:" >&5
38881 sed 's/^/| /' conftest.$ac_ext >&5
38883 ac_lo=`expr '(' $ac_mid ')' + 1`
38885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38888 ?*) ac_cv_sizeof_short=$ac_lo;;
38889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38890 See \`config.log' for more details." >&5
38891 echo "$as_me: error: cannot compute sizeof (short), 77
38892 See \`config.log' for more details." >&2;}
38893 { (exit 1); exit 1; }; } ;;
38896 if test "$cross_compiling" = yes; then
38897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38898 See \`config.log' for more details." >&5
38899 echo "$as_me: error: cannot run test program while cross compiling
38900 See \`config.log' for more details." >&2;}
38901 { (exit 1); exit 1; }; }
38903 cat >conftest.$ac_ext <<_ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h. */
38909 $ac_includes_default
38910 long longval () { return (long) (sizeof (short)); }
38911 unsigned long ulongval () { return (long) (sizeof (short)); }
38913 #include <stdlib.h>
38918 FILE *f = fopen ("conftest.val", "w");
38921 if (((long) (sizeof (short))) < 0)
38923 long i = longval ();
38924 if (i != ((long) (sizeof (short))))
38926 fprintf (f, "%ld\n", i);
38930 unsigned long i = ulongval ();
38931 if (i != ((long) (sizeof (short))))
38933 fprintf (f, "%lu\n", i);
38935 exit (ferror (f) || fclose (f) != 0);
38941 rm -f conftest$ac_exeext
38942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38943 (eval $ac_link) 2>&5
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; }; then
38952 ac_cv_sizeof_short=`cat conftest.val`
38954 echo "$as_me: program exited with status $ac_status" >&5
38955 echo "$as_me: failed program was:" >&5
38956 sed 's/^/| /' conftest.$ac_ext >&5
38958 ( exit $ac_status )
38959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38960 See \`config.log' for more details." >&5
38961 echo "$as_me: error: cannot compute sizeof (short), 77
38962 See \`config.log' for more details." >&2;}
38963 { (exit 1); exit 1; }; }
38965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38970 ac_cv_sizeof_short=0
38973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
38974 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
38975 cat >>confdefs.h <<_ACEOF
38976 #define SIZEOF_SHORT $ac_cv_sizeof_short
38980 echo "$as_me:$LINENO: checking for int" >&5
38981 echo $ECHO_N "checking for int... $ECHO_C" >&6
38982 if test "${ac_cv_type_int+set}" = set; then
38983 echo $ECHO_N "(cached) $ECHO_C" >&6
38985 cat >conftest.$ac_ext <<_ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h. */
38991 $ac_includes_default
39003 rm -f conftest.$ac_objext
39004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39005 (eval $ac_compile) 2>conftest.er1
39007 grep -v '^ *+' conftest.er1 >conftest.err
39009 cat conftest.err >&5
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); } &&
39012 { ac_try='test -z "$ac_c_werror_flag"
39013 || test ! -s conftest.err'
39014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39015 (eval $ac_try) 2>&5
39017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); }; } &&
39019 { ac_try='test -s conftest.$ac_objext'
39020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39021 (eval $ac_try) 2>&5
39023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); }; }; then
39027 echo "$as_me: failed program was:" >&5
39028 sed 's/^/| /' conftest.$ac_ext >&5
39032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39034 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39035 echo "${ECHO_T}$ac_cv_type_int" >&6
39037 echo "$as_me:$LINENO: checking size of int" >&5
39038 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39039 if test "${ac_cv_sizeof_int+set}" = set; then
39040 echo $ECHO_N "(cached) $ECHO_C" >&6
39042 if test "$ac_cv_type_int" = yes; then
39043 # The cast to unsigned long works around a bug in the HP C Compiler
39044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39046 # This bug is HP SR number 8606223364.
39047 if test "$cross_compiling" = yes; then
39048 # Depending upon the size, compute the lo and hi bounds.
39049 cat >conftest.$ac_ext <<_ACEOF
39052 cat confdefs.h >>conftest.$ac_ext
39053 cat >>conftest.$ac_ext <<_ACEOF
39054 /* end confdefs.h. */
39055 $ac_includes_default
39059 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39066 rm -f conftest.$ac_objext
39067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39068 (eval $ac_compile) 2>conftest.er1
39070 grep -v '^ *+' conftest.er1 >conftest.err
39072 cat conftest.err >&5
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); } &&
39075 { ac_try='test -z "$ac_c_werror_flag"
39076 || test ! -s conftest.err'
39077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078 (eval $ac_try) 2>&5
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); }; } &&
39082 { ac_try='test -s conftest.$ac_objext'
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; }; then
39090 cat >conftest.$ac_ext <<_ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39096 $ac_includes_default
39100 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39107 rm -f conftest.$ac_objext
39108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39109 (eval $ac_compile) 2>conftest.er1
39111 grep -v '^ *+' conftest.er1 >conftest.err
39113 cat conftest.err >&5
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); } &&
39116 { ac_try='test -z "$ac_c_werror_flag"
39117 || test ! -s conftest.err'
39118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119 (eval $ac_try) 2>&5
39121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122 (exit $ac_status); }; } &&
39123 { ac_try='test -s conftest.$ac_objext'
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125 (eval $ac_try) 2>&5
39127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; }; then
39129 ac_hi=$ac_mid; break
39131 echo "$as_me: failed program was:" >&5
39132 sed 's/^/| /' conftest.$ac_ext >&5
39134 ac_lo=`expr $ac_mid + 1`
39135 if test $ac_lo -le $ac_mid; then
39139 ac_mid=`expr 2 '*' $ac_mid + 1`
39141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39144 echo "$as_me: failed program was:" >&5
39145 sed 's/^/| /' conftest.$ac_ext >&5
39147 cat >conftest.$ac_ext <<_ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h. */
39153 $ac_includes_default
39157 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39164 rm -f conftest.$ac_objext
39165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39166 (eval $ac_compile) 2>conftest.er1
39168 grep -v '^ *+' conftest.er1 >conftest.err
39170 cat conftest.err >&5
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } &&
39173 { ac_try='test -z "$ac_c_werror_flag"
39174 || test ! -s conftest.err'
39175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39176 (eval $ac_try) 2>&5
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); }; } &&
39180 { ac_try='test -s conftest.$ac_objext'
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; }; then
39188 cat >conftest.$ac_ext <<_ACEOF
39191 cat confdefs.h >>conftest.$ac_ext
39192 cat >>conftest.$ac_ext <<_ACEOF
39193 /* end confdefs.h. */
39194 $ac_includes_default
39198 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39205 rm -f conftest.$ac_objext
39206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39207 (eval $ac_compile) 2>conftest.er1
39209 grep -v '^ *+' conftest.er1 >conftest.err
39211 cat conftest.err >&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); } &&
39214 { ac_try='test -z "$ac_c_werror_flag"
39215 || test ! -s conftest.err'
39216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217 (eval $ac_try) 2>&5
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); }; } &&
39221 { ac_try='test -s conftest.$ac_objext'
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; }; then
39227 ac_lo=$ac_mid; break
39229 echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39232 ac_hi=`expr '(' $ac_mid ')' - 1`
39233 if test $ac_mid -le $ac_hi; then
39237 ac_mid=`expr 2 '*' $ac_mid`
39239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39242 echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39250 # Binary search between lo and hi bounds.
39251 while test "x$ac_lo" != "x$ac_hi"; do
39252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39253 cat >conftest.$ac_ext <<_ACEOF
39256 cat confdefs.h >>conftest.$ac_ext
39257 cat >>conftest.$ac_ext <<_ACEOF
39258 /* end confdefs.h. */
39259 $ac_includes_default
39263 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39270 rm -f conftest.$ac_objext
39271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39272 (eval $ac_compile) 2>conftest.er1
39274 grep -v '^ *+' conftest.er1 >conftest.err
39276 cat conftest.err >&5
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); } &&
39279 { ac_try='test -z "$ac_c_werror_flag"
39280 || test ! -s conftest.err'
39281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282 (eval $ac_try) 2>&5
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); }; } &&
39286 { ac_try='test -s conftest.$ac_objext'
39287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 (eval $ac_try) 2>&5
39290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 (exit $ac_status); }; }; then
39294 echo "$as_me: failed program was:" >&5
39295 sed 's/^/| /' conftest.$ac_ext >&5
39297 ac_lo=`expr '(' $ac_mid ')' + 1`
39299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39302 ?*) ac_cv_sizeof_int=$ac_lo;;
39303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39304 See \`config.log' for more details." >&5
39305 echo "$as_me: error: cannot compute sizeof (int), 77
39306 See \`config.log' for more details." >&2;}
39307 { (exit 1); exit 1; }; } ;;
39310 if test "$cross_compiling" = yes; then
39311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39312 See \`config.log' for more details." >&5
39313 echo "$as_me: error: cannot run test program while cross compiling
39314 See \`config.log' for more details." >&2;}
39315 { (exit 1); exit 1; }; }
39317 cat >conftest.$ac_ext <<_ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h. */
39323 $ac_includes_default
39324 long longval () { return (long) (sizeof (int)); }
39325 unsigned long ulongval () { return (long) (sizeof (int)); }
39327 #include <stdlib.h>
39332 FILE *f = fopen ("conftest.val", "w");
39335 if (((long) (sizeof (int))) < 0)
39337 long i = longval ();
39338 if (i != ((long) (sizeof (int))))
39340 fprintf (f, "%ld\n", i);
39344 unsigned long i = ulongval ();
39345 if (i != ((long) (sizeof (int))))
39347 fprintf (f, "%lu\n", i);
39349 exit (ferror (f) || fclose (f) != 0);
39355 rm -f conftest$ac_exeext
39356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39357 (eval $ac_link) 2>&5
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39362 (eval $ac_try) 2>&5
39364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); }; }; then
39366 ac_cv_sizeof_int=`cat conftest.val`
39368 echo "$as_me: program exited with status $ac_status" >&5
39369 echo "$as_me: failed program was:" >&5
39370 sed 's/^/| /' conftest.$ac_ext >&5
39372 ( exit $ac_status )
39373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39374 See \`config.log' for more details." >&5
39375 echo "$as_me: error: cannot compute sizeof (int), 77
39376 See \`config.log' for more details." >&2;}
39377 { (exit 1); exit 1; }; }
39379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39387 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39388 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39389 cat >>confdefs.h <<_ACEOF
39390 #define SIZEOF_INT $ac_cv_sizeof_int
39394 echo "$as_me:$LINENO: checking for long" >&5
39395 echo $ECHO_N "checking for long... $ECHO_C" >&6
39396 if test "${ac_cv_type_long+set}" = set; then
39397 echo $ECHO_N "(cached) $ECHO_C" >&6
39399 cat >conftest.$ac_ext <<_ACEOF
39402 cat confdefs.h >>conftest.$ac_ext
39403 cat >>conftest.$ac_ext <<_ACEOF
39404 /* end confdefs.h. */
39405 $ac_includes_default
39417 rm -f conftest.$ac_objext
39418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39419 (eval $ac_compile) 2>conftest.er1
39421 grep -v '^ *+' conftest.er1 >conftest.err
39423 cat conftest.err >&5
39424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425 (exit $ac_status); } &&
39426 { ac_try='test -z "$ac_c_werror_flag"
39427 || test ! -s conftest.err'
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; } &&
39433 { ac_try='test -s conftest.$ac_objext'
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; }; then
39439 ac_cv_type_long=yes
39441 echo "$as_me: failed program was:" >&5
39442 sed 's/^/| /' conftest.$ac_ext >&5
39446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39448 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39449 echo "${ECHO_T}$ac_cv_type_long" >&6
39451 echo "$as_me:$LINENO: checking size of long" >&5
39452 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39453 if test "${ac_cv_sizeof_long+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39456 if test "$ac_cv_type_long" = yes; then
39457 # The cast to unsigned long works around a bug in the HP C Compiler
39458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39460 # This bug is HP SR number 8606223364.
39461 if test "$cross_compiling" = yes; then
39462 # Depending upon the size, compute the lo and hi bounds.
39463 cat >conftest.$ac_ext <<_ACEOF
39466 cat confdefs.h >>conftest.$ac_ext
39467 cat >>conftest.$ac_ext <<_ACEOF
39468 /* end confdefs.h. */
39469 $ac_includes_default
39473 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39480 rm -f conftest.$ac_objext
39481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39482 (eval $ac_compile) 2>conftest.er1
39484 grep -v '^ *+' conftest.er1 >conftest.err
39486 cat conftest.err >&5
39487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488 (exit $ac_status); } &&
39489 { ac_try='test -z "$ac_c_werror_flag"
39490 || test ! -s conftest.err'
39491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39492 (eval $ac_try) 2>&5
39494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495 (exit $ac_status); }; } &&
39496 { ac_try='test -s conftest.$ac_objext'
39497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39498 (eval $ac_try) 2>&5
39500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501 (exit $ac_status); }; }; then
39504 cat >conftest.$ac_ext <<_ACEOF
39507 cat confdefs.h >>conftest.$ac_ext
39508 cat >>conftest.$ac_ext <<_ACEOF
39509 /* end confdefs.h. */
39510 $ac_includes_default
39514 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39521 rm -f conftest.$ac_objext
39522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39523 (eval $ac_compile) 2>conftest.er1
39525 grep -v '^ *+' conftest.er1 >conftest.err
39527 cat conftest.err >&5
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); } &&
39530 { ac_try='test -z "$ac_c_werror_flag"
39531 || test ! -s conftest.err'
39532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39533 (eval $ac_try) 2>&5
39535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39536 (exit $ac_status); }; } &&
39537 { ac_try='test -s conftest.$ac_objext'
39538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39539 (eval $ac_try) 2>&5
39541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39542 (exit $ac_status); }; }; then
39543 ac_hi=$ac_mid; break
39545 echo "$as_me: failed program was:" >&5
39546 sed 's/^/| /' conftest.$ac_ext >&5
39548 ac_lo=`expr $ac_mid + 1`
39549 if test $ac_lo -le $ac_mid; then
39553 ac_mid=`expr 2 '*' $ac_mid + 1`
39555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39558 echo "$as_me: failed program was:" >&5
39559 sed 's/^/| /' conftest.$ac_ext >&5
39561 cat >conftest.$ac_ext <<_ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h. */
39567 $ac_includes_default
39571 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39578 rm -f conftest.$ac_objext
39579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39580 (eval $ac_compile) 2>conftest.er1
39582 grep -v '^ *+' conftest.er1 >conftest.err
39584 cat conftest.err >&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); } &&
39587 { ac_try='test -z "$ac_c_werror_flag"
39588 || test ! -s conftest.err'
39589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39590 (eval $ac_try) 2>&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); }; } &&
39594 { ac_try='test -s conftest.$ac_objext'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39602 cat >conftest.$ac_ext <<_ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h. */
39608 $ac_includes_default
39612 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39619 rm -f conftest.$ac_objext
39620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39621 (eval $ac_compile) 2>conftest.er1
39623 grep -v '^ *+' conftest.er1 >conftest.err
39625 cat conftest.err >&5
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); } &&
39628 { ac_try='test -z "$ac_c_werror_flag"
39629 || test ! -s conftest.err'
39630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631 (eval $ac_try) 2>&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); }; } &&
39635 { ac_try='test -s conftest.$ac_objext'
39636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39637 (eval $ac_try) 2>&5
39639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640 (exit $ac_status); }; }; then
39641 ac_lo=$ac_mid; break
39643 echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39646 ac_hi=`expr '(' $ac_mid ')' - 1`
39647 if test $ac_mid -le $ac_hi; then
39651 ac_mid=`expr 2 '*' $ac_mid`
39653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39656 echo "$as_me: failed program was:" >&5
39657 sed 's/^/| /' conftest.$ac_ext >&5
39661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39664 # Binary search between lo and hi bounds.
39665 while test "x$ac_lo" != "x$ac_hi"; do
39666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39667 cat >conftest.$ac_ext <<_ACEOF
39670 cat confdefs.h >>conftest.$ac_ext
39671 cat >>conftest.$ac_ext <<_ACEOF
39672 /* end confdefs.h. */
39673 $ac_includes_default
39677 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39684 rm -f conftest.$ac_objext
39685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39686 (eval $ac_compile) 2>conftest.er1
39688 grep -v '^ *+' conftest.er1 >conftest.err
39690 cat conftest.err >&5
39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692 (exit $ac_status); } &&
39693 { ac_try='test -z "$ac_c_werror_flag"
39694 || test ! -s conftest.err'
39695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39696 (eval $ac_try) 2>&5
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); }; } &&
39700 { ac_try='test -s conftest.$ac_objext'
39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39702 (eval $ac_try) 2>&5
39704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); }; }; then
39708 echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39711 ac_lo=`expr '(' $ac_mid ')' + 1`
39713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39716 ?*) ac_cv_sizeof_long=$ac_lo;;
39717 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39718 See \`config.log' for more details." >&5
39719 echo "$as_me: error: cannot compute sizeof (long), 77
39720 See \`config.log' for more details." >&2;}
39721 { (exit 1); exit 1; }; } ;;
39724 if test "$cross_compiling" = yes; then
39725 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39726 See \`config.log' for more details." >&5
39727 echo "$as_me: error: cannot run test program while cross compiling
39728 See \`config.log' for more details." >&2;}
39729 { (exit 1); exit 1; }; }
39731 cat >conftest.$ac_ext <<_ACEOF
39734 cat confdefs.h >>conftest.$ac_ext
39735 cat >>conftest.$ac_ext <<_ACEOF
39736 /* end confdefs.h. */
39737 $ac_includes_default
39738 long longval () { return (long) (sizeof (long)); }
39739 unsigned long ulongval () { return (long) (sizeof (long)); }
39741 #include <stdlib.h>
39746 FILE *f = fopen ("conftest.val", "w");
39749 if (((long) (sizeof (long))) < 0)
39751 long i = longval ();
39752 if (i != ((long) (sizeof (long))))
39754 fprintf (f, "%ld\n", i);
39758 unsigned long i = ulongval ();
39759 if (i != ((long) (sizeof (long))))
39761 fprintf (f, "%lu\n", i);
39763 exit (ferror (f) || fclose (f) != 0);
39769 rm -f conftest$ac_exeext
39770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39771 (eval $ac_link) 2>&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; }; then
39780 ac_cv_sizeof_long=`cat conftest.val`
39782 echo "$as_me: program exited with status $ac_status" >&5
39783 echo "$as_me: failed program was:" >&5
39784 sed 's/^/| /' conftest.$ac_ext >&5
39786 ( exit $ac_status )
39787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39788 See \`config.log' for more details." >&5
39789 echo "$as_me: error: cannot compute sizeof (long), 77
39790 See \`config.log' for more details." >&2;}
39791 { (exit 1); exit 1; }; }
39793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39798 ac_cv_sizeof_long=0
39801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39802 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39803 cat >>confdefs.h <<_ACEOF
39804 #define SIZEOF_LONG $ac_cv_sizeof_long
39808 echo "$as_me:$LINENO: checking for wchar_t" >&5
39809 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39810 if test "${ac_cv_type_wchar_t+set}" = set; then
39811 echo $ECHO_N "(cached) $ECHO_C" >&6
39813 cat >conftest.$ac_ext <<_ACEOF
39816 cat confdefs.h >>conftest.$ac_ext
39817 cat >>conftest.$ac_ext <<_ACEOF
39818 /* end confdefs.h. */
39819 $ac_includes_default
39825 if (sizeof (wchar_t))
39831 rm -f conftest.$ac_objext
39832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39833 (eval $ac_compile) 2>conftest.er1
39835 grep -v '^ *+' conftest.er1 >conftest.err
39837 cat conftest.err >&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); } &&
39840 { ac_try='test -z "$ac_c_werror_flag"
39841 || test ! -s conftest.err'
39842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39843 (eval $ac_try) 2>&5
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); }; } &&
39847 { ac_try='test -s conftest.$ac_objext'
39848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39849 (eval $ac_try) 2>&5
39851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39852 (exit $ac_status); }; }; then
39853 ac_cv_type_wchar_t=yes
39855 echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39858 ac_cv_type_wchar_t=no
39860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39862 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39863 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39865 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39866 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39867 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39868 echo $ECHO_N "(cached) $ECHO_C" >&6
39870 if test "$ac_cv_type_wchar_t" = yes; then
39871 # The cast to unsigned long works around a bug in the HP C Compiler
39872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39874 # This bug is HP SR number 8606223364.
39875 if test "$cross_compiling" = yes; then
39876 # Depending upon the size, compute the lo and hi bounds.
39877 cat >conftest.$ac_ext <<_ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h. */
39883 $ac_includes_default
39887 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39894 rm -f conftest.$ac_objext
39895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39896 (eval $ac_compile) 2>conftest.er1
39898 grep -v '^ *+' conftest.er1 >conftest.err
39900 cat conftest.err >&5
39901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39902 (exit $ac_status); } &&
39903 { ac_try='test -z "$ac_c_werror_flag"
39904 || test ! -s conftest.err'
39905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39906 (eval $ac_try) 2>&5
39908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909 (exit $ac_status); }; } &&
39910 { ac_try='test -s conftest.$ac_objext'
39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912 (eval $ac_try) 2>&5
39914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; }; then
39918 cat >conftest.$ac_ext <<_ACEOF
39921 cat confdefs.h >>conftest.$ac_ext
39922 cat >>conftest.$ac_ext <<_ACEOF
39923 /* end confdefs.h. */
39924 $ac_includes_default
39928 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39935 rm -f conftest.$ac_objext
39936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39937 (eval $ac_compile) 2>conftest.er1
39939 grep -v '^ *+' conftest.er1 >conftest.err
39941 cat conftest.err >&5
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); } &&
39944 { ac_try='test -z "$ac_c_werror_flag"
39945 || test ! -s conftest.err'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; } &&
39951 { ac_try='test -s conftest.$ac_objext'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; }; then
39957 ac_hi=$ac_mid; break
39959 echo "$as_me: failed program was:" >&5
39960 sed 's/^/| /' conftest.$ac_ext >&5
39962 ac_lo=`expr $ac_mid + 1`
39963 if test $ac_lo -le $ac_mid; then
39967 ac_mid=`expr 2 '*' $ac_mid + 1`
39969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39972 echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39975 cat >conftest.$ac_ext <<_ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h. */
39981 $ac_includes_default
39985 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
39992 rm -f conftest.$ac_objext
39993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39994 (eval $ac_compile) 2>conftest.er1
39996 grep -v '^ *+' conftest.er1 >conftest.err
39998 cat conftest.err >&5
39999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000 (exit $ac_status); } &&
40001 { ac_try='test -z "$ac_c_werror_flag"
40002 || test ! -s conftest.err'
40003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40004 (eval $ac_try) 2>&5
40006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007 (exit $ac_status); }; } &&
40008 { ac_try='test -s conftest.$ac_objext'
40009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40010 (eval $ac_try) 2>&5
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); }; }; then
40016 cat >conftest.$ac_ext <<_ACEOF
40019 cat confdefs.h >>conftest.$ac_ext
40020 cat >>conftest.$ac_ext <<_ACEOF
40021 /* end confdefs.h. */
40022 $ac_includes_default
40026 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40033 rm -f conftest.$ac_objext
40034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40035 (eval $ac_compile) 2>conftest.er1
40037 grep -v '^ *+' conftest.er1 >conftest.err
40039 cat conftest.err >&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); } &&
40042 { ac_try='test -z "$ac_c_werror_flag"
40043 || test ! -s conftest.err'
40044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045 (eval $ac_try) 2>&5
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); }; } &&
40049 { ac_try='test -s conftest.$ac_objext'
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; }; then
40055 ac_lo=$ac_mid; break
40057 echo "$as_me: failed program was:" >&5
40058 sed 's/^/| /' conftest.$ac_ext >&5
40060 ac_hi=`expr '(' $ac_mid ')' - 1`
40061 if test $ac_mid -le $ac_hi; then
40065 ac_mid=`expr 2 '*' $ac_mid`
40067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40070 echo "$as_me: failed program was:" >&5
40071 sed 's/^/| /' conftest.$ac_ext >&5
40075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40078 # Binary search between lo and hi bounds.
40079 while test "x$ac_lo" != "x$ac_hi"; do
40080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40081 cat >conftest.$ac_ext <<_ACEOF
40084 cat confdefs.h >>conftest.$ac_ext
40085 cat >>conftest.$ac_ext <<_ACEOF
40086 /* end confdefs.h. */
40087 $ac_includes_default
40091 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40098 rm -f conftest.$ac_objext
40099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40100 (eval $ac_compile) 2>conftest.er1
40102 grep -v '^ *+' conftest.er1 >conftest.err
40104 cat conftest.err >&5
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); } &&
40107 { ac_try='test -z "$ac_c_werror_flag"
40108 || test ! -s conftest.err'
40109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110 (eval $ac_try) 2>&5
40112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113 (exit $ac_status); }; } &&
40114 { ac_try='test -s conftest.$ac_objext'
40115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40116 (eval $ac_try) 2>&5
40118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40119 (exit $ac_status); }; }; then
40122 echo "$as_me: failed program was:" >&5
40123 sed 's/^/| /' conftest.$ac_ext >&5
40125 ac_lo=`expr '(' $ac_mid ')' + 1`
40127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40130 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40132 See \`config.log' for more details." >&5
40133 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40134 See \`config.log' for more details." >&2;}
40135 { (exit 1); exit 1; }; } ;;
40138 if test "$cross_compiling" = yes; then
40139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40140 See \`config.log' for more details." >&5
40141 echo "$as_me: error: cannot run test program while cross compiling
40142 See \`config.log' for more details." >&2;}
40143 { (exit 1); exit 1; }; }
40145 cat >conftest.$ac_ext <<_ACEOF
40148 cat confdefs.h >>conftest.$ac_ext
40149 cat >>conftest.$ac_ext <<_ACEOF
40150 /* end confdefs.h. */
40151 $ac_includes_default
40152 long longval () { return (long) (sizeof (wchar_t)); }
40153 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40155 #include <stdlib.h>
40160 FILE *f = fopen ("conftest.val", "w");
40163 if (((long) (sizeof (wchar_t))) < 0)
40165 long i = longval ();
40166 if (i != ((long) (sizeof (wchar_t))))
40168 fprintf (f, "%ld\n", i);
40172 unsigned long i = ulongval ();
40173 if (i != ((long) (sizeof (wchar_t))))
40175 fprintf (f, "%lu\n", i);
40177 exit (ferror (f) || fclose (f) != 0);
40183 rm -f conftest$ac_exeext
40184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40185 (eval $ac_link) 2>&5
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40190 (eval $ac_try) 2>&5
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); }; }; then
40194 ac_cv_sizeof_wchar_t=`cat conftest.val`
40196 echo "$as_me: program exited with status $ac_status" >&5
40197 echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40200 ( exit $ac_status )
40201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40202 See \`config.log' for more details." >&5
40203 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40204 See \`config.log' for more details." >&2;}
40205 { (exit 1); exit 1; }; }
40207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40212 ac_cv_sizeof_wchar_t=0
40215 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40216 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40217 cat >>confdefs.h <<_ACEOF
40218 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40223 if test "$ac_cv_sizeof_int" -lt 4 ; then
40224 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40225 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40228 cat >>confdefs.h <<\_ACEOF
40229 #define LBER_INT_T long
40234 cat >>confdefs.h <<\_ACEOF
40235 #define LBER_INT_T int
40241 cat >>confdefs.h <<\_ACEOF
40242 #define LBER_LEN_T long
40246 cat >>confdefs.h <<\_ACEOF
40247 #define LBER_SOCKET_T int
40251 cat >>confdefs.h <<\_ACEOF
40252 #define LBER_TAG_T long
40256 echo "$as_me:$LINENO: checking for working memcmp" >&5
40257 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40258 if test "${ac_cv_func_memcmp_working+set}" = set; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40261 if test "$cross_compiling" = yes; then
40262 ac_cv_func_memcmp_working=no
40264 cat >conftest.$ac_ext <<_ACEOF
40267 cat confdefs.h >>conftest.$ac_ext
40268 cat >>conftest.$ac_ext <<_ACEOF
40269 /* end confdefs.h. */
40270 $ac_includes_default
40275 /* Some versions of memcmp are not 8-bit clean. */
40276 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40277 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40280 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40281 or more and with at least one buffer not starting on a 4-byte boundary.
40282 William Lewis provided this test program. */
40287 for (i = 0; i < 4; i++)
40291 strcpy (a, "--------01111111");
40292 strcpy (b, "--------10000000");
40293 if (memcmp (a, b, 16) >= 0)
40303 rm -f conftest$ac_exeext
40304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40305 (eval $ac_link) 2>&5
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40310 (eval $ac_try) 2>&5
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); }; }; then
40314 ac_cv_func_memcmp_working=yes
40316 echo "$as_me: program exited with status $ac_status" >&5
40317 echo "$as_me: failed program was:" >&5
40318 sed 's/^/| /' conftest.$ac_ext >&5
40320 ( exit $ac_status )
40321 ac_cv_func_memcmp_working=no
40323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40326 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40327 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40328 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40329 "memcmp.$ac_objext" | \
40330 *" memcmp.$ac_objext" | \
40331 "memcmp.$ac_objext "* | \
40332 *" memcmp.$ac_objext "* ) ;;
40333 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40338 if test $ac_cv_func_memcmp_working = no ; then
40340 cat >>confdefs.h <<\_ACEOF
40341 #define NEED_MEMCMP_REPLACEMENT 1
40347 for ac_func in strftime
40349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40350 echo "$as_me:$LINENO: checking for $ac_func" >&5
40351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40352 if eval "test \"\${$as_ac_var+set}\" = set"; then
40353 echo $ECHO_N "(cached) $ECHO_C" >&6
40355 cat >conftest.$ac_ext <<_ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40363 #define $ac_func innocuous_$ac_func
40365 /* System header to define __stub macros and hopefully few prototypes,
40366 which can conflict with char $ac_func (); below.
40367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40368 <limits.h> exists even on freestanding compilers. */
40371 # include <limits.h>
40373 # include <assert.h>
40378 /* Override any gcc2 internal prototype to avoid an error. */
40383 /* We use char because int might match the return type of a gcc2
40384 builtin and then its argument prototype would still apply. */
40386 /* The GNU C library defines this for functions which it implements
40387 to always fail with ENOSYS. Some functions are actually named
40388 something starting with __ and the normal name is an alias. */
40389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40392 char (*f) () = $ac_func;
40401 return f != $ac_func;
40406 rm -f conftest.$ac_objext conftest$ac_exeext
40407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40408 (eval $ac_link) 2>conftest.er1
40410 grep -v '^ *+' conftest.er1 >conftest.err
40412 cat conftest.err >&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } &&
40415 { ac_try='test -z "$ac_c_werror_flag"
40416 || test ! -s conftest.err'
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; } &&
40422 { ac_try='test -s conftest$ac_exeext'
40423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424 (eval $ac_try) 2>&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); }; }; then
40428 eval "$as_ac_var=yes"
40430 echo "$as_me: failed program was:" >&5
40431 sed 's/^/| /' conftest.$ac_ext >&5
40433 eval "$as_ac_var=no"
40435 rm -f conftest.err conftest.$ac_objext \
40436 conftest$ac_exeext conftest.$ac_ext
40438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40440 if test `eval echo '${'$as_ac_var'}'` = yes; then
40441 cat >>confdefs.h <<_ACEOF
40442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40446 # strftime is in -lintl on SCO UNIX.
40447 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40448 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40449 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40450 echo $ECHO_N "(cached) $ECHO_C" >&6
40452 ac_check_lib_save_LIBS=$LIBS
40453 LIBS="-lintl $LIBS"
40454 cat >conftest.$ac_ext <<_ACEOF
40457 cat confdefs.h >>conftest.$ac_ext
40458 cat >>conftest.$ac_ext <<_ACEOF
40459 /* end confdefs.h. */
40461 /* Override any gcc2 internal prototype to avoid an error. */
40465 /* We use char because int might match the return type of a gcc2
40466 builtin and then its argument prototype would still apply. */
40476 rm -f conftest.$ac_objext conftest$ac_exeext
40477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40478 (eval $ac_link) 2>conftest.er1
40480 grep -v '^ *+' conftest.er1 >conftest.err
40482 cat conftest.err >&5
40483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484 (exit $ac_status); } &&
40485 { ac_try='test -z "$ac_c_werror_flag"
40486 || test ! -s conftest.err'
40487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488 (eval $ac_try) 2>&5
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); }; } &&
40492 { ac_try='test -s conftest$ac_exeext'
40493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40494 (eval $ac_try) 2>&5
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); }; }; then
40498 ac_cv_lib_intl_strftime=yes
40500 echo "$as_me: failed program was:" >&5
40501 sed 's/^/| /' conftest.$ac_ext >&5
40503 ac_cv_lib_intl_strftime=no
40505 rm -f conftest.err conftest.$ac_objext \
40506 conftest$ac_exeext conftest.$ac_ext
40507 LIBS=$ac_check_lib_save_LIBS
40509 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40510 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40511 if test $ac_cv_lib_intl_strftime = yes; then
40512 cat >>confdefs.h <<\_ACEOF
40513 #define HAVE_STRFTIME 1
40516 LIBS="-lintl $LIBS"
40523 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40524 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40525 if test "${ol_cv_func_inet_aton+set}" = set; then
40526 echo $ECHO_N "(cached) $ECHO_C" >&6
40528 cat >conftest.$ac_ext <<_ACEOF
40531 cat confdefs.h >>conftest.$ac_ext
40532 cat >>conftest.$ac_ext <<_ACEOF
40533 /* end confdefs.h. */
40535 #ifdef HAVE_SYS_TYPES_H
40536 # include <sys/types.h>
40538 #ifdef HAVE_SYS_SOCKET_H
40539 # include <sys/socket.h>
40540 # ifdef HAVE_SYS_SELECT_H
40541 # include <sys/select.h>
40543 # include <netinet/in.h>
40544 # ifdef HAVE_ARPA_INET_H
40545 # include <arpa/inet.h>
40553 int rc = inet_aton( "255.255.255.255", &in );
40558 rm -f conftest.$ac_objext conftest$ac_exeext
40559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40560 (eval $ac_link) 2>conftest.er1
40562 grep -v '^ *+' conftest.er1 >conftest.err
40564 cat conftest.err >&5
40565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40566 (exit $ac_status); } &&
40567 { ac_try='test -z "$ac_c_werror_flag"
40568 || test ! -s conftest.err'
40569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40570 (eval $ac_try) 2>&5
40572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573 (exit $ac_status); }; } &&
40574 { ac_try='test -s conftest$ac_exeext'
40575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40576 (eval $ac_try) 2>&5
40578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579 (exit $ac_status); }; }; then
40580 ol_cv_func_inet_aton=yes
40582 echo "$as_me: failed program was:" >&5
40583 sed 's/^/| /' conftest.$ac_ext >&5
40585 ol_cv_func_inet_aton=no
40587 rm -f conftest.err conftest.$ac_objext \
40588 conftest$ac_exeext conftest.$ac_ext
40590 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40591 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40592 if test $ol_cv_func_inet_aton != no; then
40594 cat >>confdefs.h <<\_ACEOF
40595 #define HAVE_INET_ATON 1
40601 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40602 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40603 if test "${ac_cv_func__spawnlp+set}" = set; then
40604 echo $ECHO_N "(cached) $ECHO_C" >&6
40606 cat >conftest.$ac_ext <<_ACEOF
40609 cat confdefs.h >>conftest.$ac_ext
40610 cat >>conftest.$ac_ext <<_ACEOF
40611 /* end confdefs.h. */
40612 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40614 #define _spawnlp innocuous__spawnlp
40616 /* System header to define __stub macros and hopefully few prototypes,
40617 which can conflict with char _spawnlp (); below.
40618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619 <limits.h> exists even on freestanding compilers. */
40622 # include <limits.h>
40624 # include <assert.h>
40629 /* Override any gcc2 internal prototype to avoid an error. */
40634 /* We use char because int might match the return type of a gcc2
40635 builtin and then its argument prototype would still apply. */
40637 /* The GNU C library defines this for functions which it implements
40638 to always fail with ENOSYS. Some functions are actually named
40639 something starting with __ and the normal name is an alias. */
40640 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40643 char (*f) () = _spawnlp;
40652 return f != _spawnlp;
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40659 (eval $ac_link) 2>conftest.er1
40661 grep -v '^ *+' conftest.er1 >conftest.err
40663 cat conftest.err >&5
40664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); } &&
40666 { ac_try='test -z "$ac_c_werror_flag"
40667 || test ! -s conftest.err'
40668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40669 (eval $ac_try) 2>&5
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); }; } &&
40673 { ac_try='test -s conftest$ac_exeext'
40674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675 (eval $ac_try) 2>&5
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); }; }; then
40679 ac_cv_func__spawnlp=yes
40681 echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40684 ac_cv_func__spawnlp=no
40686 rm -f conftest.err conftest.$ac_objext \
40687 conftest$ac_exeext conftest.$ac_ext
40689 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40690 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40691 if test $ac_cv_func__spawnlp = yes; then
40693 cat >>confdefs.h <<\_ACEOF
40694 #define HAVE_SPAWNLP 1
40700 echo "$as_me:$LINENO: checking for _snprintf" >&5
40701 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40702 if test "${ac_cv_func__snprintf+set}" = set; then
40703 echo $ECHO_N "(cached) $ECHO_C" >&6
40705 cat >conftest.$ac_ext <<_ACEOF
40708 cat confdefs.h >>conftest.$ac_ext
40709 cat >>conftest.$ac_ext <<_ACEOF
40710 /* end confdefs.h. */
40711 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40713 #define _snprintf innocuous__snprintf
40715 /* System header to define __stub macros and hopefully few prototypes,
40716 which can conflict with char _snprintf (); below.
40717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40718 <limits.h> exists even on freestanding compilers. */
40721 # include <limits.h>
40723 # include <assert.h>
40728 /* Override any gcc2 internal prototype to avoid an error. */
40733 /* We use char because int might match the return type of a gcc2
40734 builtin and then its argument prototype would still apply. */
40736 /* The GNU C library defines this for functions which it implements
40737 to always fail with ENOSYS. Some functions are actually named
40738 something starting with __ and the normal name is an alias. */
40739 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40742 char (*f) () = _snprintf;
40751 return f != _snprintf;
40756 rm -f conftest.$ac_objext conftest$ac_exeext
40757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40758 (eval $ac_link) 2>conftest.er1
40760 grep -v '^ *+' conftest.er1 >conftest.err
40762 cat conftest.err >&5
40763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764 (exit $ac_status); } &&
40765 { ac_try='test -z "$ac_c_werror_flag"
40766 || test ! -s conftest.err'
40767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40768 (eval $ac_try) 2>&5
40770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); }; } &&
40772 { ac_try='test -s conftest$ac_exeext'
40773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774 (eval $ac_try) 2>&5
40776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); }; }; then
40778 ac_cv_func__snprintf=yes
40780 echo "$as_me: failed program was:" >&5
40781 sed 's/^/| /' conftest.$ac_ext >&5
40783 ac_cv_func__snprintf=no
40785 rm -f conftest.err conftest.$ac_objext \
40786 conftest$ac_exeext conftest.$ac_ext
40788 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40789 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40790 if test $ac_cv_func__snprintf = yes; then
40791 ac_cv_func_snprintf=yes
40793 cat >>confdefs.h <<\_ACEOF
40794 #define snprintf _snprintf
40801 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40802 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40803 if test "${ac_cv_func__vsnprintf+set}" = set; then
40804 echo $ECHO_N "(cached) $ECHO_C" >&6
40806 cat >conftest.$ac_ext <<_ACEOF
40809 cat confdefs.h >>conftest.$ac_ext
40810 cat >>conftest.$ac_ext <<_ACEOF
40811 /* end confdefs.h. */
40812 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40814 #define _vsnprintf innocuous__vsnprintf
40816 /* System header to define __stub macros and hopefully few prototypes,
40817 which can conflict with char _vsnprintf (); below.
40818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40819 <limits.h> exists even on freestanding compilers. */
40822 # include <limits.h>
40824 # include <assert.h>
40829 /* Override any gcc2 internal prototype to avoid an error. */
40834 /* We use char because int might match the return type of a gcc2
40835 builtin and then its argument prototype would still apply. */
40836 char _vsnprintf ();
40837 /* The GNU C library defines this for functions which it implements
40838 to always fail with ENOSYS. Some functions are actually named
40839 something starting with __ and the normal name is an alias. */
40840 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40843 char (*f) () = _vsnprintf;
40852 return f != _vsnprintf;
40857 rm -f conftest.$ac_objext conftest$ac_exeext
40858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40859 (eval $ac_link) 2>conftest.er1
40861 grep -v '^ *+' conftest.er1 >conftest.err
40863 cat conftest.err >&5
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); } &&
40866 { ac_try='test -z "$ac_c_werror_flag"
40867 || test ! -s conftest.err'
40868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869 (eval $ac_try) 2>&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); }; } &&
40873 { ac_try='test -s conftest$ac_exeext'
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; }; then
40879 ac_cv_func__vsnprintf=yes
40881 echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40884 ac_cv_func__vsnprintf=no
40886 rm -f conftest.err conftest.$ac_objext \
40887 conftest$ac_exeext conftest.$ac_ext
40889 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40890 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40891 if test $ac_cv_func__vsnprintf = yes; then
40892 ac_cv_func_vsnprintf=yes
40894 cat >>confdefs.h <<\_ACEOF
40895 #define vsnprintf _vsnprintf
40903 for ac_func in vprintf
40905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40906 echo "$as_me:$LINENO: checking for $ac_func" >&5
40907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40908 if eval "test \"\${$as_ac_var+set}\" = set"; then
40909 echo $ECHO_N "(cached) $ECHO_C" >&6
40911 cat >conftest.$ac_ext <<_ACEOF
40914 cat confdefs.h >>conftest.$ac_ext
40915 cat >>conftest.$ac_ext <<_ACEOF
40916 /* end confdefs.h. */
40917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40919 #define $ac_func innocuous_$ac_func
40921 /* System header to define __stub macros and hopefully few prototypes,
40922 which can conflict with char $ac_func (); below.
40923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40924 <limits.h> exists even on freestanding compilers. */
40927 # include <limits.h>
40929 # include <assert.h>
40934 /* Override any gcc2 internal prototype to avoid an error. */
40939 /* We use char because int might match the return type of a gcc2
40940 builtin and then its argument prototype would still apply. */
40942 /* The GNU C library defines this for functions which it implements
40943 to always fail with ENOSYS. Some functions are actually named
40944 something starting with __ and the normal name is an alias. */
40945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40948 char (*f) () = $ac_func;
40957 return f != $ac_func;
40962 rm -f conftest.$ac_objext conftest$ac_exeext
40963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40964 (eval $ac_link) 2>conftest.er1
40966 grep -v '^ *+' conftest.er1 >conftest.err
40968 cat conftest.err >&5
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); } &&
40971 { ac_try='test -z "$ac_c_werror_flag"
40972 || test ! -s conftest.err'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; } &&
40978 { ac_try='test -s conftest$ac_exeext'
40979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980 (eval $ac_try) 2>&5
40982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983 (exit $ac_status); }; }; then
40984 eval "$as_ac_var=yes"
40986 echo "$as_me: failed program was:" >&5
40987 sed 's/^/| /' conftest.$ac_ext >&5
40989 eval "$as_ac_var=no"
40991 rm -f conftest.err conftest.$ac_objext \
40992 conftest$ac_exeext conftest.$ac_ext
40994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40996 if test `eval echo '${'$as_ac_var'}'` = yes; then
40997 cat >>confdefs.h <<_ACEOF
40998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41001 echo "$as_me:$LINENO: checking for _doprnt" >&5
41002 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41003 if test "${ac_cv_func__doprnt+set}" = set; then
41004 echo $ECHO_N "(cached) $ECHO_C" >&6
41006 cat >conftest.$ac_ext <<_ACEOF
41009 cat confdefs.h >>conftest.$ac_ext
41010 cat >>conftest.$ac_ext <<_ACEOF
41011 /* end confdefs.h. */
41012 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41014 #define _doprnt innocuous__doprnt
41016 /* System header to define __stub macros and hopefully few prototypes,
41017 which can conflict with char _doprnt (); below.
41018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41019 <limits.h> exists even on freestanding compilers. */
41022 # include <limits.h>
41024 # include <assert.h>
41029 /* Override any gcc2 internal prototype to avoid an error. */
41034 /* We use char because int might match the return type of a gcc2
41035 builtin and then its argument prototype would still apply. */
41037 /* The GNU C library defines this for functions which it implements
41038 to always fail with ENOSYS. Some functions are actually named
41039 something starting with __ and the normal name is an alias. */
41040 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41043 char (*f) () = _doprnt;
41052 return f != _doprnt;
41057 rm -f conftest.$ac_objext conftest$ac_exeext
41058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41059 (eval $ac_link) 2>conftest.er1
41061 grep -v '^ *+' conftest.er1 >conftest.err
41063 cat conftest.err >&5
41064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065 (exit $ac_status); } &&
41066 { ac_try='test -z "$ac_c_werror_flag"
41067 || test ! -s conftest.err'
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; } &&
41073 { ac_try='test -s conftest$ac_exeext'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; }; then
41079 ac_cv_func__doprnt=yes
41081 echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41084 ac_cv_func__doprnt=no
41086 rm -f conftest.err conftest.$ac_objext \
41087 conftest$ac_exeext conftest.$ac_ext
41089 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41090 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41091 if test $ac_cv_func__doprnt = yes; then
41093 cat >>confdefs.h <<\_ACEOF
41094 #define HAVE_DOPRNT 1
41104 if test $ac_cv_func_vprintf = yes ; then
41107 for ac_func in snprintf vsnprintf
41109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41110 echo "$as_me:$LINENO: checking for $ac_func" >&5
41111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41112 if eval "test \"\${$as_ac_var+set}\" = set"; then
41113 echo $ECHO_N "(cached) $ECHO_C" >&6
41115 cat >conftest.$ac_ext <<_ACEOF
41118 cat confdefs.h >>conftest.$ac_ext
41119 cat >>conftest.$ac_ext <<_ACEOF
41120 /* end confdefs.h. */
41121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41123 #define $ac_func innocuous_$ac_func
41125 /* System header to define __stub macros and hopefully few prototypes,
41126 which can conflict with char $ac_func (); below.
41127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41128 <limits.h> exists even on freestanding compilers. */
41131 # include <limits.h>
41133 # include <assert.h>
41138 /* Override any gcc2 internal prototype to avoid an error. */
41143 /* We use char because int might match the return type of a gcc2
41144 builtin and then its argument prototype would still apply. */
41146 /* The GNU C library defines this for functions which it implements
41147 to always fail with ENOSYS. Some functions are actually named
41148 something starting with __ and the normal name is an alias. */
41149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41152 char (*f) () = $ac_func;
41161 return f != $ac_func;
41166 rm -f conftest.$ac_objext conftest$ac_exeext
41167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41168 (eval $ac_link) 2>conftest.er1
41170 grep -v '^ *+' conftest.er1 >conftest.err
41172 cat conftest.err >&5
41173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174 (exit $ac_status); } &&
41175 { ac_try='test -z "$ac_c_werror_flag"
41176 || test ! -s conftest.err'
41177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41178 (eval $ac_try) 2>&5
41180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181 (exit $ac_status); }; } &&
41182 { ac_try='test -s conftest$ac_exeext'
41183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41184 (eval $ac_try) 2>&5
41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187 (exit $ac_status); }; }; then
41188 eval "$as_ac_var=yes"
41190 echo "$as_me: failed program was:" >&5
41191 sed 's/^/| /' conftest.$ac_ext >&5
41193 eval "$as_ac_var=no"
41195 rm -f conftest.err conftest.$ac_objext \
41196 conftest$ac_exeext conftest.$ac_ext
41198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41200 if test `eval echo '${'$as_ac_var'}'` = yes; then
41201 cat >>confdefs.h <<_ACEOF
41202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41324 echo "$as_me:$LINENO: checking for $ac_func" >&5
41325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41326 if eval "test \"\${$as_ac_var+set}\" = set"; then
41327 echo $ECHO_N "(cached) $ECHO_C" >&6
41329 cat >conftest.$ac_ext <<_ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h. */
41335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41337 #define $ac_func innocuous_$ac_func
41339 /* System header to define __stub macros and hopefully few prototypes,
41340 which can conflict with char $ac_func (); below.
41341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41342 <limits.h> exists even on freestanding compilers. */
41345 # include <limits.h>
41347 # include <assert.h>
41352 /* Override any gcc2 internal prototype to avoid an error. */
41357 /* We use char because int might match the return type of a gcc2
41358 builtin and then its argument prototype would still apply. */
41360 /* The GNU C library defines this for functions which it implements
41361 to always fail with ENOSYS. Some functions are actually named
41362 something starting with __ and the normal name is an alias. */
41363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41366 char (*f) () = $ac_func;
41375 return f != $ac_func;
41380 rm -f conftest.$ac_objext conftest$ac_exeext
41381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41382 (eval $ac_link) 2>conftest.er1
41384 grep -v '^ *+' conftest.er1 >conftest.err
41386 cat conftest.err >&5
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); } &&
41389 { ac_try='test -z "$ac_c_werror_flag"
41390 || test ! -s conftest.err'
41391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41392 (eval $ac_try) 2>&5
41394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395 (exit $ac_status); }; } &&
41396 { ac_try='test -s conftest$ac_exeext'
41397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41398 (eval $ac_try) 2>&5
41400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401 (exit $ac_status); }; }; then
41402 eval "$as_ac_var=yes"
41404 echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41407 eval "$as_ac_var=no"
41409 rm -f conftest.err conftest.$ac_objext \
41410 conftest$ac_exeext conftest.$ac_ext
41412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41414 if test `eval echo '${'$as_ac_var'}'` = yes; then
41415 cat >>confdefs.h <<_ACEOF
41416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41425 for ac_func in getopt getpeereid
41427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41428 echo "$as_me:$LINENO: checking for $ac_func" >&5
41429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41430 if eval "test \"\${$as_ac_var+set}\" = set"; then
41431 echo $ECHO_N "(cached) $ECHO_C" >&6
41433 cat >conftest.$ac_ext <<_ACEOF
41436 cat confdefs.h >>conftest.$ac_ext
41437 cat >>conftest.$ac_ext <<_ACEOF
41438 /* end confdefs.h. */
41439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41441 #define $ac_func innocuous_$ac_func
41443 /* System header to define __stub macros and hopefully few prototypes,
41444 which can conflict with char $ac_func (); below.
41445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41446 <limits.h> exists even on freestanding compilers. */
41449 # include <limits.h>
41451 # include <assert.h>
41456 /* Override any gcc2 internal prototype to avoid an error. */
41461 /* We use char because int might match the return type of a gcc2
41462 builtin and then its argument prototype would still apply. */
41464 /* The GNU C library defines this for functions which it implements
41465 to always fail with ENOSYS. Some functions are actually named
41466 something starting with __ and the normal name is an alias. */
41467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41470 char (*f) () = $ac_func;
41479 return f != $ac_func;
41484 rm -f conftest.$ac_objext conftest$ac_exeext
41485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41486 (eval $ac_link) 2>conftest.er1
41488 grep -v '^ *+' conftest.er1 >conftest.err
41490 cat conftest.err >&5
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); } &&
41493 { ac_try='test -z "$ac_c_werror_flag"
41494 || test ! -s conftest.err'
41495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41496 (eval $ac_try) 2>&5
41498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41499 (exit $ac_status); }; } &&
41500 { ac_try='test -s conftest$ac_exeext'
41501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41502 (eval $ac_try) 2>&5
41504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41505 (exit $ac_status); }; }; then
41506 eval "$as_ac_var=yes"
41508 echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41511 eval "$as_ac_var=no"
41513 rm -f conftest.err conftest.$ac_objext \
41514 conftest$ac_exeext conftest.$ac_ext
41516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41518 if test `eval echo '${'$as_ac_var'}'` = yes; then
41519 cat >>confdefs.h <<_ACEOF
41520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41525 "$ac_func.$ac_objext" | \
41526 *" $ac_func.$ac_objext" | \
41527 "$ac_func.$ac_objext "* | \
41528 *" $ac_func.$ac_objext "* ) ;;
41529 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41537 if test "$ac_cv_func_getopt" != yes; then
41538 LIBSRCS="$LIBSRCS getopt.c"
41540 if test "$ac_cv_func_getpeereid" != yes; then
41541 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41542 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41543 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41544 echo $ECHO_N "(cached) $ECHO_C" >&6
41546 cat >conftest.$ac_ext <<_ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h. */
41552 $ac_includes_default
41553 #ifdef HAVE_SYS_SOCKET_H
41554 #include <sys/socket.h>
41560 static struct msghdr ac_aggr;
41561 if (ac_aggr.msg_accrightslen)
41567 rm -f conftest.$ac_objext
41568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41569 (eval $ac_compile) 2>conftest.er1
41571 grep -v '^ *+' conftest.er1 >conftest.err
41573 cat conftest.err >&5
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); } &&
41576 { ac_try='test -z "$ac_c_werror_flag"
41577 || test ! -s conftest.err'
41578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41579 (eval $ac_try) 2>&5
41581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41582 (exit $ac_status); }; } &&
41583 { ac_try='test -s conftest.$ac_objext'
41584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41585 (eval $ac_try) 2>&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); }; }; then
41589 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41591 echo "$as_me: failed program was:" >&5
41592 sed 's/^/| /' conftest.$ac_ext >&5
41594 cat >conftest.$ac_ext <<_ACEOF
41597 cat confdefs.h >>conftest.$ac_ext
41598 cat >>conftest.$ac_ext <<_ACEOF
41599 /* end confdefs.h. */
41600 $ac_includes_default
41601 #ifdef HAVE_SYS_SOCKET_H
41602 #include <sys/socket.h>
41608 static struct msghdr ac_aggr;
41609 if (sizeof ac_aggr.msg_accrightslen)
41615 rm -f conftest.$ac_objext
41616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41617 (eval $ac_compile) 2>conftest.er1
41619 grep -v '^ *+' conftest.er1 >conftest.err
41621 cat conftest.err >&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); } &&
41624 { ac_try='test -z "$ac_c_werror_flag"
41625 || test ! -s conftest.err'
41626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41627 (eval $ac_try) 2>&5
41629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41630 (exit $ac_status); }; } &&
41631 { ac_try='test -s conftest.$ac_objext'
41632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41633 (eval $ac_try) 2>&5
41635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41636 (exit $ac_status); }; }; then
41637 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41639 echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41642 ac_cv_member_struct_msghdr_msg_accrightslen=no
41644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41648 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41649 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41650 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41652 cat >>confdefs.h <<_ACEOF
41653 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41659 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41660 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41661 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41662 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41663 echo $ECHO_N "(cached) $ECHO_C" >&6
41665 cat >conftest.$ac_ext <<_ACEOF
41668 cat confdefs.h >>conftest.$ac_ext
41669 cat >>conftest.$ac_ext <<_ACEOF
41670 /* end confdefs.h. */
41671 $ac_includes_default
41672 #ifdef HAVE_SYS_SOCKET_H
41673 #include <sys/socket.h>
41679 static struct msghdr ac_aggr;
41680 if (ac_aggr.msg_control)
41686 rm -f conftest.$ac_objext
41687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41688 (eval $ac_compile) 2>conftest.er1
41690 grep -v '^ *+' conftest.er1 >conftest.err
41692 cat conftest.err >&5
41693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694 (exit $ac_status); } &&
41695 { ac_try='test -z "$ac_c_werror_flag"
41696 || test ! -s conftest.err'
41697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41698 (eval $ac_try) 2>&5
41700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701 (exit $ac_status); }; } &&
41702 { ac_try='test -s conftest.$ac_objext'
41703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41704 (eval $ac_try) 2>&5
41706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); }; }; then
41708 ac_cv_member_struct_msghdr_msg_control=yes
41710 echo "$as_me: failed program was:" >&5
41711 sed 's/^/| /' conftest.$ac_ext >&5
41713 cat >conftest.$ac_ext <<_ACEOF
41716 cat confdefs.h >>conftest.$ac_ext
41717 cat >>conftest.$ac_ext <<_ACEOF
41718 /* end confdefs.h. */
41719 $ac_includes_default
41720 #ifdef HAVE_SYS_SOCKET_H
41721 #include <sys/socket.h>
41727 static struct msghdr ac_aggr;
41728 if (sizeof ac_aggr.msg_control)
41734 rm -f conftest.$ac_objext
41735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41736 (eval $ac_compile) 2>conftest.er1
41738 grep -v '^ *+' conftest.er1 >conftest.err
41740 cat conftest.err >&5
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); } &&
41743 { ac_try='test -z "$ac_c_werror_flag"
41744 || test ! -s conftest.err'
41745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746 (eval $ac_try) 2>&5
41748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749 (exit $ac_status); }; } &&
41750 { ac_try='test -s conftest.$ac_objext'
41751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752 (eval $ac_try) 2>&5
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); }; }; then
41756 ac_cv_member_struct_msghdr_msg_control=yes
41758 echo "$as_me: failed program was:" >&5
41759 sed 's/^/| /' conftest.$ac_ext >&5
41761 ac_cv_member_struct_msghdr_msg_control=no
41763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41767 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41768 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41769 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41771 cat >>confdefs.h <<_ACEOF
41772 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41779 LIBSRCS="$LIBSRCS getpeereid.c"
41781 if test "$ac_cv_func_snprintf" != yes ||
41782 test "$ac_cv_func_vsnprintf" != yes; then
41783 if test "$ac_cv_func_snprintf" != yes; then
41785 cat >>confdefs.h <<\_ACEOF
41786 #define snprintf ber_pvt_snprintf
41790 if test "$ac_cv_func_vsnprintf" != yes; then
41792 cat >>confdefs.h <<\_ACEOF
41793 #define vsnprintf ber_pvt_vsnprintf
41800 if test "$ol_enable_slapi" != no ; then
41802 for ac_header in ltdl.h
41804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41806 echo "$as_me:$LINENO: checking for $ac_header" >&5
41807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41809 echo $ECHO_N "(cached) $ECHO_C" >&6
41811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41814 # Is the header compilable?
41815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41817 cat >conftest.$ac_ext <<_ACEOF
41820 cat confdefs.h >>conftest.$ac_ext
41821 cat >>conftest.$ac_ext <<_ACEOF
41822 /* end confdefs.h. */
41823 $ac_includes_default
41824 #include <$ac_header>
41826 rm -f conftest.$ac_objext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41828 (eval $ac_compile) 2>conftest.er1
41830 grep -v '^ *+' conftest.er1 >conftest.err
41832 cat conftest.err >&5
41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } &&
41835 { ac_try='test -z "$ac_c_werror_flag"
41836 || test ! -s conftest.err'
41837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838 (eval $ac_try) 2>&5
41840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841 (exit $ac_status); }; } &&
41842 { ac_try='test -s conftest.$ac_objext'
41843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844 (eval $ac_try) 2>&5
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; }; then
41848 ac_header_compiler=yes
41850 echo "$as_me: failed program was:" >&5
41851 sed 's/^/| /' conftest.$ac_ext >&5
41853 ac_header_compiler=no
41855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41857 echo "${ECHO_T}$ac_header_compiler" >&6
41859 # Is the header present?
41860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41862 cat >conftest.$ac_ext <<_ACEOF
41865 cat confdefs.h >>conftest.$ac_ext
41866 cat >>conftest.$ac_ext <<_ACEOF
41867 /* end confdefs.h. */
41868 #include <$ac_header>
41870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41873 grep -v '^ *+' conftest.er1 >conftest.err
41875 cat conftest.err >&5
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); } >/dev/null; then
41878 if test -s conftest.err; then
41879 ac_cpp_err=$ac_c_preproc_warn_flag
41880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41887 if test -z "$ac_cpp_err"; then
41888 ac_header_preproc=yes
41890 echo "$as_me: failed program was:" >&5
41891 sed 's/^/| /' conftest.$ac_ext >&5
41893 ac_header_preproc=no
41895 rm -f conftest.err conftest.$ac_ext
41896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41897 echo "${ECHO_T}$ac_header_preproc" >&6
41899 # So? What about this header?
41900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41906 ac_header_preproc=yes
41909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41923 ## ------------------------------------------ ##
41924 ## Report this to the AC_PACKAGE_NAME lists. ##
41925 ## ------------------------------------------ ##
41928 sed "s/^/$as_me: WARNING: /" >&2
41931 echo "$as_me:$LINENO: checking for $ac_header" >&5
41932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41934 echo $ECHO_N "(cached) $ECHO_C" >&6
41936 eval "$as_ac_Header=\$ac_header_preproc"
41938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41943 cat >>confdefs.h <<_ACEOF
41944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41952 if test $ac_cv_header_ltdl_h != yes ; then
41953 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
41954 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
41955 { (exit 1); exit 1; }; }
41957 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
41958 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
41959 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
41960 echo $ECHO_N "(cached) $ECHO_C" >&6
41962 ac_check_lib_save_LIBS=$LIBS
41963 LIBS="-lltdl $LIBS"
41964 cat >conftest.$ac_ext <<_ACEOF
41967 cat confdefs.h >>conftest.$ac_ext
41968 cat >>conftest.$ac_ext <<_ACEOF
41969 /* end confdefs.h. */
41971 /* Override any gcc2 internal prototype to avoid an error. */
41975 /* We use char because int might match the return type of a gcc2
41976 builtin and then its argument prototype would still apply. */
41986 rm -f conftest.$ac_objext conftest$ac_exeext
41987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41988 (eval $ac_link) 2>conftest.er1
41990 grep -v '^ *+' conftest.er1 >conftest.err
41992 cat conftest.err >&5
41993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); } &&
41995 { ac_try='test -z "$ac_c_werror_flag"
41996 || test ! -s conftest.err'
41997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41998 (eval $ac_try) 2>&5
42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001 (exit $ac_status); }; } &&
42002 { ac_try='test -s conftest$ac_exeext'
42003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42004 (eval $ac_try) 2>&5
42006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007 (exit $ac_status); }; }; then
42008 ac_cv_lib_ltdl_lt_dlinit=yes
42010 echo "$as_me: failed program was:" >&5
42011 sed 's/^/| /' conftest.$ac_ext >&5
42013 ac_cv_lib_ltdl_lt_dlinit=no
42015 rm -f conftest.err conftest.$ac_objext \
42016 conftest$ac_exeext conftest.$ac_ext
42017 LIBS=$ac_check_lib_save_LIBS
42019 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42020 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42021 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42024 LIBSLAPI=libslapi.a
42025 LIBSLAPITOOLS=../libslapi.a
42027 cat >>confdefs.h <<\_ACEOF
42028 #define HAVE_LIBLTDL 1
42033 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42034 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42035 { (exit 1); exit 1; }; }
42040 cat >>confdefs.h <<\_ACEOF
42041 #define LDAP_SLAPI 1
42046 if test "$ol_enable_debug" != no ; then
42048 cat >>confdefs.h <<\_ACEOF
42049 #define LDAP_DEBUG 1
42053 if test "$ol_enable_syslog" = yes ; then
42055 cat >>confdefs.h <<\_ACEOF
42056 #define LDAP_SYSLOG 1
42060 if test "$ol_link_kbind" != no ; then
42062 cat >>confdefs.h <<\_ACEOF
42063 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42067 if test "$ol_enable_proctitle" != no ; then
42069 cat >>confdefs.h <<\_ACEOF
42070 #define LDAP_PROCTITLE 1
42074 if test "$ol_enable_referrals" != no ; then
42076 cat >>confdefs.h <<\_ACEOF
42077 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42081 if test "$ol_enable_local" != no; then
42083 cat >>confdefs.h <<\_ACEOF
42084 #define LDAP_PF_LOCAL 1
42088 if test "$ol_link_ipv6" != no; then
42090 cat >>confdefs.h <<\_ACEOF
42091 #define LDAP_PF_INET6 1
42095 if test "$ol_enable_cleartext" != no ; then
42097 cat >>confdefs.h <<\_ACEOF
42098 #define SLAPD_CLEARTEXT 1
42102 if test "$ol_enable_crypt" != no ; then
42104 cat >>confdefs.h <<\_ACEOF
42105 #define SLAPD_CRYPT 1
42109 if test "$ol_link_spasswd" != no ; then
42111 cat >>confdefs.h <<\_ACEOF
42112 #define SLAPD_SPASSWD 1
42116 if test "$ol_enable_multimaster" != no ; then
42118 cat >>confdefs.h <<\_ACEOF
42119 #define SLAPD_MULTIMASTER 1
42123 if test "$ol_enable_rlookups" != no ; then
42125 cat >>confdefs.h <<\_ACEOF
42126 #define SLAPD_RLOOKUPS 1
42130 if test "$ol_enable_aci" != no ; then
42132 cat >>confdefs.h <<\_ACEOF
42133 #define SLAPD_ACI_ENABLED 1
42136 WITH_ACI_ENABLED=yes
42138 WITH_ACI_ENABLED=no
42141 if test "$ol_link_modules" != no ; then
42143 cat >>confdefs.h <<\_ACEOF
42144 #define SLAPD_MODULES 1
42148 SLAPD_MODULES_LDFLAGS="-dlopen self"
42152 cat >>confdefs.h <<\_ACEOF
42153 #define SLAPD_MOD_STATIC 1
42157 cat >>confdefs.h <<\_ACEOF
42158 #define SLAPD_MOD_DYNAMIC 2
42162 if test "$ol_enable_bdb" != no ; then
42164 BUILD_BDB=$ol_enable_bdb
42165 if test "$ol_enable_bdb" = mod ; then
42166 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42167 MFLAG=SLAPD_MOD_DYNAMIC
42169 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42170 MFLAG=SLAPD_MOD_STATIC
42173 cat >>confdefs.h <<_ACEOF
42174 #define SLAPD_BDB $MFLAG
42179 if test "$ol_enable_dnssrv" != no ; then
42181 BUILD_DNSSRV=$ol_enable_dnssrv
42182 if test "$ol_enable_dnssrv" = mod ; then
42183 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42184 MFLAG=SLAPD_MOD_DYNAMIC
42186 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42187 MFLAG=SLAPD_MOD_STATIC
42190 cat >>confdefs.h <<_ACEOF
42191 #define SLAPD_DNSSRV $MFLAG
42196 if test "$ol_enable_hdb" != no ; then
42198 BUILD_HDB=$ol_enable_hdb
42199 if test "$ol_enable_hdb" = mod ; then
42200 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42201 MFLAG=SLAPD_MOD_DYNAMIC
42203 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42204 MFLAG=SLAPD_MOD_STATIC
42207 cat >>confdefs.h <<_ACEOF
42208 #define SLAPD_HDB $MFLAG
42213 if test "$ol_enable_ldap" != no ; then
42215 BUILD_LDAP=$ol_enable_ldap
42216 if test "$ol_enable_ldap" = mod ; then
42217 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42218 MFLAG=SLAPD_MOD_DYNAMIC
42220 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42221 MFLAG=SLAPD_MOD_STATIC
42224 cat >>confdefs.h <<_ACEOF
42225 #define SLAPD_LDAP $MFLAG
42230 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42232 BUILD_LDBM=$ol_enable_ldbm
42233 if test "$ol_enable_ldbm" = mod ; then
42234 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42235 MFLAG=SLAPD_MOD_DYNAMIC
42237 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42238 MFLAG=SLAPD_MOD_STATIC
42241 cat >>confdefs.h <<_ACEOF
42242 #define SLAPD_LDBM $MFLAG
42247 if test "$ol_enable_meta" != no ; then
42249 BUILD_META=$ol_enable_meta
42251 if test "$ol_enable_meta" = mod ; then
42252 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42253 MFLAG=SLAPD_MOD_DYNAMIC
42255 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42256 MFLAG=SLAPD_MOD_STATIC
42259 cat >>confdefs.h <<_ACEOF
42260 #define SLAPD_META $MFLAG
42265 if test "$ol_enable_monitor" != no ; then
42267 BUILD_MONITOR=$ol_enable_monitor
42268 if test "$ol_enable_monitor" = mod ; then
42269 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42270 MFLAG=SLAPD_MOD_DYNAMIC
42272 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42273 MFLAG=SLAPD_MOD_STATIC
42276 cat >>confdefs.h <<_ACEOF
42277 #define SLAPD_MONITOR $MFLAG
42282 if test "$ol_enable_null" != no ; then
42284 BUILD_NULL=$ol_enable_null
42285 if test "$ol_enable_null" = mod ; then
42286 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42287 MFLAG=SLAPD_MOD_DYNAMIC
42289 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42290 MFLAG=SLAPD_MOD_STATIC
42293 cat >>confdefs.h <<_ACEOF
42294 #define SLAPD_NULL $MFLAG
42299 if test "$ol_enable_passwd" != no ; then
42301 BUILD_PASSWD=$ol_enable_passwd
42302 if test "$ol_enable_passwd" = mod ; then
42303 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42304 MFLAG=SLAPD_MOD_DYNAMIC
42306 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42307 MFLAG=SLAPD_MOD_STATIC
42310 cat >>confdefs.h <<_ACEOF
42311 #define SLAPD_PASSWD $MFLAG
42316 if test "$ol_link_perl" != no ; then
42318 BUILD_PERL=$ol_enable_perl
42319 if test "$ol_enable_perl" = mod ; then
42320 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42321 MFLAG=SLAPD_MOD_DYNAMIC
42323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42324 MFLAG=SLAPD_MOD_STATIC
42327 cat >>confdefs.h <<_ACEOF
42328 #define SLAPD_PERL $MFLAG
42333 if test "$ol_enable_relay" != no ; then
42335 BUILD_RELAY=$ol_enable_relay
42336 if test "$ol_enable_relay" = mod ; then
42337 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42338 MFLAG=SLAPD_MOD_DYNAMIC
42340 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42341 MFLAG=SLAPD_MOD_STATIC
42344 cat >>confdefs.h <<_ACEOF
42345 #define SLAPD_RELAY $MFLAG
42350 if test "$ol_enable_shell" != no ; then
42351 if test "$ol_link_threads" != no ; then
42352 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42353 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42356 BUILD_SHELL=$ol_enable_shell
42357 if test "$ol_enable_shell" = mod ; then
42358 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42359 MFLAG=SLAPD_MOD_DYNAMIC
42361 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42362 MFLAG=SLAPD_MOD_STATIC
42365 cat >>confdefs.h <<_ACEOF
42366 #define SLAPD_SHELL $MFLAG
42371 if test "$ol_link_sql" != no ; then
42373 BUILD_SQL=$ol_enable_sql
42374 if test "$ol_enable_sql" = mod; then
42375 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42376 MFLAG=SLAPD_MOD_DYNAMIC
42378 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42379 MFLAG=SLAPD_MOD_STATIC
42382 cat >>confdefs.h <<_ACEOF
42383 #define SLAPD_SQL $MFLAG
42388 if test "$ol_enable_accesslog" != no ; then
42389 BUILD_ACCESSLOG=$ol_enable_accesslog
42390 if test "$ol_enable_accesslog" = mod ; then
42391 MFLAG=SLAPD_MOD_DYNAMIC
42392 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42394 MFLAG=SLAPD_MOD_STATIC
42395 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42398 cat >>confdefs.h <<_ACEOF
42399 #define SLAPD_OVER_ACCESSLOG $MFLAG
42404 if test "$ol_enable_denyop" != no ; then
42405 BUILD_DENYOP=$ol_enable_denyop
42406 if test "$ol_enable_denyop" = mod ; then
42407 MFLAG=SLAPD_MOD_DYNAMIC
42408 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42410 MFLAG=SLAPD_MOD_STATIC
42411 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42414 cat >>confdefs.h <<_ACEOF
42415 #define SLAPD_OVER_DENYOP $MFLAG
42420 if test "$ol_enable_dyngroup" != no ; then
42421 BUILD_DYNGROUP=$ol_enable_dyngroup
42422 if test "$ol_enable_dyngroup" = mod ; then
42423 MFLAG=SLAPD_MOD_DYNAMIC
42424 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42426 MFLAG=SLAPD_MOD_STATIC
42427 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42430 cat >>confdefs.h <<_ACEOF
42431 #define SLAPD_OVER_DYNGROUP $MFLAG
42436 if test "$ol_enable_dynlist" != no ; then
42437 BUILD_DYNLIST=$ol_enable_dynlist
42438 if test "$ol_enable_dynlist" = mod ; then
42439 MFLAG=SLAPD_MOD_DYNAMIC
42440 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42442 MFLAG=SLAPD_MOD_STATIC
42443 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42446 cat >>confdefs.h <<_ACEOF
42447 #define SLAPD_OVER_DYNLIST $MFLAG
42452 if test "$ol_enable_lastmod" != no ; then
42453 BUILD_LASTMOD=$ol_enable_lastmod
42454 if test "$ol_enable_lastmod" = mod ; then
42455 MFLAG=SLAPD_MOD_DYNAMIC
42456 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42458 MFLAG=SLAPD_MOD_STATIC
42459 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42462 cat >>confdefs.h <<_ACEOF
42463 #define SLAPD_OVER_LASTMOD $MFLAG
42468 if test "$ol_enable_ppolicy" != no ; then
42469 BUILD_PPOLICY=$ol_enable_ppolicy
42470 if test "$ol_enable_ppolicy" = mod ; then
42471 MFLAG=SLAPD_MOD_DYNAMIC
42472 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42474 MFLAG=SLAPD_MOD_STATIC
42475 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42478 cat >>confdefs.h <<_ACEOF
42479 #define SLAPD_OVER_PPOLICY $MFLAG
42484 if test "$ol_enable_proxycache" != no ; then
42485 BUILD_PROXYCACHE=$ol_enable_proxycache
42486 if test "$ol_enable_proxycache" = mod ; then
42487 MFLAG=SLAPD_MOD_DYNAMIC
42488 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42490 MFLAG=SLAPD_MOD_STATIC
42491 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42494 cat >>confdefs.h <<_ACEOF
42495 #define SLAPD_OVER_PROXYCACHE $MFLAG
42500 if test "$ol_enable_refint" != no ; then
42501 BUILD_REFINT=$ol_enable_refint
42502 if test "$ol_enable_refint" = mod ; then
42503 MFLAG=SLAPD_MOD_DYNAMIC
42504 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42506 MFLAG=SLAPD_MOD_STATIC
42507 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42510 cat >>confdefs.h <<_ACEOF
42511 #define SLAPD_OVER_REFINT $MFLAG
42516 if test "$ol_enable_retcode" != no ; then
42517 BUILD_RETCODE=$ol_enable_retcode
42518 if test "$ol_enable_retcode" = mod ; then
42519 MFLAG=SLAPD_MOD_DYNAMIC
42520 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42522 MFLAG=SLAPD_MOD_STATIC
42523 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42526 cat >>confdefs.h <<_ACEOF
42527 #define SLAPD_OVER_RETCODE $MFLAG
42532 if test "$ol_enable_rwm" != no ; then
42534 BUILD_RWM=$ol_enable_rwm
42535 if test "$ol_enable_rwm" = mod ; then
42536 MFLAG=SLAPD_MOD_DYNAMIC
42537 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42539 MFLAG=SLAPD_MOD_STATIC
42540 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42543 cat >>confdefs.h <<_ACEOF
42544 #define SLAPD_OVER_RWM $MFLAG
42549 if test "$ol_enable_syncprov" != no ; then
42550 BUILD_SYNCPROV=$ol_enable_syncprov
42551 if test "$ol_enable_syncprov" = mod ; then
42552 MFLAG=SLAPD_MOD_DYNAMIC
42553 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42555 MFLAG=SLAPD_MOD_STATIC
42556 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42559 cat >>confdefs.h <<_ACEOF
42560 #define SLAPD_OVER_SYNCPROV $MFLAG
42565 if test "$ol_enable_translucent" != no ; then
42566 BUILD_TRANSLUCENT=$ol_enable_translucent
42567 if test "$ol_enable_translucent" = mod ; then
42568 MFLAG=SLAPD_MOD_DYNAMIC
42569 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42571 MFLAG=SLAPD_MOD_STATIC
42572 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42575 cat >>confdefs.h <<_ACEOF
42576 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42581 if test "$ol_enable_unique" != no ; then
42582 BUILD_UNIQUE=$ol_enable_unique
42583 if test "$ol_enable_unique" = mod ; then
42584 MFLAG=SLAPD_MOD_DYNAMIC
42585 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42587 MFLAG=SLAPD_MOD_STATIC
42588 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42591 cat >>confdefs.h <<_ACEOF
42592 #define SLAPD_OVER_UNIQUE $MFLAG
42597 if test "$ol_enable_valsort" != no ; then
42598 BUILD_VALSORT=$ol_enable_valsort
42599 if test "$ol_enable_valsort" = mod ; then
42600 MFLAG=SLAPD_MOD_DYNAMIC
42601 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42603 MFLAG=SLAPD_MOD_STATIC
42604 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42607 cat >>confdefs.h <<_ACEOF
42608 #define SLAPD_OVER_VALSORT $MFLAG
42613 if test "$ol_enable_slurpd" != no &&
42614 test "$ol_link_threads" != no &&
42615 test $BUILD_SLAPD = yes ; then
42619 if test "$ol_enable_rewrite" != no ; then
42621 cat >>confdefs.h <<\_ACEOF
42622 #define ENABLE_REWRITE 1
42628 if test "$ol_enable_slapi" != no ; then
42630 cat >>confdefs.h <<\_ACEOF
42631 #define ENABLE_SLAPI 1
42635 SLAPD_SLAPI_DEPEND=libslapi.a
42640 if test "$ac_cv_mingw32" = yes ; then
42642 SLAPD_MODULES_LDFLAGS=
42726 # Check whether --with-xxinstall or --without-xxinstall was given.
42727 if test "${with_xxinstall+set}" = set; then
42728 withval="$with_xxinstall"
42733 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"
42736 ac_config_commands="$ac_config_commands default"
42740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42741 # Let make expand exec_prefix.
42742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42746 # trailing colons and then remove the whole line if VPATH becomes empty
42747 # (actually we leave an empty line to preserve line numbers).
42748 if test "x$srcdir" = x.; then
42749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42750 s/:*\$(srcdir):*/:/;
42751 s/:*\${srcdir}:*/:/;
42753 s/^\([^=]*=[ ]*\):*/\1/;
42759 DEFS=-DHAVE_CONFIG_H
42763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42764 # 1. Remove the extension, and $U if already installed.
42765 ac_i=`echo "$ac_i" |
42766 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42768 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42769 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42771 LIBOBJS=$ac_libobjs
42773 LTLIBOBJS=$ac_ltlibobjs
42776 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42777 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42778 Usually this means the macro was only invoked conditionally." >&5
42779 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42780 Usually this means the macro was only invoked conditionally." >&2;}
42781 { (exit 1); exit 1; }; }
42783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42784 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42785 Usually this means the macro was only invoked conditionally." >&5
42786 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42787 Usually this means the macro was only invoked conditionally." >&2;}
42788 { (exit 1); exit 1; }; }
42790 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42791 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42792 Usually this means the macro was only invoked conditionally." >&5
42793 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42794 Usually this means the macro was only invoked conditionally." >&2;}
42795 { (exit 1); exit 1; }; }
42798 : ${CONFIG_STATUS=./config.status}
42799 ac_clean_files_save=$ac_clean_files
42800 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42801 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42802 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42803 cat >$CONFIG_STATUS <<_ACEOF
42805 # Generated by $as_me.
42806 # Run this file to recreate the current configuration.
42807 # Compiler output produced by configure, useful for debugging
42808 # configure, is in config.log if it exists.
42811 ac_cs_recheck=false
42813 SHELL=\${CONFIG_SHELL-$SHELL}
42816 cat >>$CONFIG_STATUS <<\_ACEOF
42817 ## --------------------- ##
42818 ## M4sh Initialization. ##
42819 ## --------------------- ##
42821 # Be Bourne compatible
42822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42825 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42826 # is contrary to our usage. Disable this feature.
42827 alias -g '${1+"$@"}'='"$@"'
42828 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42831 DUALCASE=1; export DUALCASE # for MKS sh
42833 # Support unset when possible.
42834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42841 # Work around bugs in pre-3.0 UWIN ksh.
42842 $as_unset ENV MAIL MAILPATH
42849 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42850 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42851 LC_TELEPHONE LC_TIME
42853 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42854 eval $as_var=C; export $as_var
42860 # Required to use basename.
42861 if expr a : '\(a\)' >/dev/null 2>&1; then
42867 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42868 as_basename=basename
42874 # Name of the executable.
42875 as_me=`$as_basename "$0" ||
42876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42877 X"$0" : 'X\(//\)$' \| \
42878 X"$0" : 'X\(/\)$' \| \
42879 . : '\(.\)' 2>/dev/null ||
42881 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42882 /^X\/\(\/\/\)$/{ s//\1/; q; }
42883 /^X\/\(\/\).*/{ s//\1/; q; }
42887 # PATH needs CR, and LINENO needs CR and PATH.
42888 # Avoid depending upon Character Ranges.
42889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42892 as_cr_digits='0123456789'
42893 as_cr_alnum=$as_cr_Letters$as_cr_digits
42895 # The user is always right.
42896 if test "${PATH_SEPARATOR+set}" != set; then
42897 echo "#! /bin/sh" >conf$$.sh
42898 echo "exit 0" >>conf$$.sh
42900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42909 as_lineno_1=$LINENO
42910 as_lineno_2=$LINENO
42911 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42912 test "x$as_lineno_1" != "x$as_lineno_2" &&
42913 test "x$as_lineno_3" = "x$as_lineno_2" || {
42914 # Find who we are. Look in the path if we contain no path at all
42917 *[\\/]* ) as_myself=$0 ;;
42918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42919 for as_dir in $PATH
42922 test -z "$as_dir" && as_dir=.
42923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42928 # We did not find ourselves, most probably we were run as `sh COMMAND'
42929 # in which case we are not to be found in the path.
42930 if test "x$as_myself" = x; then
42933 if test ! -f "$as_myself"; then
42934 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42935 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42936 { (exit 1); exit 1; }; }
42938 case $CONFIG_SHELL in
42940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42941 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42944 test -z "$as_dir" && as_dir=.
42945 for as_base in sh bash ksh sh5; do
42948 if ("$as_dir/$as_base" -c '
42949 as_lineno_1=$LINENO
42950 as_lineno_2=$LINENO
42951 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42952 test "x$as_lineno_1" != "x$as_lineno_2" &&
42953 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42954 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42955 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42956 CONFIG_SHELL=$as_dir/$as_base
42957 export CONFIG_SHELL
42958 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42966 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42967 # uniformly replaced by the line number. The first 'sed' inserts a
42968 # line-number line before each line; the second 'sed' does the real
42969 # work. The second script uses 'N' to pair each line-number line
42970 # with the numbered line, and appends trailing '-' during
42971 # substitution so that $LINENO is not a special case at line end.
42972 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42973 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42974 sed '=' <$as_myself |
42979 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42982 s,^['$as_cr_digits']*\n,,
42983 ' >$as_me.lineno &&
42984 chmod +x $as_me.lineno ||
42985 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42986 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42987 { (exit 1); exit 1; }; }
42989 # Don't try to exec as it changes $[0], causing all sort of problems
42990 # (the dirname of $[0] is not the place where we might find the
42991 # original and so on. Autoconf is especially sensible to this).
42993 # Exit status is that of the last command.
42998 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42999 *c*,-n*) ECHO_N= ECHO_C='
43001 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43002 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43005 if expr a : '\(a\)' >/dev/null 2>&1; then
43011 rm -f conf$$ conf$$.exe conf$$.file
43013 if ln -s conf$$.file conf$$ 2>/dev/null; then
43014 # We could just check for DJGPP; but this test a) works b) is more generic
43015 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43016 if test -f conf$$.exe; then
43017 # Don't use ln at all; we don't have any links
43022 elif ln conf$$.file conf$$ 2>/dev/null; then
43027 rm -f conf$$ conf$$.exe conf$$.file
43029 if mkdir -p . 2>/dev/null; then
43032 test -d ./-p && rmdir ./-p
43036 as_executable_p="test -f"
43038 # Sed expression to map a string onto a valid CPP name.
43039 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43041 # Sed expression to map a string onto a valid variable name.
43042 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43046 # We need space, tab and new line, in precisely that order.
43056 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43057 # report actual input values of CONFIG_FILES etc. instead of their
43058 # values after options handling. Logging --version etc. is OK.
43062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43063 ## Running $as_me. ##
43068 This file was extended by $as_me, which was
43069 generated by GNU Autoconf 2.59. Invocation command line was
43071 CONFIG_FILES = $CONFIG_FILES
43072 CONFIG_HEADERS = $CONFIG_HEADERS
43073 CONFIG_LINKS = $CONFIG_LINKS
43074 CONFIG_COMMANDS = $CONFIG_COMMANDS
43078 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43082 # Files that config.status was made for.
43083 if test -n "$ac_config_files"; then
43084 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43087 if test -n "$ac_config_headers"; then
43088 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43091 if test -n "$ac_config_links"; then
43092 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43095 if test -n "$ac_config_commands"; then
43096 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43099 cat >>$CONFIG_STATUS <<\_ACEOF
43102 \`$as_me' instantiates files from templates according to the
43103 current configuration.
43105 Usage: $0 [OPTIONS] [FILE]...
43107 -h, --help print this help, then exit
43108 -V, --version print version number, then exit
43109 -q, --quiet do not print progress messages
43110 -d, --debug don't remove temporary files
43111 --recheck update $as_me by reconfiguring in the same conditions
43112 --file=FILE[:TEMPLATE]
43113 instantiate the configuration file FILE
43114 --header=FILE[:TEMPLATE]
43115 instantiate the configuration header FILE
43117 Configuration files:
43120 Configuration headers:
43123 Configuration commands:
43126 Report bugs to <bug-autoconf@gnu.org>."
43129 cat >>$CONFIG_STATUS <<_ACEOF
43132 configured by $0, generated by GNU Autoconf 2.59,
43133 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43135 Copyright (C) 2003 Free Software Foundation, Inc.
43136 This config.status script is free software; the Free Software Foundation
43137 gives unlimited permission to copy, distribute and modify it."
43142 cat >>$CONFIG_STATUS <<\_ACEOF
43143 # If no file are specified by the user, then we need to provide default
43144 # value. By we need to know if files were specified by the user.
43150 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43151 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43159 *) # This is not an option, so the user has probably given explicit
43162 ac_need_defaults=false;;
43166 # Handling of the options.
43168 cat >>$CONFIG_STATUS <<\_ACEOF
43169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43171 --version | --vers* | -V )
43172 echo "$ac_cs_version"; exit 0 ;;
43174 # Conflict between --help and --header
43175 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43176 Try \`$0 --help' for more information." >&5
43177 echo "$as_me: error: ambiguous option: $1
43178 Try \`$0 --help' for more information." >&2;}
43179 { (exit 1); exit 1; }; };;
43180 --help | --hel | -h )
43181 echo "$ac_cs_usage"; exit 0 ;;
43182 --debug | --d* | -d )
43184 --file | --fil | --fi | --f )
43186 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43187 ac_need_defaults=false;;
43188 --header | --heade | --head | --hea )
43190 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43191 ac_need_defaults=false;;
43192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43196 # This is an error.
43197 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43198 Try \`$0 --help' for more information." >&5
43199 echo "$as_me: error: unrecognized option: $1
43200 Try \`$0 --help' for more information." >&2;}
43201 { (exit 1); exit 1; }; } ;;
43203 *) ac_config_targets="$ac_config_targets $1" ;;
43209 ac_configure_extra_args=
43211 if $ac_cs_silent; then
43213 ac_configure_extra_args="$ac_configure_extra_args --silent"
43217 cat >>$CONFIG_STATUS <<_ACEOF
43218 if \$ac_cs_recheck; then
43219 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43220 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43225 cat >>$CONFIG_STATUS <<_ACEOF
43227 # INIT-COMMANDS section.
43230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43231 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43237 cat >>$CONFIG_STATUS <<\_ACEOF
43238 for ac_config_target in $ac_config_targets
43240 case "$ac_config_target" in
43241 # Handling of arguments.
43242 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43243 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43244 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43245 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43246 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43247 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43248 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43249 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43250 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43251 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43252 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43253 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43254 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43255 "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" ;;
43256 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43257 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43258 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43259 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43260 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43261 "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" ;;
43262 "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" ;;
43263 "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" ;;
43264 "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" ;;
43265 "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" ;;
43266 "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" ;;
43267 "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" ;;
43268 "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" ;;
43269 "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" ;;
43270 "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" ;;
43271 "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" ;;
43272 "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" ;;
43273 "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" ;;
43274 "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" ;;
43275 "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" ;;
43276 "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" ;;
43277 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43278 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43279 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43280 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43281 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43282 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43283 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43284 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43285 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43286 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43287 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43288 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43289 { (exit 1); exit 1; }; };;
43293 # If the user did not use the arguments to specify the items to instantiate,
43294 # then the envvar interface is used. Set only those that are not.
43295 # We use the long form for the default assignment because of an extremely
43296 # bizarre bug on SunOS 4.1.3.
43297 if $ac_need_defaults; then
43298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43303 # Have a temporary directory for convenience. Make it in the build tree
43304 # simply because there is no reason to put it here, and in addition,
43305 # creating and moving files from /tmp can sometimes cause problems.
43306 # Create a temporary directory, and hook for its removal unless debugging.
43309 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43310 trap '{ (exit 1); exit 1; }' 1 2 13 15
43313 # Create a (secure) tmp directory for tmp files.
43316 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43317 test -n "$tmp" && test -d "$tmp"
43320 tmp=./confstat$$-$RANDOM
43321 (umask 077 && mkdir $tmp)
43324 echo "$me: cannot create a temporary directory in ." >&2
43325 { (exit 1); exit 1; }
43330 cat >>$CONFIG_STATUS <<_ACEOF
43333 # CONFIG_FILES section.
43336 # No need to generate the scripts if there are no CONFIG_FILES.
43337 # This happens for instance when ./config.status config.h
43338 if test -n "\$CONFIG_FILES"; then
43339 # Protect against being on the right side of a sed subst in config.status.
43340 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43341 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43342 s,@SHELL@,$SHELL,;t t
43343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43349 s,@exec_prefix@,$exec_prefix,;t t
43350 s,@prefix@,$prefix,;t t
43351 s,@program_transform_name@,$program_transform_name,;t t
43352 s,@bindir@,$bindir,;t t
43353 s,@sbindir@,$sbindir,;t t
43354 s,@libexecdir@,$libexecdir,;t t
43355 s,@datadir@,$datadir,;t t
43356 s,@sysconfdir@,$sysconfdir,;t t
43357 s,@sharedstatedir@,$sharedstatedir,;t t
43358 s,@localstatedir@,$localstatedir,;t t
43359 s,@libdir@,$libdir,;t t
43360 s,@includedir@,$includedir,;t t
43361 s,@oldincludedir@,$oldincludedir,;t t
43362 s,@infodir@,$infodir,;t t
43363 s,@mandir@,$mandir,;t t
43364 s,@build_alias@,$build_alias,;t t
43365 s,@host_alias@,$host_alias,;t t
43366 s,@target_alias@,$target_alias,;t t
43367 s,@DEFS@,$DEFS,;t t
43368 s,@ECHO_C@,$ECHO_C,;t t
43369 s,@ECHO_N@,$ECHO_N,;t t
43370 s,@ECHO_T@,$ECHO_T,;t t
43371 s,@LIBS@,$LIBS,;t t
43372 s,@build@,$build,;t t
43373 s,@build_cpu@,$build_cpu,;t t
43374 s,@build_vendor@,$build_vendor,;t t
43375 s,@build_os@,$build_os,;t t
43376 s,@host@,$host,;t t
43377 s,@host_cpu@,$host_cpu,;t t
43378 s,@host_vendor@,$host_vendor,;t t
43379 s,@host_os@,$host_os,;t t
43380 s,@target@,$target,;t t
43381 s,@target_cpu@,$target_cpu,;t t
43382 s,@target_vendor@,$target_vendor,;t t
43383 s,@target_os@,$target_os,;t t
43384 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43385 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43386 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43387 s,@CYGPATH_W@,$CYGPATH_W,;t t
43388 s,@PACKAGE@,$PACKAGE,;t t
43389 s,@VERSION@,$VERSION,;t t
43390 s,@ACLOCAL@,$ACLOCAL,;t t
43391 s,@AUTOCONF@,$AUTOCONF,;t t
43392 s,@AUTOMAKE@,$AUTOMAKE,;t t
43393 s,@AUTOHEADER@,$AUTOHEADER,;t t
43394 s,@MAKEINFO@,$MAKEINFO,;t t
43395 s,@install_sh@,$install_sh,;t t
43396 s,@STRIP@,$STRIP,;t t
43397 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43398 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43399 s,@mkdir_p@,$mkdir_p,;t t
43401 s,@SET_MAKE@,$SET_MAKE,;t t
43402 s,@am__leading_dot@,$am__leading_dot,;t t
43403 s,@AMTAR@,$AMTAR,;t t
43404 s,@am__tar@,$am__tar,;t t
43405 s,@am__untar@,$am__untar,;t t
43406 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43407 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43408 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43409 s,@top_builddir@,$top_builddir,;t t
43410 s,@ldap_subdir@,$ldap_subdir,;t t
43413 s,@CFLAGS@,$CFLAGS,;t t
43414 s,@LDFLAGS@,$LDFLAGS,;t t
43415 s,@CPPFLAGS@,$CPPFLAGS,;t t
43416 s,@ac_ct_CC@,$ac_ct_CC,;t t
43417 s,@EXEEXT@,$EXEEXT,;t t
43418 s,@OBJEXT@,$OBJEXT,;t t
43419 s,@DEPDIR@,$DEPDIR,;t t
43420 s,@am__include@,$am__include,;t t
43421 s,@am__quote@,$am__quote,;t t
43422 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43423 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43424 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43425 s,@CCDEPMODE@,$CCDEPMODE,;t t
43426 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43427 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43428 s,@EGREP@,$EGREP,;t t
43429 s,@LN_S@,$LN_S,;t t
43430 s,@ECHO@,$ECHO,;t t
43431 s,@ac_ct_AR@,$ac_ct_AR,;t t
43432 s,@RANLIB@,$RANLIB,;t t
43433 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43434 s,@DLLTOOL@,$DLLTOOL,;t t
43435 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43437 s,@ac_ct_AS@,$ac_ct_AS,;t t
43438 s,@OBJDUMP@,$OBJDUMP,;t t
43439 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43441 s,@LIBTOOL@,$LIBTOOL,;t t
43442 s,@PERLBIN@,$PERLBIN,;t t
43443 s,@OL_MKDEP@,$OL_MKDEP,;t t
43444 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43445 s,@LTSTATIC@,$LTSTATIC,;t t
43446 s,@LIBOBJS@,$LIBOBJS,;t t
43447 s,@LIBSRCS@,$LIBSRCS,;t t
43448 s,@PLAT@,$PLAT,;t t
43449 s,@WITH_SASL@,$WITH_SASL,;t t
43450 s,@WITH_TLS@,$WITH_TLS,;t t
43451 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43452 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43453 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43454 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43455 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43456 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43457 s,@BUILD_BDB@,$BUILD_BDB,;t t
43458 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43459 s,@BUILD_HDB@,$BUILD_HDB,;t t
43460 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43461 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43462 s,@BUILD_META@,$BUILD_META,;t t
43463 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43464 s,@BUILD_NULL@,$BUILD_NULL,;t t
43465 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43466 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43467 s,@BUILD_PERL@,$BUILD_PERL,;t t
43468 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43469 s,@BUILD_SQL@,$BUILD_SQL,;t t
43470 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43471 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43472 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43473 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43474 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43475 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43476 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43477 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43478 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43479 s,@BUILD_RWM@,$BUILD_RWM,;t t
43480 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43481 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43482 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43483 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43484 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43485 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43486 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43487 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43488 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43489 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43490 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43491 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43492 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43493 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43494 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43495 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43496 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43497 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43498 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43499 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43500 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43501 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43502 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43503 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43504 s,@SASL_LIBS@,$SASL_LIBS,;t t
43505 s,@TLS_LIBS@,$TLS_LIBS,;t t
43506 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43507 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43508 s,@LIBSLAPI@,$LIBSLAPI,;t t
43509 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43510 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43511 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43512 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43513 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43514 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43515 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43516 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43521 cat >>$CONFIG_STATUS <<\_ACEOF
43522 # Split the substitutions into bite-sized pieces for seds with
43523 # small command number limits, like on Digital OSF/1 and HP-UX.
43524 ac_max_sed_lines=48
43525 ac_sed_frag=1 # Number of current file.
43526 ac_beg=1 # First line for current file.
43527 ac_end=$ac_max_sed_lines # Line after last line for current file.
43530 while $ac_more_lines; do
43531 if test $ac_beg -gt 1; then
43532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43536 if test ! -s $tmp/subs.frag; then
43537 ac_more_lines=false
43539 # The purpose of the label and of the branching condition is to
43540 # speed up the sed processing (if there are no `@' at all, there
43541 # is no need to browse any of the substitutions).
43542 # These are the two extra sed commands mentioned above.
43544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43545 if test -z "$ac_sed_cmds"; then
43546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43550 ac_sed_frag=`expr $ac_sed_frag + 1`
43552 ac_end=`expr $ac_end + $ac_max_sed_lines`
43555 if test -z "$ac_sed_cmds"; then
43558 fi # test -n "$CONFIG_FILES"
43561 cat >>$CONFIG_STATUS <<\_ACEOF
43562 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43565 - | *:- | *:-:* ) # input from stdin
43567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43571 * ) ac_file_in=$ac_file.in ;;
43574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43577 X"$ac_file" : 'X\(//\)[^/]' \| \
43578 X"$ac_file" : 'X\(//\)$' \| \
43579 X"$ac_file" : 'X\(/\)' \| \
43580 . : '\(.\)' 2>/dev/null ||
43582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43584 /^X\(\/\/\)$/{ s//\1/; q; }
43585 /^X\(\/\).*/{ s//\1/; q; }
43587 { if $as_mkdir_p; then
43592 while test ! -d "$as_dir"; do
43593 as_dirs="$as_dir $as_dirs"
43594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43596 X"$as_dir" : 'X\(//\)[^/]' \| \
43597 X"$as_dir" : 'X\(//\)$' \| \
43598 X"$as_dir" : 'X\(/\)' \| \
43599 . : '\(.\)' 2>/dev/null ||
43601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43603 /^X\(\/\/\)$/{ s//\1/; q; }
43604 /^X\(\/\).*/{ s//\1/; q; }
43607 test ! -n "$as_dirs" || mkdir $as_dirs
43608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43610 { (exit 1); exit 1; }; }; }
43614 if test "$ac_dir" != .; then
43615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43616 # A "../" for each directory in $ac_dir_suffix.
43617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43619 ac_dir_suffix= ac_top_builddir=
43623 .) # No --srcdir option. We are building in place.
43625 if test -z "$ac_top_builddir"; then
43628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43630 [\\/]* | ?:[\\/]* ) # Absolute path.
43631 ac_srcdir=$srcdir$ac_dir_suffix;
43632 ac_top_srcdir=$srcdir ;;
43633 *) # Relative path.
43634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43638 # Do not use `cd foo && pwd` to compute absolute paths, because
43639 # the directories may not exist.
43641 .) ac_abs_builddir="$ac_dir";;
43644 .) ac_abs_builddir=`pwd`;;
43645 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43646 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43649 case $ac_abs_builddir in
43650 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43652 case ${ac_top_builddir}. in
43653 .) ac_abs_top_builddir=$ac_abs_builddir;;
43654 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43655 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43658 case $ac_abs_builddir in
43659 .) ac_abs_srcdir=$ac_srcdir;;
43662 .) ac_abs_srcdir=$ac_abs_builddir;;
43663 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43664 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43667 case $ac_abs_builddir in
43668 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43670 case $ac_top_srcdir in
43671 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43672 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43673 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43680 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43683 if test x"$ac_file" != x-; then
43684 { echo "$as_me:$LINENO: creating $ac_file" >&5
43685 echo "$as_me: creating $ac_file" >&6;}
43688 # Let's still pretend it is `configure' which instantiates (i.e., don't
43689 # use $as_me), people would be surprised to read:
43690 # /* config.h. Generated by config.status. */
43691 if test x"$ac_file" = x-; then
43694 configure_input="$ac_file. "
43696 configure_input=$configure_input"Generated from `echo $ac_file_in |
43697 sed 's,.*/,,'` by configure."
43699 # First look for the input files in the build tree, otherwise in the
43701 ac_file_inputs=`IFS=:
43702 for f in $ac_file_in; do
43704 -) echo $tmp/stdin ;;
43706 # Absolute (can't be DOS-style, as IFS=:)
43707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43708 echo "$as_me: error: cannot find input file: $f" >&2;}
43709 { (exit 1); exit 1; }; }
43712 if test -f "$f"; then
43715 elif test -f "$srcdir/$f"; then
43720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43721 echo "$as_me: error: cannot find input file: $f" >&2;}
43722 { (exit 1); exit 1; }; }
43725 done` || { (exit 1); exit 1; }
43727 cat >>$CONFIG_STATUS <<_ACEOF
43731 cat >>$CONFIG_STATUS <<\_ACEOF
43733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43734 s,@configure_input@,$configure_input,;t t
43735 s,@srcdir@,$ac_srcdir,;t t
43736 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43737 s,@top_srcdir@,$ac_top_srcdir,;t t
43738 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43739 s,@builddir@,$ac_builddir,;t t
43740 s,@abs_builddir@,$ac_abs_builddir,;t t
43741 s,@top_builddir@,$ac_top_builddir,;t t
43742 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43743 s,@INSTALL@,$ac_INSTALL,;t t
43744 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43746 if test x"$ac_file" != x-; then
43747 mv $tmp/out $ac_file
43755 cat >>$CONFIG_STATUS <<\_ACEOF
43758 # CONFIG_HEADER section.
43761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43764 # ac_d sets the value in "#define NAME VALUE" lines.
43765 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43766 ac_dB='[ ].*$,\1#\2'
43769 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43770 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43771 ac_uB='$,\1#\2define\3'
43775 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43778 - | *:- | *:-:* ) # input from stdin
43780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43784 * ) ac_file_in=$ac_file.in ;;
43787 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43788 echo "$as_me: creating $ac_file" >&6;}
43790 # First look for the input files in the build tree, otherwise in the
43792 ac_file_inputs=`IFS=:
43793 for f in $ac_file_in; do
43795 -) echo $tmp/stdin ;;
43797 # Absolute (can't be DOS-style, as IFS=:)
43798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43799 echo "$as_me: error: cannot find input file: $f" >&2;}
43800 { (exit 1); exit 1; }; }
43801 # Do quote $f, to prevent DOS paths from being IFS'd.
43804 if test -f "$f"; then
43807 elif test -f "$srcdir/$f"; then
43812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43813 echo "$as_me: error: cannot find input file: $f" >&2;}
43814 { (exit 1); exit 1; }; }
43817 done` || { (exit 1); exit 1; }
43818 # Remove the trailing spaces.
43819 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43823 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43824 # `conftest.undefs', that substitutes the proper values into
43825 # config.h.in to produce config.h. The first handles `#define'
43826 # templates, and the second `#undef' templates.
43827 # And first: Protect against being on the right side of a sed subst in
43828 # config.status. Protect against being in an unquoted here document
43829 # in config.status.
43830 rm -f conftest.defines conftest.undefs
43831 # Using a here document instead of a string reduces the quoting nightmare.
43832 # Putting comments in sed scripts is not portable.
43834 # `end' is used to avoid that the second main sed command (meant for
43835 # 0-ary CPP macros) applies to n-ary macro definitions.
43836 # See the Autoconf documentation for `clear'.
43837 cat >confdef2sed.sed <<\_ACEOF
43842 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43844 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43847 # If some macros were called several times there might be several times
43848 # the same #defines, which is useless. Nevertheless, we may not want to
43849 # sort them, since we want the *last* AC-DEFINE to be honored.
43850 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43851 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43852 rm -f confdef2sed.sed
43854 # This sed command replaces #undef with comments. This is necessary, for
43855 # example, in the case of _POSIX_SOURCE, which is predefined and required
43856 # on some systems where configure will not decide to define it.
43857 cat >>conftest.undefs <<\_ACEOF
43858 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43861 # Break up conftest.defines because some shells have a limit on the size
43862 # of here documents, and old seds have small limits too (100 cmds).
43863 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43864 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43865 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43866 echo ' :' >>$CONFIG_STATUS
43867 rm -f conftest.tail
43868 while grep . conftest.defines >/dev/null
43870 # Write a limited-size here document to $tmp/defines.sed.
43871 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43872 # Speed up: don't consider the non `#define' lines.
43873 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43874 # Work around the forget-to-reset-the-flag bug.
43875 echo 't clr' >>$CONFIG_STATUS
43876 echo ': clr' >>$CONFIG_STATUS
43877 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43879 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43881 mv $tmp/out $tmp/in
43883 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43884 rm -f conftest.defines
43885 mv conftest.tail conftest.defines
43887 rm -f conftest.defines
43888 echo ' fi # grep' >>$CONFIG_STATUS
43889 echo >>$CONFIG_STATUS
43891 # Break up conftest.undefs because some shells have a limit on the size
43892 # of here documents, and old seds have small limits too (100 cmds).
43893 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43894 rm -f conftest.tail
43895 while grep . conftest.undefs >/dev/null
43897 # Write a limited-size here document to $tmp/undefs.sed.
43898 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43899 # Speed up: don't consider the non `#undef'
43900 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43901 # Work around the forget-to-reset-the-flag bug.
43902 echo 't clr' >>$CONFIG_STATUS
43903 echo ': clr' >>$CONFIG_STATUS
43904 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43906 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43908 mv $tmp/out $tmp/in
43910 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43911 rm -f conftest.undefs
43912 mv conftest.tail conftest.undefs
43914 rm -f conftest.undefs
43916 cat >>$CONFIG_STATUS <<\_ACEOF
43917 # Let's still pretend it is `configure' which instantiates (i.e., don't
43918 # use $as_me), people would be surprised to read:
43919 # /* config.h. Generated by config.status. */
43920 if test x"$ac_file" = x-; then
43921 echo "/* Generated by configure. */" >$tmp/config.h
43923 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43925 cat $tmp/in >>$tmp/config.h
43927 if test x"$ac_file" != x-; then
43928 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43930 echo "$as_me: $ac_file is unchanged" >&6;}
43932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43934 X"$ac_file" : 'X\(//\)[^/]' \| \
43935 X"$ac_file" : 'X\(//\)$' \| \
43936 X"$ac_file" : 'X\(/\)' \| \
43937 . : '\(.\)' 2>/dev/null ||
43939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43941 /^X\(\/\/\)$/{ s//\1/; q; }
43942 /^X\(\/\).*/{ s//\1/; q; }
43944 { if $as_mkdir_p; then
43949 while test ! -d "$as_dir"; do
43950 as_dirs="$as_dir $as_dirs"
43951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43953 X"$as_dir" : 'X\(//\)[^/]' \| \
43954 X"$as_dir" : 'X\(//\)$' \| \
43955 X"$as_dir" : 'X\(/\)' \| \
43956 . : '\(.\)' 2>/dev/null ||
43958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43960 /^X\(\/\/\)$/{ s//\1/; q; }
43961 /^X\(\/\).*/{ s//\1/; q; }
43964 test ! -n "$as_dirs" || mkdir $as_dirs
43965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43967 { (exit 1); exit 1; }; }; }
43970 mv $tmp/config.h $ac_file
43974 rm -f $tmp/config.h
43976 # Compute $ac_file's index in $config_headers.
43978 for _am_header in $config_headers :; do
43979 case $_am_header in
43980 $ac_file | $ac_file:* )
43983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43986 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43987 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43988 X$ac_file : 'X\(//\)[^/]' \| \
43989 X$ac_file : 'X\(//\)$' \| \
43990 X$ac_file : 'X\(/\)' \| \
43991 . : '\(.\)' 2>/dev/null ||
43993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43995 /^X\(\/\/\)$/{ s//\1/; q; }
43996 /^X\(\/\).*/{ s//\1/; q; }
43997 s/.*/./; q'`/stamp-h$_am_stamp_count
44000 cat >>$CONFIG_STATUS <<\_ACEOF
44003 # CONFIG_COMMANDS section.
44005 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44006 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44007 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44008 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44009 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44010 X"$ac_dest" : 'X\(//\)[^/]' \| \
44011 X"$ac_dest" : 'X\(//\)$' \| \
44012 X"$ac_dest" : 'X\(/\)' \| \
44013 . : '\(.\)' 2>/dev/null ||
44015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44017 /^X\(\/\/\)$/{ s//\1/; q; }
44018 /^X\(\/\).*/{ s//\1/; q; }
44020 { if $as_mkdir_p; then
44025 while test ! -d "$as_dir"; do
44026 as_dirs="$as_dir $as_dirs"
44027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44029 X"$as_dir" : 'X\(//\)[^/]' \| \
44030 X"$as_dir" : 'X\(//\)$' \| \
44031 X"$as_dir" : 'X\(/\)' \| \
44032 . : '\(.\)' 2>/dev/null ||
44034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44036 /^X\(\/\/\)$/{ s//\1/; q; }
44037 /^X\(\/\).*/{ s//\1/; q; }
44040 test ! -n "$as_dirs" || mkdir $as_dirs
44041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44042 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44043 { (exit 1); exit 1; }; }; }
44047 if test "$ac_dir" != .; then
44048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44049 # A "../" for each directory in $ac_dir_suffix.
44050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44052 ac_dir_suffix= ac_top_builddir=
44056 .) # No --srcdir option. We are building in place.
44058 if test -z "$ac_top_builddir"; then
44061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44063 [\\/]* | ?:[\\/]* ) # Absolute path.
44064 ac_srcdir=$srcdir$ac_dir_suffix;
44065 ac_top_srcdir=$srcdir ;;
44066 *) # Relative path.
44067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44071 # Do not use `cd foo && pwd` to compute absolute paths, because
44072 # the directories may not exist.
44074 .) ac_abs_builddir="$ac_dir";;
44077 .) ac_abs_builddir=`pwd`;;
44078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44082 case $ac_abs_builddir in
44083 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44085 case ${ac_top_builddir}. in
44086 .) ac_abs_top_builddir=$ac_abs_builddir;;
44087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44091 case $ac_abs_builddir in
44092 .) ac_abs_srcdir=$ac_srcdir;;
44095 .) ac_abs_srcdir=$ac_abs_builddir;;
44096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44100 case $ac_abs_builddir in
44101 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44103 case $ac_top_srcdir in
44104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44111 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44112 echo "$as_me: executing $ac_dest commands" >&6;}
44114 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44115 # Strip MF so we end up with the name of the file.
44116 mf=`echo "$mf" | sed -e 's/:.*$//'`
44117 # Check whether this is an Automake generated Makefile or not.
44118 # We used to match only the files named `Makefile.in', but
44119 # some people rename them; so instead we look at the file content.
44120 # Grep'ing the first line is not enough: some people post-process
44121 # each Makefile.in and add a new line on top of each file to say so.
44122 # So let's grep whole file.
44123 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44124 dirpart=`(dirname "$mf") 2>/dev/null ||
44125 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44126 X"$mf" : 'X\(//\)[^/]' \| \
44127 X"$mf" : 'X\(//\)$' \| \
44128 X"$mf" : 'X\(/\)' \| \
44129 . : '\(.\)' 2>/dev/null ||
44131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44133 /^X\(\/\/\)$/{ s//\1/; q; }
44134 /^X\(\/\).*/{ s//\1/; q; }
44139 # Extract the definition of DEPDIR, am__include, and am__quote
44140 # from the Makefile without running `make'.
44141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44142 test -z "$DEPDIR" && continue
44143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44144 test -z "am__include" && continue
44145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44146 # When using ansi2knr, U may be empty or an underscore; expand it
44147 U=`sed -n 's/^U = //p' < "$mf"`
44148 # Find all dependency output files, they are included files with
44149 # $(DEPDIR) in their names. We invoke sed twice because it is the
44150 # simplest approach to changing $(DEPDIR) to its actual value in the
44152 for file in `sed -n "
44153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44155 # Make sure the directory exists.
44156 test -f "$dirpart/$file" && continue
44157 fdir=`(dirname "$file") 2>/dev/null ||
44158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44159 X"$file" : 'X\(//\)[^/]' \| \
44160 X"$file" : 'X\(//\)$' \| \
44161 X"$file" : 'X\(/\)' \| \
44162 . : '\(.\)' 2>/dev/null ||
44164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44166 /^X\(\/\/\)$/{ s//\1/; q; }
44167 /^X\(\/\).*/{ s//\1/; q; }
44169 { if $as_mkdir_p; then
44170 mkdir -p $dirpart/$fdir
44172 as_dir=$dirpart/$fdir
44174 while test ! -d "$as_dir"; do
44175 as_dirs="$as_dir $as_dirs"
44176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44178 X"$as_dir" : 'X\(//\)[^/]' \| \
44179 X"$as_dir" : 'X\(//\)$' \| \
44180 X"$as_dir" : 'X\(/\)' \| \
44181 . : '\(.\)' 2>/dev/null ||
44183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44185 /^X\(\/\/\)$/{ s//\1/; q; }
44186 /^X\(\/\).*/{ s//\1/; q; }
44189 test ! -n "$as_dirs" || mkdir $as_dirs
44190 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44191 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44192 { (exit 1); exit 1; }; }; }
44194 # echo "creating $dirpart/$file"
44195 echo '# dummy' > "$dirpart/$file"
44202 BACKENDSC="servers/slapd/backends.c"
44203 echo "Making $BACKENDSC"
44205 cat > $BACKENDSC << ENDX
44206 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44208 * Copyright 1998-2005 The OpenLDAP Foundation.
44209 * All rights reserved.
44211 * Redistribution and use in source and binary forms, with or without
44212 * modification, are permitted only as authorized by the OpenLDAP
44215 * A copy of this license is available in the file LICENSE in the
44216 * top-level directory of the distribution or, alternatively, at
44217 * <http://www.OpenLDAP.org/license.html>.
44219 /* This file is automatically generated by configure; please do not edit. */
44221 #include "portable.h"
44225 if test "${STATIC_BACKENDS}"; then
44226 for b in config ${STATIC_BACKENDS}; do
44227 bb=`echo "${b}" | sed -e 's/back-//'`
44228 cat >> $BACKENDSC << ENDX
44229 extern BI_init ${bb}_back_initialize;
44233 cat >> $BACKENDSC << ENDX
44235 BackendInfo slap_binfo[] = {
44238 for b in config ${STATIC_BACKENDS}; do
44239 bb=`echo "${b}" | sed -e 's/back-//'`
44240 echo " Add ${bb} ..."
44241 cat >> $BACKENDSC << ENDX
44242 { "${bb}", ${bb}_back_initialize },
44246 cat >> $BACKENDSC << ENDX
44250 /* end of generated file */
44254 echo Please run \"make depend\" to build dependencies
44260 cat >>$CONFIG_STATUS <<\_ACEOF
44262 { (exit 0); exit 0; }
44264 chmod +x $CONFIG_STATUS
44265 ac_clean_files=$ac_clean_files_save
44268 # configure is writing to config.log, and then calls config.status.
44269 # config.status does its own redirection, appending to config.log.
44270 # Unfortunately, on DOS this fails, as config.log is still kept open
44271 # by configure, so config.status won't be able to write to it; its
44272 # output is simply discarded. So we exec the FD to /dev/null,
44273 # effectively closing config.log, so it can be properly (re)opened and
44274 # appended to by config.status. When coming back to configure, we
44275 # need to make the FD available again.
44276 if test "$no_create" != yes; then
44278 ac_config_status_args=
44279 test "$silent" = yes &&
44280 ac_config_status_args="$ac_config_status_args --quiet"
44282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44285 # would make configure fail if this is the last instruction.
44286 $ac_cs_success || { (exit 1); exit 1; }