2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.599 2005/09/01 09:50:14 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-multiple-precision
1089 multiple precision support for statistics
1090 auto|bignum|gmp [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in auto yes no ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363 withval="$with_threads"
2366 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2367 if test "$withval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374 { (exit 1); exit 1; }; }
2376 ol_with_threads="$ol_arg"
2379 ol_with_threads="auto"
2380 fi; # end --with-threads
2382 # OpenLDAP --with-tls
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2389 for ol_val in auto ssleay openssl yes no ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397 { (exit 1); exit 1; }; }
2399 ol_with_tls="$ol_arg"
2403 fi; # end --with-tls
2405 # OpenLDAP --with-yielding_select
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409 withval="$with_yielding_select"
2412 for ol_val in auto yes no manual ; do
2413 if test "$withval" = "$ol_val" ; then
2417 if test "$ol_arg" = "invalid" ; then
2418 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420 { (exit 1); exit 1; }; }
2422 ol_with_yielding_select="$ol_arg"
2425 ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2428 # OpenLDAP --with-multiple_precision
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432 withval="$with_multiple_precision"
2435 for ol_val in auto bignum gmp yes no ; do
2436 if test "$withval" = "$ol_val" ; then
2440 if test "$ol_arg" = "invalid" ; then
2441 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443 { (exit 1); exit 1; }; }
2445 ol_with_multiple_precision="$ol_arg"
2448 ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455 enableval="$enable_xxslapdoptions"
2458 # OpenLDAP --enable-slapd
2460 # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462 enableval="$enable_slapd"
2465 for ol_val in auto yes no ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_enable_slapd="$ol_arg"
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2483 # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485 enableval="$enable_aci"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_aci="$ol_arg"
2504 # OpenLDAP --enable-cleartext
2506 # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508 enableval="$enable_cleartext"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_cleartext="$ol_arg"
2524 ol_enable_cleartext=yes
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2529 # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531 enableval="$enable_crypt"
2534 for ol_val in auto yes no ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_crypt="$ol_arg"
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2552 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554 enableval="$enable_lmpasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_lmpasswd="$ol_arg"
2570 ol_enable_lmpasswd=no
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2575 # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577 enableval="$enable_spasswd"
2580 for ol_val in auto yes no ; do
2581 if test "$enableval" = "$ol_val" ; then
2585 if test "$ol_arg" = "invalid" ; then
2586 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_spasswd="$ol_arg"
2593 ol_enable_spasswd=no
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2598 # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600 enableval="$enable_modules"
2603 for ol_val in auto yes no ; do
2604 if test "$enableval" = "$ol_val" ; then
2608 if test "$ol_arg" = "invalid" ; then
2609 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_modules="$ol_arg"
2616 ol_enable_modules=no
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2622 # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624 enableval="$enable_rewrite"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_rewrite="$ol_arg"
2640 ol_enable_rewrite=auto
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2645 # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647 enableval="$enable_rlookups"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rlookups="$ol_arg"
2663 ol_enable_rlookups=no
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2668 # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670 enableval="$enable_slapi"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_slapi="$ol_arg"
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2691 # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693 enableval="$enable_slp"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_slp="$ol_arg"
2712 # OpenLDAP --enable-wrappers
2714 # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716 enableval="$enable_wrappers"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_wrappers="$ol_arg"
2732 ol_enable_wrappers=no
2734 # end --enable-wrappers
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752 enableval="$enable_xxslapbackends"
2756 # OpenLDAP --enable-backends
2758 # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760 enableval="$enable_backends"
2763 for ol_val in no yes mod ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_backends="$ol_arg"
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2779 # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781 enableval="$enable_bdb"
2784 for ol_val in no yes mod ; do
2785 if test "$enableval" = "$ol_val" ; then
2789 if test "$ol_arg" = "invalid" ; then
2790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792 { (exit 1); exit 1; }; }
2794 ol_enable_bdb="$ol_arg"
2797 ol_enable_bdb=${ol_enable_backends:-yes}
2800 # OpenLDAP --enable-dnssrv
2802 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804 enableval="$enable_dnssrv"
2807 for ol_val in no yes mod ; do
2808 if test "$enableval" = "$ol_val" ; then
2812 if test "$ol_arg" = "invalid" ; then
2813 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_dnssrv="$ol_arg"
2820 ol_enable_dnssrv=${ol_enable_backends:-no}
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2825 # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827 enableval="$enable_hdb"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_hdb="$ol_arg"
2843 ol_enable_hdb=${ol_enable_backends:-yes}
2846 # OpenLDAP --enable-ldap
2848 # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850 enableval="$enable_ldap"
2853 for ol_val in no yes mod ; do
2854 if test "$enableval" = "$ol_val" ; then
2858 if test "$ol_arg" = "invalid" ; then
2859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861 { (exit 1); exit 1; }; }
2863 ol_enable_ldap="$ol_arg"
2866 ol_enable_ldap=${ol_enable_backends:-no}
2869 # OpenLDAP --enable-ldbm
2871 # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873 enableval="$enable_ldbm"
2876 for ol_val in no yes mod ; do
2877 if test "$enableval" = "$ol_val" ; then
2881 if test "$ol_arg" = "invalid" ; then
2882 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884 { (exit 1); exit 1; }; }
2886 ol_enable_ldbm="$ol_arg"
2889 ol_enable_ldbm=${ol_enable_backends:-no}
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895 withval="$with_ldbm_api"
2897 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899 enable_ldbm_api="$with_ldbm_api"
2901 # OpenLDAP --enable-ldbm_api
2903 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905 enableval="$enable_ldbm_api"
2908 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_ldbm_api="$ol_arg"
2921 ol_enable_ldbm_api=auto
2923 # end --enable-ldbm_api
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928 withval="$with_ldbm_type"
2930 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932 enable_ldbm_type="$with_ldbm_type"
2934 # OpenLDAP --enable-ldbm_type
2936 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938 enableval="$enable_ldbm_type"
2941 for ol_val in auto btree hash ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_ldbm_type="$ol_arg"
2954 ol_enable_ldbm_type=auto
2956 # end --enable-ldbm_type
2958 # OpenLDAP --enable-meta
2960 # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962 enableval="$enable_meta"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_meta="$ol_arg"
2978 ol_enable_meta=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-monitor
2983 # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985 enableval="$enable_monitor"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_monitor="$ol_arg"
3001 ol_enable_monitor=${ol_enable_backends:-yes}
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3006 # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008 enableval="$enable_null"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_null="$ol_arg"
3024 ol_enable_null=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-passwd
3029 # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031 enableval="$enable_passwd"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_passwd="$ol_arg"
3047 ol_enable_passwd=${ol_enable_backends:-no}
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3052 # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054 enableval="$enable_perl"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_perl="$ol_arg"
3070 ol_enable_perl=${ol_enable_backends:-no}
3073 # OpenLDAP --enable-relay
3075 # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077 enableval="$enable_relay"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_relay="$ol_arg"
3093 ol_enable_relay=${ol_enable_backends:-yes}
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3098 # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100 enableval="$enable_shell"
3103 for ol_val in no yes mod ; do
3104 if test "$enableval" = "$ol_val" ; then
3108 if test "$ol_arg" = "invalid" ; then
3109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111 { (exit 1); exit 1; }; }
3113 ol_enable_shell="$ol_arg"
3116 ol_enable_shell=${ol_enable_backends:-no}
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3121 # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123 enableval="$enable_sql"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_sql="$ol_arg"
3139 ol_enable_sql=${ol_enable_backends:-no}
3143 Overlays="accesslog \
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160 enableval="$enable_xxslapoverlays"
3164 # OpenLDAP --enable-overlays
3166 # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168 enableval="$enable_overlays"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_overlays="$ol_arg"
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3187 # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189 enableval="$enable_accesslog"
3192 for ol_val in no yes mod ; do
3193 if test "$enableval" = "$ol_val" ; then
3197 if test "$ol_arg" = "invalid" ; then
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200 { (exit 1); exit 1; }; }
3202 ol_enable_accesslog="$ol_arg"
3205 ol_enable_accesslog=${ol_enable_overlays:-no}
3207 # end --enable-accesslog
3209 # OpenLDAP --enable-denyop
3211 # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213 enableval="$enable_denyop"
3216 for ol_val in no yes mod ; do
3217 if test "$enableval" = "$ol_val" ; then
3221 if test "$ol_arg" = "invalid" ; then
3222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ol_enable_denyop="$ol_arg"
3229 ol_enable_denyop=${ol_enable_overlays:-no}
3231 # end --enable-denyop
3233 # OpenLDAP --enable-dyngroup
3235 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237 enableval="$enable_dyngroup"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_dyngroup="$ol_arg"
3253 ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 # end --enable-dyngroup
3257 # OpenLDAP --enable-dynlist
3259 # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261 enableval="$enable_dynlist"
3264 for ol_val in no yes mod ; do
3265 if test "$enableval" = "$ol_val" ; then
3269 if test "$ol_arg" = "invalid" ; then
3270 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272 { (exit 1); exit 1; }; }
3274 ol_enable_dynlist="$ol_arg"
3277 ol_enable_dynlist=${ol_enable_overlays:-no}
3279 # end --enable-dynlist
3281 # OpenLDAP --enable-lastmod
3283 # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285 enableval="$enable_lastmod"
3288 for ol_val in no yes mod ; do
3289 if test "$enableval" = "$ol_val" ; then
3293 if test "$ol_arg" = "invalid" ; then
3294 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296 { (exit 1); exit 1; }; }
3298 ol_enable_lastmod="$ol_arg"
3301 ol_enable_lastmod=${ol_enable_overlays:-no}
3303 # end --enable-lastmod
3305 # OpenLDAP --enable-ppolicy
3307 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309 enableval="$enable_ppolicy"
3312 for ol_val in no yes mod ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_ppolicy="$ol_arg"
3325 ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 # end --enable-ppolicy
3329 # OpenLDAP --enable-proxycache
3331 # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333 enableval="$enable_proxycache"
3336 for ol_val in no yes mod ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_proxycache="$ol_arg"
3349 ol_enable_proxycache=${ol_enable_overlays:-no}
3351 # end --enable-proxycache
3353 # OpenLDAP --enable-refint
3355 # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357 enableval="$enable_refint"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_refint="$ol_arg"
3373 ol_enable_refint=${ol_enable_overlays:-no}
3375 # end --enable-refint
3377 # OpenLDAP --enable-retcode
3379 # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381 enableval="$enable_retcode"
3384 for ol_val in no yes mod ; do
3385 if test "$enableval" = "$ol_val" ; then
3389 if test "$ol_arg" = "invalid" ; then
3390 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392 { (exit 1); exit 1; }; }
3394 ol_enable_retcode="$ol_arg"
3397 ol_enable_retcode=${ol_enable_overlays:-no}
3399 # end --enable-retcode
3401 # OpenLDAP --enable-rwm
3403 # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405 enableval="$enable_rwm"
3408 for ol_val in no yes mod ; do
3409 if test "$enableval" = "$ol_val" ; then
3413 if test "$ol_arg" = "invalid" ; then
3414 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416 { (exit 1); exit 1; }; }
3418 ol_enable_rwm="$ol_arg"
3421 ol_enable_rwm=${ol_enable_overlays:-no}
3425 # OpenLDAP --enable-syncprov
3427 # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429 enableval="$enable_syncprov"
3432 for ol_val in no yes mod ; do
3433 if test "$enableval" = "$ol_val" ; then
3437 if test "$ol_arg" = "invalid" ; then
3438 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440 { (exit 1); exit 1; }; }
3442 ol_enable_syncprov="$ol_arg"
3445 ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 # end --enable-syncprov
3449 # OpenLDAP --enable-translucent
3451 # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453 enableval="$enable_translucent"
3456 for ol_val in no yes mod ; do
3457 if test "$enableval" = "$ol_val" ; then
3461 if test "$ol_arg" = "invalid" ; then
3462 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464 { (exit 1); exit 1; }; }
3466 ol_enable_translucent="$ol_arg"
3469 ol_enable_translucent=${ol_enable_overlays:-no}
3471 # end --enable-translucent
3473 # OpenLDAP --enable-unique
3475 # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477 enableval="$enable_unique"
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_unique="$ol_arg"
3493 ol_enable_unique=${ol_enable_overlays:-no}
3495 # end --enable-unique
3497 # OpenLDAP --enable-valsort
3499 # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501 enableval="$enable_valsort"
3504 for ol_val in no yes mod ; do
3505 if test "$enableval" = "$ol_val" ; then
3509 if test "$ol_arg" = "invalid" ; then
3510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512 { (exit 1); exit 1; }; }
3514 ol_enable_valsort="$ol_arg"
3517 ol_enable_valsort=${ol_enable_overlays:-no}
3519 # end --enable-valsort
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524 enableval="$enable_xxslurpdoptions"
3527 # OpenLDAP --enable-slurpd
3529 # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531 enableval="$enable_slurpd"
3534 for ol_val in auto yes no ; do
3535 if test "$enableval" = "$ol_val" ; then
3539 if test "$ol_arg" = "invalid" ; then
3540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542 { (exit 1); exit 1; }; }
3544 ol_enable_slurpd="$ol_arg"
3547 ol_enable_slurpd=auto
3549 # end --enable-slurpd
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553 enableval="$enable_xxliboptions"
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558 enableval="$enable_static"
3559 p=${PACKAGE-default}
3561 yes) enable_static=yes ;;
3562 no) enable_static=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582 enableval="$enable_shared"
3583 p=${PACKAGE-default}
3585 yes) enable_shared=yes ;;
3586 no) enable_shared=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3607 if test $ol_enable_slapd = no ; then
3608 if test $ol_enable_slapi = yes ; then
3609 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612 case "$ol_enable_backends" in yes | mod)
3613 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616 for i in $Backends; do
3617 eval "ol_tmp=\$ol_enable_$i"
3618 if test $ol_tmp != no ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621 eval "ol_enable_$i=no"
3624 if test $ol_enable_modules = yes ; then
3625 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628 if test $ol_enable_multimaster = yes ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632 if test $ol_enable_wrappers = yes ; then
3633 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636 if test $ol_enable_rlookups = yes ; then
3637 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640 if test $ol_enable_aci = yes ; then
3641 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644 if test $ol_enable_ldbm_api != auto ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648 if test $ol_enable_ldbm_type != auto ; then
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652 if test $ol_enable_slurpd = yes ; then
3653 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655 { (exit 1); exit 1; }; }
3657 if test $ol_enable_rewrite = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661 case "$ol_enable_overlays" in yes | mod)
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665 for i in $Overlays; do
3666 eval "ol_tmp=\$ol_enable_$i"
3667 if test $ol_tmp != no ; then
3668 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670 eval "ol_enable_$i=no"
3674 # force settings to no
3679 ol_enable_modules=no
3680 ol_enable_multimaster=no
3681 ol_enable_rlookups=no
3683 ol_enable_wrappers=no
3685 ol_enable_ldbm_api=no
3686 ol_enable_ldbm_type=no
3690 ol_enable_rewrite=no
3692 elif test $ol_enable_ldbm = no ; then
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3704 if test $ol_enable_modules != yes -a \
3705 $ol_enable_bdb = no -a \
3706 $ol_enable_dnssrv = no -a \
3707 $ol_enable_hdb = no -a \
3708 $ol_enable_ldap = no -a \
3709 $ol_enable_meta = no -a \
3710 $ol_enable_monitor = no -a \
3711 $ol_enable_null = no -a \
3712 $ol_enable_passwd = no -a \
3713 $ol_enable_perl = no -a \
3714 $ol_enable_relay = no -a \
3715 $ol_enable_shell = no -a \
3716 $ol_enable_sql = no ; then
3718 if test $ol_enable_slapd = yes ; then
3719 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3729 ol_enable_ldbm_api=no
3730 ol_enable_ldbm_type=no
3732 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3733 ol_enable_ldbm_api=berkeley
3737 if test $ol_enable_ldbm_api = gdbm -a \
3738 $ol_enable_ldbm_type = btree ; then
3739 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741 { (exit 1); exit 1; }; }
3743 if test $ol_enable_ldbm_api = mdbm -a \
3744 $ol_enable_ldbm_type = btree ; then
3745 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747 { (exit 1); exit 1; }; }
3749 if test $ol_enable_ldbm_api = ndbm -a \
3750 $ol_enable_ldbm_type = btree ; then
3751 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753 { (exit 1); exit 1; }; }
3756 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3757 if test $ol_enable_ldbm_api = auto ; then
3758 ol_enable_ldbm_api=berkeley
3759 elif test $ol_enable_ldbm_api != berkeley ; then
3760 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762 { (exit 1); exit 1; }; }
3767 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3768 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770 { (exit 1); exit 1; }; }
3773 if test $ol_enable_slurpd = yes ; then
3774 if test $ol_with_threads = no ; then
3775 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777 { (exit 1); exit 1; }; }
3781 if test $ol_enable_lmpasswd = yes ; then
3782 if test $ol_with_tls = no ; then
3783 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785 { (exit 1); exit 1; }; }
3789 if test $ol_enable_kbind = yes ; then
3790 if test $ol_with_kerberos = no ; then
3791 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793 { (exit 1); exit 1; }; }
3794 elif test $ol_with_kerberos = auto ; then
3795 ol_with_kerberos=yes
3798 elif test $ol_enable_kbind = no ; then
3799 if test $ol_with_kerberos = auto ; then
3801 elif test $ol_with_kerberos != no ; then
3802 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3808 if test $ol_enable_spasswd = yes ; then
3809 if test $ol_with_cyrus_sasl = no ; then
3810 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812 { (exit 1); exit 1; }; }
3814 ol_with_cyrus_sasl=yes
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3861 BUILD_TRANSLUCENT=no
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3906 *-*-aix*) if test -z "$CC" ; then
3907 case "$ol_with_threads" in
3908 auto | yes | posix) ol_aix_threads=yes ;;
3914 if test $ol_aix_threads = yes ; then
3915 if test -z "${CC}" ; then
3916 for ac_prog in cc_r xlc_r cc
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_CC="$ac_prog"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$CC"; then
3946 echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 test -n "$CC" && break
3957 if test "$CC" = cc ; then
3958 if test $ol_with_threads != auto ; then
3959 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961 { (exit 1); exit 1; }; }
3963 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3970 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3971 ol_with_threads=posix
3972 ol_cv_pthread_create=yes
3976 if test -z "${CC}"; then
3977 for ac_prog in cc gcc
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_CC+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_CC="$ac_prog"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$CC"; then
4007 echo "$as_me:$LINENO: result: $CC" >&5
4008 echo "${ECHO_T}$CC" >&6
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4014 test -n "$CC" && break
4016 test -n "$CC" || CC="missing"
4019 if test "${CC}" = "missing" ; then
4020 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4021 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4022 { (exit 1); exit 1; }; }
4026 if test -z "${AR}"; then
4027 for ac_prog in ar gar
4029 # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy $ac_prog; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_AR+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$AR"; then
4037 ac_cv_prog_AR="$AR" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_AR="$ac_prog"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 if test -n "$AR"; then
4057 echo "$as_me:$LINENO: result: $AR" >&5
4058 echo "${ECHO_T}$AR" >&6
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4064 test -n "$AR" && break
4066 test -n "$AR" || AR="missing"
4069 if test "${AR}" = "missing" ; then
4070 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4071 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4072 { (exit 1); exit 1; }; }
4080 # Check whether --enable-fast-install or --disable-fast-install was given.
4081 if test "${enable_fast_install+set}" = set; then
4082 enableval="$enable_fast_install"
4083 p=${PACKAGE-default}
4085 yes) enable_fast_install=yes ;;
4086 no) enable_fast_install=no ;;
4088 enable_fast_install=no
4089 # Look at the argument we got. We use all the common list separators.
4090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4091 for pkg in $enableval; do
4093 if test "X$pkg" = "X$p"; then
4094 enable_fast_install=yes
4101 enable_fast_install=yes
4104 DEPDIR="${am__leading_dot}deps"
4106 ac_config_commands="$ac_config_commands depfiles"
4109 am_make=${MAKE-make}
4110 cat > confinc << 'END'
4115 # If we don't find an include directive, just comment out the code.
4116 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4117 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4121 # First try GNU make style include.
4122 echo "include confinc" > confmf
4123 # We grep out `Entering directory' and `Leaving directory'
4124 # messages which can occur if `w' ends up in MAKEFLAGS.
4125 # In particular we don't look at `^make:' because GNU make might
4126 # be invoked under some other name (usually "gmake"), in which
4127 # case it prints its new name instead of `make'.
4128 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4133 # Now try BSD make style include.
4134 if test "$am__include" = "#"; then
4135 echo '.include "confinc"' > confmf
4136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4137 am__include=.include
4144 echo "$as_me:$LINENO: result: $_am_result" >&5
4145 echo "${ECHO_T}$_am_result" >&6
4146 rm -f confinc confmf
4148 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4149 if test "${enable_dependency_tracking+set}" = set; then
4150 enableval="$enable_dependency_tracking"
4153 if test "x$enable_dependency_tracking" != xno; then
4154 am_depcomp="$ac_aux_dir/depcomp"
4159 if test "x$enable_dependency_tracking" != xno; then
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_CC+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$CC"; then
4203 echo "$as_me:$LINENO: result: $CC" >&5
4204 echo "${ECHO_T}$CC" >&6
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4211 if test -z "$ac_cv_prog_CC"; then
4213 # Extract the first word of "gcc", so it can be a program name with args.
4214 set dummy gcc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$ac_ct_CC"; then
4221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_ac_ct_CC="gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4240 if test -n "$ac_ct_CC"; then
4241 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4242 echo "${ECHO_T}$ac_ct_CC" >&6
4244 echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4253 if test -z "$CC"; then
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}cc; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_CC+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$CC"; then
4263 ac_cv_prog_CC="$CC" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_CC="${ac_tool_prefix}cc"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 if test -n "$CC"; then
4283 echo "$as_me:$LINENO: result: $CC" >&5
4284 echo "${ECHO_T}$CC" >&6
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4291 if test -z "$ac_cv_prog_CC"; then
4293 # Extract the first word of "cc", so it can be a program name with args.
4294 set dummy cc; ac_word=$2
4295 echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$ac_ct_CC"; then
4301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_CC="cc"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4320 if test -n "$ac_ct_CC"; then
4321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4322 echo "${ECHO_T}$ac_ct_CC" >&6
4324 echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4334 if test -z "$CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_CC+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354 ac_prog_rejected=yes
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy $ac_cv_prog_CC
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set CC to just the basename; use the full file name.
4373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4379 if test -n "$CC"; then
4380 echo "$as_me:$LINENO: result: $CC" >&5
4381 echo "${ECHO_T}$CC" >&6
4383 echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4388 if test -z "$CC"; then
4389 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 if test -n "$CC"; then
4420 echo "$as_me:$LINENO: result: $CC" >&5
4421 echo "${ECHO_T}$CC" >&6
4423 echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4427 test -n "$CC" && break
4430 if test -z "$CC"; then
4434 # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$ac_ct_CC"; then
4442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_ac_ct_CC="$ac_prog"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4461 if test -n "$ac_ct_CC"; then
4462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4463 echo "${ECHO_T}$ac_ct_CC" >&6
4465 echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4469 test -n "$ac_ct_CC" && break
4478 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4479 See \`config.log' for more details." >&5
4480 echo "$as_me: error: no acceptable C compiler found in \$PATH
4481 See \`config.log' for more details." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Provide some information about the compiler.
4485 echo "$as_me:$LINENO:" \
4486 "checking for C compiler version" >&5
4487 ac_compiler=`set X $ac_compile; echo $2`
4488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4489 (eval $ac_compiler --version </dev/null >&5) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }
4493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4494 (eval $ac_compiler -v </dev/null >&5) 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }
4498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4499 (eval $ac_compiler -V </dev/null >&5) 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }
4504 cat >conftest.$ac_ext <<_ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4519 ac_clean_files_save=$ac_clean_files
4520 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4521 # Try to create an executable without -o first, disregard a.out.
4522 # It will help us diagnose broken compilers, and finding out an intuition
4524 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4525 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4526 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4528 (eval $ac_link_default) 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; then
4532 # Find the output, starting from the most likely. This scheme is
4533 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4536 # Be careful to initialize this variable, since it used to be cached.
4537 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4539 # b.out is created by i960 compilers.
4540 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4542 test -f "$ac_file" || continue
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4547 # This is the source file.
4550 # We found the default executable, but exeext='' is most
4554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4555 # FIXME: I believe we export ac_cv_exeext for Libtool,
4556 # but it would be cool to find out if it's true. Does anybody
4557 # maintain Libtool? --akim.
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C compiler cannot create executables
4571 See \`config.log' for more details." >&2;}
4572 { (exit 77); exit 77; }; }
4575 ac_exeext=$ac_cv_exeext
4576 echo "$as_me:$LINENO: result: $ac_file" >&5
4577 echo "${ECHO_T}$ac_file" >&6
4579 # Check the compiler produces executables we can run. If not, either
4580 # the compiler is broken, or we cross compile.
4581 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4584 # If not cross compiling, check that we can run a simple program.
4585 if test "$cross_compiling" != yes; then
4586 if { ac_try='./$ac_file'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4594 if test "$cross_compiling" = maybe; then
4597 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4598 If you meant to cross compile, use \`--host'.
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: cannot run C compiled programs.
4601 If you meant to cross compile, use \`--host'.
4602 See \`config.log' for more details." >&2;}
4603 { (exit 1); exit 1; }; }
4607 echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6
4610 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4611 ac_clean_files=$ac_clean_files_save
4612 # Check the compiler produces executables we can run. If not, either
4613 # the compiler is broken, or we cross compile.
4614 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4616 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4617 echo "${ECHO_T}$cross_compiling" >&6
4619 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4620 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622 (eval $ac_link) 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; then
4626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4628 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 for ac_file in conftest.exe conftest conftest.*; do
4631 test -f "$ac_file" || continue
4633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4641 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }
4648 rm -f conftest$ac_cv_exeext
4649 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4650 echo "${ECHO_T}$ac_cv_exeext" >&6
4652 rm -f conftest.$ac_ext
4653 EXEEXT=$ac_cv_exeext
4655 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4656 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4657 if test "${ac_cv_objext+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4675 rm -f conftest.o conftest.obj
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; then
4681 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4695 See \`config.log' for more details." >&2;}
4696 { (exit 1); exit 1; }; }
4699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4702 echo "${ECHO_T}$ac_cv_objext" >&6
4703 OBJEXT=$ac_cv_objext
4705 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4706 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag"
4738 || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4761 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4763 GCC=`test $ac_compiler_gnu = yes && echo yes`
4764 ac_test_CFLAGS=${CFLAGS+set}
4765 ac_save_CFLAGS=$CFLAGS
4767 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4768 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4769 if test "${ac_cv_prog_cc_g+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4819 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4820 if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822 elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4829 if test "$GCC" = yes; then
4835 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4836 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4837 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_cv_prog_cc_stdc=no
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 #include <sys/stat.h>
4852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4853 struct buf { int x; };
4854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855 static char *e (p, i)
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4866 s = g (p, va_arg (v,int));
4871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4872 function prototypes and stuff, but not '\xHH' hex character constants.
4873 These don't provoke an error unfortunately, instead are silently treated
4874 as 'x'. The following induces an error, until -std1 is added to get
4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4876 array size at least. It's necessary to write '\x00'==0 to get something
4877 that's true only with -std1. */
4878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 # Don't try gcc -ansi; that turns off useful extensions and
4895 # breaks some systems' header files.
4896 # AIX -qlanglvl=ansi
4897 # Ultrix and OSF/1 -std1
4898 # HP-UX 10.20 and later -Ae
4899 # HP-UX older versions -Aa -D_HPUX_SOURCE
4900 # SVR4 -Xc -D__EXTENSIONS__
4901 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903 CC="$ac_save_CC $ac_arg"
4904 rm -f conftest.$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4908 grep -v '^ *+' conftest.er1 >conftest.err
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_prog_cc_stdc=$ac_arg
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4933 rm -f conftest.err conftest.$ac_objext
4935 rm -f conftest.$ac_ext conftest.$ac_objext
4940 case "x$ac_cv_prog_cc_stdc" in
4942 echo "$as_me:$LINENO: result: none needed" >&5
4943 echo "${ECHO_T}none needed" >&6 ;;
4945 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4946 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4947 CC="$CC $ac_cv_prog_cc_stdc" ;;
4950 # Some people use a C++ compiler to compile C. Since we use `exit',
4951 # in C++ we need to declare it. In case someone uses the same compiler
4952 # for both compiling C and C++ we need to have the C++ compiler decide
4953 # the declaration of exit, since it's the most demanding environment.
4954 cat >conftest.$ac_ext <<_ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 for ac_declaration in \
4983 'extern "C" void std::exit (int) throw (); using std::exit;' \
4984 'extern "C" void std::exit (int); using std::exit;' \
4985 'extern "C" void exit (int) throw ();' \
4986 'extern "C" void exit (int);' \
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag"
5060 || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 if test -n "$ac_declaration"; then
5082 echo '#ifdef __cplusplus' >>confdefs.h
5083 echo $ac_declaration >>confdefs.h
5084 echo '#endif' >>confdefs.h
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 depcc="$CC" am_compiler_list=
5101 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5102 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5107 # We make a subdir and do the tests there. Otherwise we can end up
5108 # making bogus files that we don't know about and never remove. For
5109 # instance it was reported that on HP-UX the gcc test will end up
5110 # making a dummy file named `D' -- because `-MD' means `put the output
5113 # Copy depcomp to subdir because otherwise we won't find it if we're
5114 # using a relative directory.
5115 cp "$am_depcomp" conftest.dir
5117 # We will build objects and dependencies in a subdirectory because
5118 # it helps to detect inapplicable dependency modes. For instance
5119 # both Tru64's cc and ICC support -MD to output dependencies as a
5120 # side effect of compilation, but ICC will put the dependencies in
5121 # the current directory while Tru64 will put them in the object
5125 am_cv_CC_dependencies_compiler_type=none
5126 if test "$am_compiler_list" = ""; then
5127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5141 # Solaris 8's {/usr,}/bin/sh.
5142 touch sub/conftst$i.h
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148 # after this tag, mechanisms are not by side-effect, so they'll
5149 # only be used when explicitly requested
5150 if test "x$enable_dependency_tracking" = xyes; then
5158 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5159 # mode. It turns out that the SunPro C++ compiler does not properly
5160 # handle `-M -o', and we need to detect this.
5161 if depmode=$depmode \
5162 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5164 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5165 >/dev/null 2>conftest.err &&
5166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5167 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5169 # icc doesn't choke on unknown options, it will just issue warnings
5170 # or remarks (even with -Werror). So we grep stderr for any message
5171 # that says an option was ignored or not supported.
5172 # When given -MP, icc 7.0 and 7.1 complain thusly:
5173 # icc: Command line warning: ignoring option '-M'; no argument required
5174 # The diagnosis changed in icc 8.0:
5175 # icc: Command line remark: option '-MP' not supported
5176 if (grep 'ignoring option' conftest.err ||
5177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5178 am_cv_CC_dependencies_compiler_type=$depmode
5187 am_cv_CC_dependencies_compiler_type=none
5191 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5192 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5198 test "x$enable_dependency_tracking" != xno \
5199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201 am__fastdepCC_FALSE='#'
5203 am__fastdepCC_TRUE='#'
5204 am__fastdepCC_FALSE=
5208 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5209 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5210 if test "${lt_cv_path_SED+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 # Loop through the user's path and test for sed and gsed.
5214 # Then use that list of sed's as ones to test for truncation.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for lt_ac_prog in sed gsed; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5223 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5230 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5231 # along with /bin/sed that truncates output.
5232 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5233 test ! -f $lt_ac_sed && continue
5234 cat /dev/null > conftest.in
5236 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5237 # Check for GNU sed and select it if it is found.
5238 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5239 lt_cv_path_SED=$lt_ac_sed
5243 cat conftest.in conftest.in >conftest.tmp
5244 mv conftest.tmp conftest.in
5245 cp conftest.in conftest.nl
5247 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5248 cmp -s conftest.out conftest.nl || break
5249 # 10000 chars as input seems more than enough
5250 test $lt_ac_count -gt 10 && break
5251 lt_ac_count=`expr $lt_ac_count + 1`
5252 if test $lt_ac_count -gt $lt_ac_max; then
5253 lt_ac_max=$lt_ac_count
5254 lt_cv_path_SED=$lt_ac_sed
5262 echo "$as_me:$LINENO: result: $SED" >&5
5263 echo "${ECHO_T}$SED" >&6
5265 echo "$as_me:$LINENO: checking for egrep" >&5
5266 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5267 if test "${ac_cv_prog_egrep+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5271 then ac_cv_prog_egrep='grep -E'
5272 else ac_cv_prog_egrep='egrep'
5275 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5276 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5277 EGREP=$ac_cv_prog_egrep
5281 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5282 if test "${with_gnu_ld+set}" = set; then
5283 withval="$with_gnu_ld"
5284 test "$withval" = no || with_gnu_ld=yes
5289 if test "$GCC" = yes; then
5290 # Check if gcc -print-prog-name=ld gives a path.
5291 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5295 # gcc leaves a trailing carriage return which upsets mingw
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5301 # Accept absolute paths.
5303 re_direlt='/[^/][^/]*/\.\./'
5304 # Canonicalize the pathname of ld
5305 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5306 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5307 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5309 test -z "$LD" && LD="$ac_prog"
5312 # If it fails, then pretend we aren't using GCC.
5316 # If it is relative, then search for the first ld in PATH.
5320 elif test "$with_gnu_ld" = yes; then
5321 echo "$as_me:$LINENO: checking for GNU ld" >&5
5322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5324 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5327 if test "${lt_cv_path_LD+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 if test -z "$LD"; then
5331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332 for ac_dir in $PATH; do
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5336 lt_cv_path_LD="$ac_dir/$ac_prog"
5337 # Check to see if the program is GNU ld. I'd rather use --version,
5338 # but apparently some GNU ld's only accept -v.
5339 # Break only if it was the GNU/non-GNU ld that we prefer.
5340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5341 *GNU* | *'with BFD'*)
5342 test "$with_gnu_ld" != no && break
5345 test "$with_gnu_ld" != yes && break
5352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5357 if test -n "$LD"; then
5358 echo "$as_me:$LINENO: result: $LD" >&5
5359 echo "${ECHO_T}$LD" >&6
5361 echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5366 { (exit 1); exit 1; }; }
5367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5373 case `$LD -v 2>&1 </dev/null` in
5374 *GNU* | *'with BFD'*)
5375 lt_cv_prog_gnu_ld=yes
5378 lt_cv_prog_gnu_ld=no
5382 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5384 with_gnu_ld=$lt_cv_prog_gnu_ld
5387 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5388 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5389 if test "${lt_cv_ld_reload_flag+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 lt_cv_ld_reload_flag='-r'
5394 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5395 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5396 reload_flag=$lt_cv_ld_reload_flag
5397 case $reload_flag in
5399 *) reload_flag=" $reload_flag" ;;
5401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 if test "$GCC" = yes; then
5405 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5412 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5413 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5414 if test "${lt_cv_path_NM+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 if test -n "$NM"; then
5418 # Let the user override the test.
5421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5422 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424 test -z "$ac_dir" && ac_dir=.
5425 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5427 # Check to see if the nm accepts a BSD-compat flag.
5428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5429 # nm: unknown option "B" ignored
5430 # Tru64's nm complains that /dev/null is an invalid object file
5431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5432 */dev/null* | *'Invalid file or object type'*)
5433 lt_cv_path_NM="$tmp_nm -B"
5437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439 lt_cv_path_NM="$tmp_nm -p"
5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5454 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5455 echo "${ECHO_T}$lt_cv_path_NM" >&6
5458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461 if test "$LN_S" = "ln -s"; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463 echo "${ECHO_T}yes" >&6
5465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5466 echo "${ECHO_T}no, using $LN_S" >&6
5469 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5470 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5471 if test "${lt_cv_deplibs_check_method+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 lt_cv_file_magic_cmd='$MAGIC_CMD'
5475 lt_cv_file_magic_test_file=
5476 lt_cv_deplibs_check_method='unknown'
5477 # Need to set the preceding variable on all platforms that support
5478 # interlibrary dependencies.
5479 # 'none' -- dependencies not supported.
5480 # `unknown' -- same as none, but documents that we really don't know.
5481 # 'pass_all' -- all dependencies passed with no checks.
5482 # 'test_compile' -- check by making test program.
5483 # 'file_magic [[regex]]' -- check by looking for files in library path
5484 # which responds to the $file_magic_cmd with a given extended regex.
5485 # If you have `file' or equivalent on your system and you're not sure
5486 # whether `pass_all' will *always* work, you probably want this one.
5490 lt_cv_deplibs_check_method=pass_all
5494 lt_cv_deplibs_check_method=pass_all
5498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5499 lt_cv_file_magic_cmd='/usr/bin/file -L'
5500 lt_cv_file_magic_test_file=/shlib/libc.so
5504 # func_win32_libid is a shell function defined in ltmain.sh
5505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506 lt_cv_file_magic_cmd='func_win32_libid'
5510 # Base MSYS/MinGW do not provide the 'file' command needed by
5511 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5512 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5513 lt_cv_file_magic_cmd='$OBJDUMP -f'
5516 darwin* | rhapsody*)
5517 lt_cv_deplibs_check_method=pass_all
5520 freebsd* | kfreebsd*-gnu | dragonfly*)
5521 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5524 # Not sure whether the presence of OpenBSD here was a mistake.
5525 # Let's accept both of them until this is cleared up.
5526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5532 lt_cv_deplibs_check_method=pass_all
5537 lt_cv_deplibs_check_method=pass_all
5540 hpux10.20* | hpux11*)
5541 lt_cv_file_magic_cmd=/usr/bin/file
5544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5545 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5548 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]'
5549 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5553 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5558 irix5* | irix6* | nonstopux*)
5560 *-32|*"-32 ") libmagic=32-bit;;
5561 *-n32|*"-n32 ") libmagic=N32;;
5562 *-64|*"-64 ") libmagic=64-bit;;
5563 *) libmagic=never-match;;
5565 lt_cv_deplibs_check_method=pass_all
5568 # This must be Linux ELF.
5570 lt_cv_deplibs_check_method=pass_all
5574 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5583 lt_cv_file_magic_cmd=/usr/bin/file
5584 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5588 lt_cv_deplibs_check_method=unknown
5592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5599 osf3* | osf4* | osf5*)
5600 lt_cv_deplibs_check_method=pass_all
5604 lt_cv_deplibs_check_method=pass_all
5608 lt_cv_deplibs_check_method=pass_all
5611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5612 case $host_vendor in
5614 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]'
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5618 lt_cv_deplibs_check_method=pass_all
5621 lt_cv_file_magic_cmd='/bin/file'
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5625 lt_cv_file_magic_cmd='/bin/file'
5626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627 lt_cv_file_magic_test_file=/lib/libc.so
5630 lt_cv_deplibs_check_method=pass_all
5635 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5636 lt_cv_deplibs_check_method=pass_all
5641 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5642 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5643 file_magic_cmd=$lt_cv_file_magic_cmd
5644 deplibs_check_method=$lt_cv_deplibs_check_method
5645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5650 # If no C compiler was specified, use CC.
5653 # Allow CC to be a program name with arguments.
5657 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5658 if test "${enable_libtool_lock+set}" = set; then
5659 enableval="$enable_libtool_lock"
5662 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5664 # Some flags need to be propagated to the compiler or linker for good
5668 # Find out which ABI we are using.
5669 echo 'int i;' > conftest.$ac_ext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; then
5675 case `/usr/bin/file conftest.$ac_objext` in
5687 # Find out which ABI we are using.
5688 echo '#line 5688 "configure"' > conftest.$ac_ext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690 (eval $ac_compile) 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; then
5694 if test "$lt_cv_prog_gnu_ld" = yes; then
5695 case `/usr/bin/file conftest.$ac_objext` in
5697 LD="${LD-ld} -melf32bsmip"
5700 LD="${LD-ld} -melf32bmipn32"
5703 LD="${LD-ld} -melf64bmip"
5707 case `/usr/bin/file conftest.$ac_objext` in
5723 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5724 # Find out which ABI we are using.
5725 echo 'int i;' > conftest.$ac_ext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; then
5731 case "`/usr/bin/file conftest.o`" in
5735 LD="${LD-ld} -m elf_i386"
5737 ppc64-*linux*|powerpc64-*linux*)
5738 LD="${LD-ld} -m elf32ppclinux"
5741 LD="${LD-ld} -m elf_s390"
5744 LD="${LD-ld} -m elf32_sparc"
5751 LD="${LD-ld} -m elf_x86_64"
5753 ppc*-*linux*|powerpc*-*linux*)
5754 LD="${LD-ld} -m elf64ppc"
5757 LD="${LD-ld} -m elf64_s390"
5760 LD="${LD-ld} -m elf64_sparc"
5770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5771 SAVE_CFLAGS="$CFLAGS"
5772 CFLAGS="$CFLAGS -belf"
5773 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5774 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5775 if test "${lt_cv_cc_needs_belf+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 lt_cv_cc_needs_belf=yes
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 lt_cv_cc_needs_belf=no
5828 rm -f conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5838 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5841 CFLAGS="$SAVE_CFLAGS"
5844 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test -n "$DLLTOOL"; then
5854 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 DLLTOOL=$ac_cv_prog_DLLTOOL
5873 if test -n "$DLLTOOL"; then
5874 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5875 echo "${ECHO_T}$DLLTOOL" >&6
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5882 if test -z "$ac_cv_prog_DLLTOOL"; then
5883 ac_ct_DLLTOOL=$DLLTOOL
5884 # Extract the first word of "dlltool", so it can be a program name with args.
5885 set dummy dlltool; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 if test -n "$ac_ct_DLLTOOL"; then
5892 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5911 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5912 if test -n "$ac_ct_DLLTOOL"; then
5913 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5914 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5916 echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5920 DLLTOOL=$ac_ct_DLLTOOL
5922 DLLTOOL="$ac_cv_prog_DLLTOOL"
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}as; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_AS+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$AS"; then
5934 ac_cv_prog_AS="$AS" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_AS="${ac_tool_prefix}as"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 if test -n "$AS"; then
5954 echo "$as_me:$LINENO: result: $AS" >&5
5955 echo "${ECHO_T}$AS" >&6
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5962 if test -z "$ac_cv_prog_AS"; then
5964 # Extract the first word of "as", so it can be a program name with args.
5965 set dummy as; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 if test -n "$ac_ct_AS"; then
5972 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_AS="as"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5991 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5992 if test -n "$ac_ct_AS"; then
5993 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5994 echo "${ECHO_T}$ac_ct_AS" >&6
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 if test -n "$OBJDUMP"; then
6014 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 OBJDUMP=$ac_cv_prog_OBJDUMP
6033 if test -n "$OBJDUMP"; then
6034 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6035 echo "${ECHO_T}$OBJDUMP" >&6
6037 echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6042 if test -z "$ac_cv_prog_OBJDUMP"; then
6043 ac_ct_OBJDUMP=$OBJDUMP
6044 # Extract the first word of "objdump", so it can be a program name with args.
6045 set dummy objdump; ac_word=$2
6046 echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 if test -n "$ac_ct_OBJDUMP"; then
6052 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6071 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6072 if test -n "$ac_ct_OBJDUMP"; then
6073 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6074 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6080 OBJDUMP=$ac_ct_OBJDUMP
6082 OBJDUMP="$ac_cv_prog_OBJDUMP"
6089 need_locks="$enable_libtool_lock"
6093 ac_cpp='$CPP $CPPFLAGS'
6094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6099 # On Suns, sometimes $CPP names a directory.
6100 if test -n "$CPP" && test -d "$CPP"; then
6103 if test -z "$CPP"; then
6104 if test "${ac_cv_prog_CPP+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 # Double quotes because CPP needs to be expanded
6108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6111 for ac_c_preproc_warn_flag in '' yes
6113 # Use a header file that comes with gcc, so configuring glibc
6114 # with a fresh cross-compiler works.
6115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6116 # <limits.h> exists even on freestanding compilers.
6117 # On the NeXT, cc -E runs the code through the compiler's parser,
6118 # not just through cpp. "Syntax error" is here to catch this case.
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6126 # include <limits.h>
6128 # include <assert.h>
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1 >conftest.err
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null; then
6140 if test -s conftest.err; then
6141 ac_cpp_err=$ac_c_preproc_warn_flag
6142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6149 if test -z "$ac_cpp_err"; then
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 # Broken: fails on valid input.
6158 rm -f conftest.err conftest.$ac_ext
6160 # OK, works on sane cases. Now check whether non-existent headers
6161 # can be detected and how.
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <ac_nonexistent.h>
6170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } >/dev/null; then
6178 if test -s conftest.err; then
6179 ac_cpp_err=$ac_c_preproc_warn_flag
6180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6187 if test -z "$ac_cpp_err"; then
6188 # Broken: success on invalid input.
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 # Passes both tests.
6198 rm -f conftest.err conftest.$ac_ext
6201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6202 rm -f conftest.err conftest.$ac_ext
6203 if $ac_preproc_ok; then
6215 echo "$as_me:$LINENO: result: $CPP" >&5
6216 echo "${ECHO_T}$CPP" >&6
6218 for ac_c_preproc_warn_flag in '' yes
6220 # Use a header file that comes with gcc, so configuring glibc
6221 # with a fresh cross-compiler works.
6222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223 # <limits.h> exists even on freestanding compilers.
6224 # On the NeXT, cc -E runs the code through the compiler's parser,
6225 # not just through cpp. "Syntax error" is here to catch this case.
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6233 # include <limits.h>
6235 # include <assert.h>
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null; then
6247 if test -s conftest.err; then
6248 ac_cpp_err=$ac_c_preproc_warn_flag
6249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256 if test -z "$ac_cpp_err"; then
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 # Broken: fails on valid input.
6265 rm -f conftest.err conftest.$ac_ext
6267 # OK, works on sane cases. Now check whether non-existent headers
6268 # can be detected and how.
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <ac_nonexistent.h>
6277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null; then
6285 if test -s conftest.err; then
6286 ac_cpp_err=$ac_c_preproc_warn_flag
6287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294 if test -z "$ac_cpp_err"; then
6295 # Broken: success on invalid input.
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 # Passes both tests.
6305 rm -f conftest.err conftest.$ac_ext
6308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6309 rm -f conftest.err conftest.$ac_ext
6310 if $ac_preproc_ok; then
6313 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6316 See \`config.log' for more details." >&2;}
6317 { (exit 1); exit 1; }; }
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6329 if test "${ac_cv_header_stdc+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_header_stdc=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_cv_header_stdc=no
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382 if test $ac_cv_header_stdc = yes; then
6383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 $EGREP "memchr" >/dev/null 2>&1; then
6397 ac_cv_header_stdc=no
6403 if test $ac_cv_header_stdc = yes; then
6404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415 $EGREP "free" >/dev/null 2>&1; then
6418 ac_cv_header_stdc=no
6424 if test $ac_cv_header_stdc = yes; then
6425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6426 if test "$cross_compiling" = yes; then
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6436 #if ((' ' & 0x0FF) == 0x020)
6437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6440 # define ISLOWER(c) \
6441 (('a' <= (c) && (c) <= 'i') \
6442 || ('j' <= (c) && (c) <= 'r') \
6443 || ('s' <= (c) && (c) <= 'z'))
6444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6452 for (i = 0; i < 256; i++)
6453 if (XOR (islower (i), ISLOWER (i))
6454 || toupper (i) != TOUPPER (i))
6459 rm -f conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6472 echo "$as_me: program exited with status $ac_status" >&5
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 ac_cv_header_stdc=no
6479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6484 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6485 if test $ac_cv_header_stdc = yes; then
6487 cat >>confdefs.h <<\_ACEOF
6488 #define STDC_HEADERS 1
6493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6504 inttypes.h stdint.h unistd.h
6506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 $ac_includes_default
6520 #include <$ac_header>
6522 rm -f conftest.$ac_objext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 eval "$as_ac_Header=yes"
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 eval "$as_ac_Header=no"
6551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556 cat >>confdefs.h <<_ACEOF
6557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6566 for ac_header in dlfcn.h
6568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570 echo "$as_me:$LINENO: checking for $ac_header" >&5
6571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 # Is the header compilable?
6579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 #include <$ac_header>
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest.$ac_objext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_header_compiler=yes
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_header_compiler=no
6619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6621 echo "${ECHO_T}$ac_header_compiler" >&6
6623 # Is the header present?
6624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 #include <$ac_header>
6634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } >/dev/null; then
6642 if test -s conftest.err; then
6643 ac_cpp_err=$ac_c_preproc_warn_flag
6644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6651 if test -z "$ac_cpp_err"; then
6652 ac_header_preproc=yes
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_header_preproc=no
6659 rm -f conftest.err conftest.$ac_ext
6660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6661 echo "${ECHO_T}$ac_header_preproc" >&6
6663 # So? What about this header?
6664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6670 ac_header_preproc=yes
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6687 ## ------------------------------------------ ##
6688 ## Report this to the AC_PACKAGE_NAME lists. ##
6689 ## ------------------------------------------ ##
6692 sed "s/^/$as_me: WARNING: /" >&2
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 eval "$as_ac_Header=\$ac_header_preproc"
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6716 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6718 # find the maximum length of command line arguments
6719 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6720 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6721 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 # On DJGPP, this test can blow up pretty badly due to problems in libc
6730 # (any single argument exceeding 2000 bytes causes a buffer overrun
6731 # during glob expansion). Even if it were fixed, the result of this
6732 # check would be larger than it should be.
6733 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6737 # Under GNU Hurd, this test is not required because there is
6738 # no limit to the length of command line arguments.
6739 # Libtool will interpret -1 as no limit whatsoever
6740 lt_cv_sys_max_cmd_len=-1;
6744 # On Win9x/ME, this test blows up -- it succeeds, but takes
6745 # about 5 minutes as the teststring grows exponentially.
6746 # Worse, since 9x/ME are not pre-emptively multitasking,
6747 # you end up with a "frozen" computer, even though with patience
6748 # the test eventually succeeds (with a max line length of 256k).
6749 # Instead, let's just punt: use the minimum linelength reported by
6750 # all of the supported platforms: 8192 (on NT/2K/XP).
6751 lt_cv_sys_max_cmd_len=8192;
6755 # On AmigaOS with pdksh, this test takes hours, literally.
6756 # So we just punt and use a minimum line length of 8192.
6757 lt_cv_sys_max_cmd_len=8192;
6760 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6761 # This has been around since 386BSD, at least. Likely further.
6762 if test -x /sbin/sysctl; then
6763 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6764 elif test -x /usr/sbin/sysctl; then
6765 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6769 # And add a safety zone
6770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6774 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6775 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6776 # nice to cause kernel panics so lets avoid the loop below.
6777 # First set a reasonable default.
6778 lt_cv_sys_max_cmd_len=16384
6780 if test -x /sbin/sysconfig; then
6781 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6782 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6787 # If test is not a shell built-in, we'll probably end up computing a
6788 # maximum length that is only half of the actual maximum length, but
6790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6791 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6792 = "XX$teststring") >/dev/null 2>&1 &&
6793 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6794 lt_cv_sys_max_cmd_len=$new_result &&
6795 test $i != 17 # 1/2 MB should be enough
6798 teststring=$teststring$teststring
6801 # Add a significant safety factor because C++ compilers can tack on massive
6802 # amounts of additional arguments before passing them to the linker.
6803 # It appears as though 1/2 is a usable value.
6804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6810 if test -n $lt_cv_sys_max_cmd_len ; then
6811 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6812 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6814 echo "$as_me:$LINENO: result: none" >&5
6815 echo "${ECHO_T}none" >&6
6821 # Check for command to grab the raw symbol name followed by C symbol from nm.
6822 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6823 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6824 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 # These are sane defaults that work on at least a few old systems.
6829 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6831 # Character class describing NM global symbol codes.
6832 symcode='[BCDEGRST]'
6834 # Regexp to match symbols that can be accessed directly from C.
6835 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6837 # Transform an extracted symbol line into a proper C declaration
6838 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6840 # Transform an extracted symbol line into symbol name and symbol address
6841 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'"
6843 # Define system-specific variables.
6848 cygwin* | mingw* | pw32*)
6849 symcode='[ABCDGISTW]'
6851 hpux*) # Its linker distinguishes data from code symbols
6852 if test "$host_cpu" = ia64; then
6853 symcode='[ABCDEGRST]'
6855 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6856 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'"
6859 if test "$host_cpu" = ia64; then
6860 symcode='[ABCDGIRSTW]'
6861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6862 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'"
6866 symcode='[BCDEGRST]'
6869 symcode='[BCDEGQRST]'
6879 # Handle CRLF in mingw tool chain
6883 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6887 # If we're using GNU nm, then use its standard symbol codes.
6888 case `$NM -V 2>&1` in
6889 *GNU* | *'with BFD'*)
6890 symcode='[ABCDGIRSTW]' ;;
6893 # Try without a prefix undercore, then with it.
6894 for ac_symprfx in "" "_"; do
6896 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6897 symxfrm="\\1 $ac_symprfx\\2 \\2"
6899 # Write the raw and C identifiers.
6900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902 # Check to see that the pipe works correctly.
6906 cat > conftest.$ac_ext <<EOF
6911 void nm_test_func(){}
6915 int main(){nm_test_var='a';nm_test_func();return(0);}
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; then
6923 # Now try to grab the symbols.
6925 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6926 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && test -s "$nlist"; then
6930 # Try sorting and uniquifying the output.
6931 if sort "$nlist" | uniq > "$nlist"T; then
6932 mv -f "$nlist"T "$nlist"
6937 # Make sure that we snagged all the symbols we need.
6938 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6939 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6940 cat <<EOF > conftest.$ac_ext
6946 # Now generate the symbol file.
6947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949 cat <<EOF >> conftest.$ac_ext
6950 #if defined (__STDC__) && __STDC__
6951 # define lt_ptr_t void *
6953 # define lt_ptr_t char *
6957 /* The mapping between symbol names and symbols. */
6962 lt_preloaded_symbols[] =
6965 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6966 cat <<\EOF >> conftest.$ac_ext
6974 # Now try linking the two files.
6975 mv conftest.$ac_objext conftstm.$ac_objext
6976 lt_save_LIBS="$LIBS"
6977 lt_save_CFLAGS="$CFLAGS"
6978 LIBS="conftstm.$ac_objext"
6979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6987 LIBS="$lt_save_LIBS"
6988 CFLAGS="$lt_save_CFLAGS"
6990 echo "cannot find nm_test_func in $nlist" >&5
6993 echo "cannot find nm_test_var in $nlist" >&5
6996 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999 echo "$progname: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 rm -f conftest* conftst*
7004 # Do not use the global_symbol_pipe unless it works.
7005 if test "$pipe_works" = yes; then
7008 lt_cv_sys_global_symbol_pipe=
7014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7015 lt_cv_sys_global_symbol_to_cdecl=
7017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7018 echo "$as_me:$LINENO: result: failed" >&5
7019 echo "${ECHO_T}failed" >&6
7021 echo "$as_me:$LINENO: result: ok" >&5
7022 echo "${ECHO_T}ok" >&6
7025 echo "$as_me:$LINENO: checking for objdir" >&5
7026 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7027 if test "${lt_cv_objdir+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 rm -f .libs 2>/dev/null
7031 mkdir .libs 2>/dev/null
7032 if test -d .libs; then
7035 # MS-DOS does not allow filenames that begin with a dot.
7038 rmdir .libs 2>/dev/null
7040 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7041 echo "${ECHO_T}$lt_cv_objdir" >&6
7042 objdir=$lt_cv_objdir
7050 # AIX sometimes has problems with the GCC collect2 program. For some
7051 # reason, if we set the COLLECT_NAMES environment variable, the problems
7052 # vanish in a puff of smoke.
7053 if test "X${COLLECT_NAMES+set}" != Xset; then
7055 export COLLECT_NAMES
7060 # Sed substitution that helps us do robust quoting. It backslashifies
7061 # metacharacters that are still active within double-quoted strings.
7062 Xsed='sed -e 1s/^X//'
7063 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065 # Same as above, but do not quote variable references.
7066 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068 # Sed substitution to delay expansion of an escaped shell variable in a
7069 # double_quote_subst'ed string.
7070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072 # Sed substitution to avoid accidental globbing in evaled expressions
7073 no_glob_subst='s/\*/\\\*/g'
7079 default_ofile=libtool
7080 can_build_shared=yes
7082 # All known linkers require a `.a' archive for static linking (except M$VC,
7083 # which needs '.lib').
7085 ltmain="$ac_aux_dir/ltmain.sh"
7086 ofile="$default_ofile"
7087 with_gnu_ld="$lt_cv_prog_gnu_ld"
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ar; ac_word=$2
7092 echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094 if test "${ac_cv_prog_AR+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 if test -n "$AR"; then
7098 ac_cv_prog_AR="$AR" # Let the user override the test.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_AR="${ac_tool_prefix}ar"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 if test -n "$AR"; then
7118 echo "$as_me:$LINENO: result: $AR" >&5
7119 echo "${ECHO_T}$AR" >&6
7121 echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7126 if test -z "$ac_cv_prog_AR"; then
7128 # Extract the first word of "ar", so it can be a program name with args.
7129 set dummy ar; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 if test -n "$ac_ct_AR"; then
7136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_AR="ar"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156 if test -n "$ac_ct_AR"; then
7157 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158 echo "${ECHO_T}$ac_ct_AR" >&6
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 RANLIB=$ac_cv_prog_RANLIB
7197 if test -n "$RANLIB"; then
7198 echo "$as_me:$LINENO: result: $RANLIB" >&5
7199 echo "${ECHO_T}$RANLIB" >&6
7201 echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7206 if test -z "$ac_cv_prog_RANLIB"; then
7207 ac_ct_RANLIB=$RANLIB
7208 # Extract the first word of "ranlib", so it can be a program name with args.
7209 set dummy ranlib; ac_word=$2
7210 echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 if test -n "$ac_ct_RANLIB"; then
7216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_RANLIB="ranlib"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7236 if test -n "$ac_ct_RANLIB"; then
7237 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240 echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6
7244 RANLIB=$ac_ct_RANLIB
7246 RANLIB="$ac_cv_prog_RANLIB"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}strip; ac_word=$2
7252 echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254 if test "${ac_cv_prog_STRIP+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 if test -n "$STRIP"; then
7258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 STRIP=$ac_cv_prog_STRIP
7277 if test -n "$STRIP"; then
7278 echo "$as_me:$LINENO: result: $STRIP" >&5
7279 echo "${ECHO_T}$STRIP" >&6
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7286 if test -z "$ac_cv_prog_STRIP"; then
7288 # Extract the first word of "strip", so it can be a program name with args.
7289 set dummy strip; ac_word=$2
7290 echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 if test -n "$ac_ct_STRIP"; then
7296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_STRIP="strip"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7316 if test -n "$ac_ct_STRIP"; then
7317 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7318 echo "${ECHO_T}$ac_ct_STRIP" >&6
7320 echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7326 STRIP="$ac_cv_prog_STRIP"
7331 old_CFLAGS="$CFLAGS"
7333 # Set sane defaults for various variables
7334 test -z "$AR" && AR=ar
7335 test -z "$AR_FLAGS" && AR_FLAGS=cru
7336 test -z "$AS" && AS=as
7337 test -z "$CC" && CC=cc
7338 test -z "$LTCC" && LTCC=$CC
7339 test -z "$DLLTOOL" && DLLTOOL=dlltool
7340 test -z "$LD" && LD=ld
7341 test -z "$LN_S" && LN_S="ln -s"
7342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7343 test -z "$NM" && NM=nm
7344 test -z "$SED" && SED=sed
7345 test -z "$OBJDUMP" && OBJDUMP=objdump
7346 test -z "$RANLIB" && RANLIB=:
7347 test -z "$STRIP" && STRIP=:
7348 test -z "$ac_objext" && ac_objext=o
7350 # Determine commands to create old-style static archives.
7351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7352 old_postinstall_cmds='chmod 644 $oldlib'
7353 old_postuninstall_cmds=
7355 if test -n "$RANLIB"; then
7358 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7361 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7367 for cc_temp in $compiler""; do
7369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7378 # Only perform the check for file, if the check method requires it
7379 case $deplibs_check_method in
7381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7382 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392 lt_save_MAGIC_CMD="$MAGIC_CMD"
7393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7395 for ac_dir in $ac_dummy; do
7397 test -z "$ac_dir" && ac_dir=.
7398 if test -f $ac_dir/${ac_tool_prefix}file; then
7399 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7400 if test -n "$file_magic_test_file"; then
7401 case $deplibs_check_method in
7403 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7406 $EGREP "$file_magic_regex" > /dev/null; then
7411 *** Warning: the command libtool uses to detect shared libraries,
7412 *** $file_magic_cmd, produces output that libtool cannot recognize.
7413 *** The result is that libtool may fail to recognize shared libraries
7414 *** as such. This will affect the creation of libtool libraries that
7415 *** depend on shared libraries, but programs linked with such libtool
7416 *** libraries will work regardless of this problem. Nevertheless, you
7417 *** may want to report the problem to your system manager and/or to
7418 *** bug-libtool@gnu.org
7428 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if test -n "$MAGIC_CMD"; then
7435 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7436 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7442 if test -z "$lt_cv_path_MAGIC_CMD"; then
7443 if test -n "$ac_tool_prefix"; then
7444 echo "$as_me:$LINENO: checking for file" >&5
7445 echo $ECHO_N "checking for file... $ECHO_C" >&6
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454 lt_save_MAGIC_CMD="$MAGIC_CMD"
7455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457 for ac_dir in $ac_dummy; do
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f $ac_dir/file; then
7461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7462 if test -n "$file_magic_test_file"; then
7463 case $deplibs_check_method in
7465 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468 $EGREP "$file_magic_regex" > /dev/null; then
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such. This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem. Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** bug-libtool@gnu.org
7490 MAGIC_CMD="$lt_save_MAGIC_CMD"
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7498 echo "${ECHO_T}$MAGIC_CMD" >&6
7500 echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6
7514 enable_win32_dll=yes
7516 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7517 if test "${enable_libtool_lock+set}" = set; then
7518 enableval="$enable_libtool_lock"
7521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7524 # Check whether --with-pic or --without-pic was given.
7525 if test "${with_pic+set}" = set; then
7531 test -z "$pic_mode" && pic_mode=default
7533 # Use C for the default configuration in the libtool script
7537 ac_cpp='$CPP $CPPFLAGS'
7538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 # Source file extension for C test sources.
7546 # Object file extension for compiled C test sources.
7550 # Code to be used in simple compile tests
7551 lt_simple_compile_test_code="int some_variable = 0;\n"
7553 # Code to be used in simple link tests
7554 lt_simple_link_test_code='int main(){return(0);}\n'
7557 # If no C compiler was specified, use CC.
7560 # Allow CC to be a program name with arguments.
7564 # save warnings/boilerplate of simple test code
7565 ac_outfile=conftest.$ac_objext
7566 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7568 _lt_compiler_boilerplate=`cat conftest.err`
7571 ac_outfile=conftest.$ac_objext
7572 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7574 _lt_linker_boilerplate=`cat conftest.err`
7579 # Check for any special shared library compilation flags.
7582 if test "$GCC" = no; then
7585 lt_prog_cc_shlib='-belf'
7589 if test -n "$lt_prog_cc_shlib"; then
7590 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7591 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7592 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7594 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7595 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7596 lt_cv_prog_cc_can_build_shared=no
7602 # Check to make sure the static flag actually works.
7604 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7605 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7606 if test "${lt_prog_compiler_static_works+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 lt_prog_compiler_static_works=no
7610 save_LDFLAGS="$LDFLAGS"
7611 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7612 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7614 # The compiler can only warn and ignore the option if not recognized
7615 # So say no if there are warnings
7616 if test -s conftest.err; then
7617 # Append any errors to the config.log.
7618 cat conftest.err 1>&5
7619 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7620 $SED '/^$/d' conftest.err >conftest.er2
7621 if diff conftest.exp conftest.er2 >/dev/null; then
7622 lt_prog_compiler_static_works=yes
7625 lt_prog_compiler_static_works=yes
7629 LDFLAGS="$save_LDFLAGS"
7632 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7633 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7635 if test x"$lt_prog_compiler_static_works" = xyes; then
7638 lt_prog_compiler_static=
7644 lt_prog_compiler_no_builtin_flag=
7646 if test "$GCC" = yes; then
7647 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7650 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7651 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 lt_cv_prog_compiler_rtti_exceptions=no
7656 ac_outfile=conftest.$ac_objext
7657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7658 lt_compiler_flag="-fno-rtti -fno-exceptions"
7659 # Insert the option either (1) after the last *FLAGS variable, or
7660 # (2) before a word containing "conftest.", or (3) at the end.
7661 # Note that $ac_compile itself does not contain backslashes and begins
7662 # with a dollar sign (not a hyphen), so the echo should work correctly.
7663 # The option is referenced via a variable to avoid confusing sed.
7664 lt_compile=`echo "$ac_compile" | $SED \
7665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667 -e 's:$: $lt_compiler_flag:'`
7668 (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
7669 (eval "$lt_compile" 2>conftest.err)
7671 cat conftest.err >&5
7672 echo "$as_me:7672: \$? = $ac_status" >&5
7673 if (exit $ac_status) && test -s "$ac_outfile"; then
7674 # The compiler can only warn and ignore the option if not recognized
7675 # So say no if there are warnings other than the usual output.
7676 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7677 $SED '/^$/d' conftest.err >conftest.er2
7678 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7679 lt_cv_prog_compiler_rtti_exceptions=yes
7685 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7686 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7696 lt_prog_compiler_wl=
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_static=
7700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7703 if test "$GCC" = yes; then
7704 lt_prog_compiler_wl='-Wl,'
7705 lt_prog_compiler_static='-static'
7709 # All AIX code is PIC.
7710 if test "$host_cpu" = ia64; then
7711 # AIX 5 now supports IA64 processor
7712 lt_prog_compiler_static='-Bstatic'
7717 # FIXME: we need at least 68020 code to build shared libraries, but
7718 # adding the `-m68020' flag to GCC prevents building anything better,
7720 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7724 # PIC is the default for these OSes.
7727 mingw* | pw32* | os2*)
7728 # This hack is so that the source file can tell whether it is being
7729 # built for inclusion in a dll (and should export symbols for example).
7730 lt_prog_compiler_pic='-DDLL_EXPORT'
7733 darwin* | rhapsody*)
7734 # PIC is the default on this platform
7735 # Common symbols not allowed in MH_DYLIB files
7736 lt_prog_compiler_pic='-fno-common'
7740 # Just because we use GCC doesn't mean we suddenly get shared libraries
7741 # on systems that don't support them.
7742 lt_prog_compiler_can_build_shared=no
7747 if test -d /usr/nec; then
7748 lt_prog_compiler_pic=-Kconform_pic
7753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7760 lt_prog_compiler_pic='-fPIC'
7766 lt_prog_compiler_pic='-fPIC'
7770 # PORTME Check for flag to pass linker flags through the system compiler.
7773 lt_prog_compiler_wl='-Wl,'
7774 if test "$host_cpu" = ia64; then
7775 # AIX 5 now supports IA64 processor
7776 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7782 # PIC is the default on this platform
7783 # Common symbols not allowed in MH_DYLIB files
7784 case $cc_basename in
7786 lt_prog_compiler_pic='-qnocommon'
7787 lt_prog_compiler_wl='-Wl,'
7792 mingw* | pw32* | os2*)
7793 # This hack is so that the source file can tell whether it is being
7794 # built for inclusion in a dll (and should export symbols for example).
7795 lt_prog_compiler_pic='-DDLL_EXPORT'
7798 hpux9* | hpux10* | hpux11*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7807 lt_prog_compiler_pic='+Z'
7810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7811 lt_prog_compiler_static='${wl}-a ${wl}archive'
7814 irix5* | irix6* | nonstopux*)
7815 lt_prog_compiler_wl='-Wl,'
7816 # PIC (with -KPIC) is the default.
7817 lt_prog_compiler_static='-non_shared'
7821 lt_prog_compiler_pic='-KPIC'
7822 lt_prog_compiler_static='-Bstatic'
7826 case $cc_basename in
7828 lt_prog_compiler_wl='-Wl,'
7829 lt_prog_compiler_pic='-KPIC'
7830 lt_prog_compiler_static='-static'
7832 pgcc* | pgf77* | pgf90*)
7833 # Portland Group compilers (*not* the Pentium gcc compiler,
7834 # which looks to be a dead project)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-fpic'
7837 lt_prog_compiler_static='-static'
7840 lt_prog_compiler_wl='-Wl,'
7841 # All Alpha code is PIC.
7842 lt_prog_compiler_static='-non_shared'
7847 osf3* | osf4* | osf5*)
7848 lt_prog_compiler_wl='-Wl,'
7849 # All OSF/1 code is PIC.
7850 lt_prog_compiler_static='-non_shared'
7854 lt_prog_compiler_pic='-Kpic'
7855 lt_prog_compiler_static='-dn'
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-Bstatic'
7861 case $cc_basename in
7863 lt_prog_compiler_wl='-Qoption ld ';;
7865 lt_prog_compiler_wl='-Wl,';;
7870 lt_prog_compiler_wl='-Qoption ld '
7871 lt_prog_compiler_pic='-PIC'
7872 lt_prog_compiler_static='-Bstatic'
7875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_pic='-KPIC'
7878 lt_prog_compiler_static='-Bstatic'
7882 if test -d /usr/nec ;then
7883 lt_prog_compiler_pic='-Kconform_pic'
7884 lt_prog_compiler_static='-Bstatic'
7889 lt_prog_compiler_wl='-Wl,'
7890 lt_prog_compiler_can_build_shared=no
7894 lt_prog_compiler_pic='-pic'
7895 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_can_build_shared=no
7904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7905 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7908 # Check to make sure the PIC flag actually works.
7910 if test -n "$lt_prog_compiler_pic"; then
7912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7914 if test "${lt_prog_compiler_pic_works+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 lt_prog_compiler_pic_works=no
7918 ac_outfile=conftest.$ac_objext
7919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7921 # Insert the option either (1) after the last *FLAGS variable, or
7922 # (2) before a word containing "conftest.", or (3) at the end.
7923 # Note that $ac_compile itself does not contain backslashes and begins
7924 # with a dollar sign (not a hyphen), so the echo should work correctly.
7925 # The option is referenced via a variable to avoid confusing sed.
7926 lt_compile=`echo "$ac_compile" | $SED \
7927 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929 -e 's:$: $lt_compiler_flag:'`
7930 (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931 (eval "$lt_compile" 2>conftest.err)
7933 cat conftest.err >&5
7934 echo "$as_me:7934: \$? = $ac_status" >&5
7935 if (exit $ac_status) && test -s "$ac_outfile"; then
7936 # The compiler can only warn and ignore the option if not recognized
7937 # So say no if there are warnings other than the usual output.
7938 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7939 $SED '/^$/d' conftest.err >conftest.er2
7940 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7941 lt_prog_compiler_pic_works=yes
7947 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7948 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7950 if test x"$lt_prog_compiler_pic_works" = xyes; then
7951 case $lt_prog_compiler_pic in
7953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_can_build_shared=no
7962 # For platforms which do not support PIC, -DPIC is meaningless:
7964 lt_prog_compiler_pic=
7967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7971 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 lt_cv_prog_compiler_c_o=no
7977 $rm -r conftest 2>/dev/null
7981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7983 lt_compiler_flag="-o out/conftest2.$ac_objext"
7984 # Insert the option either (1) after the last *FLAGS variable, or
7985 # (2) before a word containing "conftest.", or (3) at the end.
7986 # Note that $ac_compile itself does not contain backslashes and begins
7987 # with a dollar sign (not a hyphen), so the echo should work correctly.
7988 lt_compile=`echo "$ac_compile" | $SED \
7989 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991 -e 's:$: $lt_compiler_flag:'`
7992 (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993 (eval "$lt_compile" 2>out/conftest.err)
7995 cat out/conftest.err >&5
7996 echo "$as_me:7996: \$? = $ac_status" >&5
7997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999 # The compiler can only warn and ignore the option if not recognized
8000 # So say no if there are warnings
8001 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8002 $SED '/^$/d' out/conftest.err >out/conftest.er2
8003 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8004 lt_cv_prog_compiler_c_o=yes
8009 # SGI C++ compiler will create directory out/ii_files/ for
8010 # template instantiation
8011 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8012 $rm out/* && rmdir out
8018 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8019 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8022 hard_links="nottested"
8023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8024 # do not overwrite the value of need_locks provided by the user
8025 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8026 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031 ln conftest.a conftest.b 2>&5 || hard_links=no
8032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8033 echo "$as_me:$LINENO: result: $hard_links" >&5
8034 echo "${ECHO_T}$hard_links" >&6
8035 if test "$hard_links" = no; then
8036 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8037 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8044 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8048 allow_undefined_flag=
8049 enable_shared_with_static_runtimes=no
8051 archive_expsym_cmds=
8052 old_archive_From_new_cmds=
8053 old_archive_from_expsyms_cmds=
8054 export_dynamic_flag_spec=
8055 whole_archive_flag_spec=
8056 thread_safe_flag_spec=
8057 hardcode_libdir_flag_spec=
8058 hardcode_libdir_flag_spec_ld=
8059 hardcode_libdir_separator=
8062 hardcode_shlibpath_var=unsupported
8063 link_all_deplibs=unknown
8064 hardcode_automatic=no
8067 always_export_symbols=no
8068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8069 # include_expsyms should be a list of space-separated symbols to be *always*
8070 # included in the symbol list
8072 # exclude_expsyms can be an extended regexp of symbols to exclude
8073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8075 # as well as any symbol that contains `d'.
8076 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8078 # platforms (ab)use it in PIC code, but their linkers get confused if
8079 # the symbol is explicitly referenced. Since portable code cannot
8080 # rely on this symbol name, it's probably fine to never include it in
8081 # preloaded symbol tables.
8082 extract_expsyms_cmds=
8083 # Just being paranoid about ensuring that cc_basename is set.
8084 for cc_temp in $compiler""; do
8086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8095 cygwin* | mingw* | pw32*)
8096 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8097 # When not using gcc, we currently assume that we are using
8098 # Microsoft Visual C++.
8099 if test "$GCC" != yes; then
8109 if test "$with_gnu_ld" = yes; then
8110 # If archive_cmds runs LD, not CC, wlarc should be empty
8113 # Set some defaults for GNU ld with shared library support. These
8114 # are reset later if shared libraries are not supported. Putting them
8115 # here allows them to be overridden if necessary.
8116 runpath_var=LD_RUN_PATH
8117 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8118 export_dynamic_flag_spec='${wl}--export-dynamic'
8119 # ancient GNU ld didn't support --whole-archive et. al.
8120 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123 whole_archive_flag_spec=
8125 supports_anon_versioning=no
8126 case `$LD -v 2>/dev/null` in
8127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8130 *\ 2.11.*) ;; # other 2.11 versions
8131 *) supports_anon_versioning=yes ;;
8134 # See if GNU ld supports shared libraries.
8136 aix3* | aix4* | aix5*)
8137 # On AIX/PPC, the GNU linker is very broken
8138 if test "$host_cpu" != ia64; then
8142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8143 *** to be unable to reliably create shared libraries on AIX.
8144 *** Therefore, libtool is disabling shared libraries support. If you
8145 *** really care for shared libraries, you may want to modify your PATH
8146 *** so that a non-GNU linker is found, and then restart.
8153 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)'
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_minus_L=yes
8157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8158 # that the semantics of dynamic libraries on AmigaOS, at least up
8159 # to version 4, is to share data among multiple programs linked
8160 # with the same dynamic library. Since this doesn't match the
8161 # behavior of shared libraries on other platforms, we can't use
8167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168 allow_undefined_flag=unsupported
8169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8170 # support --undefined. This deserves some investigation. FIXME
8171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177 cygwin* | mingw* | pw32*)
8178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8179 # as there is no search path for DLLs.
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 allow_undefined_flag=unsupported
8182 always_export_symbols=no
8183 enable_shared_with_static_runtimes=yes
8184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8188 # If the export-symbols file already is a .def file (1st line
8189 # is EXPORTS), use it as is; otherwise, prepend...
8190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8191 cp $export_symbols $output_objdir/$soname.def;
8193 echo EXPORTS > $output_objdir/$soname.def;
8194 cat $export_symbols >> $output_objdir/$soname.def;
8196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205 case $cc_basename,$host_cpu in
8206 pgcc*) # Portland Group C compiler
8207 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'
8208 tmp_addflag=' $pic_flag'
8210 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8211 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'
8212 tmp_addflag=' $pic_flag -Mnomain' ;;
8213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8214 tmp_addflag=' -i_dynamic' ;;
8215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8216 tmp_addflag=' -i_dynamic -nofor_main' ;;
8217 ifc* | ifort*) # Intel Fortran compiler
8218 tmp_addflag=' -nofor_main' ;;
8220 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222 if test $supports_anon_versioning = yes; then
8223 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8225 $echo "local: *; };" >> $output_objdir/$libname.ver~
8226 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8249 *** create shared libraries on Solaris systems. Therefore, libtool
8250 *** is disabling shared libraries support. We urge you to upgrade GNU
8251 *** binutils to release 2.9.1 or newer. Another option is to modify
8252 *** your PATH or compiler configuration so that the native linker is
8253 *** used, and then restart.
8256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_shlibpath_var=no
8272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281 if test "$ld_shlibs" = no; then
8283 hardcode_libdir_flag_spec=
8284 export_dynamic_flag_spec=
8285 whole_archive_flag_spec=
8288 # PORTME fill in a description of your system's linker (not GNU ld)
8291 allow_undefined_flag=unsupported
8292 always_export_symbols=yes
8293 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'
8294 # Note: this linker hardcodes the directories in LIBPATH if there
8295 # are no directories specified by -L.
8296 hardcode_minus_L=yes
8297 if test "$GCC" = yes && test -z "$link_static_flag"; then
8298 # Neither direct hardcoding nor static linking is supported with a
8300 hardcode_direct=unsupported
8305 if test "$host_cpu" = ia64; then
8306 # On IA64, the linker does run time linking by default, so we don't
8307 # have to do anything special.
8308 aix_use_runtimelinking=no
8309 exp_sym_flag='-Bexport'
8312 # If we're using GNU nm, then we don't want the "-C" option.
8313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8314 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8315 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'
8317 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'
8319 aix_use_runtimelinking=no
8321 # Test if we are trying to use run time linking or normal
8322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8323 # need to do runtime linking.
8324 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8325 for ld_flag in $LDFLAGS; do
8326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8327 aix_use_runtimelinking=yes
8333 exp_sym_flag='-bexport'
8334 no_entry_flag='-bnoentry'
8337 # When large executables or shared objects are built, AIX ld can
8338 # have problems creating the table of contents. If linking a library
8339 # or program results in "error TOC overflow" add -mminimal-toc to
8340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8345 hardcode_libdir_separator=':'
8346 link_all_deplibs=yes
8348 if test "$GCC" = yes; then
8349 case $host_os in aix4.[012]|aix4.[012].*)
8350 # We only want to do this on AIX 4.2 and lower, the check
8351 # below for broken collect2 doesn't work under 4.3+
8352 collect2name=`${CC} -print-prog-name=collect2`
8353 if test -f "$collect2name" && \
8354 strings "$collect2name" | grep resolve_lib_name >/dev/null
8356 # We have reworked collect2
8359 # We have old collect2
8360 hardcode_direct=unsupported
8361 # It fails to find uninstalled libraries when the uninstalled
8362 # path is not listed in the libpath. Setting hardcode_minus_L
8363 # to unsupported forces relinking
8364 hardcode_minus_L=yes
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_libdir_separator=
8369 shared_flag='-shared'
8370 if test "$aix_use_runtimelinking" = yes; then
8371 shared_flag="$shared_flag "'${wl}-G'
8375 if test "$host_cpu" = ia64; then
8376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8377 # chokes on -Wl,-G. The following line is correct:
8380 if test "$aix_use_runtimelinking" = yes; then
8381 shared_flag='${wl}-G'
8383 shared_flag='${wl}-bM:SRE'
8388 # It seems that -bexpall does not export symbols beginning with
8389 # underscore (_), so it is better to generate a list of symbols to export.
8390 always_export_symbols=yes
8391 if test "$aix_use_runtimelinking" = yes; then
8392 # Warning - without using the other runtime loading flags (-brtl),
8393 # -berok will link without error, but may produce a broken library.
8394 allow_undefined_flag='-berok'
8395 # Determine the default libpath from the value encoded in an empty executable.
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag"
8421 || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest$ac_exeext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8436 # Check for a 64-bit object if we didn't find anything.
8437 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; }
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8444 rm -f conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8449 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"
8451 if test "$host_cpu" = ia64; then
8452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8453 allow_undefined_flag="-z nodefs"
8454 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"
8456 # Determine the default libpath from the value encoded in an empty executable.
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474 (eval $ac_link) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8497 # Check for a 64-bit object if we didn't find anything.
8498 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; }
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8505 rm -f conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8510 # Warning - without using the other run time loading flags,
8511 # -berok will link without error, but may produce a broken library.
8512 no_undefined_flag=' ${wl}-bernotok'
8513 allow_undefined_flag=' ${wl}-berok'
8514 # -bexpall does not export symbols beginning with underscore (_)
8515 always_export_symbols=yes
8516 # Exported symbols can be pulled into shared objects from archives
8517 whole_archive_flag_spec=' '
8518 archive_cmds_need_lc=yes
8519 # This is similar to how AIX traditionally builds it's shared libraries.
8520 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'
8526 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)'
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 hardcode_minus_L=yes
8529 # see comment about different semantics on the GNU ld section
8534 export_dynamic_flag_spec=-rdynamic
8537 cygwin* | mingw* | pw32*)
8538 # When not using gcc, we currently assume that we are using
8539 # Microsoft Visual C++.
8540 # hardcode_libdir_flag_spec is actually meaningless, as there is
8541 # no search path for DLLs.
8542 hardcode_libdir_flag_spec=' '
8543 allow_undefined_flag=unsupported
8544 # Tell ltmain to make .lib files, not .a files.
8546 # Tell ltmain to make .dll files, not .so files.
8548 # FIXME: Setting linknames here is a bad hack.
8549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8550 # The linker will automatically build a .lib file if we build a DLL.
8551 old_archive_From_new_cmds='true'
8552 # FIXME: Should let the user specify the lib program.
8553 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8554 fix_srcfile_path='`cygpath -w "$srcfile"`'
8555 enable_shared_with_static_runtimes=yes
8558 darwin* | rhapsody*)
8560 rhapsody* | darwin1.[012])
8561 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8564 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8565 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8567 case ${MACOSX_DEPLOYMENT_TARGET} in
8569 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8578 archive_cmds_need_lc=no
8580 hardcode_automatic=yes
8581 hardcode_shlibpath_var=unsupported
8582 whole_archive_flag_spec=''
8583 link_all_deplibs=yes
8584 if test "$GCC" = yes ; then
8585 output_verbose_link_cmd='echo'
8586 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8587 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8589 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}'
8590 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}'
8592 case $cc_basename in
8594 output_verbose_link_cmd='echo'
8595 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8596 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8598 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}'
8599 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}'
8609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_shlibpath_var=no
8618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8619 # support. Future versions do this automatically, but an explicit c++rt0.o
8620 # does not break anything, and helps significantly (at the cost of a little
8623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8624 hardcode_libdir_flag_spec='-R$libdir'
8626 hardcode_shlibpath_var=no
8629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_minus_L=yes
8634 hardcode_shlibpath_var=no
8637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8638 freebsd* | kfreebsd*-gnu | dragonfly*)
8639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8640 hardcode_libdir_flag_spec='-R$libdir'
8642 hardcode_shlibpath_var=no
8646 if test "$GCC" = yes; then
8647 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'
8649 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'
8651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8652 hardcode_libdir_separator=:
8655 # hardcode_minus_L: Not really in the search PATH,
8656 # but as the default location of the library.
8657 hardcode_minus_L=yes
8658 export_dynamic_flag_spec='${wl}-E'
8662 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8674 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8681 if test "$with_gnu_ld" = no; then
8684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685 hardcode_libdir_flag_spec_ld='+b $libdir'
8686 hardcode_libdir_separator=:
8688 hardcode_shlibpath_var=no
8691 hardcode_libdir_flag_spec='-L$libdir'
8693 hardcode_shlibpath_var=no
8695 # hardcode_minus_L: Not really in the search PATH,
8696 # but as the default location of the library.
8697 hardcode_minus_L=yes
8700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8701 hardcode_libdir_separator=:
8703 export_dynamic_flag_spec='${wl}-E'
8705 # hardcode_minus_L: Not really in the search PATH,
8706 # but as the default location of the library.
8707 hardcode_minus_L=yes
8713 irix5* | irix6* | nonstopux*)
8714 if test "$GCC" = yes; then
8715 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'
8717 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'
8718 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721 hardcode_libdir_separator=:
8722 link_all_deplibs=yes
8726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8731 hardcode_libdir_flag_spec='-R$libdir'
8733 hardcode_shlibpath_var=no
8737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 hardcode_libdir_separator=:
8741 hardcode_shlibpath_var=no
8746 hardcode_shlibpath_var=no
8747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751 export_dynamic_flag_spec='${wl}-E'
8754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_libdir_flag_spec='-R$libdir'
8759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767 hardcode_libdir_flag_spec='-L$libdir'
8768 hardcode_minus_L=yes
8769 allow_undefined_flag=unsupported
8770 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'
8771 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8775 if test "$GCC" = yes; then
8776 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8777 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'
8779 allow_undefined_flag=' -expect_unresolved \*'
8780 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'
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 hardcode_libdir_separator=:
8786 osf4* | osf5*) # as osf3* with the addition of -msym flag
8787 if test "$GCC" = yes; then
8788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8789 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'
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 allow_undefined_flag=' -expect_unresolved \*'
8793 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'
8794 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8795 $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'
8797 # Both c and cxx compiler support -rpath directly
8798 hardcode_libdir_flag_spec='-rpath $libdir'
8800 hardcode_libdir_separator=:
8804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805 hardcode_shlibpath_var=no
8806 export_dynamic_flag_spec='${wl}-Bexport'
8807 runpath_var=LD_RUN_PATH
8808 hardcode_runpath_var=yes
8812 no_undefined_flag=' -z text'
8813 if test "$GCC" = yes; then
8815 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8817 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824 hardcode_libdir_flag_spec='-R$libdir'
8825 hardcode_shlibpath_var=no
8827 solaris2.[0-5] | solaris2.[0-5].*) ;;
8829 # The compiler driver will combine linker options so we
8830 # cannot just pass the convience library names through
8831 # without $wl, iff we do not link with $LD.
8832 # Luckily, gcc supports the same syntax we need for Sun Studio.
8833 # Supported since Solaris 2.6 (maybe 2.5.1?)
8836 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8838 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' ;;
8841 link_all_deplibs=yes
8845 if test "x$host_vendor" = xsequent; then
8846 # Use $CC to link under sequent, because it throws in some extra .o
8847 # files that make .init and .fini sections work.
8848 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852 hardcode_libdir_flag_spec='-L$libdir'
8854 hardcode_minus_L=yes
8855 hardcode_shlibpath_var=no
8859 case $host_vendor in
8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_direct=yes # is this really true???
8865 ## LD is ld it makes a PLAMLIB
8866 ## CC just makes a GrossModule.
8867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8868 reload_cmds='$CC -r -o $output$reload_objs'
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876 runpath_var='LD_RUN_PATH'
8877 hardcode_shlibpath_var=no
8881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882 hardcode_shlibpath_var=no
8883 export_dynamic_flag_spec='-Bexport'
8887 if test -d /usr/nec; then
8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_shlibpath_var=no
8890 runpath_var=LD_RUN_PATH
8891 hardcode_runpath_var=yes
8897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_shlibpath_var=no
8901 hardcode_runpath_var=yes
8902 runpath_var=LD_RUN_PATH
8905 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8906 no_undefined_flag='${wl}-z ${wl}text'
8907 if test "$GCC" = yes; then
8908 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 runpath_var='LD_RUN_PATH'
8913 hardcode_shlibpath_var=no
8917 no_undefined_flag=' -z text'
8918 # $CC -shared without GNU ld will not create a library from C++
8919 # object files and a static libstdc++, better avoid it by now
8920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8923 hardcode_libdir_flag_spec=
8924 hardcode_shlibpath_var=no
8925 runpath_var='LD_RUN_PATH'
8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930 hardcode_libdir_flag_spec='-L$libdir'
8931 hardcode_shlibpath_var=no
8940 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8941 echo "${ECHO_T}$ld_shlibs" >&6
8942 test "$ld_shlibs" = no && can_build_shared=no
8944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8945 if test "$GCC" = yes; then
8946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8950 # Do we need to explicitly link libc?
8952 case "x$archive_cmds_need_lc" in
8954 # Assume -lc should be added
8955 archive_cmds_need_lc=yes
8957 if test "$enable_shared" = yes && test "$GCC" = yes; then
8958 case $archive_cmds in
8960 # FIXME: we may have to deal with multi-command sequences.
8963 # Test whether the compiler implicitly links with -lc since on some
8964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8965 # to ld, don't add -lc before -lgcc.
8966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } 2>conftest.err; then
8978 libobjs=conftest.$ac_objext
8980 wl=$lt_prog_compiler_wl
8986 lt_save_allow_undefined_flag=$allow_undefined_flag
8987 allow_undefined_flag=
8988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8989 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }
8994 archive_cmds_need_lc=no
8996 archive_cmds_need_lc=yes
8998 allow_undefined_flag=$lt_save_allow_undefined_flag
9000 cat conftest.err 1>&5
9003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9004 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9011 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9012 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9014 libname_spec='lib$name'
9022 shlibpath_overrides_runpath=unknown
9024 dynamic_linker="$host_os ld.so"
9025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9026 if test "$GCC" = yes; then
9027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9029 # if the path contains ";" then we assume it to be the separator
9030 # otherwise default to the standard path separator (i.e. ":") - it is
9031 # assumed that no part of a normal pathname contains ";" but that should
9032 # okay in the real world where ";" in dirpaths is itself problematic.
9033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9040 need_lib_prefix=unknown
9041 hardcode_into_libs=no
9043 # when you set need_version to no, make sure it does not cause -set_version
9044 # flags to be left without arguments
9045 need_version=unknown
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051 shlibpath_var=LIBPATH
9053 # AIX 3 has no versioning support, so we append a major version to the name.
9054 soname_spec='${libname}${release}${shared_ext}$major'
9061 hardcode_into_libs=yes
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 supports IA64
9064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9067 # With GCC up to 2.95.x, collect2 would create an import file
9068 # for dependence libraries. The import file would start with
9069 # the line `#! .'. This would cause the generated library to
9070 # depend on `.', always an invalid library. This was fixed in
9071 # development snapshots of GCC prior to 3.0.
9073 aix4 | aix4.[01] | aix4.[01].*)
9074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084 # soname into executable. Probably we can add versioning support to
9085 # collect2, so additional links can be useful in future.
9086 if test "$aix_use_runtimelinking" = yes; then
9087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088 # instead of lib<name>.a to let people know that these are not
9089 # typical AIX shared libraries.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 # We preserve .a as extension for shared libraries through AIX4.2
9093 # and later when we are not doing run time linking.
9094 library_names_spec='${libname}${release}.a $libname.a'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LIBPATH
9102 library_names_spec='$libname.ixlibrary $libname.a'
9103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9104 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'
9108 library_names_spec='${libname}${shared_ext}'
9109 dynamic_linker="$host_os ld.so"
9110 shlibpath_var=LIBRARY_PATH
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9122 # the default ld.so.conf also contains /usr/contrib/lib and
9123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9124 # libtool to hard-code these into programs
9127 cygwin* | mingw* | pw32*)
9128 version_type=windows
9133 case $GCC,$host_os in
9134 yes,cygwin* | yes,mingw* | yes,pw32*)
9135 library_names_spec='$libname.dll.a'
9136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9137 postinstall_cmds='base_file=`basename \${file}`~
9138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9139 dldir=$destdir/`dirname \$dlpath`~
9140 test -d \$dldir || mkdir -p \$dldir~
9141 $install_prog $dir/$dlname \$dldir/$dlname'
9142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143 dlpath=$dir/\$dldll~
9145 shlibpath_overrides_runpath=yes
9149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9154 # MinGW DLLs use traditional 'lib' prefix
9155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158 # It is most probably a Windows format PATH printed by
9159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160 # path with ; separators, and with drive letters. We can handle the
9161 # drive letters (cygwin fileutils understands them), so leave them,
9162 # especially as we might pass files found there to a mingw objdump,
9163 # which wouldn't understand a cygwinified path. Ahh.
9164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9170 # pw32 DLLs use 'pw' prefix rather than 'lib'
9171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9180 dynamic_linker='Win32 ld.exe'
9181 # FIXME: first we should search . and the directory the executable is in
9185 darwin* | rhapsody*)
9186 dynamic_linker="$host_os dyld"
9190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191 soname_spec='${libname}${release}${major}$shared_ext'
9192 shlibpath_overrides_runpath=yes
9193 shlibpath_var=DYLD_LIBRARY_PATH
9194 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9196 if test "$GCC" = yes; then
9197 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"`
9199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=no
9225 hardcode_into_libs=yes
9226 dynamic_linker='GNU ld.so'
9229 freebsd* | dragonfly*)
9230 # DragonFly does not have aout. When/if they implement a new
9231 # versioning mechanism, adjust this.
9232 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9233 version_type=freebsd-$objformat
9234 case $version_type in
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9245 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9250 freebsd3.[01]* | freebsdelf3.[01]*)
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9255 shlibpath_overrides_runpath=no
9256 hardcode_into_libs=yes
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 hardcode_into_libs=yes
9271 hpux9* | hpux10* | hpux11*)
9272 # Give a soname corresponding to the major version so that dld.sl refuses to
9273 # link against other versions.
9280 hardcode_into_libs=yes
9281 dynamic_linker="$host_os dld.so"
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 if test "X$HPUX_IA64_MODE" = X32; then
9287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9295 hardcode_into_libs=yes
9296 dynamic_linker="$host_os dld.sl"
9297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9306 dynamic_linker="$host_os dld.sl"
9307 shlibpath_var=SHLIB_PATH
9308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314 postinstall_cmds='chmod 555 $lib'
9317 irix5* | irix6* | nonstopux*)
9319 nonstopux*) version_type=nonstopux ;;
9321 if test "$lt_cv_prog_gnu_ld" = yes; then
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9332 irix5* | nonstopux*)
9336 case $LD in # libtool.m4 will add one of these switches to LD
9337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9338 libsuff= shlibsuff= libmagic=32-bit;;
9339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9340 libsuff=32 shlibsuff=N32 libmagic=N32;;
9341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9343 *) libsuff= shlibsuff= libmagic=never-match;;
9347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9348 shlibpath_overrides_runpath=no
9349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9351 hardcode_into_libs=yes
9354 # No shared lib support for Linux oldld, aout, or coff.
9355 linux*oldld* | linux*aout* | linux*coff*)
9359 # This must be Linux ELF.
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=no
9369 # This implies no fast_install, which is unacceptable.
9370 # Some rework will be needed to allow for fast_install
9371 # before this can be enabled.
9372 hardcode_into_libs=yes
9374 # Append ld.so.conf contents to the search path
9375 if test -f /etc/ld.so.conf; then
9376 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' ' '`
9377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9380 # We used to test for /lib/ld.so.1 and disable shared libraries on
9381 # powerpc, because MkLinux only supported shared libraries with the
9382 # GNU dynamic linker. Since this was broken with cross compilers,
9383 # most powerpc-linux boxes support dynamic linking these days and
9384 # people can always --disable-shared, the test was removed, and we
9385 # assume the GNU/Linux dynamic linker is in use.
9386 dynamic_linker='GNU/Linux ld.so'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=no
9397 hardcode_into_libs=yes
9398 dynamic_linker='GNU ld.so'
9405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9408 dynamic_linker='NetBSD (a.out) ld.so'
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 dynamic_linker='NetBSD ld.elf_so'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=yes
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=yes
9439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9442 *) need_version=no ;;
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9449 openbsd2.[89] | openbsd2.[89].*)
9450 shlibpath_overrides_runpath=no
9453 shlibpath_overrides_runpath=yes
9457 shlibpath_overrides_runpath=yes
9462 libname_spec='$name'
9465 library_names_spec='$libname${shared_ext} $libname.a'
9466 dynamic_linker='OS/2 ld.exe'
9467 shlibpath_var=LIBPATH
9470 osf3* | osf4* | osf5*)
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9496 hardcode_into_libs=yes
9497 # ldd complains unless libraries are executable
9498 postinstall_cmds='chmod +x $lib'
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 if test "$with_gnu_ld" = yes; then
9513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 case $host_vendor in
9520 shlibpath_overrides_runpath=no
9522 export_dynamic_flag_spec='${wl}-Blargedynsym'
9523 runpath_var=LD_RUN_PATH
9531 shlibpath_overrides_runpath=no
9532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9538 if test -d /usr/nec ;then
9540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9541 soname_spec='$libname${shared_ext}.$major'
9542 shlibpath_var=LD_LIBRARY_PATH
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9557 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9558 echo "${ECHO_T}$dynamic_linker" >&6
9559 test "$dynamic_linker" = no && can_build_shared=no
9561 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565 test -n "$runpath_var" || \
9566 test "X$hardcode_automatic" = "Xyes" ; then
9568 # We can hardcode non-existant directories.
9569 if test "$hardcode_direct" != no &&
9570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571 # have to relink, otherwise we might link with an installed library
9572 # when we should be linking with a yet-to-be-installed one
9573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574 test "$hardcode_minus_L" != no; then
9575 # Linking always hardcodes the temporary library directory.
9576 hardcode_action=relink
9578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579 hardcode_action=immediate
9582 # We cannot hardcode anything, or else we can only hardcode existing
9584 hardcode_action=unsupported
9586 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6
9589 if test "$hardcode_action" = relink; then
9590 # Fast installation is not supported
9591 enable_fast_install=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593 test "$enable_shared" = no; then
9594 # Fast installation is not necessary
9595 enable_fast_install=needless
9600 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9602 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9603 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9604 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9605 echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6
9608 # FIXME - insert some real tests, host_os isn't really good enough
9611 if test -n "$STRIP" ; then
9612 striplib="$STRIP -x"
9613 echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6
9616 echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9621 echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6
9627 if test "x$enable_dlopen" != xyes; then
9628 enable_dlopen=unknown
9629 enable_dlopen_self=unknown
9630 enable_dlopen_self_static=unknown
9637 lt_cv_dlopen="load_add_on"
9639 lt_cv_dlopen_self=yes
9643 lt_cv_dlopen="LoadLibrary"
9648 lt_cv_dlopen="dlopen"
9653 # if libdl is installed we need to link against it
9654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_check_lib_save_LIBS=$LIBS
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_dl_dlopen=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_dl_dlopen=no
9712 rm -f conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9718 if test $ac_cv_lib_dl_dlopen = yes; then
9719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9724 lt_cv_dlopen_self=yes
9731 echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744 #define shl_load innocuous_shl_load
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char shl_load (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9752 # include <limits.h>
9754 # include <assert.h>
9759 /* Override any gcc2 internal prototype to avoid an error. */
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9773 char (*f) () = shl_load;
9782 return f != shl_load;
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_func_shl_load=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_func_shl_load=no
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9819 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9821 if test $ac_cv_func_shl_load = yes; then
9822 lt_cv_dlopen="shl_load"
9824 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_lib_dld_shl_load=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_dld_shl_load=no
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9886 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9888 if test $ac_cv_lib_dld_shl_load = yes; then
9889 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9891 echo "$as_me:$LINENO: checking for dlopen" >&5
9892 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9893 if test "${ac_cv_func_dlopen+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define dlopen innocuous_dlopen
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char dlopen (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9912 # include <limits.h>
9914 # include <assert.h>
9919 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9933 char (*f) () = dlopen;
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_dlopen=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_func_dlopen=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9980 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9981 if test $ac_cv_func_dlopen = yes; then
9982 lt_cv_dlopen="dlopen"
9984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_lib_dl_dlopen=yes
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_cv_lib_dl_dlopen=no
10042 rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10048 if test $ac_cv_lib_dl_dlopen = yes; then
10049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10051 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10052 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10053 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-lsvld $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_lib_svld_dlopen=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_cv_lib_svld_dlopen=no
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10115 if test $ac_cv_lib_svld_dlopen = yes; then
10116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10118 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10119 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10120 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 ac_check_lib_save_LIBS=$LIBS
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10132 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149 (eval $ac_link) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag"
10157 || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lib_dld_dld_link=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_lib_dld_dld_link=no
10176 rm -f conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10204 if test "x$lt_cv_dlopen" != xno; then
10210 case $lt_cv_dlopen in
10212 save_CPPFLAGS="$CPPFLAGS"
10213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10215 save_LDFLAGS="$LDFLAGS"
10216 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10219 LIBS="$lt_cv_dlopen_libs $LIBS"
10221 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10222 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10223 if test "${lt_cv_dlopen_self+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 if test "$cross_compiling" = yes; then :
10227 lt_cv_dlopen_self=cross
10229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10230 lt_status=$lt_dlunknown
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10232 "configure"
10233 #include "confdefs.h"
10242 # define LT_DLGLOBAL RTLD_GLOBAL
10245 # define LT_DLGLOBAL DL_GLOBAL
10247 # define LT_DLGLOBAL 0
10251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10252 find out it does not work in some platform. */
10253 #ifndef LT_DLLAZY_OR_NOW
10255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10258 # define LT_DLLAZY_OR_NOW DL_LAZY
10261 # define LT_DLLAZY_OR_NOW RTLD_NOW
10264 # define LT_DLLAZY_OR_NOW DL_NOW
10266 # define LT_DLLAZY_OR_NOW 0
10274 extern "C" void exit (int);
10277 void fnord() { int i=42;}
10280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10281 int status = $lt_dlunknown;
10285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10287 /* dlclose (self); */
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10298 (./conftest; exit; ) 2>/dev/null
10300 case x$lt_status in
10301 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10302 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10303 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10306 # compilation failed
10307 lt_cv_dlopen_self=no
10314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10315 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10317 if test "x$lt_cv_dlopen_self" = xyes; then
10318 LDFLAGS="$LDFLAGS $link_static_flag"
10319 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10320 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10321 if test "${lt_cv_dlopen_self_static+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 if test "$cross_compiling" = yes; then :
10325 lt_cv_dlopen_self_static=cross
10327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328 lt_status=$lt_dlunknown
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10330 "configure"
10331 #include "confdefs.h"
10340 # define LT_DLGLOBAL RTLD_GLOBAL
10343 # define LT_DLGLOBAL DL_GLOBAL
10345 # define LT_DLGLOBAL 0
10349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350 find out it does not work in some platform. */
10351 #ifndef LT_DLLAZY_OR_NOW
10353 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10356 # define LT_DLLAZY_OR_NOW DL_LAZY
10359 # define LT_DLLAZY_OR_NOW RTLD_NOW
10362 # define LT_DLLAZY_OR_NOW DL_NOW
10364 # define LT_DLLAZY_OR_NOW 0
10372 extern "C" void exit (int);
10375 void fnord() { int i=42;}
10378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379 int status = $lt_dlunknown;
10383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385 /* dlclose (self); */
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10396 (./conftest; exit; ) 2>/dev/null
10398 case x$lt_status in
10399 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10400 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10401 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10404 # compilation failed
10405 lt_cv_dlopen_self_static=no
10412 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10413 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10416 CPPFLAGS="$save_CPPFLAGS"
10417 LDFLAGS="$save_LDFLAGS"
10422 case $lt_cv_dlopen_self in
10423 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10424 *) enable_dlopen_self=unknown ;;
10427 case $lt_cv_dlopen_self_static in
10428 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10429 *) enable_dlopen_self_static=unknown ;;
10434 # Report which librarie types wil actually be built
10435 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10436 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10437 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10438 echo "${ECHO_T}$can_build_shared" >&6
10440 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10441 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10442 test "$can_build_shared" = "no" && enable_shared=no
10444 # On AIX, shared libraries and static libraries use the same namespace, and
10445 # are all built from PIC.
10448 test "$enable_shared" = yes && enable_static=no
10449 if test -n "$RANLIB"; then
10450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10451 postinstall_cmds='$RANLIB $lib'
10456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10457 test "$enable_shared" = yes && enable_static=no
10461 echo "$as_me:$LINENO: result: $enable_shared" >&5
10462 echo "${ECHO_T}$enable_shared" >&6
10464 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10465 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10466 # Make sure either enable_shared or enable_static is yes.
10467 test "$enable_shared" = yes || enable_static=yes
10468 echo "$as_me:$LINENO: result: $enable_static" >&5
10469 echo "${ECHO_T}$enable_static" >&6
10471 # The else clause should only fire when bootstrapping the
10472 # libtool distribution, otherwise you forgot to ship ltmain.sh
10473 # with your package, and you will get complaints that there are
10474 # no rules to generate ltmain.sh.
10475 if test -f "$ltmain"; then
10476 # See if we are running on zsh, and set the options which allow our commands through
10477 # without removal of \ escapes.
10478 if test -n "${ZSH_VERSION+set}" ; then
10479 setopt NO_GLOB_SUBST
10481 # Now quote all the things that may contain metacharacters while being
10482 # careful not to overquote the AC_SUBSTed values. We take copies of the
10483 # variables and quote the copies for generation of the libtool script.
10484 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10486 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10487 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10488 deplibs_check_method reload_flag reload_cmds need_locks \
10489 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10490 lt_cv_sys_global_symbol_to_c_name_address \
10491 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10492 old_postinstall_cmds old_postuninstall_cmds \
10496 lt_prog_compiler_wl \
10497 lt_prog_compiler_pic \
10498 lt_prog_compiler_static \
10499 lt_prog_compiler_no_builtin_flag \
10500 export_dynamic_flag_spec \
10501 thread_safe_flag_spec \
10502 whole_archive_flag_spec \
10503 enable_shared_with_static_runtimes \
10505 old_archive_from_new_cmds \
10510 compiler_lib_search_path \
10512 archive_expsym_cmds \
10514 postuninstall_cmds \
10515 old_archive_from_expsyms_cmds \
10516 allow_undefined_flag \
10517 no_undefined_flag \
10518 export_symbols_cmds \
10519 hardcode_libdir_flag_spec \
10520 hardcode_libdir_flag_spec_ld \
10521 hardcode_libdir_separator \
10522 hardcode_automatic \
10524 module_expsym_cmds \
10525 lt_cv_prog_compiler_c_o \
10527 include_expsyms; do
10530 old_archive_cmds | \
10531 old_archive_from_new_cmds | \
10533 archive_expsym_cmds | \
10535 module_expsym_cmds | \
10536 old_archive_from_expsyms_cmds | \
10537 export_symbols_cmds | \
10538 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10539 postinstall_cmds | postuninstall_cmds | \
10540 old_postinstall_cmds | old_postuninstall_cmds | \
10541 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10542 # Double-quote double-evaled strings.
10543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10552 *'\$0 --fallback-echo"')
10553 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10557 cfgfile="${ofile}T"
10558 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10560 { echo "$as_me:$LINENO: creating $ofile" >&5
10561 echo "$as_me: creating $ofile" >&6;}
10563 cat <<__EOF__ >> "$cfgfile"
10566 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10567 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10568 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10570 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10571 # Free Software Foundation, Inc.
10573 # This file is part of GNU Libtool:
10574 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10576 # This program is free software; you can redistribute it and/or modify
10577 # it under the terms of the GNU General Public License as published by
10578 # the Free Software Foundation; either version 2 of the License, or
10579 # (at your option) any later version.
10581 # This program is distributed in the hope that it will be useful, but
10582 # WITHOUT ANY WARRANTY; without even the implied warranty of
10583 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10584 # General Public License for more details.
10586 # You should have received a copy of the GNU General Public License
10587 # along with this program; if not, write to the Free Software
10588 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10590 # As a special exception to the GNU General Public License, if you
10591 # distribute this file as part of a program that contains a
10592 # configuration script generated by Autoconf, you may include it under
10593 # the same distribution terms that you use for the rest of that program.
10595 # A sed program that does not truncate output.
10598 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10599 Xsed="$SED -e 1s/^X//"
10601 # The HP-UX ksh and POSIX shell print the target directory to stdout
10602 # if CDPATH is set.
10603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10605 # The names of the tagged configurations supported by this script.
10608 # ### BEGIN LIBTOOL CONFIG
10610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10612 # Shell to use when invoking shell scripts.
10615 # Whether or not to build shared libraries.
10616 build_libtool_libs=$enable_shared
10618 # Whether or not to build static libraries.
10619 build_old_libs=$enable_static
10621 # Whether or not to add -lc for building shared libraries.
10622 build_libtool_need_lc=$archive_cmds_need_lc
10624 # Whether or not to disallow shared libs when runtime libs are static
10625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10627 # Whether or not to optimize for fast installation.
10628 fast_install=$enable_fast_install
10631 host_alias=$host_alias
10635 # The build system.
10636 build_alias=$build_alias
10640 # An echo program that does not interpret backslashes.
10645 AR_FLAGS=$lt_AR_FLAGS
10650 # A language-specific compiler.
10653 # Is the compiler the GNU C compiler?
10659 # The linker used to build libraries.
10662 # Whether we need hard or soft links.
10665 # A BSD-compatible nm program.
10668 # A symbol stripping program
10671 # Used to examine libraries when file_magic_cmd begins "file"
10672 MAGIC_CMD=$MAGIC_CMD
10674 # Used on cygwin: DLL creation program.
10677 # Used on cygwin: object dumper.
10680 # Used on cygwin: assembler.
10683 # The name of the directory that contains temporary libtool files.
10686 # How to create reloadable object files.
10687 reload_flag=$lt_reload_flag
10688 reload_cmds=$lt_reload_cmds
10690 # How to pass a linker flag through the compiler.
10691 wl=$lt_lt_prog_compiler_wl
10693 # Object file suffix (normally "o").
10694 objext="$ac_objext"
10696 # Old archive suffix (normally "a").
10699 # Shared library suffix (normally ".so").
10700 shrext_cmds='$shrext_cmds'
10702 # Executable file suffix (normally "").
10705 # Additional compiler flags for building library objects.
10706 pic_flag=$lt_lt_prog_compiler_pic
10709 # What is the maximum length of a command?
10710 max_cmd_len=$lt_cv_sys_max_cmd_len
10712 # Does compiler simultaneously support -c and -o options?
10713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10715 # Must we lock files when doing compilation?
10716 need_locks=$lt_need_locks
10718 # Do we need the lib prefix for modules?
10719 need_lib_prefix=$need_lib_prefix
10721 # Do we need a version for libraries?
10722 need_version=$need_version
10724 # Whether dlopen is supported.
10725 dlopen_support=$enable_dlopen
10727 # Whether dlopen of programs is supported.
10728 dlopen_self=$enable_dlopen_self
10730 # Whether dlopen of statically linked programs is supported.
10731 dlopen_self_static=$enable_dlopen_self_static
10733 # Compiler flag to prevent dynamic linking.
10734 link_static_flag=$lt_lt_prog_compiler_static
10736 # Compiler flag to turn off builtin functions.
10737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10739 # Compiler flag to allow reflexive dlopens.
10740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10742 # Compiler flag to generate shared objects directly from archives.
10743 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10745 # Compiler flag to generate thread-safe objects.
10746 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10748 # Library versioning type.
10749 version_type=$version_type
10751 # Format of library name prefix.
10752 libname_spec=$lt_libname_spec
10754 # List of archive names. First name is the real one, the rest are links.
10755 # The last name is the one that the linker finds with -lNAME.
10756 library_names_spec=$lt_library_names_spec
10758 # The coded name of the library, if different from the real name.
10759 soname_spec=$lt_soname_spec
10761 # Commands used to build and install an old-style archive.
10763 old_archive_cmds=$lt_old_archive_cmds
10764 old_postinstall_cmds=$lt_old_postinstall_cmds
10765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10767 # Create an old-style archive from a shared archive.
10768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10770 # Create a temporary old-style archive to link instead of a shared archive.
10771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10773 # Commands used to build and install a shared archive.
10774 archive_cmds=$lt_archive_cmds
10775 archive_expsym_cmds=$lt_archive_expsym_cmds
10776 postinstall_cmds=$lt_postinstall_cmds
10777 postuninstall_cmds=$lt_postuninstall_cmds
10779 # Commands used to build a loadable module (assumed same as above if empty)
10780 module_cmds=$lt_module_cmds
10781 module_expsym_cmds=$lt_module_expsym_cmds
10783 # Commands to strip libraries.
10784 old_striplib=$lt_old_striplib
10785 striplib=$lt_striplib
10787 # Dependencies to place before the objects being linked to create a
10789 predep_objects=$lt_predep_objects
10791 # Dependencies to place after the objects being linked to create a
10793 postdep_objects=$lt_postdep_objects
10795 # Dependencies to place before the objects being linked to create a
10797 predeps=$lt_predeps
10799 # Dependencies to place after the objects being linked to create a
10801 postdeps=$lt_postdeps
10803 # The library search path used internally by the compiler when linking
10804 # a shared library.
10805 compiler_lib_search_path=$lt_compiler_lib_search_path
10807 # Method to check whether dependent libraries are shared objects.
10808 deplibs_check_method=$lt_deplibs_check_method
10810 # Command to use when deplibs_check_method == file_magic.
10811 file_magic_cmd=$lt_file_magic_cmd
10813 # Flag that allows shared libraries with undefined symbols to be built.
10814 allow_undefined_flag=$lt_allow_undefined_flag
10816 # Flag that forces no undefined symbols.
10817 no_undefined_flag=$lt_no_undefined_flag
10819 # Commands used to finish a libtool library installation in a directory.
10820 finish_cmds=$lt_finish_cmds
10822 # Same as above, but a single script fragment to be evaled but not shown.
10823 finish_eval=$lt_finish_eval
10825 # Take the output of nm and produce a listing of raw symbols and C names.
10826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10828 # Transform the output of nm in a proper C declaration
10829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10831 # Transform the output of nm in a C name address pair
10832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10834 # This is the shared library runtime path variable.
10835 runpath_var=$runpath_var
10837 # This is the shared library path variable.
10838 shlibpath_var=$shlibpath_var
10840 # Is shlibpath searched before the hard-coded library search path?
10841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10843 # How to hardcode a shared library path into an executable.
10844 hardcode_action=$hardcode_action
10846 # Whether we should hardcode library paths into libraries.
10847 hardcode_into_libs=$hardcode_into_libs
10849 # Flag to hardcode \$libdir into a binary during linking.
10850 # This must work even if \$libdir does not exist.
10851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10853 # If ld is used when linking, flag to hardcode \$libdir into
10854 # a binary during linking. This must work even if \$libdir does
10856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10858 # Whether we need a single -rpath flag with a separated argument.
10859 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10862 # resulting binary.
10863 hardcode_direct=$hardcode_direct
10865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10866 # resulting binary.
10867 hardcode_minus_L=$hardcode_minus_L
10869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10870 # the resulting binary.
10871 hardcode_shlibpath_var=$hardcode_shlibpath_var
10873 # Set to yes if building a shared library automatically hardcodes DIR into the library
10874 # and all subsequent libraries and executables linked against it.
10875 hardcode_automatic=$hardcode_automatic
10877 # Variables whose values should be saved in libtool wrapper scripts and
10878 # restored at relink time.
10879 variables_saved_for_relink="$variables_saved_for_relink"
10881 # Whether libtool must link a program against all its dependency libraries.
10882 link_all_deplibs=$link_all_deplibs
10884 # Compile-time system search path for libraries
10885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10887 # Run-time system search path for libraries
10888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10890 # Fix the shell variable \$srcfile for the compiler.
10891 fix_srcfile_path="$fix_srcfile_path"
10893 # Set to yes if exported symbols are required.
10894 always_export_symbols=$always_export_symbols
10896 # The commands to list exported symbols.
10897 export_symbols_cmds=$lt_export_symbols_cmds
10899 # The commands to extract the exported symbol list from a shared archive.
10900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10902 # Symbols that should not be listed in the preloaded symbols.
10903 exclude_expsyms=$lt_exclude_expsyms
10905 # Symbols that must always be exported.
10906 include_expsyms=$lt_include_expsyms
10908 # ### END LIBTOOL CONFIG
10915 cat <<\EOF >> "$cfgfile"
10917 # AIX sometimes has problems with the GCC collect2 program. For some
10918 # reason, if we set the COLLECT_NAMES environment variable, the problems
10919 # vanish in a puff of smoke.
10920 if test "X${COLLECT_NAMES+set}" != Xset; then
10922 export COLLECT_NAMES
10928 # We use sed instead of cat because bash on DJGPP gets confused if
10929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10930 # text mode, it properly converts lines to CR/LF. This bash problem
10931 # is reportedly fixed, but why not run on old versions too?
10932 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10934 mv -f "$cfgfile" "$ofile" || \
10935 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10939 # If there is no Makefile yet, we rely on a make rule to execute
10940 # `config.status --recheck' to rerun these tests and create the
10941 # libtool script then.
10942 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10943 if test -f "$ltmain_in"; then
10944 test -f Makefile && make "$ltmain"
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10958 # Check whether --with-tags or --without-tags was given.
10959 if test "${with_tags+set}" = set; then
10960 withval="$with_tags"
10961 tagnames="$withval"
10964 if test -f "$ltmain" && test -n "$tagnames"; then
10965 if test ! -f "${ofile}"; then
10966 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10967 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10970 if test -z "$LTCC"; then
10971 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10972 if test -z "$LTCC"; then
10973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10974 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10977 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10981 # Extract list of available tagged configurations in $ofile.
10982 # Note that this assumes the entire list is on one line.
10983 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10986 for tagname in $tagnames; do
10988 # Check whether tagname contains only valid characters
10989 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10991 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10992 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10993 { (exit 1); exit 1; }; }
10997 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10999 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11000 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11001 { (exit 1); exit 1; }; }
11004 # Update the list of available tags.
11005 if test -n "$tagname"; then
11006 echo appending configuration tag \"$tagname\" to $ofile
11010 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11011 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11012 (test "X$CXX" != "Xg++"))) ; then
11020 if test -n "$F77" && test "X$F77" != "Xno"; then
11028 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11039 # Source file extension for RC test sources.
11042 # Object file extension for compiled RC test sources.
11046 # Code to be used in simple compile tests
11047 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11049 # Code to be used in simple link tests
11050 lt_simple_link_test_code="$lt_simple_compile_test_code"
11052 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054 # If no C compiler was specified, use CC.
11057 # Allow CC to be a program name with arguments.
11061 # save warnings/boilerplate of simple test code
11062 ac_outfile=conftest.$ac_objext
11063 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11065 _lt_compiler_boilerplate=`cat conftest.err`
11068 ac_outfile=conftest.$ac_objext
11069 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11071 _lt_linker_boilerplate=`cat conftest.err`
11075 # Allow CC to be a program name with arguments.
11080 for cc_temp in $compiler""; do
11082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11090 lt_cv_prog_compiler_c_o_RC=yes
11092 # The else clause should only fire when bootstrapping the
11093 # libtool distribution, otherwise you forgot to ship ltmain.sh
11094 # with your package, and you will get complaints that there are
11095 # no rules to generate ltmain.sh.
11096 if test -f "$ltmain"; then
11097 # See if we are running on zsh, and set the options which allow our commands through
11098 # without removal of \ escapes.
11099 if test -n "${ZSH_VERSION+set}" ; then
11100 setopt NO_GLOB_SUBST
11102 # Now quote all the things that may contain metacharacters while being
11103 # careful not to overquote the AC_SUBSTed values. We take copies of the
11104 # variables and quote the copies for generation of the libtool script.
11105 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11109 deplibs_check_method reload_flag reload_cmds need_locks \
11110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11111 lt_cv_sys_global_symbol_to_c_name_address \
11112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11113 old_postinstall_cmds old_postuninstall_cmds \
11117 lt_prog_compiler_wl_RC \
11118 lt_prog_compiler_pic_RC \
11119 lt_prog_compiler_static_RC \
11120 lt_prog_compiler_no_builtin_flag_RC \
11121 export_dynamic_flag_spec_RC \
11122 thread_safe_flag_spec_RC \
11123 whole_archive_flag_spec_RC \
11124 enable_shared_with_static_runtimes_RC \
11125 old_archive_cmds_RC \
11126 old_archive_from_new_cmds_RC \
11127 predep_objects_RC \
11128 postdep_objects_RC \
11131 compiler_lib_search_path_RC \
11133 archive_expsym_cmds_RC \
11134 postinstall_cmds_RC \
11135 postuninstall_cmds_RC \
11136 old_archive_from_expsyms_cmds_RC \
11137 allow_undefined_flag_RC \
11138 no_undefined_flag_RC \
11139 export_symbols_cmds_RC \
11140 hardcode_libdir_flag_spec_RC \
11141 hardcode_libdir_flag_spec_ld_RC \
11142 hardcode_libdir_separator_RC \
11143 hardcode_automatic_RC \
11145 module_expsym_cmds_RC \
11146 lt_cv_prog_compiler_c_o_RC \
11147 exclude_expsyms_RC \
11148 include_expsyms_RC; do
11151 old_archive_cmds_RC | \
11152 old_archive_from_new_cmds_RC | \
11153 archive_cmds_RC | \
11154 archive_expsym_cmds_RC | \
11156 module_expsym_cmds_RC | \
11157 old_archive_from_expsyms_cmds_RC | \
11158 export_symbols_cmds_RC | \
11159 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11160 postinstall_cmds | postuninstall_cmds | \
11161 old_postinstall_cmds | old_postuninstall_cmds | \
11162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11163 # Double-quote double-evaled strings.
11164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11173 *'\$0 --fallback-echo"')
11174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11180 cat <<__EOF__ >> "$cfgfile"
11181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11185 # Shell to use when invoking shell scripts.
11188 # Whether or not to build shared libraries.
11189 build_libtool_libs=$enable_shared
11191 # Whether or not to build static libraries.
11192 build_old_libs=$enable_static
11194 # Whether or not to add -lc for building shared libraries.
11195 build_libtool_need_lc=$archive_cmds_need_lc_RC
11197 # Whether or not to disallow shared libs when runtime libs are static
11198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11200 # Whether or not to optimize for fast installation.
11201 fast_install=$enable_fast_install
11204 host_alias=$host_alias
11208 # The build system.
11209 build_alias=$build_alias
11213 # An echo program that does not interpret backslashes.
11218 AR_FLAGS=$lt_AR_FLAGS
11223 # A language-specific compiler.
11226 # Is the compiler the GNU C compiler?
11232 # The linker used to build libraries.
11235 # Whether we need hard or soft links.
11238 # A BSD-compatible nm program.
11241 # A symbol stripping program
11244 # Used to examine libraries when file_magic_cmd begins "file"
11245 MAGIC_CMD=$MAGIC_CMD
11247 # Used on cygwin: DLL creation program.
11250 # Used on cygwin: object dumper.
11253 # Used on cygwin: assembler.
11256 # The name of the directory that contains temporary libtool files.
11259 # How to create reloadable object files.
11260 reload_flag=$lt_reload_flag
11261 reload_cmds=$lt_reload_cmds
11263 # How to pass a linker flag through the compiler.
11264 wl=$lt_lt_prog_compiler_wl_RC
11266 # Object file suffix (normally "o").
11267 objext="$ac_objext"
11269 # Old archive suffix (normally "a").
11272 # Shared library suffix (normally ".so").
11273 shrext_cmds='$shrext_cmds'
11275 # Executable file suffix (normally "").
11278 # Additional compiler flags for building library objects.
11279 pic_flag=$lt_lt_prog_compiler_pic_RC
11282 # What is the maximum length of a command?
11283 max_cmd_len=$lt_cv_sys_max_cmd_len
11285 # Does compiler simultaneously support -c and -o options?
11286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11288 # Must we lock files when doing compilation?
11289 need_locks=$lt_need_locks
11291 # Do we need the lib prefix for modules?
11292 need_lib_prefix=$need_lib_prefix
11294 # Do we need a version for libraries?
11295 need_version=$need_version
11297 # Whether dlopen is supported.
11298 dlopen_support=$enable_dlopen
11300 # Whether dlopen of programs is supported.
11301 dlopen_self=$enable_dlopen_self
11303 # Whether dlopen of statically linked programs is supported.
11304 dlopen_self_static=$enable_dlopen_self_static
11306 # Compiler flag to prevent dynamic linking.
11307 link_static_flag=$lt_lt_prog_compiler_static_RC
11309 # Compiler flag to turn off builtin functions.
11310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11312 # Compiler flag to allow reflexive dlopens.
11313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11315 # Compiler flag to generate shared objects directly from archives.
11316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11318 # Compiler flag to generate thread-safe objects.
11319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11321 # Library versioning type.
11322 version_type=$version_type
11324 # Format of library name prefix.
11325 libname_spec=$lt_libname_spec
11327 # List of archive names. First name is the real one, the rest are links.
11328 # The last name is the one that the linker finds with -lNAME.
11329 library_names_spec=$lt_library_names_spec
11331 # The coded name of the library, if different from the real name.
11332 soname_spec=$lt_soname_spec
11334 # Commands used to build and install an old-style archive.
11336 old_archive_cmds=$lt_old_archive_cmds_RC
11337 old_postinstall_cmds=$lt_old_postinstall_cmds
11338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11340 # Create an old-style archive from a shared archive.
11341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11343 # Create a temporary old-style archive to link instead of a shared archive.
11344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11346 # Commands used to build and install a shared archive.
11347 archive_cmds=$lt_archive_cmds_RC
11348 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11349 postinstall_cmds=$lt_postinstall_cmds
11350 postuninstall_cmds=$lt_postuninstall_cmds
11352 # Commands used to build a loadable module (assumed same as above if empty)
11353 module_cmds=$lt_module_cmds_RC
11354 module_expsym_cmds=$lt_module_expsym_cmds_RC
11356 # Commands to strip libraries.
11357 old_striplib=$lt_old_striplib
11358 striplib=$lt_striplib
11360 # Dependencies to place before the objects being linked to create a
11362 predep_objects=$lt_predep_objects_RC
11364 # Dependencies to place after the objects being linked to create a
11366 postdep_objects=$lt_postdep_objects_RC
11368 # Dependencies to place before the objects being linked to create a
11370 predeps=$lt_predeps_RC
11372 # Dependencies to place after the objects being linked to create a
11374 postdeps=$lt_postdeps_RC
11376 # The library search path used internally by the compiler when linking
11377 # a shared library.
11378 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11380 # Method to check whether dependent libraries are shared objects.
11381 deplibs_check_method=$lt_deplibs_check_method
11383 # Command to use when deplibs_check_method == file_magic.
11384 file_magic_cmd=$lt_file_magic_cmd
11386 # Flag that allows shared libraries with undefined symbols to be built.
11387 allow_undefined_flag=$lt_allow_undefined_flag_RC
11389 # Flag that forces no undefined symbols.
11390 no_undefined_flag=$lt_no_undefined_flag_RC
11392 # Commands used to finish a libtool library installation in a directory.
11393 finish_cmds=$lt_finish_cmds
11395 # Same as above, but a single script fragment to be evaled but not shown.
11396 finish_eval=$lt_finish_eval
11398 # Take the output of nm and produce a listing of raw symbols and C names.
11399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11401 # Transform the output of nm in a proper C declaration
11402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11404 # Transform the output of nm in a C name address pair
11405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11407 # This is the shared library runtime path variable.
11408 runpath_var=$runpath_var
11410 # This is the shared library path variable.
11411 shlibpath_var=$shlibpath_var
11413 # Is shlibpath searched before the hard-coded library search path?
11414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11416 # How to hardcode a shared library path into an executable.
11417 hardcode_action=$hardcode_action_RC
11419 # Whether we should hardcode library paths into libraries.
11420 hardcode_into_libs=$hardcode_into_libs
11422 # Flag to hardcode \$libdir into a binary during linking.
11423 # This must work even if \$libdir does not exist.
11424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11426 # If ld is used when linking, flag to hardcode \$libdir into
11427 # a binary during linking. This must work even if \$libdir does
11429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11431 # Whether we need a single -rpath flag with a separated argument.
11432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11435 # resulting binary.
11436 hardcode_direct=$hardcode_direct_RC
11438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11439 # resulting binary.
11440 hardcode_minus_L=$hardcode_minus_L_RC
11442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11443 # the resulting binary.
11444 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11446 # Set to yes if building a shared library automatically hardcodes DIR into the library
11447 # and all subsequent libraries and executables linked against it.
11448 hardcode_automatic=$hardcode_automatic_RC
11450 # Variables whose values should be saved in libtool wrapper scripts and
11451 # restored at relink time.
11452 variables_saved_for_relink="$variables_saved_for_relink"
11454 # Whether libtool must link a program against all its dependency libraries.
11455 link_all_deplibs=$link_all_deplibs_RC
11457 # Compile-time system search path for libraries
11458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11460 # Run-time system search path for libraries
11461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11463 # Fix the shell variable \$srcfile for the compiler.
11464 fix_srcfile_path="$fix_srcfile_path_RC"
11466 # Set to yes if exported symbols are required.
11467 always_export_symbols=$always_export_symbols_RC
11469 # The commands to list exported symbols.
11470 export_symbols_cmds=$lt_export_symbols_cmds_RC
11472 # The commands to extract the exported symbol list from a shared archive.
11473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11475 # Symbols that should not be listed in the preloaded symbols.
11476 exclude_expsyms=$lt_exclude_expsyms_RC
11478 # Symbols that must always be exported.
11479 include_expsyms=$lt_include_expsyms_RC
11481 # ### END LIBTOOL TAG CONFIG: $tagname
11487 # If there is no Makefile yet, we rely on a make rule to execute
11488 # `config.status --recheck' to rerun these tests and create the
11489 # libtool script then.
11490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11491 if test -f "$ltmain_in"; then
11492 test -f Makefile && make "$ltmain"
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11509 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11510 { (exit 1); exit 1; }; }
11514 # Append the new tag name to the list of available tags.
11515 if test -n "$tagname" ; then
11516 available_tags="$available_tags $tagname"
11522 # Now substitute the updated list of available tags.
11523 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11524 mv "${ofile}T" "$ofile"
11528 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11529 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11530 { (exit 1); exit 1; }; }
11536 # This can be used to rebuild libtool when needed
11537 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11539 # Always use our own libtool.
11540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11542 # Prevent multiple expansion
11554 if test $ol_enable_perl != no ; then
11555 # Extract the first word of "perl", so it can be a program name with args.
11556 set dummy perl; ac_word=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_path_PERLBIN+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11585 PERLBIN=$ac_cv_path_PERLBIN
11587 if test -n "$PERLBIN"; then
11588 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11589 echo "${ECHO_T}$PERLBIN" >&6
11591 echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6
11596 if test "no$PERLBIN" = "no" ; then
11597 if test $ol_enable_perl = yes ; then
11598 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11599 echo "$as_me: error: could not locate perl" >&2;}
11600 { (exit 1); exit 1; }; }
11604 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11605 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11607 if test x"$ol_enable_perl" = "xyes" ; then
11608 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11610 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11617 ac_cpp='$CPP $CPPFLAGS'
11618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11622 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11623 # On Suns, sometimes $CPP names a directory.
11624 if test -n "$CPP" && test -d "$CPP"; then
11627 if test -z "$CPP"; then
11628 if test "${ac_cv_prog_CPP+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 # Double quotes because CPP needs to be expanded
11632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11634 ac_preproc_ok=false
11635 for ac_c_preproc_warn_flag in '' yes
11637 # Use a header file that comes with gcc, so configuring glibc
11638 # with a fresh cross-compiler works.
11639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11640 # <limits.h> exists even on freestanding compilers.
11641 # On the NeXT, cc -E runs the code through the compiler's parser,
11642 # not just through cpp. "Syntax error" is here to catch this case.
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 # include <limits.h>
11652 # include <assert.h>
11656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } >/dev/null; then
11664 if test -s conftest.err; then
11665 ac_cpp_err=$ac_c_preproc_warn_flag
11666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 if test -z "$ac_cpp_err"; then
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 # Broken: fails on valid input.
11682 rm -f conftest.err conftest.$ac_ext
11684 # OK, works on sane cases. Now check whether non-existent headers
11685 # can be detected and how.
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <ac_nonexistent.h>
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11711 if test -z "$ac_cpp_err"; then
11712 # Broken: success on invalid input.
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 # Passes both tests.
11722 rm -f conftest.err conftest.$ac_ext
11725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11726 rm -f conftest.err conftest.$ac_ext
11727 if $ac_preproc_ok; then
11732 ac_cv_prog_CPP=$CPP
11735 CPP=$ac_cv_prog_CPP
11737 ac_cv_prog_CPP=$CPP
11739 echo "$as_me:$LINENO: result: $CPP" >&5
11740 echo "${ECHO_T}$CPP" >&6
11741 ac_preproc_ok=false
11742 for ac_c_preproc_warn_flag in '' yes
11744 # Use a header file that comes with gcc, so configuring glibc
11745 # with a fresh cross-compiler works.
11746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 # <limits.h> exists even on freestanding compilers.
11748 # On the NeXT, cc -E runs the code through the compiler's parser,
11749 # not just through cpp. "Syntax error" is here to catch this case.
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11757 # include <limits.h>
11759 # include <assert.h>
11763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } >/dev/null; then
11771 if test -s conftest.err; then
11772 ac_cpp_err=$ac_c_preproc_warn_flag
11773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11780 if test -z "$ac_cpp_err"; then
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 # Broken: fails on valid input.
11789 rm -f conftest.err conftest.$ac_ext
11791 # OK, works on sane cases. Now check whether non-existent headers
11792 # can be detected and how.
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 #include <ac_nonexistent.h>
11801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818 if test -z "$ac_cpp_err"; then
11819 # Broken: success on invalid input.
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 # Passes both tests.
11829 rm -f conftest.err conftest.$ac_ext
11832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11833 rm -f conftest.err conftest.$ac_ext
11834 if $ac_preproc_ok; then
11837 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11838 See \`config.log' for more details." >&5
11839 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11840 See \`config.log' for more details." >&2;}
11841 { (exit 1); exit 1; }; }
11845 ac_cpp='$CPP $CPPFLAGS'
11846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11852 *mingw32* ) ac_cv_mingw32=yes ;;
11853 *cygwin* ) ac_cv_cygwin=yes ;;
11859 cat >>confdefs.h <<_ACEOF
11860 #define EXEEXT "${EXEEXT}"
11864 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11865 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11866 if test "${ac_cv_lib_be_be_app+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-lbe -lroot -lnet $LIBS"
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11878 /* Override any gcc2 internal prototype to avoid an error. */
11882 /* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest$ac_exeext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_lib_be_be_app=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_be_be_app=no
11922 rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11927 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11928 if test $ac_cv_lib_be_be_app = yes; then
11929 LIBS="$LIBS -lbe -lroot -lnet"
11936 ac_cpp='$CPP $CPPFLAGS'
11937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940 if test -n "$ac_tool_prefix"; then
11941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11943 echo "$as_me:$LINENO: checking for $ac_word" >&5
11944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11945 if test "${ac_cv_prog_CC+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 if test -n "$CC"; then
11949 ac_cv_prog_CC="$CC" # Let the user override the test.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 if test -n "$CC"; then
11969 echo "$as_me:$LINENO: result: $CC" >&5
11970 echo "${ECHO_T}$CC" >&6
11972 echo "$as_me:$LINENO: result: no" >&5
11973 echo "${ECHO_T}no" >&6
11977 if test -z "$ac_cv_prog_CC"; then
11979 # Extract the first word of "gcc", so it can be a program name with args.
11980 set dummy gcc; ac_word=$2
11981 echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 if test -n "$ac_ct_CC"; then
11987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_ac_ct_CC="gcc"
11997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12006 if test -n "$ac_ct_CC"; then
12007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12008 echo "${ECHO_T}$ac_ct_CC" >&6
12010 echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6
12016 CC="$ac_cv_prog_CC"
12019 if test -z "$CC"; then
12020 if test -n "$ac_tool_prefix"; then
12021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12022 set dummy ${ac_tool_prefix}cc; ac_word=$2
12023 echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12025 if test "${ac_cv_prog_CC+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 if test -n "$CC"; then
12029 ac_cv_prog_CC="$CC" # Let the user override the test.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_prog_CC="${ac_tool_prefix}cc"
12039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 if test -n "$CC"; then
12049 echo "$as_me:$LINENO: result: $CC" >&5
12050 echo "${ECHO_T}$CC" >&6
12052 echo "$as_me:$LINENO: result: no" >&5
12053 echo "${ECHO_T}no" >&6
12057 if test -z "$ac_cv_prog_CC"; then
12059 # Extract the first word of "cc", so it can be a program name with args.
12060 set dummy cc; ac_word=$2
12061 echo "$as_me:$LINENO: checking for $ac_word" >&5
12062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 if test -n "$ac_ct_CC"; then
12067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 ac_cv_prog_ac_ct_CC="cc"
12077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12086 if test -n "$ac_ct_CC"; then
12087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12088 echo "${ECHO_T}$ac_ct_CC" >&6
12090 echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12096 CC="$ac_cv_prog_CC"
12100 if test -z "$CC"; then
12101 # Extract the first word of "cc", so it can be a program name with args.
12102 set dummy cc; ac_word=$2
12103 echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12105 if test "${ac_cv_prog_CC+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 if test -n "$CC"; then
12109 ac_cv_prog_CC="$CC" # Let the user override the test.
12111 ac_prog_rejected=no
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12120 ac_prog_rejected=yes
12124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 if test $ac_prog_rejected = yes; then
12131 # We found a bogon in the path, so make sure we never use it.
12132 set dummy $ac_cv_prog_CC
12134 if test $# != 0; then
12135 # We chose a different compiler from the bogus one.
12136 # However, it has the same basename, so the bogon will be chosen
12137 # first if we set CC to just the basename; use the full file name.
12139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12145 if test -n "$CC"; then
12146 echo "$as_me:$LINENO: result: $CC" >&5
12147 echo "${ECHO_T}$CC" >&6
12149 echo "$as_me:$LINENO: result: no" >&5
12150 echo "${ECHO_T}no" >&6
12154 if test -z "$CC"; then
12155 if test -n "$ac_tool_prefix"; then
12158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_CC+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 if test -n "$CC"; then
12166 ac_cv_prog_CC="$CC" # Let the user override the test.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 if test -n "$CC"; then
12186 echo "$as_me:$LINENO: result: $CC" >&5
12187 echo "${ECHO_T}$CC" >&6
12189 echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12193 test -n "$CC" && break
12196 if test -z "$CC"; then
12200 # Extract the first word of "$ac_prog", so it can be a program name with args.
12201 set dummy $ac_prog; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 if test -n "$ac_ct_CC"; then
12208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_prog_ac_ct_CC="$ac_prog"
12218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12227 if test -n "$ac_ct_CC"; then
12228 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12229 echo "${ECHO_T}$ac_ct_CC" >&6
12231 echo "$as_me:$LINENO: result: no" >&5
12232 echo "${ECHO_T}no" >&6
12235 test -n "$ac_ct_CC" && break
12244 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12245 See \`config.log' for more details." >&5
12246 echo "$as_me: error: no acceptable C compiler found in \$PATH
12247 See \`config.log' for more details." >&2;}
12248 { (exit 1); exit 1; }; }
12250 # Provide some information about the compiler.
12251 echo "$as_me:$LINENO:" \
12252 "checking for C compiler version" >&5
12253 ac_compiler=`set X $ac_compile; echo $2`
12254 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12255 (eval $ac_compiler --version </dev/null >&5) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }
12259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12260 (eval $ac_compiler -v </dev/null >&5) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }
12264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12265 (eval $ac_compiler -V </dev/null >&5) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }
12270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295 (eval $ac_compile) 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -z "$ac_c_werror_flag"
12303 || test ! -s conftest.err'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_compiler_gnu=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12326 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12328 GCC=`test $ac_compiler_gnu = yes && echo yes`
12329 ac_test_CFLAGS=${CFLAGS+set}
12330 ac_save_CFLAGS=$CFLAGS
12332 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12334 if test "${ac_cv_prog_cc_g+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_prog_cc_g=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12385 if test "$ac_test_CFLAGS" = set; then
12386 CFLAGS=$ac_save_CFLAGS
12387 elif test $ac_cv_prog_cc_g = yes; then
12388 if test "$GCC" = yes; then
12394 if test "$GCC" = yes; then
12400 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12401 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12402 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_cv_prog_cc_stdc=no
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <stdarg.h>
12415 #include <sys/types.h>
12416 #include <sys/stat.h>
12417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12418 struct buf { int x; };
12419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12420 static char *e (p, i)
12426 static char *f (char * (*g) (char **, int), char **p, ...)
12431 s = g (p, va_arg (v,int));
12436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12437 function prototypes and stuff, but not '\xHH' hex character constants.
12438 These don't provoke an error unfortunately, instead are silently treated
12439 as 'x'. The following induces an error, until -std1 is added to get
12440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12441 array size at least. It's necessary to write '\x00'==0 to get something
12442 that's true only with -std1. */
12443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12445 int test (int i, double x);
12446 struct s1 {int (*f) (int a);};
12447 struct s2 {int (*f) (double a);};
12448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12459 # Don't try gcc -ansi; that turns off useful extensions and
12460 # breaks some systems' header files.
12461 # AIX -qlanglvl=ansi
12462 # Ultrix and OSF/1 -std1
12463 # HP-UX 10.20 and later -Ae
12464 # HP-UX older versions -Aa -D_HPUX_SOURCE
12465 # SVR4 -Xc -D__EXTENSIONS__
12466 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12468 CC="$ac_save_CC $ac_arg"
12469 rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_prog_cc_stdc=$ac_arg
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12498 rm -f conftest.err conftest.$ac_objext
12500 rm -f conftest.$ac_ext conftest.$ac_objext
12505 case "x$ac_cv_prog_cc_stdc" in
12507 echo "$as_me:$LINENO: result: none needed" >&5
12508 echo "${ECHO_T}none needed" >&6 ;;
12510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12511 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12512 CC="$CC $ac_cv_prog_cc_stdc" ;;
12515 # Some people use a C++ compiler to compile C. Since we use `exit',
12516 # in C++ we need to declare it. In case someone uses the same compiler
12517 # for both compiling C and C++ we need to have the C++ compiler decide
12518 # the declaration of exit, since it's the most demanding environment.
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #ifndef __cplusplus
12524 rm -f conftest.$ac_objext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 for ac_declaration in \
12548 'extern "C" void std::exit (int) throw (); using std::exit;' \
12549 'extern "C" void std::exit (int); using std::exit;' \
12550 'extern "C" void exit (int) throw ();' \
12551 'extern "C" void exit (int);' \
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12561 #include <stdlib.h>
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572 (eval $ac_compile) 2>conftest.er1
12574 grep -v '^ *+' conftest.er1 >conftest.err
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag"
12580 || test ! -s conftest.err'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; } &&
12586 { ac_try='test -s conftest.$ac_objext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test -n "$ac_declaration"; then
12647 echo '#ifdef __cplusplus' >>confdefs.h
12648 echo $ac_declaration >>confdefs.h
12649 echo '#endif' >>confdefs.h
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 ac_cpp='$CPP $CPPFLAGS'
12660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12664 depcc="$CC" am_compiler_list=
12666 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12667 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12668 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12672 # We make a subdir and do the tests there. Otherwise we can end up
12673 # making bogus files that we don't know about and never remove. For
12674 # instance it was reported that on HP-UX the gcc test will end up
12675 # making a dummy file named `D' -- because `-MD' means `put the output
12678 # Copy depcomp to subdir because otherwise we won't find it if we're
12679 # using a relative directory.
12680 cp "$am_depcomp" conftest.dir
12682 # We will build objects and dependencies in a subdirectory because
12683 # it helps to detect inapplicable dependency modes. For instance
12684 # both Tru64's cc and ICC support -MD to output dependencies as a
12685 # side effect of compilation, but ICC will put the dependencies in
12686 # the current directory while Tru64 will put them in the object
12690 am_cv_CC_dependencies_compiler_type=none
12691 if test "$am_compiler_list" = ""; then
12692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12694 for depmode in $am_compiler_list; do
12695 # Setup a source with many dependencies, because some compilers
12696 # like to wrap large dependency lists on column 80 (with \), and
12697 # we should not choose a depcomp mode which is confused by this.
12699 # We need to recreate these files for each test, as the compiler may
12700 # overwrite some of them when testing with obscure command lines.
12701 # This happens at least with the AIX C compiler.
12703 for i in 1 2 3 4 5 6; do
12704 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12705 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12706 # Solaris 8's {/usr,}/bin/sh.
12707 touch sub/conftst$i.h
12709 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12713 # after this tag, mechanisms are not by side-effect, so they'll
12714 # only be used when explicitly requested
12715 if test "x$enable_dependency_tracking" = xyes; then
12723 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12724 # mode. It turns out that the SunPro C++ compiler does not properly
12725 # handle `-M -o', and we need to detect this.
12726 if depmode=$depmode \
12727 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12729 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12730 >/dev/null 2>conftest.err &&
12731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12732 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12734 # icc doesn't choke on unknown options, it will just issue warnings
12735 # or remarks (even with -Werror). So we grep stderr for any message
12736 # that says an option was ignored or not supported.
12737 # When given -MP, icc 7.0 and 7.1 complain thusly:
12738 # icc: Command line warning: ignoring option '-M'; no argument required
12739 # The diagnosis changed in icc 8.0:
12740 # icc: Command line remark: option '-MP' not supported
12741 if (grep 'ignoring option' conftest.err ||
12742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12743 am_cv_CC_dependencies_compiler_type=$depmode
12750 rm -rf conftest.dir
12752 am_cv_CC_dependencies_compiler_type=none
12756 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12757 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12763 test "x$enable_dependency_tracking" != xno \
12764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12765 am__fastdepCC_TRUE=
12766 am__fastdepCC_FALSE='#'
12768 am__fastdepCC_TRUE='#'
12769 am__fastdepCC_FALSE=
12773 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12774 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12775 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12776 { (exit 1); exit 1; }; }
12779 # test for make depend flag
12782 if test -z "${MKDEP}"; then
12783 OL_MKDEP="${CC-cc}"
12784 if test -z "${MKDEP_FLAGS}"; then
12785 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12786 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12787 if test "${ol_cv_mkdep+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 for flag in "-M" "-xM"; do
12793 cat > conftest.c <<EOF
12796 if { ac_try='$OL_MKDEP $flag conftest.c'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } \
12802 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12804 if test ! -f conftest."${ac_object}" ; then
12806 OL_MKDEP_FLAGS="$flag"
12814 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12815 echo "${ECHO_T}$ol_cv_mkdep" >&6
12818 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12822 OL_MKDEP="${MKDEP}"
12823 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12828 if test "${ol_cv_mkdep}" = no ; then
12829 # this will soon become an error
12830 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12831 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12834 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12835 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12836 if test "${ac_cv_lib_s_afopen+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 ac_check_lib_save_LIBS=$LIBS
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12848 /* Override any gcc2 internal prototype to avoid an error. */
12852 /* We use char because int might match the return type of a gcc2
12853 builtin and then its argument prototype would still apply. */
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>conftest.er1
12867 grep -v '^ *+' conftest.er1 >conftest.err
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_cv_lib_s_afopen=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 ac_cv_lib_s_afopen=no
12892 rm -f conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12896 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12897 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12898 if test $ac_cv_lib_s_afopen = yes; then
12902 cat >>confdefs.h <<\_ACEOF
12903 #define HAVE_AIX_SECURITY 1
12912 ac_cv_func_getopt=no
12914 cat >>confdefs.h <<\_ACEOF
12915 #define BOTH_STRINGS_H 1
12922 WITH_MODULES_ENABLED=no
12923 if test $ol_enable_modules != no ; then
12925 for ac_header in ltdl.h
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937 # Is the header compilable?
12938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 $ac_includes_default
12947 #include <$ac_header>
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_header_compiler=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_header_compiler=no
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 #include <$ac_header>
12993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } >/dev/null; then
13001 if test -s conftest.err; then
13002 ac_cpp_err=$ac_c_preproc_warn_flag
13003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13010 if test -z "$ac_cpp_err"; then
13011 ac_header_preproc=yes
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_header_preproc=no
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13022 # So? What about this header?
13023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029 ac_header_preproc=yes
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13046 ## ------------------------------------------ ##
13047 ## Report this to the AC_PACKAGE_NAME lists. ##
13048 ## ------------------------------------------ ##
13051 sed "s/^/$as_me: WARNING: /" >&2
13054 echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 eval "$as_ac_Header=\$ac_header_preproc"
13061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066 cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13075 if test $ac_cv_header_ltdl_h = no ; then
13076 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13077 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13078 { (exit 1); exit 1; }; }
13081 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lltdl $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 /* Override any gcc2 internal prototype to avoid an error. */
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112 (eval $ac_link) 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag"
13120 || test ! -s conftest.err'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_lib_ltdl_lt_dlinit=yes
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_cv_lib_ltdl_lt_dlinit=no
13139 rm -f conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13144 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13145 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13147 MODULES_LIBS=-lltdl
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_LIBLTDL 1
13157 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13158 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13159 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13160 { (exit 1); exit 1; }; }
13162 ol_link_modules=yes
13163 WITH_MODULES_ENABLED=yes
13166 for i in $Backends; do
13167 eval "ol_tmp=\$ol_enable_$i"
13168 if test $ol_tmp = mod ; then
13169 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13170 echo "$as_me: WARNING: building static $i backend" >&2;}
13171 eval "ol_enable_$i=yes"
13174 for i in $Overlays; do
13175 eval "ol_tmp=\$ol_enable_$i"
13176 if test $ol_tmp = mod ; then
13177 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13178 echo "$as_me: WARNING: building static $i overlay" >&2;}
13179 eval "ol_enable_$i=yes"
13185 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13186 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13187 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13199 #include <__ASCII__/generate_error.h>
13203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } >/dev/null; then
13211 if test -s conftest.err; then
13212 ac_cpp_err=$ac_c_preproc_warn_flag
13213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13220 if test -z "$ac_cpp_err"; then
13221 ol_cv_cpp_ebcdic=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ol_cv_cpp_ebcdic=no
13228 rm -f conftest.err conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13231 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13232 if test $ol_cv_cpp_ebcdic = yes ; then
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_EBCDIC 1
13240 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13242 if test "${ol_cv_header_stdc+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #include <stdlib.h>
13252 #include <stdarg.h>
13253 #include <string.h>
13256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } >/dev/null; then
13264 if test -s conftest.err; then
13265 ac_cpp_err=$ac_c_preproc_warn_flag
13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13273 if test -z "$ac_cpp_err"; then
13274 ol_cv_header_stdc=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ol_cv_header_stdc=no
13281 rm -f conftest.err conftest.$ac_ext
13283 if test $ol_cv_header_stdc = yes; then
13284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <string.h>
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP "memchr" >/dev/null 2>&1; then
13298 ol_cv_header_stdc=no
13304 if test $ol_cv_header_stdc = yes; then
13305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <stdlib.h>
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "free" >/dev/null 2>&1; then
13319 ol_cv_header_stdc=no
13325 if test $ol_cv_header_stdc = yes; then
13326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13337 #ifndef HAVE_EBCDIC
13338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13341 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13342 || ('j' <= (c) && (c) <= 'r') \
13343 || ('s' <= (c) && (c) <= 'z'))
13344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13347 int main () { int i; for (i = 0; i < 256; i++)
13348 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13352 rm -f conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13365 echo "$as_me: program exited with status $ac_status" >&5
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ( exit $ac_status )
13370 ol_cv_header_stdc=no
13372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13377 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13378 if test $ol_cv_header_stdc = yes; then
13379 cat >>confdefs.h <<\_ACEOF
13380 #define STDC_HEADERS 1
13384 ac_cv_header_stdc=disable
13387 if test $ol_cv_header_stdc != yes; then
13388 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13397 ac_header_dirent=no
13398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <sys/types.h>
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag"
13433 || test ! -s conftest.err'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 eval "$as_ac_Header=yes"
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 eval "$as_ac_Header=no"
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457 cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13461 ac_header_dirent=$ac_hdr; break
13465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13466 if test $ac_header_dirent = dirent.h; then
13467 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13469 if test "${ac_cv_search_opendir+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 ac_func_search_save_LIBS=$LIBS
13473 ac_cv_search_opendir=no
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13481 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag"
13506 || test ! -s conftest.err'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_search_opendir="none required"
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13524 rm -f conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 if test "$ac_cv_search_opendir" = no; then
13527 for ac_lib in dir; do
13528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_search_opendir="-l$ac_lib"
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_func_search_save_LIBS
13586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13588 if test "$ac_cv_search_opendir" != no; then
13589 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13594 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13596 if test "${ac_cv_search_opendir+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 ac_func_search_save_LIBS=$LIBS
13600 ac_cv_search_opendir=no
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 /* Override any gcc2 internal prototype to avoid an error. */
13612 /* We use char because int might match the return type of a gcc2
13613 builtin and then its argument prototype would still apply. */
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625 (eval $ac_link) 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 ac_cv_search_opendir="none required"
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13651 rm -f conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 if test "$ac_cv_search_opendir" = no; then
13654 for ac_lib in x; do
13655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any gcc2 internal prototype to avoid an error. */
13667 /* We use char because int might match the return type of a gcc2
13668 builtin and then its argument prototype would still apply. */
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag"
13688 || test ! -s conftest.err'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_search_opendir="-l$ac_lib"
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13707 rm -f conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13711 LIBS=$ac_func_search_save_LIBS
13713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13715 if test "$ac_cv_search_opendir" != no; then
13716 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13722 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13734 #include <sys/wait.h>
13735 #ifndef WEXITSTATUS
13736 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -z "$ac_c_werror_flag"
13762 || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_header_sys_wait_h=yes
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_header_sys_wait_h=no
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13785 if test $ac_cv_header_sys_wait_h = yes; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_SYS_WAIT_H 1
13793 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13794 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13795 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 cat >conftest.$ac_ext <<_ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 #include <sys/types.h>
13805 #include <termios.h>
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "yes" >/dev/null 2>&1; then
13813 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13815 ac_cv_sys_tiocgwinsz_in_termios_h=no
13820 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13821 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13823 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13824 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13825 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13826 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <sys/types.h>
13836 #include <sys/ioctl.h>
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843 $EGREP "yes" >/dev/null 2>&1; then
13844 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13846 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13851 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13852 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13854 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13856 cat >>confdefs.h <<\_ACEOF
13857 #define GWINSZ_IN_SYS_IOCTL 1
13961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13963 echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13971 # Is the header compilable?
13972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag"
13993 || test ! -s conftest.err'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest.$ac_objext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_header_compiler=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_compiler=no
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6
14016 # Is the header present?
14017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <$ac_header>
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } >/dev/null; then
14035 if test -s conftest.err; then
14036 ac_cpp_err=$ac_c_preproc_warn_flag
14037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14044 if test -z "$ac_cpp_err"; then
14045 ac_header_preproc=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_header_preproc=no
14052 rm -f conftest.err conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 echo "${ECHO_T}$ac_header_preproc" >&6
14056 # So? What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063 ac_header_preproc=yes
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14080 ## ------------------------------------------ ##
14081 ## Report this to the AC_PACKAGE_NAME lists. ##
14082 ## ------------------------------------------ ##
14085 sed "s/^/$as_me: WARNING: /" >&2
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 eval "$as_ac_Header=\$ac_header_preproc"
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14110 for ac_header in resolv.h
14112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 #include <netinet/in.h>
14128 #include <$ac_header>
14130 rm -f conftest.$ac_objext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14132 (eval $ac_compile) 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
14139 { ac_try='test -z "$ac_c_werror_flag"
14140 || test ! -s conftest.err'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 eval "$as_ac_Header=yes"
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 eval "$as_ac_Header=no"
14159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14164 cat >>confdefs.h <<_ACEOF
14165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14174 for ac_header in sys/ucred.h
14176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14177 echo "$as_me:$LINENO: checking for $ac_header" >&5
14178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 #ifdef HAVE_SYS_PARAM_H
14190 #include <sys/param.h>
14194 #include <$ac_header>
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest.$ac_objext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_Header=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_Header=no"
14225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14242 for ac_func in sigaction sigset
14244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14245 echo "$as_me:$LINENO: checking for $ac_func" >&5
14246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_var+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14258 #define $ac_func innocuous_$ac_func
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func (); below.
14262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263 <limits.h> exists even on freestanding compilers. */
14266 # include <limits.h>
14268 # include <assert.h>
14273 /* Override any gcc2 internal prototype to avoid an error. */
14278 /* We use char because int might match the return type of a gcc2
14279 builtin and then its argument prototype would still apply. */
14281 /* The GNU C library defines this for functions which it implements
14282 to always fail with ENOSYS. Some functions are actually named
14283 something starting with __ and the normal name is an alias. */
14284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14287 char (*f) () = $ac_func;
14296 return f != $ac_func;
14301 rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303 (eval $ac_link) 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 eval "$as_ac_var=yes"
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 eval "$as_ac_var=no"
14330 rm -f conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14335 if test `eval echo '${'$as_ac_var'}'` = yes; then
14336 cat >>confdefs.h <<_ACEOF
14337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14344 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14346 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14347 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14348 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 ac_check_lib_save_LIBS=$LIBS
14353 cat >conftest.$ac_ext <<_ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 /* Override any gcc2 internal prototype to avoid an error. */
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest$ac_exeext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_lib_V3_sigset=yes
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_cv_lib_V3_sigset=no
14404 rm -f conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14409 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14410 if test $ac_cv_lib_V3_sigset = yes; then
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_LIBV3 1
14421 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14422 echo "$as_me:$LINENO: checking for winsock" >&5
14423 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14424 if test "${ol_cv_winsock+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 for curlib in ws2_32 wsock32; do
14429 LIBS="$LIBS -l$curlib"
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <winsock.h>
14443 select(0,NULL,NULL,NULL,NULL);
14445 gethostname(NULL,0);
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14453 (eval $ac_link) 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest$ac_exeext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14480 rm -f conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext conftest.$ac_ext
14483 if test $ol_cv_winsock = yes; then
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_WINSOCK 1
14489 ac_cv_func_socket=yes
14490 ac_cv_func_select=yes
14491 ac_cv_func_closesocket=yes
14492 ac_cv_func_gethostname=yes
14493 if test $curlib = ws2_32; then
14494 ol_cv_winsock=winsock2
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_WINSOCK2 1
14506 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14507 echo "${ECHO_T}$ol_cv_winsock" >&6
14511 echo "$as_me:$LINENO: checking for socket" >&5
14512 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14513 if test "${ac_cv_func_socket+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524 #define socket innocuous_socket
14526 /* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char socket (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14532 # include <limits.h>
14534 # include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error. */
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14547 /* The GNU C library defines this for functions which it implements
14548 to always fail with ENOSYS. Some functions are actually named
14549 something starting with __ and the normal name is an alias. */
14550 #if defined (__stub_socket) || defined (__stub___socket)
14553 char (*f) () = socket;
14562 return f != socket;
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_cv_func_socket=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_func_socket=no
14596 rm -f conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14599 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14600 echo "${ECHO_T}$ac_cv_func_socket" >&6
14601 if test $ac_cv_func_socket = yes; then
14606 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14607 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14608 if test "${ac_cv_lib_socket_main+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lsocket $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14631 (eval $ac_link) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest$ac_exeext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_lib_socket_main=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_cv_lib_socket_main=no
14658 rm -f conftest.err conftest.$ac_objext \
14659 conftest$ac_exeext conftest.$ac_ext
14660 LIBS=$ac_check_lib_save_LIBS
14662 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14663 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14664 if test $ac_cv_lib_socket_main = yes; then
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_LIBSOCKET 1
14669 LIBS="-lsocket $LIBS"
14674 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14675 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14676 if test "${ac_cv_lib_net_main+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 ac_check_lib_save_LIBS=$LIBS
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag"
14707 || test ! -s conftest.err'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_lib_net_main=yes
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_lib_net_main=no
14726 rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14730 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14731 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14732 if test $ac_cv_lib_net_main = yes; then
14733 cat >>confdefs.h <<_ACEOF
14734 #define HAVE_LIBNET 1
14742 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14743 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14744 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lnsl_s $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767 (eval $ac_link) 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest$ac_exeext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_cv_lib_nsl_s_main=yes
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_lib_nsl_s_main=no
14794 rm -f conftest.err conftest.$ac_objext \
14795 conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14799 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14800 if test $ac_cv_lib_nsl_s_main = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_LIBNSL_S 1
14805 LIBS="-lnsl_s $LIBS"
14810 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14811 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14812 if test "${ac_cv_lib_nsl_main+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 ac_check_lib_save_LIBS=$LIBS
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest$ac_exeext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_lib_nsl_main=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_lib_nsl_main=no
14862 rm -f conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14867 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14868 if test $ac_cv_lib_nsl_main = yes; then
14869 cat >>confdefs.h <<_ACEOF
14870 #define HAVE_LIBNSL 1
14878 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14879 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14880 if test "${ac_cv_lib_inet_socket+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_check_lib_save_LIBS=$LIBS
14884 LIBS="-linet $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>conftest.er1
14911 grep -v '^ *+' conftest.er1 >conftest.err
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_c_werror_flag"
14917 || test ! -s conftest.err'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest$ac_exeext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_cv_lib_inet_socket=yes
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_lib_inet_socket=no
14936 rm -f conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14940 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14941 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14942 if test $ac_cv_lib_inet_socket = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define HAVE_LIBINET 1
14947 LIBS="-linet $LIBS"
14952 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14953 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14954 if test "${ac_cv_lib_gen_main+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 ac_check_lib_save_LIBS=$LIBS
14959 cat >conftest.$ac_ext <<_ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_lib_gen_main=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_lib_gen_main=no
15004 rm -f conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15006 LIBS=$ac_check_lib_save_LIBS
15008 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15009 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15010 if test $ac_cv_lib_gen_main = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_LIBGEN 1
15023 echo "$as_me:$LINENO: checking for select" >&5
15024 echo $ECHO_N "checking for select... $ECHO_C" >&6
15025 if test "${ac_cv_func_select+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 /* Define select to an innocuous variant, in case <limits.h> declares select.
15035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15036 #define select innocuous_select
15038 /* System header to define __stub macros and hopefully few prototypes,
15039 which can conflict with char select (); below.
15040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15041 <limits.h> exists even on freestanding compilers. */
15044 # include <limits.h>
15046 # include <assert.h>
15051 /* Override any gcc2 internal prototype to avoid an error. */
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15059 /* The GNU C library defines this for functions which it implements
15060 to always fail with ENOSYS. Some functions are actually named
15061 something starting with __ and the normal name is an alias. */
15062 #if defined (__stub_select) || defined (__stub___select)
15065 char (*f) () = select;
15074 return f != select;
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15083 grep -v '^ *+' conftest.er1 >conftest.err
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag"
15089 || test ! -s conftest.err'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 ac_cv_func_select=yes
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_cv_func_select=no
15108 rm -f conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15111 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15112 echo "${ECHO_T}$ac_cv_func_select" >&6
15113 if test $ac_cv_func_select = yes; then
15116 { { echo "$as_me:$LINENO: error: select() required." >&5
15117 echo "$as_me: error: select() required." >&2;}
15118 { (exit 1); exit 1; }; }
15122 if test "${ac_cv_header_winsock_h}" != yes; then
15125 for ac_header in sys/select.h sys/socket.h
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15129 echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15137 # Is the header compilable?
15138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 $ac_includes_default
15147 #include <$ac_header>
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>conftest.er1
15153 grep -v '^ *+' conftest.er1 >conftest.err
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_header_compiler=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_compiler=no
15178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180 echo "${ECHO_T}$ac_header_compiler" >&6
15182 # Is the header present?
15183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <$ac_header>
15193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } >/dev/null; then
15201 if test -s conftest.err; then
15202 ac_cpp_err=$ac_c_preproc_warn_flag
15203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210 if test -z "$ac_cpp_err"; then
15211 ac_header_preproc=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15246 ## ------------------------------------------ ##
15247 ## Report this to the AC_PACKAGE_NAME lists. ##
15248 ## ------------------------------------------ ##
15251 sed "s/^/$as_me: WARNING: /" >&2
15254 echo "$as_me:$LINENO: checking for $ac_header" >&5
15255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 eval "$as_ac_Header=\$ac_header_preproc"
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15275 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15276 if test "${ac_cv_func_select_args+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15280 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15281 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15282 cat >conftest.$ac_ext <<_ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 $ac_includes_default
15289 #if HAVE_SYS_SELECT_H
15290 # include <sys/select.h>
15292 #if HAVE_SYS_SOCKET_H
15293 # include <sys/socket.h>
15299 extern int select ($ac_arg1,
15300 $ac_arg234, $ac_arg234, $ac_arg234,
15306 rm -f conftest.$ac_objext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308 (eval $ac_compile) 2>conftest.er1
15310 grep -v '^ *+' conftest.er1 >conftest.err
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } &&
15315 { ac_try='test -z "$ac_c_werror_flag"
15316 || test ! -s conftest.err'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest.$ac_objext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 # Provide a safe default value.
15339 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15342 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15343 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15344 ac_save_IFS=$IFS; IFS=','
15345 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15349 cat >>confdefs.h <<_ACEOF
15350 #define SELECT_TYPE_ARG1 $1
15354 cat >>confdefs.h <<_ACEOF
15355 #define SELECT_TYPE_ARG234 ($2)
15359 cat >>confdefs.h <<_ACEOF
15360 #define SELECT_TYPE_ARG5 ($3)
15369 for ac_func in poll
15371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 echo "$as_me:$LINENO: checking for $ac_func" >&5
15373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_var+set}\" = set"; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15385 #define $ac_func innocuous_$ac_func
15387 /* System header to define __stub macros and hopefully few prototypes,
15388 which can conflict with char $ac_func (); below.
15389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15390 <limits.h> exists even on freestanding compilers. */
15393 # include <limits.h>
15395 # include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15414 char (*f) () = $ac_func;
15423 return f != $ac_func;
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 eval "$as_ac_var=yes"
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 eval "$as_ac_var=no"
15457 rm -f conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15462 if test `eval echo '${'$as_ac_var'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15471 for ac_header in poll.h
15473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15475 echo "$as_me:$LINENO: checking for $ac_header" >&5
15476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15483 # Is the header compilable?
15484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 $ac_includes_default
15493 #include <$ac_header>
15495 rm -f conftest.$ac_objext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497 (eval $ac_compile) 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag"
15505 || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_header_compiler=yes
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 ac_header_compiler=no
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15526 echo "${ECHO_T}$ac_header_compiler" >&6
15528 # Is the header present?
15529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <$ac_header>
15539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15542 grep -v '^ *+' conftest.er1 >conftest.err
15544 cat conftest.err >&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } >/dev/null; then
15547 if test -s conftest.err; then
15548 ac_cpp_err=$ac_c_preproc_warn_flag
15549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15556 if test -z "$ac_cpp_err"; then
15557 ac_header_preproc=yes
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_header_preproc=no
15564 rm -f conftest.err conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6
15568 # So? What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575 ac_header_preproc=yes
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15592 ## ------------------------------------------ ##
15593 ## Report this to the AC_PACKAGE_NAME lists. ##
15594 ## ------------------------------------------ ##
15597 sed "s/^/$as_me: WARNING: /" >&2
15600 echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 eval "$as_ac_Header=\$ac_header_preproc"
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15622 for ac_header in sys/epoll.h
15624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15626 echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15634 # Is the header compilable?
15635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 $ac_includes_default
15644 #include <$ac_header>
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_header_compiler=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_header_compiler=no
15675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677 echo "${ECHO_T}$ac_header_compiler" >&6
15679 # Is the header present?
15680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15682 cat >conftest.$ac_ext <<_ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <$ac_header>
15690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } >/dev/null; then
15698 if test -s conftest.err; then
15699 ac_cpp_err=$ac_c_preproc_warn_flag
15700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15707 if test -z "$ac_cpp_err"; then
15708 ac_header_preproc=yes
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_header_preproc=no
15715 rm -f conftest.err conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6
15719 # So? What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15726 ac_header_preproc=yes
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15743 ## ------------------------------------------ ##
15744 ## Report this to the AC_PACKAGE_NAME lists. ##
15745 ## ------------------------------------------ ##
15748 sed "s/^/$as_me: WARNING: /" >&2
15751 echo "$as_me:$LINENO: checking for $ac_header" >&5
15752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 eval "$as_ac_Header=\$ac_header_preproc"
15758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15771 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15772 echo "$as_me:$LINENO: checking for epoll system call" >&5
15773 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15774 if test "$cross_compiling" = yes; then
15775 echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 int main(int argc, char *argv)
15786 int epfd = epoll_create(256);
15787 exit (epfd == -1 ? 1 : 0);
15790 rm -f conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 echo "$as_me:$LINENO: result: yes" >&5
15802 echo "${ECHO_T}yes" >&6
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_EPOLL 1
15809 echo "$as_me: program exited with status $ac_status" >&5
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ( exit $ac_status )
15814 echo "$as_me:$LINENO: result: no" >&5
15815 echo "${ECHO_T}no" >&6
15817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15822 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15823 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15824 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15836 #include <sys/types.h>
15839 #include <stdlib.h>
15844 char *c = (char *) *sys_errlist
15849 rm -f conftest.$ac_objext
15850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag"
15859 || test ! -s conftest.err'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ol_cv_dcl_sys_errlist=yes
15872 ol_cv_have_sys_errlist=yes
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ol_cv_dcl_sys_errlist=no
15879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15881 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15882 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15884 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15885 if test $ol_cv_dcl_sys_errlist = no ; then
15887 cat >>confdefs.h <<\_ACEOF
15888 #define DECL_SYS_ERRLIST 1
15892 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15893 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15894 if test "${ol_cv_have_sys_errlist+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15908 char *c = (char *) *sys_errlist
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest$ac_exeext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ol_cv_have_sys_errlist=yes
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ol_cv_have_sys_errlist=no
15942 rm -f conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15945 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15946 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15948 if test $ol_cv_have_sys_errlist = yes ; then
15950 cat >>confdefs.h <<\_ACEOF
15951 #define HAVE_SYS_ERRLIST 1
15957 for ac_func in strerror strerror_r
15959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15960 echo "$as_me:$LINENO: checking for $ac_func" >&5
15961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_var+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15973 #define $ac_func innocuous_$ac_func
15975 /* System header to define __stub macros and hopefully few prototypes,
15976 which can conflict with char $ac_func (); below.
15977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15978 <limits.h> exists even on freestanding compilers. */
15981 # include <limits.h>
15983 # include <assert.h>
15988 /* Override any gcc2 internal prototype to avoid an error. */
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16002 char (*f) () = $ac_func;
16011 return f != $ac_func;
16016 rm -f conftest.$ac_objext conftest$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018 (eval $ac_link) 2>conftest.er1
16020 grep -v '^ *+' conftest.er1 >conftest.err
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest$ac_exeext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 eval "$as_ac_var=yes"
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 eval "$as_ac_var=no"
16045 rm -f conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16058 ol_cv_func_strerror_r=no
16059 if test "${ac_cv_func_strerror_r}" = yes ; then
16060 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16061 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16062 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 cat >conftest.$ac_ext <<_ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <string.h>
16074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16075 $EGREP "strerror_r" >/dev/null 2>&1; then
16076 ol_decl_strerror_r=yes
16078 ol_decl_strerror_r=no
16082 if test $ol_decl_strerror_r = yes ; then
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 #include <string.h>
16093 /* from autoconf 2.59 */
16095 char x = *strerror_r (0, buf, sizeof buf);
16096 char *p = strerror_r (0, buf, sizeof buf);
16102 rm -f conftest.$ac_objext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104 (eval $ac_compile) 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest.$ac_objext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 ol_cv_nonposix_strerror_r=yes
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16129 ol_cv_nonposix_strerror_r=no
16131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133 if test "$cross_compiling" = yes; then
16134 ol_cv_nonposix_strerror=no
16136 cat >conftest.$ac_ext <<_ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16146 strerror_r( 1, buf, sizeof buf );
16147 exit( buf[0] == 0 );
16151 rm -f conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153 (eval $ac_link) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ol_cv_nonposix_strerror_r=yes
16164 echo "$as_me: program exited with status $ac_status" >&5
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ( exit $ac_status )
16169 ol_cv_nonposix_strerror=no
16171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16176 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16177 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16178 if test $ol_cv_nonposix_strerror_r = yes ; then
16180 cat >>confdefs.h <<\_ACEOF
16181 #define HAVE_NONPOSIX_STRERROR_R 1
16186 elif test "${ac_cv_func_strerror}" = no ; then
16187 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16188 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16189 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16201 #include <sys/types.h>
16204 #include <stdlib.h>
16209 char *c = (char *) *sys_errlist
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216 (eval $ac_compile) 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ol_cv_dcl_sys_errlist=yes
16237 ol_cv_have_sys_errlist=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ol_cv_dcl_sys_errlist=no
16244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16247 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16249 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16250 if test $ol_cv_dcl_sys_errlist = no ; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define DECL_SYS_ERRLIST 1
16257 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16258 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16259 if test "${ol_cv_have_sys_errlist+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16273 char *c = (char *) *sys_errlist
16278 rm -f conftest.$ac_objext conftest$ac_exeext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280 (eval $ac_link) 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest$ac_exeext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ol_cv_have_sys_errlist=yes
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ol_cv_have_sys_errlist=no
16307 rm -f conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16310 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16311 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16313 if test $ol_cv_have_sys_errlist = yes ; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_SYS_ERRLIST 1
16325 for ac_header in regex.h
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16329 echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16337 # Is the header compilable?
16338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16340 cat >conftest.$ac_ext <<_ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 $ac_includes_default
16347 #include <$ac_header>
16349 rm -f conftest.$ac_objext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16351 (eval $ac_compile) 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag"
16359 || test ! -s conftest.err'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest.$ac_objext'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_header_compiler=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_header_compiler=no
16378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16380 echo "${ECHO_T}$ac_header_compiler" >&6
16382 # Is the header present?
16383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 #include <$ac_header>
16393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } >/dev/null; then
16401 if test -s conftest.err; then
16402 ac_cpp_err=$ac_c_preproc_warn_flag
16403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16410 if test -z "$ac_cpp_err"; then
16411 ac_header_preproc=yes
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_header_preproc=no
16418 rm -f conftest.err conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16420 echo "${ECHO_T}$ac_header_preproc" >&6
16422 # So? What about this header?
16423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16429 ac_header_preproc=yes
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16446 ## ------------------------------------------ ##
16447 ## Report this to the AC_PACKAGE_NAME lists. ##
16448 ## ------------------------------------------ ##
16451 sed "s/^/$as_me: WARNING: /" >&2
16454 echo "$as_me:$LINENO: checking for $ac_header" >&5
16455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 eval "$as_ac_Header=\$ac_header_preproc"
16461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16474 if test "$ac_cv_header_regex_h" != yes ; then
16475 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16476 echo "$as_me: error: POSIX regex.h required." >&2;}
16477 { (exit 1); exit 1; }; }
16479 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16480 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16481 if test "${ac_cv_search_regfree+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 ac_func_search_save_LIBS=$LIBS
16485 ac_cv_search_regfree=no
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16493 /* Override any gcc2 internal prototype to avoid an error. */
16497 /* We use char because int might match the return type of a gcc2
16498 builtin and then its argument prototype would still apply. */
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510 (eval $ac_link) 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag"
16518 || test ! -s conftest.err'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_search_regfree="none required"
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16536 rm -f conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
16538 if test "$ac_cv_search_regfree" = no; then
16539 for ac_lib in regex gnuregex; do
16540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16548 /* Override any gcc2 internal prototype to avoid an error. */
16552 /* We use char because int might match the return type of a gcc2
16553 builtin and then its argument prototype would still apply. */
16563 rm -f conftest.$ac_objext conftest$ac_exeext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565 (eval $ac_link) 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -z "$ac_c_werror_flag"
16573 || test ! -s conftest.err'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_search_regfree="-l$ac_lib"
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16592 rm -f conftest.err conftest.$ac_objext \
16593 conftest$ac_exeext conftest.$ac_ext
16596 LIBS=$ac_func_search_save_LIBS
16598 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16599 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16600 if test "$ac_cv_search_regfree" != no; then
16601 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16604 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16605 echo "$as_me: error: POSIX regex required." >&2;}
16606 { (exit 1); exit 1; }; }
16611 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16612 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16613 if test "${ol_cv_c_posix_regex+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 if test "$cross_compiling" = yes; then
16618 ol_cv_c_posix_regex=cross
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16627 #include <sys/types.h>
16629 static char *pattern, *string;
16637 if(regcomp(&re, pattern, 0)) {
16641 string = "ALL MATCH";
16643 rc = regexec(&re, string, 0, (void*)0, 0);
16650 rm -f conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ol_cv_c_posix_regex=yes
16663 echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ( exit $ac_status )
16668 ol_cv_c_posix_regex=no
16670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16674 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16676 if test "$ol_cv_c_posix_regex" = no ; then
16677 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16678 echo "$as_me: error: broken POSIX regex!" >&2;}
16679 { (exit 1); exit 1; }; }
16685 for ac_header in sys/uuid.h
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16689 echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16697 # Is the header compilable?
16698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 $ac_includes_default
16707 #include <$ac_header>
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_header_compiler=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_header_compiler=no
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16740 echo "${ECHO_T}$ac_header_compiler" >&6
16742 # Is the header present?
16743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <$ac_header>
16753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } >/dev/null; then
16761 if test -s conftest.err; then
16762 ac_cpp_err=$ac_c_preproc_warn_flag
16763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16770 if test -z "$ac_cpp_err"; then
16771 ac_header_preproc=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_header_preproc=no
16778 rm -f conftest.err conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16806 ## ------------------------------------------ ##
16807 ## Report this to the AC_PACKAGE_NAME lists. ##
16808 ## ------------------------------------------ ##
16811 sed "s/^/$as_me: WARNING: /" >&2
16814 echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 eval "$as_ac_Header=\$ac_header_preproc"
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16834 if test $ac_cv_header_sys_uuid_h = yes ; then
16836 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16837 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16838 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 ac_func_search_save_LIBS=$LIBS
16842 ac_cv_search_uuid_to_str=no
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 /* Override any gcc2 internal prototype to avoid an error. */
16854 /* We use char because int might match the return type of a gcc2
16855 builtin and then its argument prototype would still apply. */
16856 char uuid_to_str ();
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_search_uuid_to_str="none required"
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16893 rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895 if test "$ac_cv_search_uuid_to_str" = no; then
16896 for ac_lib in uuid; do
16897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any gcc2 internal prototype to avoid an error. */
16909 /* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16911 char uuid_to_str ();
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag"
16930 || test ! -s conftest.err'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 ac_cv_search_uuid_to_str="-l$ac_lib"
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16949 rm -f conftest.err conftest.$ac_objext \
16950 conftest$ac_exeext conftest.$ac_ext
16953 LIBS=$ac_func_search_save_LIBS
16955 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16956 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16957 if test "$ac_cv_search_uuid_to_str" != no; then
16958 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16966 if test have_uuid = yes ; then
16968 cat >>confdefs.h <<\_ACEOF
16969 #define HAVE_UUID_TO_STR 1
16973 test "$ac_cv_search_uuid_to_str" = "none required" || \
16974 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16978 if test $have_uuid = no ; then
16979 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16980 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16982 LIBS="$LIBS -lrpcrt4"
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 int __stdcall UuidCreate(void *);
16991 int __stdcall UuidToStringA(void *,void **);
16998 UuidToStringA(0,0);
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006 (eval $ac_link) 2>conftest.er1
17008 grep -v '^ *+' conftest.er1 >conftest.err
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest$ac_exeext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17033 rm -f conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035 if test $need_rpcrt = yes; then
17036 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17039 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17040 echo "${ECHO_T}$need_rpcrt" >&6
17043 ol_cv_lib_resolver=no
17044 if test $ol_cv_lib_resolver = no ; then
17045 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17046 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17047 if test "${ol_cv_resolver_none+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 LIBS="$ol_RESOLVER_LIB $LIBS"
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17062 #ifdef HAVE_SYS_TYPES_H
17063 # include <sys/types.h>
17065 #include <netinet/in.h>
17066 #ifdef HAVE_ARPA_NAMESER_H
17067 # include <arpa/nameser.h>
17069 #ifdef HAVE_RESOLV_H
17070 # include <resolv.h>
17078 char *request = NULL;
17079 unsigned char reply[64*1024];
17080 unsigned char host[64*1024];
17084 /* Bind 8/9 interface */
17085 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17087 /* Bind 4 interface */
17091 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17095 /* Bind 8/9 interface */
17097 #elif defined(HFIXEDSZ)
17098 /* Bind 4 interface w/ HFIXEDSZ */
17101 /* Bind 4 interface w/o HFIXEDSZ */
17102 p += sizeof(HEADER);
17104 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ol_cv_resolver_none=yes
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ol_cv_resolver_none=no
17139 rm -f conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17146 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17148 if test $ol_cv_resolver_none = yes ; then
17149 ol_cv_lib_resolver=yes
17153 if test $ol_cv_lib_resolver = no ; then
17154 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17155 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17156 if test "${ol_cv_resolver_resolv+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 ol_RESOLVER_LIB=-lresolv
17162 LIBS="$ol_RESOLVER_LIB $LIBS"
17164 cat >conftest.$ac_ext <<_ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17171 #ifdef HAVE_SYS_TYPES_H
17172 # include <sys/types.h>
17174 #include <netinet/in.h>
17175 #ifdef HAVE_ARPA_NAMESER_H
17176 # include <arpa/nameser.h>
17178 #ifdef HAVE_RESOLV_H
17179 # include <resolv.h>
17187 char *request = NULL;
17188 unsigned char reply[64*1024];
17189 unsigned char host[64*1024];
17193 /* Bind 8/9 interface */
17194 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17196 /* Bind 4 interface */
17200 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17204 /* Bind 8/9 interface */
17206 #elif defined(HFIXEDSZ)
17207 /* Bind 4 interface w/ HFIXEDSZ */
17210 /* Bind 4 interface w/o HFIXEDSZ */
17211 p += sizeof(HEADER);
17213 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ol_cv_resolver_resolv=yes
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ol_cv_resolver_resolv=no
17248 rm -f conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17254 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17255 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17257 if test $ol_cv_resolver_resolv = yes ; then
17258 ol_cv_lib_resolver=-lresolv
17262 if test $ol_cv_lib_resolver = no ; then
17263 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17264 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17265 if test "${ol_cv_resolver_bind+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ol_RESOLVER_LIB=-lbind
17271 LIBS="$ol_RESOLVER_LIB $LIBS"
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17280 #ifdef HAVE_SYS_TYPES_H
17281 # include <sys/types.h>
17283 #include <netinet/in.h>
17284 #ifdef HAVE_ARPA_NAMESER_H
17285 # include <arpa/nameser.h>
17287 #ifdef HAVE_RESOLV_H
17288 # include <resolv.h>
17296 char *request = NULL;
17297 unsigned char reply[64*1024];
17298 unsigned char host[64*1024];
17302 /* Bind 8/9 interface */
17303 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17305 /* Bind 4 interface */
17309 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17313 /* Bind 8/9 interface */
17315 #elif defined(HFIXEDSZ)
17316 /* Bind 4 interface w/ HFIXEDSZ */
17319 /* Bind 4 interface w/o HFIXEDSZ */
17320 p += sizeof(HEADER);
17322 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ol_cv_resolver_bind=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ol_cv_resolver_bind=no
17357 rm -f conftest.err conftest.$ac_objext \
17358 conftest$ac_exeext conftest.$ac_ext
17363 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17364 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17366 if test $ol_cv_resolver_bind = yes ; then
17367 ol_cv_lib_resolver=-lbind
17374 if test "$ol_cv_lib_resolver" != no ; then
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_RES_QUERY 1
17381 if test "$ol_enable_dnssrv" != no ; then
17385 if test "$ol_cv_lib_resolver" != yes ; then
17386 LIBS="$ol_cv_lib_resolver $LIBS"
17390 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
17391 if test "$ol_link_dnssrv" = no ; then
17392 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17393 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17394 { (exit 1); exit 1; }; }
17397 ol_enable_dnssrv=no
17401 for ac_func in hstrerror
17403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404 echo "$as_me:$LINENO: checking for $ac_func" >&5
17405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17406 if eval "test \"\${$as_ac_var+set}\" = set"; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17417 #define $ac_func innocuous_$ac_func
17419 /* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char $ac_func (); below.
17421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 <limits.h> exists even on freestanding compilers. */
17425 # include <limits.h>
17427 # include <assert.h>
17432 /* Override any gcc2 internal prototype to avoid an error. */
17437 /* We use char because int might match the return type of a gcc2
17438 builtin and then its argument prototype would still apply. */
17440 /* The GNU C library defines this for functions which it implements
17441 to always fail with ENOSYS. Some functions are actually named
17442 something starting with __ and the normal name is an alias. */
17443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17446 char (*f) () = $ac_func;
17455 return f != $ac_func;
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 eval "$as_ac_var=yes"
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 eval "$as_ac_var=no"
17489 rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510 echo "$as_me:$LINENO: checking for $ac_func" >&5
17511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17512 if eval "test \"\${$as_ac_var+set}\" = set"; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 cat >conftest.$ac_ext <<_ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17523 #define $ac_func innocuous_$ac_func
17525 /* System header to define __stub macros and hopefully few prototypes,
17526 which can conflict with char $ac_func (); below.
17527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528 <limits.h> exists even on freestanding compilers. */
17531 # include <limits.h>
17533 # include <assert.h>
17538 /* Override any gcc2 internal prototype to avoid an error. */
17543 /* We use char because int might match the return type of a gcc2
17544 builtin and then its argument prototype would still apply. */
17546 /* The GNU C library defines this for functions which it implements
17547 to always fail with ENOSYS. Some functions are actually named
17548 something starting with __ and the normal name is an alias. */
17549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17552 char (*f) () = $ac_func;
17561 return f != $ac_func;
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 eval "$as_ac_var=yes"
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 eval "$as_ac_var=no"
17595 rm -f conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17600 if test `eval echo '${'$as_ac_var'}'` = yes; then
17601 cat >>confdefs.h <<_ACEOF
17602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17610 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
17611 if test $ol_enable_ipv6 = yes ; then
17612 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17613 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17614 { (exit 1); exit 1; }; }
17616 elif test $ol_enable_ipv6 != no ; then
17617 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17618 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17619 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17630 # include <netinet/in.h>
17631 # ifdef INET6_ADDRSTRLEN
17632 __has_inet6_addrstrlen__;
17636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17638 ol_cv_inet6_addrstrlen=yes
17640 ol_cv_inet6_addrstrlen=no
17645 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17646 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17649 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17650 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17651 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17662 #include <sys/types.h>
17663 #include <sys/socket.h>
17669 struct sockaddr_storage ss;
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ol_cv_struct_sockaddr_storage=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ol_cv_struct_sockaddr_storage=no
17704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17707 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17709 if test $ol_cv_inet6_addrstrlen = yes \
17710 -a $ol_cv_struct_sockaddr_storage = yes ; then
17712 elif test $ol_enable_ipv6 = yes \
17713 -a $ol_cv_inet6_addrstrlen = no ; then
17714 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17715 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17716 { (exit 1); exit 1; }; }
17717 elif test $ol_enable_ipv6 = yes \
17718 -a $ol_cv_struct_sockaddr_storage = no ; then
17719 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17720 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17721 { (exit 1); exit 1; }; }
17725 if test $ol_enable_local != no ; then
17727 for ac_header in sys/un.h
17729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17731 echo "$as_me:$LINENO: checking for $ac_header" >&5
17732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17739 # Is the header compilable?
17740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 #include <$ac_header>
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_header_compiler=yes
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_header_compiler=no
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17782 echo "${ECHO_T}$ac_header_compiler" >&6
17784 # Is the header present?
17785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 #include <$ac_header>
17795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17798 grep -v '^ *+' conftest.er1 >conftest.err
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } >/dev/null; then
17803 if test -s conftest.err; then
17804 ac_cpp_err=$ac_c_preproc_warn_flag
17805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17812 if test -z "$ac_cpp_err"; then
17813 ac_header_preproc=yes
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 ac_header_preproc=no
17820 rm -f conftest.err conftest.$ac_ext
17821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17822 echo "${ECHO_T}$ac_header_preproc" >&6
17824 # So? What about this header?
17825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17831 ac_header_preproc=yes
17834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17848 ## ------------------------------------------ ##
17849 ## Report this to the AC_PACKAGE_NAME lists. ##
17850 ## ------------------------------------------ ##
17853 sed "s/^/$as_me: WARNING: /" >&2
17856 echo "$as_me:$LINENO: checking for $ac_header" >&5
17857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 eval "$as_ac_Header=\$ac_header_preproc"
17863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17877 if test $ol_enable_local = auto ; then
17878 ol_enable_local=$ac_cv_header_sys_un_h
17879 elif test $ac_cv_header_sys_un_h = no ; then
17880 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17881 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17882 { (exit 1); exit 1; }; }
17890 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
17891 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
17892 -o $ol_with_kerberos = k425 ; then
17895 for ac_header in krb5.h
17897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17899 echo "$as_me:$LINENO: checking for $ac_header" >&5
17900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17907 # Is the header compilable?
17908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17917 #include <$ac_header>
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17923 grep -v '^ *+' conftest.er1 >conftest.err
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_header_compiler=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_header_compiler=no
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6
17952 # Is the header present?
17953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <$ac_header>
17963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17966 grep -v '^ *+' conftest.er1 >conftest.err
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } >/dev/null; then
17971 if test -s conftest.err; then
17972 ac_cpp_err=$ac_c_preproc_warn_flag
17973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17980 if test -z "$ac_cpp_err"; then
17981 ac_header_preproc=yes
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 ac_header_preproc=no
17988 rm -f conftest.err conftest.$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17990 echo "${ECHO_T}$ac_header_preproc" >&6
17992 # So? What about this header?
17993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17999 ac_header_preproc=yes
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18016 ## ------------------------------------------ ##
18017 ## Report this to the AC_PACKAGE_NAME lists. ##
18018 ## ------------------------------------------ ##
18021 sed "s/^/$as_me: WARNING: /" >&2
18024 echo "$as_me:$LINENO: checking for $ac_header" >&5
18025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 eval "$as_ac_Header=\$ac_header_preproc"
18031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18045 if test $ac_cv_header_krb5_h = yes ; then
18047 for ac_header in heim_err.h
18049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18051 echo "$as_me:$LINENO: checking for $ac_header" >&5
18052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18059 # Is the header compilable?
18060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 $ac_includes_default
18069 #include <$ac_header>
18071 rm -f conftest.$ac_objext
18072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073 (eval $ac_compile) 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag"
18081 || test ! -s conftest.err'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest.$ac_objext'
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_header_compiler=yes
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_header_compiler=no
18100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18102 echo "${ECHO_T}$ac_header_compiler" >&6
18104 # Is the header present?
18105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 #include <$ac_header>
18115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18118 grep -v '^ *+' conftest.er1 >conftest.err
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } >/dev/null; then
18123 if test -s conftest.err; then
18124 ac_cpp_err=$ac_c_preproc_warn_flag
18125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18132 if test -z "$ac_cpp_err"; then
18133 ac_header_preproc=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_header_preproc=no
18140 rm -f conftest.err conftest.$ac_ext
18141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18142 echo "${ECHO_T}$ac_header_preproc" >&6
18144 # So? What about this header?
18145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18151 ac_header_preproc=yes
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18168 ## ------------------------------------------ ##
18169 ## Report this to the AC_PACKAGE_NAME lists. ##
18170 ## ------------------------------------------ ##
18173 sed "s/^/$as_me: WARNING: /" >&2
18176 echo "$as_me:$LINENO: checking for $ac_header" >&5
18177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 eval "$as_ac_Header=\$ac_header_preproc"
18183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188 cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18196 if test $ac_cv_header_heim_err_h = yes ; then
18202 if test $krb5_impl = mit; then
18203 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18204 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18205 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-lk5crypto $LIBS"
18210 cat >conftest.$ac_ext <<_ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228 (eval $ac_link) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest$ac_exeext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_lib_k5crypto_main=yes
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_cv_lib_k5crypto_main=no
18255 rm -f conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257 LIBS=$ac_check_lib_save_LIBS
18259 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18260 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18261 if test $ac_cv_lib_k5crypto_main = yes; then
18262 krb5crypto=k5crypto
18268 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18269 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18270 if test "${ac_cv_lib_krb5_main+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18293 (eval $ac_link) 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest$ac_exeext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 ac_cv_lib_krb5_main=yes
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_cv_lib_krb5_main=no
18320 rm -f conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18324 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18325 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18326 if test $ac_cv_lib_krb5_main = yes; then
18328 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18334 elif test $krb5_impl = heimdal; then
18335 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18336 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18337 if test "${ac_cv_lib_des_main+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 ac_check_lib_save_LIBS=$LIBS
18342 cat >conftest.$ac_ext <<_ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18360 (eval $ac_link) 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag"
18368 || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_des_main=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_des_main=no
18387 rm -f conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18392 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18393 if test $ac_cv_lib_des_main = yes; then
18400 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18401 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18402 if test "${ac_cv_lib_krb5_main+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 ac_check_lib_save_LIBS=$LIBS
18406 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest$ac_exeext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_krb5_main=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_lib_krb5_main=no
18452 rm -f conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18456 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18457 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18458 if test $ac_cv_lib_krb5_main = yes; then
18460 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE_HEIMDAL_KERBEROS 1
18474 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18475 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18478 if test $have_krb5 = yes ; then
18482 cat >>confdefs.h <<\_ACEOF
18483 #define HAVE_KRB5 1
18487 if test $ol_with_kerberos = k5only ; then
18488 ol_with_kerberos=found
18491 elif test $ol_with_kerberos != auto ; then
18492 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18493 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18494 { (exit 1); exit 1; }; }
18500 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
18501 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
18505 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18509 echo "$as_me:$LINENO: checking for $ac_header" >&5
18510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18517 # Is the header compilable?
18518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18520 cat >conftest.$ac_ext <<_ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 $ac_includes_default
18527 #include <$ac_header>
18529 rm -f conftest.$ac_objext
18530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531 (eval $ac_compile) 2>conftest.er1
18533 grep -v '^ *+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_c_werror_flag"
18539 || test ! -s conftest.err'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_header_compiler=yes
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_header_compiler=no
18558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18560 echo "${ECHO_T}$ac_header_compiler" >&6
18562 # Is the header present?
18563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include <$ac_header>
18573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } >/dev/null; then
18581 if test -s conftest.err; then
18582 ac_cpp_err=$ac_c_preproc_warn_flag
18583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18590 if test -z "$ac_cpp_err"; then
18591 ac_header_preproc=yes
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_header_preproc=no
18598 rm -f conftest.err conftest.$ac_ext
18599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18600 echo "${ECHO_T}$ac_header_preproc" >&6
18602 # So? What about this header?
18603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18609 ac_header_preproc=yes
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18626 ## ------------------------------------------ ##
18627 ## Report this to the AC_PACKAGE_NAME lists. ##
18628 ## ------------------------------------------ ##
18631 sed "s/^/$as_me: WARNING: /" >&2
18634 echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 eval "$as_ac_Header=\$ac_header_preproc"
18641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18655 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18656 if test $krb5_impl = mit; then
18657 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18658 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18659 if test "${ac_cv_lib_krb4_main+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_krb4_main=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_lib_krb4_main=no
18709 rm -f conftest.err conftest.$ac_objext \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18713 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18714 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18715 if test $ac_cv_lib_krb4_main = yes; then
18717 KRB4_LIBS="-lkrb4 -ldes425"
18723 elif test $krb5_impl = heimdal; then
18724 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18725 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18726 if test "${ac_cv_lib_krb4_main+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18749 (eval $ac_link) 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try='test -z "$ac_c_werror_flag"
18757 || test ! -s conftest.err'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest$ac_exeext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_krb4_main=yes
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 ac_cv_lib_krb4_main=no
18776 rm -f conftest.err conftest.$ac_objext \
18777 conftest$ac_exeext conftest.$ac_ext
18778 LIBS=$ac_check_lib_save_LIBS
18780 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18781 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18782 if test $ac_cv_lib_krb4_main = yes; then
18792 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18793 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18796 if test $have_k425 = yes ; then
18797 ol_with_kerberos=found
18801 cat >>confdefs.h <<\_ACEOF
18802 #define HAVE_KRB425 1
18806 cat >>confdefs.h <<\_ACEOF
18807 #define HAVE_KRB4 1
18811 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18812 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18813 if test "${ol_cv_var_des_debug+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18819 cat >conftest.$ac_ext <<_ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18826 #include <kerberosIV/krb.h>
18827 #include <kerberosIV/des.h>
18828 extern int des_debug;
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1 >conftest.err
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ol_cv_var_des_debug=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ol_cv_var_des_debug=no
18869 rm -f conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18874 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18875 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18877 if test $ol_cv_var_des_debug = yes ; then
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_DES_DEBUG 1
18890 if test $ol_link_krb5 = yes ; then
18891 ol_with_kerberos=found
18894 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
18895 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
18900 for ac_header in krb.h des.h krb-archaeology.h
18902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904 echo "$as_me:$LINENO: checking for $ac_header" >&5
18905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18912 # Is the header compilable?
18913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 $ac_includes_default
18922 #include <$ac_header>
18924 rm -f conftest.$ac_objext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926 (eval $ac_compile) 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_header_compiler=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_header_compiler=no
18953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18955 echo "${ECHO_T}$ac_header_compiler" >&6
18957 # Is the header present?
18958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 #include <$ac_header>
18968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } >/dev/null; then
18976 if test -s conftest.err; then
18977 ac_cpp_err=$ac_c_preproc_warn_flag
18978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18985 if test -z "$ac_cpp_err"; then
18986 ac_header_preproc=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_header_preproc=no
18993 rm -f conftest.err conftest.$ac_ext
18994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18995 echo "${ECHO_T}$ac_header_preproc" >&6
18997 # So? What about this header?
18998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19004 ac_header_preproc=yes
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19021 ## ------------------------------------------ ##
19022 ## Report this to the AC_PACKAGE_NAME lists. ##
19023 ## ------------------------------------------ ##
19026 sed "s/^/$as_me: WARNING: /" >&2
19029 echo "$as_me:$LINENO: checking for $ac_header" >&5
19030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 eval "$as_ac_Header=\$ac_header_preproc"
19036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19041 cat >>confdefs.h <<_ACEOF
19042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19050 if test $ac_cv_header_krb_h = yes ; then
19051 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19052 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19053 if test "${ac_cv_lib_krb_main+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 ac_check_lib_save_LIBS=$LIBS
19057 LIBS="-lkrb -ldes $LIBS"
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19074 rm -f conftest.$ac_objext conftest$ac_exeext
19075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19076 (eval $ac_link) 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag"
19084 || test ! -s conftest.err'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest$ac_exeext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_cv_lib_krb_main=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_lib_krb_main=no
19103 rm -f conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
19105 LIBS=$ac_check_lib_save_LIBS
19107 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19108 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19109 if test $ac_cv_lib_krb_main = yes; then
19116 if test $have_k4 = yes ; then
19117 ol_with_kerberos=found
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_KRB4 1
19126 KRB4_LIBS="-lkrb -ldes"
19128 if test $ac_cv_header_krb_archaeology_h = yes ; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_KTH_KERBEROS 1
19139 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
19142 elif test $ol_enable_kbind = yes ; then
19143 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19144 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19145 { (exit 1); exit 1; }; }
19148 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_KERBEROS 1
19155 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
19156 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19157 echo "$as_me: error: Kerberos detection failed" >&2;}
19158 { (exit 1); exit 1; }; }
19163 if test $ol_with_tls != no ; then
19166 for ac_header in openssl/ssl.h ssl.h
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170 echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19178 # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 $ac_includes_default
19188 #include <$ac_header>
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192 (eval $ac_compile) 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag"
19200 || test ! -s conftest.err'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest.$ac_objext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_header_compiler=yes
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_header_compiler=no
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19221 echo "${ECHO_T}$ac_header_compiler" >&6
19223 # Is the header present?
19224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <$ac_header>
19234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19237 grep -v '^ *+' conftest.er1 >conftest.err
19239 cat conftest.err >&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } >/dev/null; then
19242 if test -s conftest.err; then
19243 ac_cpp_err=$ac_c_preproc_warn_flag
19244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19251 if test -z "$ac_cpp_err"; then
19252 ac_header_preproc=yes
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ac_header_preproc=no
19259 rm -f conftest.err conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19261 echo "${ECHO_T}$ac_header_preproc" >&6
19263 # So? What about this header?
19264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19270 ac_header_preproc=yes
19273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19287 ## ------------------------------------------ ##
19288 ## Report this to the AC_PACKAGE_NAME lists. ##
19289 ## ------------------------------------------ ##
19292 sed "s/^/$as_me: WARNING: /" >&2
19295 echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 eval "$as_ac_Header=\$ac_header_preproc"
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19316 if test $ac_cv_header_openssl_ssl_h = yes \
19317 -o $ac_cv_header_ssl_h = yes ; then
19318 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19319 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19320 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lssl -lcrypto $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338 char SSLeay_add_ssl_algorithms ();
19342 SSLeay_add_ssl_algorithms ();
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19376 rm -f conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19380 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19381 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19382 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19390 if test $have_ssleay = no ; then
19391 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19392 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19393 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lssl -lcrypto $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19411 char SSL_library_init ();
19415 SSL_library_init ();
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422 (eval $ac_link) 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest$ac_exeext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_cv_lib_ssl_SSL_library_init=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_lib_ssl_SSL_library_init=no
19449 rm -f conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19454 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19455 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19464 if test $have_ssleay = no ; then
19465 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19466 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19467 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any gcc2 internal prototype to avoid an error. */
19483 /* We use char because int might match the return type of a gcc2
19484 builtin and then its argument prototype would still apply. */
19485 char ssl3_accept ();
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496 (eval $ac_link) 2>conftest.er1
19498 grep -v '^ *+' conftest.er1 >conftest.err
19500 cat conftest.err >&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
19503 { ac_try='test -z "$ac_c_werror_flag"
19504 || test ! -s conftest.err'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest$ac_exeext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_lib_ssl_ssl3_accept=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_lib_ssl_ssl3_accept=no
19523 rm -f conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19527 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19528 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19529 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19538 if test $have_ssleay = yes ; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_SSLEAY 1
19548 if test $need_rsaref = yes; then
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE_RSAREF 1
19555 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19557 TLS_LIBS="-lssl -lcrypto"
19560 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19561 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19562 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19573 #ifdef HAVE_OPENSSL_SSL_H
19574 #include <openssl/ssl.h>
19579 /* Require 0.9.7d+ */
19580 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19581 char *__ssl_compat = "0.9.7d";
19585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19586 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19587 ol_cv_ssl_crl_compat=yes
19589 ol_cv_ssl_crl_compat=no
19594 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19595 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19597 if test $ol_cv_ssl_crl_compat = no ; then
19601 cat >>confdefs.h <<\_ACEOF
19602 #define HAVE_OPENSSL_CRL 1
19609 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19610 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19614 if test $ol_link_tls = yes ; then
19616 cat >>confdefs.h <<\_ACEOF
19622 elif test $ol_with_tls = auto ; then
19623 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19624 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19626 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19628 elif test $ol_with_tls != no ; then
19629 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19630 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19631 { (exit 1); exit 1; }; }
19634 if test $ol_enable_lmpasswd != no; then
19635 if test $ol_link_tls != yes ; then
19636 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19637 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19638 { (exit 1); exit 1; }; }
19642 cat >>confdefs.h <<\_ACEOF
19643 #define SLAPD_LMHASH 1
19650 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19651 -o $ol_with_threads = nt ; then
19654 echo "$as_me:$LINENO: checking for _beginthread" >&5
19655 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19656 if test "${ac_cv_func__beginthread+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19665 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19667 #define _beginthread innocuous__beginthread
19669 /* System header to define __stub macros and hopefully few prototypes,
19670 which can conflict with char _beginthread (); below.
19671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19672 <limits.h> exists even on freestanding compilers. */
19675 # include <limits.h>
19677 # include <assert.h>
19680 #undef _beginthread
19682 /* Override any gcc2 internal prototype to avoid an error. */
19687 /* We use char because int might match the return type of a gcc2
19688 builtin and then its argument prototype would still apply. */
19689 char _beginthread ();
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19696 char (*f) () = _beginthread;
19705 return f != _beginthread;
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_func__beginthread=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_func__beginthread=no
19739 rm -f conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19742 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19743 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19746 if test $ac_cv_func__beginthread = yes ; then
19748 cat >>confdefs.h <<\_ACEOF
19749 #define HAVE_NT_THREADS 1
19752 ol_cv_nt_threads=yes
19756 if test "$ol_cv_nt_threads" = yes ; then
19758 ol_with_threads=found
19759 ol_with_yielding_select=yes
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_NT_SERVICE_MANAGER 1
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_NT_EVENT_LOG 1
19773 if test $ol_with_threads = nt ; then
19774 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19775 echo "$as_me: error: could not locate NT Threads" >&2;}
19776 { (exit 1); exit 1; }; }
19780 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19781 -o $ol_with_threads = posix ; then
19784 for ac_header in pthread.h
19786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19796 # Is the header compilable?
19797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19806 #include <$ac_header>
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_compiler=no
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 #include <$ac_header>
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } >/dev/null; then
19860 if test -s conftest.err; then
19861 ac_cpp_err=$ac_c_preproc_warn_flag
19862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19869 if test -z "$ac_cpp_err"; then
19870 ac_header_preproc=yes
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_header_preproc=no
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19881 # So? What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19888 ac_header_preproc=yes
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists. ##
19907 ## ------------------------------------------ ##
19910 sed "s/^/$as_me: WARNING: /" >&2
19913 echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 eval "$as_ac_Header=\$ac_header_preproc"
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19925 cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19934 if test $ac_cv_header_pthread_h = yes ; then
19935 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19936 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19937 if test "${ol_cv_pthread_version+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 # include <pthread.h>
19954 int i = PTHREAD_CREATE_JOINABLE;
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try='test -s conftest.$ac_objext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <pthread.h>
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993 $EGREP "pthread_detach" >/dev/null 2>&1; then
19994 ol_cv_pthread_version=10
19996 ol_cv_pthread_version=8
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 # include <pthread.h>
20013 # ifdef PTHREAD_CREATE_UNDETACHED
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "draft7" >/dev/null 2>&1; then
20020 ol_cv_pthread_version=7
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <pthread.h>
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20034 ol_cv_pthread_version=6
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 # include <pthread.h>
20045 #ifdef PTHREAD_MUTEX_INITIALIZER
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051 $EGREP "draft5" >/dev/null 2>&1; then
20052 ol_cv_pthread_version=5
20054 ol_cv_pthread_version=4
20065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20068 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20069 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20072 if test $ol_cv_pthread_version != 0 ; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_PTHREADS $ol_cv_pthread_version
20079 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20080 echo "$as_me: error: unknown pthread version" >&2;}
20081 { (exit 1); exit 1; }; }
20084 # consider threads found
20085 ol_with_threads=found
20088 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20089 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20090 if test "${ol_cv_header_linux_threads+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 #include <pthread.h>
20101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20103 ol_cv_header_linux_threads=yes
20105 ol_cv_header_linux_threads=no
20111 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20112 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20113 if test $ol_cv_header_linux_threads = yes; then
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_LINUX_THREADS 1
20122 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20123 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20124 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #include <pthread.h>
20134 #ifdef _POSIX_THREAD_IS_GNU_PTH
20139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20140 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20141 ol_cv_header_gnu_pth_pthread_h=yes
20143 ol_cv_header_gnu_pth_pthread_h=no
20149 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20150 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20153 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20155 for ac_header in sched.h
20157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20159 echo "$as_me:$LINENO: checking for $ac_header" >&5
20160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20167 # Is the header compilable?
20168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 $ac_includes_default
20177 #include <$ac_header>
20179 rm -f conftest.$ac_objext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181 (eval $ac_compile) 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_c_werror_flag"
20189 || test ! -s conftest.err'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 ac_header_compiler=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_header_compiler=no
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20210 echo "${ECHO_T}$ac_header_compiler" >&6
20212 # Is the header present?
20213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <$ac_header>
20223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } >/dev/null; then
20231 if test -s conftest.err; then
20232 ac_cpp_err=$ac_c_preproc_warn_flag
20233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20240 if test -z "$ac_cpp_err"; then
20241 ac_header_preproc=yes
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 ac_header_preproc=no
20248 rm -f conftest.err conftest.$ac_ext
20249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20250 echo "${ECHO_T}$ac_header_preproc" >&6
20252 # So? What about this header?
20253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20259 ac_header_preproc=yes
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20276 ## ------------------------------------------ ##
20277 ## Report this to the AC_PACKAGE_NAME lists. ##
20278 ## ------------------------------------------ ##
20281 sed "s/^/$as_me: WARNING: /" >&2
20284 echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 eval "$as_ac_Header=\$ac_header_preproc"
20291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20296 cat >>confdefs.h <<_ACEOF
20297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20307 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20308 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20309 if test "${ol_cv_pthread_create+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 if test "$cross_compiling" = yes; then
20314 cat >conftest.$ac_ext <<_ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h. */
20321 /* pthread test headers */
20322 #include <pthread.h>
20323 #if HAVE_PTHREADS < 7
20327 #define NULL (void*)0
20330 static void *task(p)
20333 return (void *) (p == NULL);
20340 /* pthread test function */
20341 #ifndef PTHREAD_CREATE_DETACHED
20342 #define PTHREAD_CREATE_DETACHED 1
20346 int detach = PTHREAD_CREATE_DETACHED;
20348 #if HAVE_PTHREADS > 4
20349 /* Final pthreads */
20350 pthread_attr_t attr;
20352 status = pthread_attr_init(&attr);
20353 if( status ) return status;
20355 #if HAVE_PTHREADS < 7
20356 status = pthread_attr_setdetachstate(&attr, &detach);
20357 if( status < 0 ) status = errno;
20359 status = pthread_attr_setdetachstate(&attr, detach);
20361 if( status ) return status;
20362 status = pthread_create( &t, &attr, task, NULL );
20363 #if HAVE_PTHREADS < 7
20364 if( status < 0 ) status = errno;
20366 if( status ) return status;
20368 /* Draft 4 pthreads */
20369 status = pthread_create( &t, pthread_attr_default, task, NULL );
20370 if( status ) return errno;
20372 /* give thread a chance to complete */
20373 /* it should remain joinable and hence detachable */
20376 status = pthread_detach( &t );
20377 if( status ) return errno;
20380 #ifdef HAVE_LINUX_THREADS
20381 pthread_kill_other_threads_np();
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_c_werror_flag"
20400 || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ol_cv_pthread_create=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ol_cv_pthread_create=no
20419 rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 /* pthread test headers */
20430 #include <pthread.h>
20431 #if HAVE_PTHREADS < 7
20435 #define NULL (void*)0
20438 static void *task(p)
20441 return (void *) (p == NULL);
20445 int main(argc, argv)
20450 /* pthread test function */
20451 #ifndef PTHREAD_CREATE_DETACHED
20452 #define PTHREAD_CREATE_DETACHED 1
20456 int detach = PTHREAD_CREATE_DETACHED;
20458 #if HAVE_PTHREADS > 4
20459 /* Final pthreads */
20460 pthread_attr_t attr;
20462 status = pthread_attr_init(&attr);
20463 if( status ) return status;
20465 #if HAVE_PTHREADS < 7
20466 status = pthread_attr_setdetachstate(&attr, &detach);
20467 if( status < 0 ) status = errno;
20469 status = pthread_attr_setdetachstate(&attr, detach);
20471 if( status ) return status;
20472 status = pthread_create( &t, &attr, task, NULL );
20473 #if HAVE_PTHREADS < 7
20474 if( status < 0 ) status = errno;
20476 if( status ) return status;
20478 /* Draft 4 pthreads */
20479 status = pthread_create( &t, pthread_attr_default, task, NULL );
20480 if( status ) return errno;
20482 /* give thread a chance to complete */
20483 /* it should remain joinable and hence detachable */
20486 status = pthread_detach( &t );
20487 if( status ) return errno;
20490 #ifdef HAVE_LINUX_THREADS
20491 pthread_kill_other_threads_np();
20499 rm -f conftest$ac_exeext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20501 (eval $ac_link) 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ol_cv_pthread_create=yes
20512 echo "$as_me: program exited with status $ac_status" >&5
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ( exit $ac_status )
20517 ol_cv_pthread_create=no
20519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20522 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20523 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20525 if test $ol_cv_pthread_create != no ; then
20526 ol_link_threads=posix
20527 ol_link_pthreads=""
20530 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20531 if test "$ol_link_threads" = no ; then
20533 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20534 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20535 if test "${ol_cv_pthread_kthread+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 LIBS="-kthread $LIBS"
20543 if test "$cross_compiling" = yes; then
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 /* pthread test headers */
20552 #include <pthread.h>
20553 #if HAVE_PTHREADS < 7
20557 #define NULL (void*)0
20560 static void *task(p)
20563 return (void *) (p == NULL);
20570 /* pthread test function */
20571 #ifndef PTHREAD_CREATE_DETACHED
20572 #define PTHREAD_CREATE_DETACHED 1
20576 int detach = PTHREAD_CREATE_DETACHED;
20578 #if HAVE_PTHREADS > 4
20579 /* Final pthreads */
20580 pthread_attr_t attr;
20582 status = pthread_attr_init(&attr);
20583 if( status ) return status;
20585 #if HAVE_PTHREADS < 7
20586 status = pthread_attr_setdetachstate(&attr, &detach);
20587 if( status < 0 ) status = errno;
20589 status = pthread_attr_setdetachstate(&attr, detach);
20591 if( status ) return status;
20592 status = pthread_create( &t, &attr, task, NULL );
20593 #if HAVE_PTHREADS < 7
20594 if( status < 0 ) status = errno;
20596 if( status ) return status;
20598 /* Draft 4 pthreads */
20599 status = pthread_create( &t, pthread_attr_default, task, NULL );
20600 if( status ) return errno;
20602 /* give thread a chance to complete */
20603 /* it should remain joinable and hence detachable */
20606 status = pthread_detach( &t );
20607 if( status ) return errno;
20610 #ifdef HAVE_LINUX_THREADS
20611 pthread_kill_other_threads_np();
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag"
20630 || test ! -s conftest.err'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } &&
20636 { ac_try='test -s conftest$ac_exeext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ol_cv_pthread_kthread=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ol_cv_pthread_kthread=no
20649 rm -f conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20659 /* pthread test headers */
20660 #include <pthread.h>
20661 #if HAVE_PTHREADS < 7
20665 #define NULL (void*)0
20668 static void *task(p)
20671 return (void *) (p == NULL);
20675 int main(argc, argv)
20680 /* pthread test function */
20681 #ifndef PTHREAD_CREATE_DETACHED
20682 #define PTHREAD_CREATE_DETACHED 1
20686 int detach = PTHREAD_CREATE_DETACHED;
20688 #if HAVE_PTHREADS > 4
20689 /* Final pthreads */
20690 pthread_attr_t attr;
20692 status = pthread_attr_init(&attr);
20693 if( status ) return status;
20695 #if HAVE_PTHREADS < 7
20696 status = pthread_attr_setdetachstate(&attr, &detach);
20697 if( status < 0 ) status = errno;
20699 status = pthread_attr_setdetachstate(&attr, detach);
20701 if( status ) return status;
20702 status = pthread_create( &t, &attr, task, NULL );
20703 #if HAVE_PTHREADS < 7
20704 if( status < 0 ) status = errno;
20706 if( status ) return status;
20708 /* Draft 4 pthreads */
20709 status = pthread_create( &t, pthread_attr_default, task, NULL );
20710 if( status ) return errno;
20712 /* give thread a chance to complete */
20713 /* it should remain joinable and hence detachable */
20716 status = pthread_detach( &t );
20717 if( status ) return errno;
20720 #ifdef HAVE_LINUX_THREADS
20721 pthread_kill_other_threads_np();
20729 rm -f conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 ol_cv_pthread_kthread=yes
20742 echo "$as_me: program exited with status $ac_status" >&5
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 ( exit $ac_status )
20747 ol_cv_pthread_kthread=no
20749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20756 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20757 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20759 if test $ol_cv_pthread_kthread = yes ; then
20760 ol_link_pthreads="-kthread"
20761 ol_link_threads=posix
20765 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20766 if test "$ol_link_threads" = no ; then
20768 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20769 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20770 if test "${ol_cv_pthread_pthread+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 LIBS="-pthread $LIBS"
20778 if test "$cross_compiling" = yes; then
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 /* pthread test headers */
20787 #include <pthread.h>
20788 #if HAVE_PTHREADS < 7
20792 #define NULL (void*)0
20795 static void *task(p)
20798 return (void *) (p == NULL);
20805 /* pthread test function */
20806 #ifndef PTHREAD_CREATE_DETACHED
20807 #define PTHREAD_CREATE_DETACHED 1
20811 int detach = PTHREAD_CREATE_DETACHED;
20813 #if HAVE_PTHREADS > 4
20814 /* Final pthreads */
20815 pthread_attr_t attr;
20817 status = pthread_attr_init(&attr);
20818 if( status ) return status;
20820 #if HAVE_PTHREADS < 7
20821 status = pthread_attr_setdetachstate(&attr, &detach);
20822 if( status < 0 ) status = errno;
20824 status = pthread_attr_setdetachstate(&attr, detach);
20826 if( status ) return status;
20827 status = pthread_create( &t, &attr, task, NULL );
20828 #if HAVE_PTHREADS < 7
20829 if( status < 0 ) status = errno;
20831 if( status ) return status;
20833 /* Draft 4 pthreads */
20834 status = pthread_create( &t, pthread_attr_default, task, NULL );
20835 if( status ) return errno;
20837 /* give thread a chance to complete */
20838 /* it should remain joinable and hence detachable */
20841 status = pthread_detach( &t );
20842 if( status ) return errno;
20845 #ifdef HAVE_LINUX_THREADS
20846 pthread_kill_other_threads_np();
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20857 (eval $ac_link) 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag"
20865 || test ! -s conftest.err'
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; }; then
20877 ol_cv_pthread_pthread=yes
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ol_cv_pthread_pthread=no
20884 rm -f conftest.err conftest.$ac_objext \
20885 conftest$ac_exeext conftest.$ac_ext
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20894 /* pthread test headers */
20895 #include <pthread.h>
20896 #if HAVE_PTHREADS < 7
20900 #define NULL (void*)0
20903 static void *task(p)
20906 return (void *) (p == NULL);
20910 int main(argc, argv)
20915 /* pthread test function */
20916 #ifndef PTHREAD_CREATE_DETACHED
20917 #define PTHREAD_CREATE_DETACHED 1
20921 int detach = PTHREAD_CREATE_DETACHED;
20923 #if HAVE_PTHREADS > 4
20924 /* Final pthreads */
20925 pthread_attr_t attr;
20927 status = pthread_attr_init(&attr);
20928 if( status ) return status;
20930 #if HAVE_PTHREADS < 7
20931 status = pthread_attr_setdetachstate(&attr, &detach);
20932 if( status < 0 ) status = errno;
20934 status = pthread_attr_setdetachstate(&attr, detach);
20936 if( status ) return status;
20937 status = pthread_create( &t, &attr, task, NULL );
20938 #if HAVE_PTHREADS < 7
20939 if( status < 0 ) status = errno;
20941 if( status ) return status;
20943 /* Draft 4 pthreads */
20944 status = pthread_create( &t, pthread_attr_default, task, NULL );
20945 if( status ) return errno;
20947 /* give thread a chance to complete */
20948 /* it should remain joinable and hence detachable */
20951 status = pthread_detach( &t );
20952 if( status ) return errno;
20955 #ifdef HAVE_LINUX_THREADS
20956 pthread_kill_other_threads_np();
20964 rm -f conftest$ac_exeext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20966 (eval $ac_link) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 ol_cv_pthread_pthread=yes
20977 echo "$as_me: program exited with status $ac_status" >&5
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ( exit $ac_status )
20982 ol_cv_pthread_pthread=no
20984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20991 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20992 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20994 if test $ol_cv_pthread_pthread = yes ; then
20995 ol_link_pthreads="-pthread"
20996 ol_link_threads=posix
21000 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21001 if test "$ol_link_threads" = no ; then
21003 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21004 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21005 if test "${ol_cv_pthread_pthreads+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 LIBS="-pthreads $LIBS"
21013 if test "$cross_compiling" = yes; then
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21021 /* pthread test headers */
21022 #include <pthread.h>
21023 #if HAVE_PTHREADS < 7
21027 #define NULL (void*)0
21030 static void *task(p)
21033 return (void *) (p == NULL);
21040 /* pthread test function */
21041 #ifndef PTHREAD_CREATE_DETACHED
21042 #define PTHREAD_CREATE_DETACHED 1
21046 int detach = PTHREAD_CREATE_DETACHED;
21048 #if HAVE_PTHREADS > 4
21049 /* Final pthreads */
21050 pthread_attr_t attr;
21052 status = pthread_attr_init(&attr);
21053 if( status ) return status;
21055 #if HAVE_PTHREADS < 7
21056 status = pthread_attr_setdetachstate(&attr, &detach);
21057 if( status < 0 ) status = errno;
21059 status = pthread_attr_setdetachstate(&attr, detach);
21061 if( status ) return status;
21062 status = pthread_create( &t, &attr, task, NULL );
21063 #if HAVE_PTHREADS < 7
21064 if( status < 0 ) status = errno;
21066 if( status ) return status;
21068 /* Draft 4 pthreads */
21069 status = pthread_create( &t, pthread_attr_default, task, NULL );
21070 if( status ) return errno;
21072 /* give thread a chance to complete */
21073 /* it should remain joinable and hence detachable */
21076 status = pthread_detach( &t );
21077 if( status ) return errno;
21080 #ifdef HAVE_LINUX_THREADS
21081 pthread_kill_other_threads_np();
21090 rm -f conftest.$ac_objext conftest$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092 (eval $ac_link) 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
21099 { ac_try='test -z "$ac_c_werror_flag"
21100 || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest$ac_exeext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ol_cv_pthread_pthreads=yes
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ol_cv_pthread_pthreads=no
21119 rm -f conftest.err conftest.$ac_objext \
21120 conftest$ac_exeext conftest.$ac_ext
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21129 /* pthread test headers */
21130 #include <pthread.h>
21131 #if HAVE_PTHREADS < 7
21135 #define NULL (void*)0
21138 static void *task(p)
21141 return (void *) (p == NULL);
21145 int main(argc, argv)
21150 /* pthread test function */
21151 #ifndef PTHREAD_CREATE_DETACHED
21152 #define PTHREAD_CREATE_DETACHED 1
21156 int detach = PTHREAD_CREATE_DETACHED;
21158 #if HAVE_PTHREADS > 4
21159 /* Final pthreads */
21160 pthread_attr_t attr;
21162 status = pthread_attr_init(&attr);
21163 if( status ) return status;
21165 #if HAVE_PTHREADS < 7
21166 status = pthread_attr_setdetachstate(&attr, &detach);
21167 if( status < 0 ) status = errno;
21169 status = pthread_attr_setdetachstate(&attr, detach);
21171 if( status ) return status;
21172 status = pthread_create( &t, &attr, task, NULL );
21173 #if HAVE_PTHREADS < 7
21174 if( status < 0 ) status = errno;
21176 if( status ) return status;
21178 /* Draft 4 pthreads */
21179 status = pthread_create( &t, pthread_attr_default, task, NULL );
21180 if( status ) return errno;
21182 /* give thread a chance to complete */
21183 /* it should remain joinable and hence detachable */
21186 status = pthread_detach( &t );
21187 if( status ) return errno;
21190 #ifdef HAVE_LINUX_THREADS
21191 pthread_kill_other_threads_np();
21199 rm -f conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201 (eval $ac_link) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ol_cv_pthread_pthreads=yes
21212 echo "$as_me: program exited with status $ac_status" >&5
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ( exit $ac_status )
21217 ol_cv_pthread_pthreads=no
21219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21226 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21227 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21229 if test $ol_cv_pthread_pthreads = yes ; then
21230 ol_link_pthreads="-pthreads"
21231 ol_link_threads=posix
21235 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21236 if test "$ol_link_threads" = no ; then
21238 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21239 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21240 if test "${ol_cv_pthread_mthreads+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 LIBS="-mthreads $LIBS"
21248 if test "$cross_compiling" = yes; then
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21256 /* pthread test headers */
21257 #include <pthread.h>
21258 #if HAVE_PTHREADS < 7
21262 #define NULL (void*)0
21265 static void *task(p)
21268 return (void *) (p == NULL);
21275 /* pthread test function */
21276 #ifndef PTHREAD_CREATE_DETACHED
21277 #define PTHREAD_CREATE_DETACHED 1
21281 int detach = PTHREAD_CREATE_DETACHED;
21283 #if HAVE_PTHREADS > 4
21284 /* Final pthreads */
21285 pthread_attr_t attr;
21287 status = pthread_attr_init(&attr);
21288 if( status ) return status;
21290 #if HAVE_PTHREADS < 7
21291 status = pthread_attr_setdetachstate(&attr, &detach);
21292 if( status < 0 ) status = errno;
21294 status = pthread_attr_setdetachstate(&attr, detach);
21296 if( status ) return status;
21297 status = pthread_create( &t, &attr, task, NULL );
21298 #if HAVE_PTHREADS < 7
21299 if( status < 0 ) status = errno;
21301 if( status ) return status;
21303 /* Draft 4 pthreads */
21304 status = pthread_create( &t, pthread_attr_default, task, NULL );
21305 if( status ) return errno;
21307 /* give thread a chance to complete */
21308 /* it should remain joinable and hence detachable */
21311 status = pthread_detach( &t );
21312 if( status ) return errno;
21315 #ifdef HAVE_LINUX_THREADS
21316 pthread_kill_other_threads_np();
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } &&
21334 { ac_try='test -z "$ac_c_werror_flag"
21335 || test ! -s conftest.err'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest$ac_exeext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ol_cv_pthread_mthreads=yes
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ol_cv_pthread_mthreads=no
21354 rm -f conftest.err conftest.$ac_objext \
21355 conftest$ac_exeext conftest.$ac_ext
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21364 /* pthread test headers */
21365 #include <pthread.h>
21366 #if HAVE_PTHREADS < 7
21370 #define NULL (void*)0
21373 static void *task(p)
21376 return (void *) (p == NULL);
21380 int main(argc, argv)
21385 /* pthread test function */
21386 #ifndef PTHREAD_CREATE_DETACHED
21387 #define PTHREAD_CREATE_DETACHED 1
21391 int detach = PTHREAD_CREATE_DETACHED;
21393 #if HAVE_PTHREADS > 4
21394 /* Final pthreads */
21395 pthread_attr_t attr;
21397 status = pthread_attr_init(&attr);
21398 if( status ) return status;
21400 #if HAVE_PTHREADS < 7
21401 status = pthread_attr_setdetachstate(&attr, &detach);
21402 if( status < 0 ) status = errno;
21404 status = pthread_attr_setdetachstate(&attr, detach);
21406 if( status ) return status;
21407 status = pthread_create( &t, &attr, task, NULL );
21408 #if HAVE_PTHREADS < 7
21409 if( status < 0 ) status = errno;
21411 if( status ) return status;
21413 /* Draft 4 pthreads */
21414 status = pthread_create( &t, pthread_attr_default, task, NULL );
21415 if( status ) return errno;
21417 /* give thread a chance to complete */
21418 /* it should remain joinable and hence detachable */
21421 status = pthread_detach( &t );
21422 if( status ) return errno;
21425 #ifdef HAVE_LINUX_THREADS
21426 pthread_kill_other_threads_np();
21434 rm -f conftest$ac_exeext
21435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21436 (eval $ac_link) 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 ol_cv_pthread_mthreads=yes
21447 echo "$as_me: program exited with status $ac_status" >&5
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 ( exit $ac_status )
21452 ol_cv_pthread_mthreads=no
21454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21462 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21464 if test $ol_cv_pthread_mthreads = yes ; then
21465 ol_link_pthreads="-mthreads"
21466 ol_link_threads=posix
21470 # Pthread try link: -thread (ol_cv_pthread_thread)
21471 if test "$ol_link_threads" = no ; then
21473 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21474 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21475 if test "${ol_cv_pthread_thread+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 LIBS="-thread $LIBS"
21483 if test "$cross_compiling" = yes; then
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21491 /* pthread test headers */
21492 #include <pthread.h>
21493 #if HAVE_PTHREADS < 7
21497 #define NULL (void*)0
21500 static void *task(p)
21503 return (void *) (p == NULL);
21510 /* pthread test function */
21511 #ifndef PTHREAD_CREATE_DETACHED
21512 #define PTHREAD_CREATE_DETACHED 1
21516 int detach = PTHREAD_CREATE_DETACHED;
21518 #if HAVE_PTHREADS > 4
21519 /* Final pthreads */
21520 pthread_attr_t attr;
21522 status = pthread_attr_init(&attr);
21523 if( status ) return status;
21525 #if HAVE_PTHREADS < 7
21526 status = pthread_attr_setdetachstate(&attr, &detach);
21527 if( status < 0 ) status = errno;
21529 status = pthread_attr_setdetachstate(&attr, detach);
21531 if( status ) return status;
21532 status = pthread_create( &t, &attr, task, NULL );
21533 #if HAVE_PTHREADS < 7
21534 if( status < 0 ) status = errno;
21536 if( status ) return status;
21538 /* Draft 4 pthreads */
21539 status = pthread_create( &t, pthread_attr_default, task, NULL );
21540 if( status ) return errno;
21542 /* give thread a chance to complete */
21543 /* it should remain joinable and hence detachable */
21546 status = pthread_detach( &t );
21547 if( status ) return errno;
21550 #ifdef HAVE_LINUX_THREADS
21551 pthread_kill_other_threads_np();
21560 rm -f conftest.$ac_objext conftest$ac_exeext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562 (eval $ac_link) 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } &&
21569 { ac_try='test -z "$ac_c_werror_flag"
21570 || test ! -s conftest.err'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; } &&
21576 { ac_try='test -s conftest$ac_exeext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ol_cv_pthread_thread=yes
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ol_cv_pthread_thread=no
21589 rm -f conftest.err conftest.$ac_objext \
21590 conftest$ac_exeext conftest.$ac_ext
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21599 /* pthread test headers */
21600 #include <pthread.h>
21601 #if HAVE_PTHREADS < 7
21605 #define NULL (void*)0
21608 static void *task(p)
21611 return (void *) (p == NULL);
21615 int main(argc, argv)
21620 /* pthread test function */
21621 #ifndef PTHREAD_CREATE_DETACHED
21622 #define PTHREAD_CREATE_DETACHED 1
21626 int detach = PTHREAD_CREATE_DETACHED;
21628 #if HAVE_PTHREADS > 4
21629 /* Final pthreads */
21630 pthread_attr_t attr;
21632 status = pthread_attr_init(&attr);
21633 if( status ) return status;
21635 #if HAVE_PTHREADS < 7
21636 status = pthread_attr_setdetachstate(&attr, &detach);
21637 if( status < 0 ) status = errno;
21639 status = pthread_attr_setdetachstate(&attr, detach);
21641 if( status ) return status;
21642 status = pthread_create( &t, &attr, task, NULL );
21643 #if HAVE_PTHREADS < 7
21644 if( status < 0 ) status = errno;
21646 if( status ) return status;
21648 /* Draft 4 pthreads */
21649 status = pthread_create( &t, pthread_attr_default, task, NULL );
21650 if( status ) return errno;
21652 /* give thread a chance to complete */
21653 /* it should remain joinable and hence detachable */
21656 status = pthread_detach( &t );
21657 if( status ) return errno;
21660 #ifdef HAVE_LINUX_THREADS
21661 pthread_kill_other_threads_np();
21669 rm -f conftest$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671 (eval $ac_link) 2>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ol_cv_pthread_thread=yes
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ( exit $ac_status )
21687 ol_cv_pthread_thread=no
21689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21696 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21697 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21699 if test $ol_cv_pthread_thread = yes ; then
21700 ol_link_pthreads="-thread"
21701 ol_link_threads=posix
21706 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21707 if test "$ol_link_threads" = no ; then
21708 # try -lpthread -lmach -lexc -lc_r
21709 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21710 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21711 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21719 if test "$cross_compiling" = yes; then
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21727 /* pthread test headers */
21728 #include <pthread.h>
21729 #if HAVE_PTHREADS < 7
21733 #define NULL (void*)0
21736 static void *task(p)
21739 return (void *) (p == NULL);
21746 /* pthread test function */
21747 #ifndef PTHREAD_CREATE_DETACHED
21748 #define PTHREAD_CREATE_DETACHED 1
21752 int detach = PTHREAD_CREATE_DETACHED;
21754 #if HAVE_PTHREADS > 4
21755 /* Final pthreads */
21756 pthread_attr_t attr;
21758 status = pthread_attr_init(&attr);
21759 if( status ) return status;
21761 #if HAVE_PTHREADS < 7
21762 status = pthread_attr_setdetachstate(&attr, &detach);
21763 if( status < 0 ) status = errno;
21765 status = pthread_attr_setdetachstate(&attr, detach);
21767 if( status ) return status;
21768 status = pthread_create( &t, &attr, task, NULL );
21769 #if HAVE_PTHREADS < 7
21770 if( status < 0 ) status = errno;
21772 if( status ) return status;
21774 /* Draft 4 pthreads */
21775 status = pthread_create( &t, pthread_attr_default, task, NULL );
21776 if( status ) return errno;
21778 /* give thread a chance to complete */
21779 /* it should remain joinable and hence detachable */
21782 status = pthread_detach( &t );
21783 if( status ) return errno;
21786 #ifdef HAVE_LINUX_THREADS
21787 pthread_kill_other_threads_np();
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21798 (eval $ac_link) 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_c_werror_flag"
21806 || test ! -s conftest.err'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; } &&
21812 { ac_try='test -s conftest$ac_exeext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21825 rm -f conftest.err conftest.$ac_objext \
21826 conftest$ac_exeext conftest.$ac_ext
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21835 /* pthread test headers */
21836 #include <pthread.h>
21837 #if HAVE_PTHREADS < 7
21841 #define NULL (void*)0
21844 static void *task(p)
21847 return (void *) (p == NULL);
21851 int main(argc, argv)
21856 /* pthread test function */
21857 #ifndef PTHREAD_CREATE_DETACHED
21858 #define PTHREAD_CREATE_DETACHED 1
21862 int detach = PTHREAD_CREATE_DETACHED;
21864 #if HAVE_PTHREADS > 4
21865 /* Final pthreads */
21866 pthread_attr_t attr;
21868 status = pthread_attr_init(&attr);
21869 if( status ) return status;
21871 #if HAVE_PTHREADS < 7
21872 status = pthread_attr_setdetachstate(&attr, &detach);
21873 if( status < 0 ) status = errno;
21875 status = pthread_attr_setdetachstate(&attr, detach);
21877 if( status ) return status;
21878 status = pthread_create( &t, &attr, task, NULL );
21879 #if HAVE_PTHREADS < 7
21880 if( status < 0 ) status = errno;
21882 if( status ) return status;
21884 /* Draft 4 pthreads */
21885 status = pthread_create( &t, pthread_attr_default, task, NULL );
21886 if( status ) return errno;
21888 /* give thread a chance to complete */
21889 /* it should remain joinable and hence detachable */
21892 status = pthread_detach( &t );
21893 if( status ) return errno;
21896 #ifdef HAVE_LINUX_THREADS
21897 pthread_kill_other_threads_np();
21905 rm -f conftest$ac_exeext
21906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21907 (eval $ac_link) 2>&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21918 echo "$as_me: program exited with status $ac_status" >&5
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 ( exit $ac_status )
21923 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21932 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21933 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21935 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21936 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21937 ol_link_threads=posix
21941 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21942 if test "$ol_link_threads" = no ; then
21943 # try -lpthread -lmach -lexc
21944 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21945 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21946 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 LIBS="-lpthread -lmach -lexc $LIBS"
21954 if test "$cross_compiling" = yes; then
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21962 /* pthread test headers */
21963 #include <pthread.h>
21964 #if HAVE_PTHREADS < 7
21968 #define NULL (void*)0
21971 static void *task(p)
21974 return (void *) (p == NULL);
21981 /* pthread test function */
21982 #ifndef PTHREAD_CREATE_DETACHED
21983 #define PTHREAD_CREATE_DETACHED 1
21987 int detach = PTHREAD_CREATE_DETACHED;
21989 #if HAVE_PTHREADS > 4
21990 /* Final pthreads */
21991 pthread_attr_t attr;
21993 status = pthread_attr_init(&attr);
21994 if( status ) return status;
21996 #if HAVE_PTHREADS < 7
21997 status = pthread_attr_setdetachstate(&attr, &detach);
21998 if( status < 0 ) status = errno;
22000 status = pthread_attr_setdetachstate(&attr, detach);
22002 if( status ) return status;
22003 status = pthread_create( &t, &attr, task, NULL );
22004 #if HAVE_PTHREADS < 7
22005 if( status < 0 ) status = errno;
22007 if( status ) return status;
22009 /* Draft 4 pthreads */
22010 status = pthread_create( &t, pthread_attr_default, task, NULL );
22011 if( status ) return errno;
22013 /* give thread a chance to complete */
22014 /* it should remain joinable and hence detachable */
22017 status = pthread_detach( &t );
22018 if( status ) return errno;
22021 #ifdef HAVE_LINUX_THREADS
22022 pthread_kill_other_threads_np();
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22033 (eval $ac_link) 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } &&
22040 { ac_try='test -z "$ac_c_werror_flag"
22041 || test ! -s conftest.err'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest$ac_exeext'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ol_cv_pthread_lpthread_lmach_lexc=yes
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ol_cv_pthread_lpthread_lmach_lexc=no
22060 rm -f conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
22063 cat >conftest.$ac_ext <<_ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22070 /* pthread test headers */
22071 #include <pthread.h>
22072 #if HAVE_PTHREADS < 7
22076 #define NULL (void*)0
22079 static void *task(p)
22082 return (void *) (p == NULL);
22086 int main(argc, argv)
22091 /* pthread test function */
22092 #ifndef PTHREAD_CREATE_DETACHED
22093 #define PTHREAD_CREATE_DETACHED 1
22097 int detach = PTHREAD_CREATE_DETACHED;
22099 #if HAVE_PTHREADS > 4
22100 /* Final pthreads */
22101 pthread_attr_t attr;
22103 status = pthread_attr_init(&attr);
22104 if( status ) return status;
22106 #if HAVE_PTHREADS < 7
22107 status = pthread_attr_setdetachstate(&attr, &detach);
22108 if( status < 0 ) status = errno;
22110 status = pthread_attr_setdetachstate(&attr, detach);
22112 if( status ) return status;
22113 status = pthread_create( &t, &attr, task, NULL );
22114 #if HAVE_PTHREADS < 7
22115 if( status < 0 ) status = errno;
22117 if( status ) return status;
22119 /* Draft 4 pthreads */
22120 status = pthread_create( &t, pthread_attr_default, task, NULL );
22121 if( status ) return errno;
22123 /* give thread a chance to complete */
22124 /* it should remain joinable and hence detachable */
22127 status = pthread_detach( &t );
22128 if( status ) return errno;
22131 #ifdef HAVE_LINUX_THREADS
22132 pthread_kill_other_threads_np();
22140 rm -f conftest$ac_exeext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22142 (eval $ac_link) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ol_cv_pthread_lpthread_lmach_lexc=yes
22153 echo "$as_me: program exited with status $ac_status" >&5
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ( exit $ac_status )
22158 ol_cv_pthread_lpthread_lmach_lexc=no
22160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22167 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22168 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22170 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22171 ol_link_pthreads="-lpthread -lmach -lexc"
22172 ol_link_threads=posix
22177 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22178 if test "$ol_link_threads" = no ; then
22179 # try -lpthread -Wl,-woff,85
22180 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22181 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22182 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22190 if test "$cross_compiling" = yes; then
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22198 /* pthread test headers */
22199 #include <pthread.h>
22200 #if HAVE_PTHREADS < 7
22204 #define NULL (void*)0
22207 static void *task(p)
22210 return (void *) (p == NULL);
22217 /* pthread test function */
22218 #ifndef PTHREAD_CREATE_DETACHED
22219 #define PTHREAD_CREATE_DETACHED 1
22223 int detach = PTHREAD_CREATE_DETACHED;
22225 #if HAVE_PTHREADS > 4
22226 /* Final pthreads */
22227 pthread_attr_t attr;
22229 status = pthread_attr_init(&attr);
22230 if( status ) return status;
22232 #if HAVE_PTHREADS < 7
22233 status = pthread_attr_setdetachstate(&attr, &detach);
22234 if( status < 0 ) status = errno;
22236 status = pthread_attr_setdetachstate(&attr, detach);
22238 if( status ) return status;
22239 status = pthread_create( &t, &attr, task, NULL );
22240 #if HAVE_PTHREADS < 7
22241 if( status < 0 ) status = errno;
22243 if( status ) return status;
22245 /* Draft 4 pthreads */
22246 status = pthread_create( &t, pthread_attr_default, task, NULL );
22247 if( status ) return errno;
22249 /* give thread a chance to complete */
22250 /* it should remain joinable and hence detachable */
22253 status = pthread_detach( &t );
22254 if( status ) return errno;
22257 #ifdef HAVE_LINUX_THREADS
22258 pthread_kill_other_threads_np();
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269 (eval $ac_link) 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest$ac_exeext'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289 ol_cv_pthread_lib_lpthread_woff=yes
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ol_cv_pthread_lib_lpthread_woff=no
22296 rm -f conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22299 cat >conftest.$ac_ext <<_ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22306 /* pthread test headers */
22307 #include <pthread.h>
22308 #if HAVE_PTHREADS < 7
22312 #define NULL (void*)0
22315 static void *task(p)
22318 return (void *) (p == NULL);
22322 int main(argc, argv)
22327 /* pthread test function */
22328 #ifndef PTHREAD_CREATE_DETACHED
22329 #define PTHREAD_CREATE_DETACHED 1
22333 int detach = PTHREAD_CREATE_DETACHED;
22335 #if HAVE_PTHREADS > 4
22336 /* Final pthreads */
22337 pthread_attr_t attr;
22339 status = pthread_attr_init(&attr);
22340 if( status ) return status;
22342 #if HAVE_PTHREADS < 7
22343 status = pthread_attr_setdetachstate(&attr, &detach);
22344 if( status < 0 ) status = errno;
22346 status = pthread_attr_setdetachstate(&attr, detach);
22348 if( status ) return status;
22349 status = pthread_create( &t, &attr, task, NULL );
22350 #if HAVE_PTHREADS < 7
22351 if( status < 0 ) status = errno;
22353 if( status ) return status;
22355 /* Draft 4 pthreads */
22356 status = pthread_create( &t, pthread_attr_default, task, NULL );
22357 if( status ) return errno;
22359 /* give thread a chance to complete */
22360 /* it should remain joinable and hence detachable */
22363 status = pthread_detach( &t );
22364 if( status ) return errno;
22367 #ifdef HAVE_LINUX_THREADS
22368 pthread_kill_other_threads_np();
22376 rm -f conftest$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
22387 ol_cv_pthread_lib_lpthread_woff=yes
22389 echo "$as_me: program exited with status $ac_status" >&5
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22393 ( exit $ac_status )
22394 ol_cv_pthread_lib_lpthread_woff=no
22396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22403 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22404 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22406 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22407 ol_link_pthreads="-lpthread -Wl,-woff,85"
22408 ol_link_threads=posix
22413 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22414 if test "$ol_link_threads" = no ; then
22416 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22417 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22418 if test "${ol_cv_pthread_lpthread+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22424 LIBS="-lpthread $LIBS"
22426 if test "$cross_compiling" = yes; then
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22434 /* pthread test headers */
22435 #include <pthread.h>
22436 #if HAVE_PTHREADS < 7
22440 #define NULL (void*)0
22443 static void *task(p)
22446 return (void *) (p == NULL);
22453 /* pthread test function */
22454 #ifndef PTHREAD_CREATE_DETACHED
22455 #define PTHREAD_CREATE_DETACHED 1
22459 int detach = PTHREAD_CREATE_DETACHED;
22461 #if HAVE_PTHREADS > 4
22462 /* Final pthreads */
22463 pthread_attr_t attr;
22465 status = pthread_attr_init(&attr);
22466 if( status ) return status;
22468 #if HAVE_PTHREADS < 7
22469 status = pthread_attr_setdetachstate(&attr, &detach);
22470 if( status < 0 ) status = errno;
22472 status = pthread_attr_setdetachstate(&attr, detach);
22474 if( status ) return status;
22475 status = pthread_create( &t, &attr, task, NULL );
22476 #if HAVE_PTHREADS < 7
22477 if( status < 0 ) status = errno;
22479 if( status ) return status;
22481 /* Draft 4 pthreads */
22482 status = pthread_create( &t, pthread_attr_default, task, NULL );
22483 if( status ) return errno;
22485 /* give thread a chance to complete */
22486 /* it should remain joinable and hence detachable */
22489 status = pthread_detach( &t );
22490 if( status ) return errno;
22493 #ifdef HAVE_LINUX_THREADS
22494 pthread_kill_other_threads_np();
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505 (eval $ac_link) 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest$ac_exeext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ol_cv_pthread_lpthread=yes
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ol_cv_pthread_lpthread=no
22532 rm -f conftest.err conftest.$ac_objext \
22533 conftest$ac_exeext conftest.$ac_ext
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22542 /* pthread test headers */
22543 #include <pthread.h>
22544 #if HAVE_PTHREADS < 7
22548 #define NULL (void*)0
22551 static void *task(p)
22554 return (void *) (p == NULL);
22558 int main(argc, argv)
22563 /* pthread test function */
22564 #ifndef PTHREAD_CREATE_DETACHED
22565 #define PTHREAD_CREATE_DETACHED 1
22569 int detach = PTHREAD_CREATE_DETACHED;
22571 #if HAVE_PTHREADS > 4
22572 /* Final pthreads */
22573 pthread_attr_t attr;
22575 status = pthread_attr_init(&attr);
22576 if( status ) return status;
22578 #if HAVE_PTHREADS < 7
22579 status = pthread_attr_setdetachstate(&attr, &detach);
22580 if( status < 0 ) status = errno;
22582 status = pthread_attr_setdetachstate(&attr, detach);
22584 if( status ) return status;
22585 status = pthread_create( &t, &attr, task, NULL );
22586 #if HAVE_PTHREADS < 7
22587 if( status < 0 ) status = errno;
22589 if( status ) return status;
22591 /* Draft 4 pthreads */
22592 status = pthread_create( &t, pthread_attr_default, task, NULL );
22593 if( status ) return errno;
22595 /* give thread a chance to complete */
22596 /* it should remain joinable and hence detachable */
22599 status = pthread_detach( &t );
22600 if( status ) return errno;
22603 #ifdef HAVE_LINUX_THREADS
22604 pthread_kill_other_threads_np();
22612 rm -f conftest$ac_exeext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22614 (eval $ac_link) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ol_cv_pthread_lpthread=yes
22625 echo "$as_me: program exited with status $ac_status" >&5
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ( exit $ac_status )
22630 ol_cv_pthread_lpthread=no
22632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22639 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22640 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22642 if test $ol_cv_pthread_lpthread = yes ; then
22643 ol_link_pthreads="-lpthread"
22644 ol_link_threads=posix
22648 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22649 if test "$ol_link_threads" = no ; then
22651 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22652 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22653 if test "${ol_cv_pthread_lc_r+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 if test "$cross_compiling" = yes; then
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22669 /* pthread test headers */
22670 #include <pthread.h>
22671 #if HAVE_PTHREADS < 7
22675 #define NULL (void*)0
22678 static void *task(p)
22681 return (void *) (p == NULL);
22688 /* pthread test function */
22689 #ifndef PTHREAD_CREATE_DETACHED
22690 #define PTHREAD_CREATE_DETACHED 1
22694 int detach = PTHREAD_CREATE_DETACHED;
22696 #if HAVE_PTHREADS > 4
22697 /* Final pthreads */
22698 pthread_attr_t attr;
22700 status = pthread_attr_init(&attr);
22701 if( status ) return status;
22703 #if HAVE_PTHREADS < 7
22704 status = pthread_attr_setdetachstate(&attr, &detach);
22705 if( status < 0 ) status = errno;
22707 status = pthread_attr_setdetachstate(&attr, detach);
22709 if( status ) return status;
22710 status = pthread_create( &t, &attr, task, NULL );
22711 #if HAVE_PTHREADS < 7
22712 if( status < 0 ) status = errno;
22714 if( status ) return status;
22716 /* Draft 4 pthreads */
22717 status = pthread_create( &t, pthread_attr_default, task, NULL );
22718 if( status ) return errno;
22720 /* give thread a chance to complete */
22721 /* it should remain joinable and hence detachable */
22724 status = pthread_detach( &t );
22725 if( status ) return errno;
22728 #ifdef HAVE_LINUX_THREADS
22729 pthread_kill_other_threads_np();
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740 (eval $ac_link) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest$ac_exeext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ol_cv_pthread_lc_r=yes
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ol_cv_pthread_lc_r=no
22767 rm -f conftest.err conftest.$ac_objext \
22768 conftest$ac_exeext conftest.$ac_ext
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22777 /* pthread test headers */
22778 #include <pthread.h>
22779 #if HAVE_PTHREADS < 7
22783 #define NULL (void*)0
22786 static void *task(p)
22789 return (void *) (p == NULL);
22793 int main(argc, argv)
22798 /* pthread test function */
22799 #ifndef PTHREAD_CREATE_DETACHED
22800 #define PTHREAD_CREATE_DETACHED 1
22804 int detach = PTHREAD_CREATE_DETACHED;
22806 #if HAVE_PTHREADS > 4
22807 /* Final pthreads */
22808 pthread_attr_t attr;
22810 status = pthread_attr_init(&attr);
22811 if( status ) return status;
22813 #if HAVE_PTHREADS < 7
22814 status = pthread_attr_setdetachstate(&attr, &detach);
22815 if( status < 0 ) status = errno;
22817 status = pthread_attr_setdetachstate(&attr, detach);
22819 if( status ) return status;
22820 status = pthread_create( &t, &attr, task, NULL );
22821 #if HAVE_PTHREADS < 7
22822 if( status < 0 ) status = errno;
22824 if( status ) return status;
22826 /* Draft 4 pthreads */
22827 status = pthread_create( &t, pthread_attr_default, task, NULL );
22828 if( status ) return errno;
22830 /* give thread a chance to complete */
22831 /* it should remain joinable and hence detachable */
22834 status = pthread_detach( &t );
22835 if( status ) return errno;
22838 #ifdef HAVE_LINUX_THREADS
22839 pthread_kill_other_threads_np();
22847 rm -f conftest$ac_exeext
22848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22849 (eval $ac_link) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; }; then
22858 ol_cv_pthread_lc_r=yes
22860 echo "$as_me: program exited with status $ac_status" >&5
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ( exit $ac_status )
22865 ol_cv_pthread_lc_r=no
22867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22875 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22877 if test $ol_cv_pthread_lc_r = yes ; then
22878 ol_link_pthreads="-lc_r"
22879 ol_link_threads=posix
22884 # Pthread try link: -threads (ol_cv_pthread_threads)
22885 if test "$ol_link_threads" = no ; then
22887 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22888 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22889 if test "${ol_cv_pthread_threads+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 LIBS="-threads $LIBS"
22897 if test "$cross_compiling" = yes; then
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22905 /* pthread test headers */
22906 #include <pthread.h>
22907 #if HAVE_PTHREADS < 7
22911 #define NULL (void*)0
22914 static void *task(p)
22917 return (void *) (p == NULL);
22924 /* pthread test function */
22925 #ifndef PTHREAD_CREATE_DETACHED
22926 #define PTHREAD_CREATE_DETACHED 1
22930 int detach = PTHREAD_CREATE_DETACHED;
22932 #if HAVE_PTHREADS > 4
22933 /* Final pthreads */
22934 pthread_attr_t attr;
22936 status = pthread_attr_init(&attr);
22937 if( status ) return status;
22939 #if HAVE_PTHREADS < 7
22940 status = pthread_attr_setdetachstate(&attr, &detach);
22941 if( status < 0 ) status = errno;
22943 status = pthread_attr_setdetachstate(&attr, detach);
22945 if( status ) return status;
22946 status = pthread_create( &t, &attr, task, NULL );
22947 #if HAVE_PTHREADS < 7
22948 if( status < 0 ) status = errno;
22950 if( status ) return status;
22952 /* Draft 4 pthreads */
22953 status = pthread_create( &t, pthread_attr_default, task, NULL );
22954 if( status ) return errno;
22956 /* give thread a chance to complete */
22957 /* it should remain joinable and hence detachable */
22960 status = pthread_detach( &t );
22961 if( status ) return errno;
22964 #ifdef HAVE_LINUX_THREADS
22965 pthread_kill_other_threads_np();
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976 (eval $ac_link) 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } &&
22983 { ac_try='test -z "$ac_c_werror_flag"
22984 || test ! -s conftest.err'
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest$ac_exeext'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ol_cv_pthread_threads=yes
22998 echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23001 ol_cv_pthread_threads=no
23003 rm -f conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23006 cat >conftest.$ac_ext <<_ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23013 /* pthread test headers */
23014 #include <pthread.h>
23015 #if HAVE_PTHREADS < 7
23019 #define NULL (void*)0
23022 static void *task(p)
23025 return (void *) (p == NULL);
23029 int main(argc, argv)
23034 /* pthread test function */
23035 #ifndef PTHREAD_CREATE_DETACHED
23036 #define PTHREAD_CREATE_DETACHED 1
23040 int detach = PTHREAD_CREATE_DETACHED;
23042 #if HAVE_PTHREADS > 4
23043 /* Final pthreads */
23044 pthread_attr_t attr;
23046 status = pthread_attr_init(&attr);
23047 if( status ) return status;
23049 #if HAVE_PTHREADS < 7
23050 status = pthread_attr_setdetachstate(&attr, &detach);
23051 if( status < 0 ) status = errno;
23053 status = pthread_attr_setdetachstate(&attr, detach);
23055 if( status ) return status;
23056 status = pthread_create( &t, &attr, task, NULL );
23057 #if HAVE_PTHREADS < 7
23058 if( status < 0 ) status = errno;
23060 if( status ) return status;
23062 /* Draft 4 pthreads */
23063 status = pthread_create( &t, pthread_attr_default, task, NULL );
23064 if( status ) return errno;
23066 /* give thread a chance to complete */
23067 /* it should remain joinable and hence detachable */
23070 status = pthread_detach( &t );
23071 if( status ) return errno;
23074 #ifdef HAVE_LINUX_THREADS
23075 pthread_kill_other_threads_np();
23083 rm -f conftest$ac_exeext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23085 (eval $ac_link) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23090 (eval $ac_try) 2>&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); }; }; then
23094 ol_cv_pthread_threads=yes
23096 echo "$as_me: program exited with status $ac_status" >&5
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ( exit $ac_status )
23101 ol_cv_pthread_threads=no
23103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23110 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23111 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23113 if test $ol_cv_pthread_threads = yes ; then
23114 ol_link_pthreads="-threads"
23115 ol_link_threads=posix
23120 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23121 if test "$ol_link_threads" = no ; then
23122 # try -lpthreads -lmach -lexc -lc_r
23123 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23124 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23125 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23133 if test "$cross_compiling" = yes; then
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23141 /* pthread test headers */
23142 #include <pthread.h>
23143 #if HAVE_PTHREADS < 7
23147 #define NULL (void*)0
23150 static void *task(p)
23153 return (void *) (p == NULL);
23160 /* pthread test function */
23161 #ifndef PTHREAD_CREATE_DETACHED
23162 #define PTHREAD_CREATE_DETACHED 1
23166 int detach = PTHREAD_CREATE_DETACHED;
23168 #if HAVE_PTHREADS > 4
23169 /* Final pthreads */
23170 pthread_attr_t attr;
23172 status = pthread_attr_init(&attr);
23173 if( status ) return status;
23175 #if HAVE_PTHREADS < 7
23176 status = pthread_attr_setdetachstate(&attr, &detach);
23177 if( status < 0 ) status = errno;
23179 status = pthread_attr_setdetachstate(&attr, detach);
23181 if( status ) return status;
23182 status = pthread_create( &t, &attr, task, NULL );
23183 #if HAVE_PTHREADS < 7
23184 if( status < 0 ) status = errno;
23186 if( status ) return status;
23188 /* Draft 4 pthreads */
23189 status = pthread_create( &t, pthread_attr_default, task, NULL );
23190 if( status ) return errno;
23192 /* give thread a chance to complete */
23193 /* it should remain joinable and hence detachable */
23196 status = pthread_detach( &t );
23197 if( status ) return errno;
23200 #ifdef HAVE_LINUX_THREADS
23201 pthread_kill_other_threads_np();
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212 (eval $ac_link) 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
23219 { ac_try='test -z "$ac_c_werror_flag"
23220 || test ! -s conftest.err'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest$ac_exeext'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23239 rm -f conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* pthread test headers */
23250 #include <pthread.h>
23251 #if HAVE_PTHREADS < 7
23255 #define NULL (void*)0
23258 static void *task(p)
23261 return (void *) (p == NULL);
23265 int main(argc, argv)
23270 /* pthread test function */
23271 #ifndef PTHREAD_CREATE_DETACHED
23272 #define PTHREAD_CREATE_DETACHED 1
23276 int detach = PTHREAD_CREATE_DETACHED;
23278 #if HAVE_PTHREADS > 4
23279 /* Final pthreads */
23280 pthread_attr_t attr;
23282 status = pthread_attr_init(&attr);
23283 if( status ) return status;
23285 #if HAVE_PTHREADS < 7
23286 status = pthread_attr_setdetachstate(&attr, &detach);
23287 if( status < 0 ) status = errno;
23289 status = pthread_attr_setdetachstate(&attr, detach);
23291 if( status ) return status;
23292 status = pthread_create( &t, &attr, task, NULL );
23293 #if HAVE_PTHREADS < 7
23294 if( status < 0 ) status = errno;
23296 if( status ) return status;
23298 /* Draft 4 pthreads */
23299 status = pthread_create( &t, pthread_attr_default, task, NULL );
23300 if( status ) return errno;
23302 /* give thread a chance to complete */
23303 /* it should remain joinable and hence detachable */
23306 status = pthread_detach( &t );
23307 if( status ) return errno;
23310 #ifdef HAVE_LINUX_THREADS
23311 pthread_kill_other_threads_np();
23319 rm -f conftest$ac_exeext
23320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23321 (eval $ac_link) 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23332 echo "$as_me: program exited with status $ac_status" >&5
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23336 ( exit $ac_status )
23337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23346 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23347 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23349 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23350 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23351 ol_link_threads=posix
23355 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23356 if test "$ol_link_threads" = no ; then
23357 # try -lpthreads -lmach -lexc
23358 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23359 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23360 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 LIBS="-lpthreads -lmach -lexc $LIBS"
23368 if test "$cross_compiling" = yes; then
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23376 /* pthread test headers */
23377 #include <pthread.h>
23378 #if HAVE_PTHREADS < 7
23382 #define NULL (void*)0
23385 static void *task(p)
23388 return (void *) (p == NULL);
23395 /* pthread test function */
23396 #ifndef PTHREAD_CREATE_DETACHED
23397 #define PTHREAD_CREATE_DETACHED 1
23401 int detach = PTHREAD_CREATE_DETACHED;
23403 #if HAVE_PTHREADS > 4
23404 /* Final pthreads */
23405 pthread_attr_t attr;
23407 status = pthread_attr_init(&attr);
23408 if( status ) return status;
23410 #if HAVE_PTHREADS < 7
23411 status = pthread_attr_setdetachstate(&attr, &detach);
23412 if( status < 0 ) status = errno;
23414 status = pthread_attr_setdetachstate(&attr, detach);
23416 if( status ) return status;
23417 status = pthread_create( &t, &attr, task, NULL );
23418 #if HAVE_PTHREADS < 7
23419 if( status < 0 ) status = errno;
23421 if( status ) return status;
23423 /* Draft 4 pthreads */
23424 status = pthread_create( &t, pthread_attr_default, task, NULL );
23425 if( status ) return errno;
23427 /* give thread a chance to complete */
23428 /* it should remain joinable and hence detachable */
23431 status = pthread_detach( &t );
23432 if( status ) return errno;
23435 #ifdef HAVE_LINUX_THREADS
23436 pthread_kill_other_threads_np();
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>conftest.er1
23449 grep -v '^ *+' conftest.er1 >conftest.err
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
23454 { ac_try='test -z "$ac_c_werror_flag"
23455 || test ! -s conftest.err'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 ol_cv_pthread_lpthreads_lmach_lexc=yes
23469 echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23472 ol_cv_pthread_lpthreads_lmach_lexc=no
23474 rm -f conftest.err conftest.$ac_objext \
23475 conftest$ac_exeext conftest.$ac_ext
23477 cat >conftest.$ac_ext <<_ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23484 /* pthread test headers */
23485 #include <pthread.h>
23486 #if HAVE_PTHREADS < 7
23490 #define NULL (void*)0
23493 static void *task(p)
23496 return (void *) (p == NULL);
23500 int main(argc, argv)
23505 /* pthread test function */
23506 #ifndef PTHREAD_CREATE_DETACHED
23507 #define PTHREAD_CREATE_DETACHED 1
23511 int detach = PTHREAD_CREATE_DETACHED;
23513 #if HAVE_PTHREADS > 4
23514 /* Final pthreads */
23515 pthread_attr_t attr;
23517 status = pthread_attr_init(&attr);
23518 if( status ) return status;
23520 #if HAVE_PTHREADS < 7
23521 status = pthread_attr_setdetachstate(&attr, &detach);
23522 if( status < 0 ) status = errno;
23524 status = pthread_attr_setdetachstate(&attr, detach);
23526 if( status ) return status;
23527 status = pthread_create( &t, &attr, task, NULL );
23528 #if HAVE_PTHREADS < 7
23529 if( status < 0 ) status = errno;
23531 if( status ) return status;
23533 /* Draft 4 pthreads */
23534 status = pthread_create( &t, pthread_attr_default, task, NULL );
23535 if( status ) return errno;
23537 /* give thread a chance to complete */
23538 /* it should remain joinable and hence detachable */
23541 status = pthread_detach( &t );
23542 if( status ) return errno;
23545 #ifdef HAVE_LINUX_THREADS
23546 pthread_kill_other_threads_np();
23554 rm -f conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556 (eval $ac_link) 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 ol_cv_pthread_lpthreads_lmach_lexc=yes
23567 echo "$as_me: program exited with status $ac_status" >&5
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ( exit $ac_status )
23572 ol_cv_pthread_lpthreads_lmach_lexc=no
23574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23581 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23582 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23584 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23585 ol_link_pthreads="-lpthreads -lmach -lexc"
23586 ol_link_threads=posix
23590 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23591 if test "$ol_link_threads" = no ; then
23592 # try -lpthreads -lexc
23593 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23594 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23595 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23601 LIBS="-lpthreads -lexc $LIBS"
23603 if test "$cross_compiling" = yes; then
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23611 /* pthread test headers */
23612 #include <pthread.h>
23613 #if HAVE_PTHREADS < 7
23617 #define NULL (void*)0
23620 static void *task(p)
23623 return (void *) (p == NULL);
23630 /* pthread test function */
23631 #ifndef PTHREAD_CREATE_DETACHED
23632 #define PTHREAD_CREATE_DETACHED 1
23636 int detach = PTHREAD_CREATE_DETACHED;
23638 #if HAVE_PTHREADS > 4
23639 /* Final pthreads */
23640 pthread_attr_t attr;
23642 status = pthread_attr_init(&attr);
23643 if( status ) return status;
23645 #if HAVE_PTHREADS < 7
23646 status = pthread_attr_setdetachstate(&attr, &detach);
23647 if( status < 0 ) status = errno;
23649 status = pthread_attr_setdetachstate(&attr, detach);
23651 if( status ) return status;
23652 status = pthread_create( &t, &attr, task, NULL );
23653 #if HAVE_PTHREADS < 7
23654 if( status < 0 ) status = errno;
23656 if( status ) return status;
23658 /* Draft 4 pthreads */
23659 status = pthread_create( &t, pthread_attr_default, task, NULL );
23660 if( status ) return errno;
23662 /* give thread a chance to complete */
23663 /* it should remain joinable and hence detachable */
23666 status = pthread_detach( &t );
23667 if( status ) return errno;
23670 #ifdef HAVE_LINUX_THREADS
23671 pthread_kill_other_threads_np();
23680 rm -f conftest.$ac_objext conftest$ac_exeext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23682 (eval $ac_link) 2>conftest.er1
23684 grep -v '^ *+' conftest.er1 >conftest.err
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } &&
23689 { ac_try='test -z "$ac_c_werror_flag"
23690 || test ! -s conftest.err'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; } &&
23696 { ac_try='test -s conftest$ac_exeext'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }; then
23702 ol_cv_pthread_lpthreads_lexc=yes
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ol_cv_pthread_lpthreads_lexc=no
23709 rm -f conftest.err conftest.$ac_objext \
23710 conftest$ac_exeext conftest.$ac_ext
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23719 /* pthread test headers */
23720 #include <pthread.h>
23721 #if HAVE_PTHREADS < 7
23725 #define NULL (void*)0
23728 static void *task(p)
23731 return (void *) (p == NULL);
23735 int main(argc, argv)
23740 /* pthread test function */
23741 #ifndef PTHREAD_CREATE_DETACHED
23742 #define PTHREAD_CREATE_DETACHED 1
23746 int detach = PTHREAD_CREATE_DETACHED;
23748 #if HAVE_PTHREADS > 4
23749 /* Final pthreads */
23750 pthread_attr_t attr;
23752 status = pthread_attr_init(&attr);
23753 if( status ) return status;
23755 #if HAVE_PTHREADS < 7
23756 status = pthread_attr_setdetachstate(&attr, &detach);
23757 if( status < 0 ) status = errno;
23759 status = pthread_attr_setdetachstate(&attr, detach);
23761 if( status ) return status;
23762 status = pthread_create( &t, &attr, task, NULL );
23763 #if HAVE_PTHREADS < 7
23764 if( status < 0 ) status = errno;
23766 if( status ) return status;
23768 /* Draft 4 pthreads */
23769 status = pthread_create( &t, pthread_attr_default, task, NULL );
23770 if( status ) return errno;
23772 /* give thread a chance to complete */
23773 /* it should remain joinable and hence detachable */
23776 status = pthread_detach( &t );
23777 if( status ) return errno;
23780 #ifdef HAVE_LINUX_THREADS
23781 pthread_kill_other_threads_np();
23789 rm -f conftest$ac_exeext
23790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23791 (eval $ac_link) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ol_cv_pthread_lpthreads_lexc=yes
23802 echo "$as_me: program exited with status $ac_status" >&5
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23806 ( exit $ac_status )
23807 ol_cv_pthread_lpthreads_lexc=no
23809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23816 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23817 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23819 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23820 ol_link_pthreads="-lpthreads -lexc"
23821 ol_link_threads=posix
23826 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23827 if test "$ol_link_threads" = no ; then
23829 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23830 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23831 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 LIBS="-lpthreads $LIBS"
23839 if test "$cross_compiling" = yes; then
23840 cat >conftest.$ac_ext <<_ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h. */
23847 /* pthread test headers */
23848 #include <pthread.h>
23849 #if HAVE_PTHREADS < 7
23853 #define NULL (void*)0
23856 static void *task(p)
23859 return (void *) (p == NULL);
23866 /* pthread test function */
23867 #ifndef PTHREAD_CREATE_DETACHED
23868 #define PTHREAD_CREATE_DETACHED 1
23872 int detach = PTHREAD_CREATE_DETACHED;
23874 #if HAVE_PTHREADS > 4
23875 /* Final pthreads */
23876 pthread_attr_t attr;
23878 status = pthread_attr_init(&attr);
23879 if( status ) return status;
23881 #if HAVE_PTHREADS < 7
23882 status = pthread_attr_setdetachstate(&attr, &detach);
23883 if( status < 0 ) status = errno;
23885 status = pthread_attr_setdetachstate(&attr, detach);
23887 if( status ) return status;
23888 status = pthread_create( &t, &attr, task, NULL );
23889 #if HAVE_PTHREADS < 7
23890 if( status < 0 ) status = errno;
23892 if( status ) return status;
23894 /* Draft 4 pthreads */
23895 status = pthread_create( &t, pthread_attr_default, task, NULL );
23896 if( status ) return errno;
23898 /* give thread a chance to complete */
23899 /* it should remain joinable and hence detachable */
23902 status = pthread_detach( &t );
23903 if( status ) return errno;
23906 #ifdef HAVE_LINUX_THREADS
23907 pthread_kill_other_threads_np();
23916 rm -f conftest.$ac_objext conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918 (eval $ac_link) 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } &&
23925 { ac_try='test -z "$ac_c_werror_flag"
23926 || test ! -s conftest.err'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest$ac_exeext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 ol_cv_pthread_lib_lpthreads=yes
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23943 ol_cv_pthread_lib_lpthreads=no
23945 rm -f conftest.err conftest.$ac_objext \
23946 conftest$ac_exeext conftest.$ac_ext
23948 cat >conftest.$ac_ext <<_ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23955 /* pthread test headers */
23956 #include <pthread.h>
23957 #if HAVE_PTHREADS < 7
23961 #define NULL (void*)0
23964 static void *task(p)
23967 return (void *) (p == NULL);
23971 int main(argc, argv)
23976 /* pthread test function */
23977 #ifndef PTHREAD_CREATE_DETACHED
23978 #define PTHREAD_CREATE_DETACHED 1
23982 int detach = PTHREAD_CREATE_DETACHED;
23984 #if HAVE_PTHREADS > 4
23985 /* Final pthreads */
23986 pthread_attr_t attr;
23988 status = pthread_attr_init(&attr);
23989 if( status ) return status;
23991 #if HAVE_PTHREADS < 7
23992 status = pthread_attr_setdetachstate(&attr, &detach);
23993 if( status < 0 ) status = errno;
23995 status = pthread_attr_setdetachstate(&attr, detach);
23997 if( status ) return status;
23998 status = pthread_create( &t, &attr, task, NULL );
23999 #if HAVE_PTHREADS < 7
24000 if( status < 0 ) status = errno;
24002 if( status ) return status;
24004 /* Draft 4 pthreads */
24005 status = pthread_create( &t, pthread_attr_default, task, NULL );
24006 if( status ) return errno;
24008 /* give thread a chance to complete */
24009 /* it should remain joinable and hence detachable */
24012 status = pthread_detach( &t );
24013 if( status ) return errno;
24016 #ifdef HAVE_LINUX_THREADS
24017 pthread_kill_other_threads_np();
24025 rm -f conftest$ac_exeext
24026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24027 (eval $ac_link) 2>&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; }; then
24036 ol_cv_pthread_lib_lpthreads=yes
24038 echo "$as_me: program exited with status $ac_status" >&5
24039 echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 ( exit $ac_status )
24043 ol_cv_pthread_lib_lpthreads=no
24045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24052 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24053 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24055 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24056 ol_link_pthreads="-lpthreads"
24057 ol_link_threads=posix
24062 if test $ol_link_threads != no ; then
24063 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24065 save_CPPFLAGS="$CPPFLAGS"
24067 LIBS="$LTHREAD_LIBS $LIBS"
24072 for ac_func in sched_yield pthread_yield thr_yield
24074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 echo "$as_me:$LINENO: checking for $ac_func" >&5
24076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24077 if eval "test \"\${$as_ac_var+set}\" = set"; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24088 #define $ac_func innocuous_$ac_func
24090 /* System header to define __stub macros and hopefully few prototypes,
24091 which can conflict with char $ac_func (); below.
24092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093 <limits.h> exists even on freestanding compilers. */
24096 # include <limits.h>
24098 # include <assert.h>
24103 /* Override any gcc2 internal prototype to avoid an error. */
24108 /* We use char because int might match the return type of a gcc2
24109 builtin and then its argument prototype would still apply. */
24111 /* The GNU C library defines this for functions which it implements
24112 to always fail with ENOSYS. Some functions are actually named
24113 something starting with __ and the normal name is an alias. */
24114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24117 char (*f) () = $ac_func;
24126 return f != $ac_func;
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133 (eval $ac_link) 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } &&
24140 { ac_try='test -z "$ac_c_werror_flag"
24141 || test ! -s conftest.err'
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; } &&
24147 { ac_try='test -s conftest$ac_exeext'
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24153 eval "$as_ac_var=yes"
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 eval "$as_ac_var=no"
24160 rm -f conftest.err conftest.$ac_objext \
24161 conftest$ac_exeext conftest.$ac_ext
24163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24165 if test `eval echo '${'$as_ac_var'}'` = yes; then
24166 cat >>confdefs.h <<_ACEOF
24167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24174 if test $ac_cv_func_sched_yield = no -a \
24175 $ac_cv_func_pthread_yield = no -a \
24176 $ac_cv_func_thr_yield = no ; then
24177 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24178 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24179 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 ac_check_lib_save_LIBS=$LIBS
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24191 /* Override any gcc2 internal prototype to avoid an error. */
24195 /* We use char because int might match the return type of a gcc2
24196 builtin and then its argument prototype would still apply. */
24197 char sched_yield ();
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24208 (eval $ac_link) 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } &&
24215 { ac_try='test -z "$ac_c_werror_flag"
24216 || test ! -s conftest.err'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } &&
24222 { ac_try='test -s conftest$ac_exeext'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; }; then
24228 ac_cv_lib_rt_sched_yield=yes
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_cv_lib_rt_sched_yield=no
24235 rm -f conftest.err conftest.$ac_objext \
24236 conftest$ac_exeext conftest.$ac_ext
24237 LIBS=$ac_check_lib_save_LIBS
24239 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24240 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24241 if test $ac_cv_lib_rt_sched_yield = yes; then
24242 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24244 cat >>confdefs.h <<\_ACEOF
24245 #define HAVE_SCHED_YIELD 1
24248 ac_cv_func_sched_yield=yes
24250 ac_cv_func_sched_yield=no
24254 if test $ac_cv_func_sched_yield = no -a \
24255 $ac_cv_func_pthread_yield = no -a \
24256 "$ac_cv_func_thr_yield" = no ; then
24257 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24258 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24263 for ac_func in pthread_kill pthread_rwlock_destroy
24265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24266 echo "$as_me:$LINENO: checking for $ac_func" >&5
24267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24268 if eval "test \"\${$as_ac_var+set}\" = set"; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 cat >conftest.$ac_ext <<_ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h. */
24277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24279 #define $ac_func innocuous_$ac_func
24281 /* System header to define __stub macros and hopefully few prototypes,
24282 which can conflict with char $ac_func (); below.
24283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24284 <limits.h> exists even on freestanding compilers. */
24287 # include <limits.h>
24289 # include <assert.h>
24294 /* Override any gcc2 internal prototype to avoid an error. */
24299 /* We use char because int might match the return type of a gcc2
24300 builtin and then its argument prototype would still apply. */
24302 /* The GNU C library defines this for functions which it implements
24303 to always fail with ENOSYS. Some functions are actually named
24304 something starting with __ and the normal name is an alias. */
24305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24308 char (*f) () = $ac_func;
24317 return f != $ac_func;
24322 rm -f conftest.$ac_objext conftest$ac_exeext
24323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24324 (eval $ac_link) 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } &&
24331 { ac_try='test -z "$ac_c_werror_flag"
24332 || test ! -s conftest.err'
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; } &&
24338 { ac_try='test -s conftest$ac_exeext'
24339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340 (eval $ac_try) 2>&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; }; then
24344 eval "$as_ac_var=yes"
24346 echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24349 eval "$as_ac_var=no"
24351 rm -f conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
24354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24356 if test `eval echo '${'$as_ac_var'}'` = yes; then
24357 cat >>confdefs.h <<_ACEOF
24358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24365 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24366 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24367 if test "${ol_cv_func_pthread_detach+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 cat >conftest.$ac_ext <<_ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24378 #include <pthread.h>
24380 #define NULL (void*)0
24386 pthread_detach(NULL);
24391 rm -f conftest.$ac_objext conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393 (eval $ac_link) 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag"
24401 || test ! -s conftest.err'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ol_cv_func_pthread_detach=yes
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ol_cv_func_pthread_detach=no
24420 rm -f conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
24424 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24425 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24427 if test $ol_cv_func_pthread_detach = no ; then
24428 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24429 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24430 { (exit 1); exit 1; }; }
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_PTHREAD_DETACH 1
24444 pthread_setconcurrency \
24445 pthread_getconcurrency \
24446 thr_setconcurrency \
24447 thr_getconcurrency \
24450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24451 echo "$as_me:$LINENO: checking for $ac_func" >&5
24452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24453 if eval "test \"\${$as_ac_var+set}\" = set"; then
24454 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24464 #define $ac_func innocuous_$ac_func
24466 /* System header to define __stub macros and hopefully few prototypes,
24467 which can conflict with char $ac_func (); below.
24468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24469 <limits.h> exists even on freestanding compilers. */
24472 # include <limits.h>
24474 # include <assert.h>
24479 /* Override any gcc2 internal prototype to avoid an error. */
24484 /* We use char because int might match the return type of a gcc2
24485 builtin and then its argument prototype would still apply. */
24487 /* The GNU C library defines this for functions which it implements
24488 to always fail with ENOSYS. Some functions are actually named
24489 something starting with __ and the normal name is an alias. */
24490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24493 char (*f) () = $ac_func;
24502 return f != $ac_func;
24507 rm -f conftest.$ac_objext conftest$ac_exeext
24508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24509 (eval $ac_link) 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } &&
24516 { ac_try='test -z "$ac_c_werror_flag"
24517 || test ! -s conftest.err'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; } &&
24523 { ac_try='test -s conftest$ac_exeext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 eval "$as_ac_var=yes"
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24534 eval "$as_ac_var=no"
24536 rm -f conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
24539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24541 if test `eval echo '${'$as_ac_var'}'` = yes; then
24542 cat >>confdefs.h <<_ACEOF
24543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24552 for ac_func in pthread_kill_other_threads_np
24554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24555 echo "$as_me:$LINENO: checking for $ac_func" >&5
24556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24557 if eval "test \"\${$as_ac_var+set}\" = set"; then
24558 echo $ECHO_N "(cached) $ECHO_C" >&6
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24568 #define $ac_func innocuous_$ac_func
24570 /* System header to define __stub macros and hopefully few prototypes,
24571 which can conflict with char $ac_func (); below.
24572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24573 <limits.h> exists even on freestanding compilers. */
24576 # include <limits.h>
24578 # include <assert.h>
24583 /* Override any gcc2 internal prototype to avoid an error. */
24588 /* We use char because int might match the return type of a gcc2
24589 builtin and then its argument prototype would still apply. */
24591 /* The GNU C library defines this for functions which it implements
24592 to always fail with ENOSYS. Some functions are actually named
24593 something starting with __ and the normal name is an alias. */
24594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24597 char (*f) () = $ac_func;
24606 return f != $ac_func;
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613 (eval $ac_link) 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
24620 { ac_try='test -z "$ac_c_werror_flag"
24621 || test ! -s conftest.err'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; } &&
24627 { ac_try='test -s conftest$ac_exeext'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; }; then
24633 eval "$as_ac_var=yes"
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24638 eval "$as_ac_var=no"
24640 rm -f conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24645 if test `eval echo '${'$as_ac_var'}'` = yes; then
24646 cat >>confdefs.h <<_ACEOF
24647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24653 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24654 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24655 if test "${ol_cv_sys_linux_threads+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24658 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24660 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24661 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24666 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24667 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24668 if test "${ol_cv_linux_threads+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 if test $ol_cv_header_linux_threads = yes -a \
24673 $ol_cv_sys_linux_threads = yes; then
24674 ol_cv_linux_threads=yes
24675 elif test $ol_cv_header_linux_threads = no -a \
24676 $ol_cv_sys_linux_threads = no; then
24677 ol_cv_linux_threads=no
24679 ol_cv_linux_threads=error
24683 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24684 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24687 if test $ol_cv_linux_threads = error; then
24688 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24689 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24690 { (exit 1); exit 1; }; };
24693 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24694 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24695 if test "${ol_cv_pthread_create_works+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 if test "$cross_compiling" = yes; then
24700 ol_cv_pthread_create_works=yes
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24709 /* pthread test headers */
24710 #include <pthread.h>
24711 #if HAVE_PTHREADS < 7
24715 #define NULL (void*)0
24718 static void *task(p)
24721 return (void *) (p == NULL);
24725 int main(argc, argv)
24730 /* pthread test function */
24731 #ifndef PTHREAD_CREATE_DETACHED
24732 #define PTHREAD_CREATE_DETACHED 1
24736 int detach = PTHREAD_CREATE_DETACHED;
24738 #if HAVE_PTHREADS > 4
24739 /* Final pthreads */
24740 pthread_attr_t attr;
24742 status = pthread_attr_init(&attr);
24743 if( status ) return status;
24745 #if HAVE_PTHREADS < 7
24746 status = pthread_attr_setdetachstate(&attr, &detach);
24747 if( status < 0 ) status = errno;
24749 status = pthread_attr_setdetachstate(&attr, detach);
24751 if( status ) return status;
24752 status = pthread_create( &t, &attr, task, NULL );
24753 #if HAVE_PTHREADS < 7
24754 if( status < 0 ) status = errno;
24756 if( status ) return status;
24758 /* Draft 4 pthreads */
24759 status = pthread_create( &t, pthread_attr_default, task, NULL );
24760 if( status ) return errno;
24762 /* give thread a chance to complete */
24763 /* it should remain joinable and hence detachable */
24766 status = pthread_detach( &t );
24767 if( status ) return errno;
24770 #ifdef HAVE_LINUX_THREADS
24771 pthread_kill_other_threads_np();
24779 rm -f conftest$ac_exeext
24780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; }; then
24790 ol_cv_pthread_create_works=yes
24792 echo "$as_me: program exited with status $ac_status" >&5
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24796 ( exit $ac_status )
24797 ol_cv_pthread_create_works=no
24799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24802 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24803 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24805 if test $ol_cv_pthread_create_works = no ; then
24806 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24807 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24808 { (exit 1); exit 1; }; }
24811 if test $ol_with_yielding_select = auto ; then
24812 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24813 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24814 if test "${ol_cv_pthread_select_yields+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 if test "$cross_compiling" = yes; then
24819 ol_cv_pthread_select_yields=cross
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24828 #include <sys/types.h>
24829 #include <sys/time.h>
24830 #include <unistd.h>
24831 #include <pthread.h>
24833 #define NULL (void*) 0
24836 static int fildes[2];
24838 static void *task(p)
24850 FD_SET(fildes[0], &rfds);
24852 /* we're not interested in any fds */
24853 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24860 exit(0); /* if we exit here, the select blocked the whole process */
24863 int main(argc, argv)
24869 /* create a pipe to select */
24870 if(pipe(&fildes[0])) {
24875 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24876 (void) pthread_setconcurrency(2);
24878 #ifdef HAVE_THR_SETCONCURRENCY
24879 /* Set Solaris LWP concurrency to 2 */
24880 thr_setconcurrency(2);
24884 #if HAVE_PTHREADS < 6
24885 pthread_create(&t, pthread_attr_default, task, NULL);
24887 pthread_create(&t, NULL, task, NULL);
24890 /* make sure task runs first */
24893 #elif defined( HAVE_SCHED_YIELD )
24895 #elif defined( HAVE_PTHREAD_YIELD )
24902 rm -f conftest$ac_exeext
24903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24904 (eval $ac_link) 2>&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 (eval $ac_try) 2>&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; }; then
24913 ol_cv_pthread_select_yields=no
24915 echo "$as_me: program exited with status $ac_status" >&5
24916 echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24919 ( exit $ac_status )
24920 ol_cv_pthread_select_yields=yes
24922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24925 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24926 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24928 if test $ol_cv_pthread_select_yields = cross ; then
24929 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24930 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24931 { (exit 1); exit 1; }; }
24934 if test $ol_cv_pthread_select_yields = yes ; then
24935 ol_with_yielding_select=yes
24939 CPPFLAGS="$save_CPPFLAGS"
24942 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24943 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24944 { (exit 1); exit 1; }; }
24948 if test $ol_with_threads = posix ; then
24949 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24950 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24951 { (exit 1); exit 1; }; }
24955 if test $ol_with_threads = auto -o $ol_with_threads = yes \
24956 -o $ol_with_threads = mach ; then
24960 for ac_header in mach/cthreads.h cthreads.h
24962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24964 echo "$as_me:$LINENO: checking for $ac_header" >&5
24965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24972 # Is the header compilable?
24973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24982 #include <$ac_header>
24984 rm -f conftest.$ac_objext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24986 (eval $ac_compile) 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } &&
24993 { ac_try='test -z "$ac_c_werror_flag"
24994 || test ! -s conftest.err'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } &&
25000 { ac_try='test -s conftest.$ac_objext'
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_header_compiler=yes
25008 echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25011 ac_header_compiler=no
25013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25015 echo "${ECHO_T}$ac_header_compiler" >&6
25017 # Is the header present?
25018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25020 cat >conftest.$ac_ext <<_ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h. */
25026 #include <$ac_header>
25028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } >/dev/null; then
25036 if test -s conftest.err; then
25037 ac_cpp_err=$ac_c_preproc_warn_flag
25038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25045 if test -z "$ac_cpp_err"; then
25046 ac_header_preproc=yes
25048 echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25051 ac_header_preproc=no
25053 rm -f conftest.err conftest.$ac_ext
25054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25055 echo "${ECHO_T}$ac_header_preproc" >&6
25057 # So? What about this header?
25058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25064 ac_header_preproc=yes
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25081 ## ------------------------------------------ ##
25082 ## Report this to the AC_PACKAGE_NAME lists. ##
25083 ## ------------------------------------------ ##
25086 sed "s/^/$as_me: WARNING: /" >&2
25089 echo "$as_me:$LINENO: checking for $ac_header" >&5
25090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 eval "$as_ac_Header=\$ac_header_preproc"
25096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25101 cat >>confdefs.h <<_ACEOF
25102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25109 if test $ac_cv_header_mach_cthreads_h = yes ; then
25110 ol_with_threads=found
25112 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25113 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25114 if test "${ac_cv_func_cthread_fork+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25125 #define cthread_fork innocuous_cthread_fork
25127 /* System header to define __stub macros and hopefully few prototypes,
25128 which can conflict with char cthread_fork (); below.
25129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25130 <limits.h> exists even on freestanding compilers. */
25133 # include <limits.h>
25135 # include <assert.h>
25138 #undef cthread_fork
25140 /* Override any gcc2 internal prototype to avoid an error. */
25145 /* We use char because int might match the return type of a gcc2
25146 builtin and then its argument prototype would still apply. */
25147 char cthread_fork ();
25148 /* The GNU C library defines this for functions which it implements
25149 to always fail with ENOSYS. Some functions are actually named
25150 something starting with __ and the normal name is an alias. */
25151 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25154 char (*f) () = cthread_fork;
25163 return f != cthread_fork;
25168 rm -f conftest.$ac_objext conftest$ac_exeext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25170 (eval $ac_link) 2>conftest.er1
25172 grep -v '^ *+' conftest.er1 >conftest.err
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
25177 { ac_try='test -z "$ac_c_werror_flag"
25178 || test ! -s conftest.err'
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest$ac_exeext'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 ac_cv_func_cthread_fork=yes
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 ac_cv_func_cthread_fork=no
25197 rm -f conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
25200 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25201 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25202 if test $ac_cv_func_cthread_fork = yes; then
25203 ol_link_threads=yes
25207 if test $ol_link_threads = no ; then
25208 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25209 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25210 if test "${ol_cv_cthread_all_load+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25215 LIBS="-all_load $LIBS"
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222 #include <mach/cthreads.h>
25227 cthread_fork((void *)0, (void *)0);
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235 (eval $ac_link) 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try='test -z "$ac_c_werror_flag"
25243 || test ! -s conftest.err'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; } &&
25249 { ac_try='test -s conftest$ac_exeext'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; }; then
25255 ol_cv_cthread_all_load=yes
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 ol_cv_cthread_all_load=no
25262 rm -f conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
25267 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25268 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25270 if test $ol_cv_cthread_all_load = yes ; then
25271 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25272 ol_link_threads=mach
25273 ol_with_threads=found
25277 elif test $ac_cv_header_cthreads_h = yes ; then
25279 ol_with_threads=found
25282 LIBS="$LIBS -lthreads"
25283 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25284 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25285 if test "${ac_cv_func_cthread_fork+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25296 #define cthread_fork innocuous_cthread_fork
25298 /* System header to define __stub macros and hopefully few prototypes,
25299 which can conflict with char cthread_fork (); below.
25300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25301 <limits.h> exists even on freestanding compilers. */
25304 # include <limits.h>
25306 # include <assert.h>
25309 #undef cthread_fork
25311 /* Override any gcc2 internal prototype to avoid an error. */
25316 /* We use char because int might match the return type of a gcc2
25317 builtin and then its argument prototype would still apply. */
25318 char cthread_fork ();
25319 /* The GNU C library defines this for functions which it implements
25320 to always fail with ENOSYS. Some functions are actually named
25321 something starting with __ and the normal name is an alias. */
25322 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25325 char (*f) () = cthread_fork;
25334 return f != cthread_fork;
25339 rm -f conftest.$ac_objext conftest$ac_exeext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25341 (eval $ac_link) 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } &&
25348 { ac_try='test -z "$ac_c_werror_flag"
25349 || test ! -s conftest.err'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; } &&
25355 { ac_try='test -s conftest$ac_exeext'
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; }; then
25361 ac_cv_func_cthread_fork=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_cv_func_cthread_fork=no
25368 rm -f conftest.err conftest.$ac_objext \
25369 conftest$ac_exeext conftest.$ac_ext
25371 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25372 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25373 if test $ac_cv_func_cthread_fork = yes; then
25374 ol_link_threads=yes
25379 if test $ol_link_threads = yes ; then
25380 LTHREAD_LIBS="-lthreads"
25381 ol_link_threads=mach
25382 ol_with_threads=found
25384 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25385 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25386 { (exit 1); exit 1; }; }
25389 elif test $ol_with_threads = mach ; then
25390 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25391 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25392 { (exit 1); exit 1; }; }
25395 if test $ol_link_threads = mach ; then
25397 cat >>confdefs.h <<\_ACEOF
25398 #define HAVE_MACH_CTHREADS 1
25401 elif test $ol_with_threads = found ; then
25402 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25403 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25404 { (exit 1); exit 1; }; }
25408 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25409 -o $ol_with_threads = pth ; then
25412 for ac_header in pth.h
25414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25416 echo "$as_me:$LINENO: checking for $ac_header" >&5
25417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25424 # Is the header compilable?
25425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 $ac_includes_default
25434 #include <$ac_header>
25436 rm -f conftest.$ac_objext
25437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25438 (eval $ac_compile) 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } &&
25445 { ac_try='test -z "$ac_c_werror_flag"
25446 || test ! -s conftest.err'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; } &&
25452 { ac_try='test -s conftest.$ac_objext'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; }; then
25458 ac_header_compiler=yes
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_header_compiler=no
25465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25467 echo "${ECHO_T}$ac_header_compiler" >&6
25469 # Is the header present?
25470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 #include <$ac_header>
25480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25483 grep -v '^ *+' conftest.er1 >conftest.err
25485 cat conftest.err >&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } >/dev/null; then
25488 if test -s conftest.err; then
25489 ac_cpp_err=$ac_c_preproc_warn_flag
25490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25497 if test -z "$ac_cpp_err"; then
25498 ac_header_preproc=yes
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ac_header_preproc=no
25505 rm -f conftest.err conftest.$ac_ext
25506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6
25509 # So? What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25516 ac_header_preproc=yes
25519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25533 ## ------------------------------------------ ##
25534 ## Report this to the AC_PACKAGE_NAME lists. ##
25535 ## ------------------------------------------ ##
25538 sed "s/^/$as_me: WARNING: /" >&2
25541 echo "$as_me:$LINENO: checking for $ac_header" >&5
25542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 eval "$as_ac_Header=\$ac_header_preproc"
25548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553 cat >>confdefs.h <<_ACEOF
25554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25562 if test $ac_cv_header_pth_h = yes ; then
25563 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25564 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25565 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 ac_check_lib_save_LIBS=$LIBS
25570 cat >conftest.$ac_ext <<_ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h. */
25577 /* Override any gcc2 internal prototype to avoid an error. */
25581 /* We use char because int might match the return type of a gcc2
25582 builtin and then its argument prototype would still apply. */
25583 char pth_version ();
25592 rm -f conftest.$ac_objext conftest$ac_exeext
25593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594 (eval $ac_link) 2>conftest.er1
25596 grep -v '^ *+' conftest.er1 >conftest.err
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } &&
25601 { ac_try='test -z "$ac_c_werror_flag"
25602 || test ! -s conftest.err'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; } &&
25608 { ac_try='test -s conftest$ac_exeext'
25609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25610 (eval $ac_try) 2>&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_cv_lib_pth_pth_version=yes
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25619 ac_cv_lib_pth_pth_version=no
25621 rm -f conftest.err conftest.$ac_objext \
25622 conftest$ac_exeext conftest.$ac_ext
25623 LIBS=$ac_check_lib_save_LIBS
25625 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25626 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25627 if test $ac_cv_lib_pth_pth_version = yes; then
25634 if test $have_pth = yes ; then
25636 cat >>confdefs.h <<\_ACEOF
25637 #define HAVE_GNU_PTH 1
25640 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25641 ol_link_threads=pth
25642 ol_with_threads=found
25644 if test $ol_with_yielding_select = auto ; then
25645 ol_with_yielding_select=yes
25651 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25652 -o $ol_with_threads = lwp ; then
25656 for ac_header in thread.h synch.h
25658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25660 echo "$as_me:$LINENO: checking for $ac_header" >&5
25661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25668 # Is the header compilable?
25669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25678 #include <$ac_header>
25680 rm -f conftest.$ac_objext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25682 (eval $ac_compile) 2>conftest.er1
25684 grep -v '^ *+' conftest.er1 >conftest.err
25686 cat conftest.err >&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
25689 { ac_try='test -z "$ac_c_werror_flag"
25690 || test ! -s conftest.err'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest.$ac_objext'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_header_compiler=yes
25704 echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 ac_header_compiler=no
25709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25711 echo "${ECHO_T}$ac_header_compiler" >&6
25713 # Is the header present?
25714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25716 cat >conftest.$ac_ext <<_ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h. */
25722 #include <$ac_header>
25724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } >/dev/null; then
25732 if test -s conftest.err; then
25733 ac_cpp_err=$ac_c_preproc_warn_flag
25734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25741 if test -z "$ac_cpp_err"; then
25742 ac_header_preproc=yes
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25747 ac_header_preproc=no
25749 rm -f conftest.err conftest.$ac_ext
25750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25751 echo "${ECHO_T}$ac_header_preproc" >&6
25753 # So? What about this header?
25754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25760 ac_header_preproc=yes
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25777 ## ------------------------------------------ ##
25778 ## Report this to the AC_PACKAGE_NAME lists. ##
25779 ## ------------------------------------------ ##
25782 sed "s/^/$as_me: WARNING: /" >&2
25785 echo "$as_me:$LINENO: checking for $ac_header" >&5
25786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25790 eval "$as_ac_Header=\$ac_header_preproc"
25792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25797 cat >>confdefs.h <<_ACEOF
25798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25805 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
25806 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25807 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25808 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 ac_check_lib_save_LIBS=$LIBS
25812 LIBS="-lthread $LIBS"
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25820 /* Override any gcc2 internal prototype to avoid an error. */
25824 /* We use char because int might match the return type of a gcc2
25825 builtin and then its argument prototype would still apply. */
25826 char thr_create ();
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25837 (eval $ac_link) 2>conftest.er1
25839 grep -v '^ *+' conftest.er1 >conftest.err
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
25844 { ac_try='test -z "$ac_c_werror_flag"
25845 || test ! -s conftest.err'
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest$ac_exeext'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 ac_cv_lib_thread_thr_create=yes
25859 echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25862 ac_cv_lib_thread_thr_create=no
25864 rm -f conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
25866 LIBS=$ac_check_lib_save_LIBS
25868 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25869 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25870 if test $ac_cv_lib_thread_thr_create = yes; then
25877 if test $have_thr = yes ; then
25879 cat >>confdefs.h <<\_ACEOF
25883 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25884 ol_link_threads=thr
25886 if test $ol_with_yielding_select = auto ; then
25887 ol_with_yielding_select=yes
25893 thr_setconcurrency \
25894 thr_getconcurrency \
25897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25898 echo "$as_me:$LINENO: checking for $ac_func" >&5
25899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25900 if eval "test \"\${$as_ac_var+set}\" = set"; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25903 cat >conftest.$ac_ext <<_ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h. */
25909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25911 #define $ac_func innocuous_$ac_func
25913 /* System header to define __stub macros and hopefully few prototypes,
25914 which can conflict with char $ac_func (); below.
25915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25916 <limits.h> exists even on freestanding compilers. */
25919 # include <limits.h>
25921 # include <assert.h>
25926 /* Override any gcc2 internal prototype to avoid an error. */
25931 /* We use char because int might match the return type of a gcc2
25932 builtin and then its argument prototype would still apply. */
25934 /* The GNU C library defines this for functions which it implements
25935 to always fail with ENOSYS. Some functions are actually named
25936 something starting with __ and the normal name is an alias. */
25937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25940 char (*f) () = $ac_func;
25949 return f != $ac_func;
25954 rm -f conftest.$ac_objext conftest$ac_exeext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25956 (eval $ac_link) 2>conftest.er1
25958 grep -v '^ *+' conftest.er1 >conftest.err
25960 cat conftest.err >&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
25963 { ac_try='test -z "$ac_c_werror_flag"
25964 || test ! -s conftest.err'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; } &&
25970 { ac_try='test -s conftest$ac_exeext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 eval "$as_ac_var=yes"
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25981 eval "$as_ac_var=no"
25983 rm -f conftest.err conftest.$ac_objext \
25984 conftest$ac_exeext conftest.$ac_ext
25986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25988 if test `eval echo '${'$as_ac_var'}'` = yes; then
25989 cat >>confdefs.h <<_ACEOF
25990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26000 for ac_header in lwp/lwp.h
26002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26004 echo "$as_me:$LINENO: checking for $ac_header" >&5
26005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26007 echo $ECHO_N "(cached) $ECHO_C" >&6
26009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26012 # Is the header compilable?
26013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26015 cat >conftest.$ac_ext <<_ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h. */
26021 $ac_includes_default
26022 #include <$ac_header>
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026 (eval $ac_compile) 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 ac_header_compiler=yes
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 ac_header_compiler=no
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26055 echo "${ECHO_T}$ac_header_compiler" >&6
26057 # Is the header present?
26058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26060 cat >conftest.$ac_ext <<_ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26066 #include <$ac_header>
26068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26071 grep -v '^ *+' conftest.er1 >conftest.err
26073 cat conftest.err >&5
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); } >/dev/null; then
26076 if test -s conftest.err; then
26077 ac_cpp_err=$ac_c_preproc_warn_flag
26078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26085 if test -z "$ac_cpp_err"; then
26086 ac_header_preproc=yes
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ac_header_preproc=no
26093 rm -f conftest.err conftest.$ac_ext
26094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26095 echo "${ECHO_T}$ac_header_preproc" >&6
26097 # So? What about this header?
26098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26104 ac_header_preproc=yes
26107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26121 ## ------------------------------------------ ##
26122 ## Report this to the AC_PACKAGE_NAME lists. ##
26123 ## ------------------------------------------ ##
26126 sed "s/^/$as_me: WARNING: /" >&2
26129 echo "$as_me:$LINENO: checking for $ac_header" >&5
26130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26132 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 eval "$as_ac_Header=\$ac_header_preproc"
26136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26141 cat >>confdefs.h <<_ACEOF
26142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26149 if test $ac_cv_header_lwp_lwp_h = yes ; then
26150 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26151 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26152 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 ac_check_lib_save_LIBS=$LIBS
26157 cat >conftest.$ac_ext <<_ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h. */
26164 /* Override any gcc2 internal prototype to avoid an error. */
26168 /* We use char because int might match the return type of a gcc2
26169 builtin and then its argument prototype would still apply. */
26170 char lwp_create ();
26179 rm -f conftest.$ac_objext conftest$ac_exeext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26181 (eval $ac_link) 2>conftest.er1
26183 grep -v '^ *+' conftest.er1 >conftest.err
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } &&
26188 { ac_try='test -z "$ac_c_werror_flag"
26189 || test ! -s conftest.err'
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; } &&
26195 { ac_try='test -s conftest$ac_exeext'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201 ac_cv_lib_lwp_lwp_create=yes
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_cv_lib_lwp_lwp_create=no
26208 rm -f conftest.err conftest.$ac_objext \
26209 conftest$ac_exeext conftest.$ac_ext
26210 LIBS=$ac_check_lib_save_LIBS
26212 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26213 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26214 if test $ac_cv_lib_lwp_lwp_create = yes; then
26221 if test $have_lwp = yes ; then
26223 cat >>confdefs.h <<\_ACEOF
26227 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26228 ol_link_threads=lwp
26230 if test $ol_with_yielding_select = auto ; then
26231 ol_with_yielding_select=no
26237 if test $ol_with_yielding_select = yes ; then
26239 cat >>confdefs.h <<\_ACEOF
26240 #define HAVE_YIELDING_SELECT 1
26245 if test $ol_with_threads = manual ; then
26246 ol_link_threads=yes
26248 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26249 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26253 for ac_header in pthread.h sched.h
26255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26257 echo "$as_me:$LINENO: checking for $ac_header" >&5
26258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26260 echo $ECHO_N "(cached) $ECHO_C" >&6
26262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26265 # Is the header compilable?
26266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26274 $ac_includes_default
26275 #include <$ac_header>
26277 rm -f conftest.$ac_objext
26278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26279 (eval $ac_compile) 2>conftest.er1
26281 grep -v '^ *+' conftest.er1 >conftest.err
26283 cat conftest.err >&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } &&
26286 { ac_try='test -z "$ac_c_werror_flag"
26287 || test ! -s conftest.err'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; } &&
26293 { ac_try='test -s conftest.$ac_objext'
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; }; then
26299 ac_header_compiler=yes
26301 echo "$as_me: failed program was:" >&5
26302 sed 's/^/| /' conftest.$ac_ext >&5
26304 ac_header_compiler=no
26306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26308 echo "${ECHO_T}$ac_header_compiler" >&6
26310 # Is the header present?
26311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26319 #include <$ac_header>
26321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } >/dev/null; then
26329 if test -s conftest.err; then
26330 ac_cpp_err=$ac_c_preproc_warn_flag
26331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26338 if test -z "$ac_cpp_err"; then
26339 ac_header_preproc=yes
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 ac_header_preproc=no
26346 rm -f conftest.err conftest.$ac_ext
26347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26348 echo "${ECHO_T}$ac_header_preproc" >&6
26350 # So? What about this header?
26351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26357 ac_header_preproc=yes
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26374 ## ------------------------------------------ ##
26375 ## Report this to the AC_PACKAGE_NAME lists. ##
26376 ## ------------------------------------------ ##
26379 sed "s/^/$as_me: WARNING: /" >&2
26382 echo "$as_me:$LINENO: checking for $ac_header" >&5
26383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26387 eval "$as_ac_Header=\$ac_header_preproc"
26389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26394 cat >>confdefs.h <<_ACEOF
26395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26404 for ac_func in sched_yield pthread_yield
26406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26407 echo "$as_me:$LINENO: checking for $ac_func" >&5
26408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26409 if eval "test \"\${$as_ac_var+set}\" = set"; then
26410 echo $ECHO_N "(cached) $ECHO_C" >&6
26412 cat >conftest.$ac_ext <<_ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h. */
26418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26420 #define $ac_func innocuous_$ac_func
26422 /* System header to define __stub macros and hopefully few prototypes,
26423 which can conflict with char $ac_func (); below.
26424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26425 <limits.h> exists even on freestanding compilers. */
26428 # include <limits.h>
26430 # include <assert.h>
26435 /* Override any gcc2 internal prototype to avoid an error. */
26440 /* We use char because int might match the return type of a gcc2
26441 builtin and then its argument prototype would still apply. */
26443 /* The GNU C library defines this for functions which it implements
26444 to always fail with ENOSYS. Some functions are actually named
26445 something starting with __ and the normal name is an alias. */
26446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26449 char (*f) () = $ac_func;
26458 return f != $ac_func;
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465 (eval $ac_link) 2>conftest.er1
26467 grep -v '^ *+' conftest.er1 >conftest.err
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest$ac_exeext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 eval "$as_ac_var=yes"
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 eval "$as_ac_var=no"
26492 rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
26495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26497 if test `eval echo '${'$as_ac_var'}'` = yes; then
26498 cat >>confdefs.h <<_ACEOF
26499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26506 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26507 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26508 if test "${ol_cv_header_linux_threads+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 cat >conftest.$ac_ext <<_ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26517 #include <pthread.h>
26519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26520 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26521 ol_cv_header_linux_threads=yes
26523 ol_cv_header_linux_threads=no
26529 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26530 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26531 if test $ol_cv_header_linux_threads = yes; then
26533 cat >>confdefs.h <<\_ACEOF
26534 #define HAVE_LINUX_THREADS 1
26541 for ac_header in mach/cthreads.h
26543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26545 echo "$as_me:$LINENO: checking for $ac_header" >&5
26546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26553 # Is the header compilable?
26554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562 $ac_includes_default
26563 #include <$ac_header>
26565 rm -f conftest.$ac_objext
26566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26567 (eval $ac_compile) 2>conftest.er1
26569 grep -v '^ *+' conftest.er1 >conftest.err
26571 cat conftest.err >&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
26574 { ac_try='test -z "$ac_c_werror_flag"
26575 || test ! -s conftest.err'
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest.$ac_objext'
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587 ac_header_compiler=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_header_compiler=no
26594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26596 echo "${ECHO_T}$ac_header_compiler" >&6
26598 # Is the header present?
26599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26601 cat >conftest.$ac_ext <<_ACEOF
26604 cat confdefs.h >>conftest.$ac_ext
26605 cat >>conftest.$ac_ext <<_ACEOF
26606 /* end confdefs.h. */
26607 #include <$ac_header>
26609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26612 grep -v '^ *+' conftest.er1 >conftest.err
26614 cat conftest.err >&5
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } >/dev/null; then
26617 if test -s conftest.err; then
26618 ac_cpp_err=$ac_c_preproc_warn_flag
26619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26626 if test -z "$ac_cpp_err"; then
26627 ac_header_preproc=yes
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_header_preproc=no
26634 rm -f conftest.err conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26636 echo "${ECHO_T}$ac_header_preproc" >&6
26638 # So? What about this header?
26639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26645 ac_header_preproc=yes
26648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26662 ## ------------------------------------------ ##
26663 ## Report this to the AC_PACKAGE_NAME lists. ##
26664 ## ------------------------------------------ ##
26667 sed "s/^/$as_me: WARNING: /" >&2
26670 echo "$as_me:$LINENO: checking for $ac_header" >&5
26671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26675 eval "$as_ac_Header=\$ac_header_preproc"
26677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26682 cat >>confdefs.h <<_ACEOF
26683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26691 for ac_header in lwp/lwp.h
26693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26695 echo "$as_me:$LINENO: checking for $ac_header" >&5
26696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26703 # Is the header compilable?
26704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26706 cat >conftest.$ac_ext <<_ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h. */
26712 $ac_includes_default
26713 #include <$ac_header>
26715 rm -f conftest.$ac_objext
26716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26717 (eval $ac_compile) 2>conftest.er1
26719 grep -v '^ *+' conftest.er1 >conftest.err
26721 cat conftest.err >&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); } &&
26724 { ac_try='test -z "$ac_c_werror_flag"
26725 || test ! -s conftest.err'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; } &&
26731 { ac_try='test -s conftest.$ac_objext'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26737 ac_header_compiler=yes
26739 echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26742 ac_header_compiler=no
26744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26746 echo "${ECHO_T}$ac_header_compiler" >&6
26748 # Is the header present?
26749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 #include <$ac_header>
26759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26762 grep -v '^ *+' conftest.er1 >conftest.err
26764 cat conftest.err >&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } >/dev/null; then
26767 if test -s conftest.err; then
26768 ac_cpp_err=$ac_c_preproc_warn_flag
26769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26776 if test -z "$ac_cpp_err"; then
26777 ac_header_preproc=yes
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ac_header_preproc=no
26784 rm -f conftest.err conftest.$ac_ext
26785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26786 echo "${ECHO_T}$ac_header_preproc" >&6
26788 # So? What about this header?
26789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26795 ac_header_preproc=yes
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26812 ## ------------------------------------------ ##
26813 ## Report this to the AC_PACKAGE_NAME lists. ##
26814 ## ------------------------------------------ ##
26817 sed "s/^/$as_me: WARNING: /" >&2
26820 echo "$as_me:$LINENO: checking for $ac_header" >&5
26821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26823 echo $ECHO_N "(cached) $ECHO_C" >&6
26825 eval "$as_ac_Header=\$ac_header_preproc"
26827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26832 cat >>confdefs.h <<_ACEOF
26833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26842 for ac_header in thread.h synch.h
26844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26846 echo "$as_me:$LINENO: checking for $ac_header" >&5
26847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26849 echo $ECHO_N "(cached) $ECHO_C" >&6
26851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26854 # Is the header compilable?
26855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26857 cat >conftest.$ac_ext <<_ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h. */
26863 $ac_includes_default
26864 #include <$ac_header>
26866 rm -f conftest.$ac_objext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868 (eval $ac_compile) 2>conftest.er1
26870 grep -v '^ *+' conftest.er1 >conftest.err
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
26875 { ac_try='test -z "$ac_c_werror_flag"
26876 || test ! -s conftest.err'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest.$ac_objext'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; }; then
26888 ac_header_compiler=yes
26890 echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26893 ac_header_compiler=no
26895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26897 echo "${ECHO_T}$ac_header_compiler" >&6
26899 # Is the header present?
26900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908 #include <$ac_header>
26910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26913 grep -v '^ *+' conftest.er1 >conftest.err
26915 cat conftest.err >&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } >/dev/null; then
26918 if test -s conftest.err; then
26919 ac_cpp_err=$ac_c_preproc_warn_flag
26920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26927 if test -z "$ac_cpp_err"; then
26928 ac_header_preproc=yes
26930 echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26933 ac_header_preproc=no
26935 rm -f conftest.err conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26937 echo "${ECHO_T}$ac_header_preproc" >&6
26939 # So? What about this header?
26940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26946 ac_header_preproc=yes
26949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26963 ## ------------------------------------------ ##
26964 ## Report this to the AC_PACKAGE_NAME lists. ##
26965 ## ------------------------------------------ ##
26968 sed "s/^/$as_me: WARNING: /" >&2
26971 echo "$as_me:$LINENO: checking for $ac_header" >&5
26972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26974 echo $ECHO_N "(cached) $ECHO_C" >&6
26976 eval "$as_ac_Header=\$ac_header_preproc"
26978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26983 cat >>confdefs.h <<_ACEOF
26984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26993 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
26994 cat >>confdefs.h <<\_ACEOF
26995 #define REENTRANT 1
26998 cat >>confdefs.h <<\_ACEOF
26999 #define _REENTRANT 1
27002 cat >>confdefs.h <<\_ACEOF
27003 #define THREAD_SAFE 1
27006 cat >>confdefs.h <<\_ACEOF
27007 #define _THREAD_SAFE 1
27010 cat >>confdefs.h <<\_ACEOF
27011 #define THREADSAFE 1
27014 cat >>confdefs.h <<\_ACEOF
27015 #define _THREADSAFE 1
27018 cat >>confdefs.h <<\_ACEOF
27019 #define _SGI_MP_SOURCE 1
27023 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27024 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27025 if test "${ol_cv_errno_thread_specific+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27044 rm -f conftest.$ac_objext conftest$ac_exeext
27045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27046 (eval $ac_link) 2>conftest.er1
27048 grep -v '^ *+' conftest.er1 >conftest.err
27050 cat conftest.err >&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } &&
27053 { ac_try='test -z "$ac_c_werror_flag"
27054 || test ! -s conftest.err'
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest$ac_exeext'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; }; then
27066 ol_cv_errno_thread_specific=yes
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071 ol_cv_errno_thread_specific=no
27073 rm -f conftest.err conftest.$ac_objext \
27074 conftest$ac_exeext conftest.$ac_ext
27077 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27078 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27080 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27081 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27082 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27086 cat >conftest.$ac_ext <<_ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h. */
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27103 (eval $ac_link) 2>conftest.er1
27105 grep -v '^ *+' conftest.er1 >conftest.err
27107 cat conftest.err >&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } &&
27110 { ac_try='test -z "$ac_c_werror_flag"
27111 || test ! -s conftest.err'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; } &&
27117 { ac_try='test -s conftest$ac_exeext'
27118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119 (eval $ac_try) 2>&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; }; then
27123 ol_cv_h_errno_thread_specific=yes
27125 echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ol_cv_h_errno_thread_specific=no
27130 rm -f conftest.err conftest.$ac_objext \
27131 conftest$ac_exeext conftest.$ac_ext
27134 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27135 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27137 if test $ol_cv_errno_thread_specific != yes \
27138 -o $ol_cv_h_errno_thread_specific != yes ; then
27139 LIBS="$LTHREAD_LIBS $LIBS"
27145 if test $ol_link_threads = no ; then
27146 if test $ol_with_threads = yes ; then
27147 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27148 echo "$as_me: error: no suitable thread support" >&2;}
27149 { (exit 1); exit 1; }; }
27152 if test $ol_with_threads = auto ; then
27153 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27154 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27159 cat >>confdefs.h <<\_ACEOF
27160 #define NO_THREADS 1
27166 if test $ol_link_threads != no ; then
27168 cat >>confdefs.h <<\_ACEOF
27169 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27179 gethostbyname_r gethostbyaddr_r \
27182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27183 echo "$as_me:$LINENO: checking for $ac_func" >&5
27184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27185 if eval "test \"\${$as_ac_var+set}\" = set"; then
27186 echo $ECHO_N "(cached) $ECHO_C" >&6
27188 cat >conftest.$ac_ext <<_ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27196 #define $ac_func innocuous_$ac_func
27198 /* System header to define __stub macros and hopefully few prototypes,
27199 which can conflict with char $ac_func (); below.
27200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27201 <limits.h> exists even on freestanding compilers. */
27204 # include <limits.h>
27206 # include <assert.h>
27211 /* Override any gcc2 internal prototype to avoid an error. */
27216 /* We use char because int might match the return type of a gcc2
27217 builtin and then its argument prototype would still apply. */
27219 /* The GNU C library defines this for functions which it implements
27220 to always fail with ENOSYS. Some functions are actually named
27221 something starting with __ and the normal name is an alias. */
27222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27225 char (*f) () = $ac_func;
27234 return f != $ac_func;
27239 rm -f conftest.$ac_objext conftest$ac_exeext
27240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27241 (eval $ac_link) 2>conftest.er1
27243 grep -v '^ *+' conftest.er1 >conftest.err
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } &&
27248 { ac_try='test -z "$ac_c_werror_flag"
27249 || test ! -s conftest.err'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; } &&
27255 { ac_try='test -s conftest$ac_exeext'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; }; then
27261 eval "$as_ac_var=yes"
27263 echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27266 eval "$as_ac_var=no"
27268 rm -f conftest.err conftest.$ac_objext \
27269 conftest$ac_exeext conftest.$ac_ext
27271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27273 if test `eval echo '${'$as_ac_var'}'` = yes; then
27274 cat >>confdefs.h <<_ACEOF
27275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27282 if test "$ac_cv_func_ctime_r" = no ; then
27283 ol_cv_func_ctime_r_nargs=0
27285 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27286 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27287 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 cat >conftest.$ac_ext <<_ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27300 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27305 rm -f conftest.$ac_objext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307 (eval $ac_compile) 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
27314 { ac_try='test -z "$ac_c_werror_flag"
27315 || test ! -s conftest.err'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest.$ac_objext'
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ol_cv_func_ctime_r_nargs3=yes
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27332 ol_cv_func_ctime_r_nargs3=no
27334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27336 cat >conftest.$ac_ext <<_ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h. */
27346 time_t ti; char *buffer; ctime_r(&ti,buffer);
27351 rm -f conftest.$ac_objext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27353 (eval $ac_compile) 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
27360 { ac_try='test -z "$ac_c_werror_flag"
27361 || test ! -s conftest.err'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } &&
27367 { ac_try='test -s conftest.$ac_objext'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; }; then
27373 ol_cv_func_ctime_r_nargs2=yes
27375 echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27378 ol_cv_func_ctime_r_nargs2=no
27380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27382 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
27383 $ol_cv_func_ctime_r_nargs2 = no ; then
27385 ol_cv_func_ctime_r_nargs=3
27387 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
27388 $ol_cv_func_ctime_r_nargs2 = yes ; then
27390 ol_cv_func_ctime_r_nargs=2
27393 ol_cv_func_ctime_r_nargs=0
27397 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27398 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27400 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27402 cat >>confdefs.h <<_ACEOF
27403 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27410 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27411 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27412 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27413 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27416 cat >conftest.$ac_ext <<_ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 #include <sys/types.h>
27423 #include <sys/socket.h>
27424 #include <netinet/in.h>
27426 #define BUFSIZE (sizeof(struct hostent)+10)
27430 struct hostent hent; char buffer[BUFSIZE];
27431 int bufsize=BUFSIZE;int h_errno;
27432 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27433 buffer, bufsize, &h_errno);
27438 rm -f conftest.$ac_objext
27439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27440 (eval $ac_compile) 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag"
27448 || test ! -s conftest.err'
27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450 (eval $ac_try) 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest.$ac_objext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 ol_cv_func_gethostbyname_r_nargs5=yes
27462 echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27465 ol_cv_func_gethostbyname_r_nargs5=no
27467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27469 cat >conftest.$ac_ext <<_ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27475 #include <sys/types.h>
27476 #include <sys/socket.h>
27477 #include <netinet/in.h>
27479 #define BUFSIZE (sizeof(struct hostent)+10)
27483 struct hostent hent;struct hostent *rhent;
27484 char buffer[BUFSIZE];
27485 int bufsize=BUFSIZE;int h_errno;
27486 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27492 rm -f conftest.$ac_objext
27493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27494 (eval $ac_compile) 2>conftest.er1
27496 grep -v '^ *+' conftest.er1 >conftest.err
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } &&
27501 { ac_try='test -z "$ac_c_werror_flag"
27502 || test ! -s conftest.err'
27503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504 (eval $ac_try) 2>&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; } &&
27508 { ac_try='test -s conftest.$ac_objext'
27509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510 (eval $ac_try) 2>&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
27514 ol_cv_func_gethostbyname_r_nargs6=yes
27516 echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27519 ol_cv_func_gethostbyname_r_nargs6=no
27521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27523 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
27524 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27526 ol_cv_func_gethostbyname_r_nargs=5
27528 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
27529 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27531 ol_cv_func_gethostbyname_r_nargs=6
27534 ol_cv_func_gethostbyname_r_nargs=0
27538 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27539 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27540 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27542 cat >>confdefs.h <<_ACEOF
27543 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27549 ol_cv_func_gethostbyname_r_nargs=0
27552 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27553 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27554 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27555 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 #include <sys/types.h>
27565 #include <sys/socket.h>
27566 #include <netinet/in.h>
27568 #define BUFSIZE (sizeof(struct hostent)+10)
27572 struct hostent hent; char buffer[BUFSIZE];
27573 struct in_addr add;
27574 size_t alen=sizeof(struct in_addr);
27575 int bufsize=BUFSIZE;int h_errno;
27576 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27577 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27582 rm -f conftest.$ac_objext
27583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27584 (eval $ac_compile) 2>conftest.er1
27586 grep -v '^ *+' conftest.er1 >conftest.err
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } &&
27591 { ac_try='test -z "$ac_c_werror_flag"
27592 || test ! -s conftest.err'
27593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594 (eval $ac_try) 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604 ol_cv_func_gethostbyaddr_r_nargs7=yes
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 ol_cv_func_gethostbyaddr_r_nargs7=no
27611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27613 cat >conftest.$ac_ext <<_ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 #include <sys/types.h>
27620 #include <sys/socket.h>
27621 #include <netinet/in.h>
27623 #define BUFSIZE (sizeof(struct hostent)+10)
27627 struct hostent hent;
27628 struct hostent *rhent; char buffer[BUFSIZE];
27629 struct in_addr add;
27630 size_t alen=sizeof(struct in_addr);
27631 int bufsize=BUFSIZE;int h_errno;
27632 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27633 alen, AF_INET, &hent, buffer, bufsize,
27639 rm -f conftest.$ac_objext
27640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27641 (eval $ac_compile) 2>conftest.er1
27643 grep -v '^ *+' conftest.er1 >conftest.err
27645 cat conftest.err >&5
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } &&
27648 { ac_try='test -z "$ac_c_werror_flag"
27649 || test ! -s conftest.err'
27650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651 (eval $ac_try) 2>&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); }; } &&
27655 { ac_try='test -s conftest.$ac_objext'
27656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657 (eval $ac_try) 2>&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ol_cv_func_gethostbyaddr_r_nargs8=yes
27663 echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27666 ol_cv_func_gethostbyaddr_r_nargs8=no
27668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27670 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
27671 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27673 ol_cv_func_gethostbyaddr_r_nargs=7
27675 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
27676 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27678 ol_cv_func_gethostbyaddr_r_nargs=8
27681 ol_cv_func_gethostbyaddr_r_nargs=0
27685 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27686 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27687 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27689 cat >>confdefs.h <<_ACEOF
27690 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27696 ol_cv_func_gethostbyaddr_r_nargs=0
27701 if test $ol_enable_ldbm_api = auto \
27702 -o $ol_enable_ldbm_api = berkeley \
27703 -o $ol_enable_ldbm_api = bcompat ; then
27705 if test $ol_enable_ldbm_api = bcompat; then \
27708 for ac_header in db_185.h db.h
27710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27712 echo "$as_me:$LINENO: checking for $ac_header" >&5
27713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27720 # Is the header compilable?
27721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27723 cat >conftest.$ac_ext <<_ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h. */
27729 $ac_includes_default
27730 #include <$ac_header>
27732 rm -f conftest.$ac_objext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27734 (eval $ac_compile) 2>conftest.er1
27736 grep -v '^ *+' conftest.er1 >conftest.err
27738 cat conftest.err >&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } &&
27741 { ac_try='test -z "$ac_c_werror_flag"
27742 || test ! -s conftest.err'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; } &&
27748 { ac_try='test -s conftest.$ac_objext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 ac_header_compiler=yes
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ac_header_compiler=no
27761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27763 echo "${ECHO_T}$ac_header_compiler" >&6
27765 # Is the header present?
27766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 #include <$ac_header>
27776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27779 grep -v '^ *+' conftest.er1 >conftest.err
27781 cat conftest.err >&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } >/dev/null; then
27784 if test -s conftest.err; then
27785 ac_cpp_err=$ac_c_preproc_warn_flag
27786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27793 if test -z "$ac_cpp_err"; then
27794 ac_header_preproc=yes
27796 echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27799 ac_header_preproc=no
27801 rm -f conftest.err conftest.$ac_ext
27802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27803 echo "${ECHO_T}$ac_header_preproc" >&6
27805 # So? What about this header?
27806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27812 ac_header_preproc=yes
27815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27829 ## ------------------------------------------ ##
27830 ## Report this to the AC_PACKAGE_NAME lists. ##
27831 ## ------------------------------------------ ##
27834 sed "s/^/$as_me: WARNING: /" >&2
27837 echo "$as_me:$LINENO: checking for $ac_header" >&5
27838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27842 eval "$as_ac_Header=\$ac_header_preproc"
27844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27849 cat >>confdefs.h <<_ACEOF
27850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27857 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
27858 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27859 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27860 if test "${ol_cv_header_db1+set}" = set; then
27861 echo $ECHO_N "(cached) $ECHO_C" >&6
27864 cat >conftest.$ac_ext <<_ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h. */
27872 # include <db_185.h>
27877 /* this check could be improved */
27878 #ifndef DB_VERSION_MAJOR
27879 # define DB_VERSION_MAJOR 1
27882 #if DB_VERSION_MAJOR == 1
27887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27888 $EGREP "__db_version_1" >/dev/null 2>&1; then
27889 ol_cv_header_db1=yes
27891 ol_cv_header_db1=no
27896 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27897 echo "${ECHO_T}$ol_cv_header_db1" >&6
27899 if test $ol_cv_header_db1 = yes ; then
27901 if test $ol_cv_lib_db = no ; then
27902 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27903 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27904 if test "${ol_cv_db_none+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27912 cat >conftest.$ac_ext <<_ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h. */
27919 #ifdef HAVE_DB_185_H
27920 # include <db_185.h>
27925 #ifndef DB_VERSION_MAJOR
27926 # define DB_VERSION_MAJOR 1
27930 #define NULL ((void*)0)
27937 #if DB_VERSION_MAJOR > 1
27940 int major, minor, patch;
27942 version = db_version( &major, &minor, &patch );
27944 if( major != DB_VERSION_MAJOR ||
27945 minor < DB_VERSION_MINOR )
27947 printf("Berkeley DB version mismatch\n"
27948 "\theader: %s\n\tlibrary: %s\n",
27949 DB_VERSION_STRING, version);
27955 #if DB_VERSION_MAJOR > 2
27956 db_env_create( NULL, 0 );
27957 #elif DB_VERSION_MAJOR > 1
27958 db_appexit( NULL );
27960 (void) dbopen( NULL, 0, 0, 0, NULL);
27967 rm -f conftest.$ac_objext conftest$ac_exeext
27968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27969 (eval $ac_link) 2>conftest.er1
27971 grep -v '^ *+' conftest.er1 >conftest.err
27973 cat conftest.err >&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } &&
27976 { ac_try='test -z "$ac_c_werror_flag"
27977 || test ! -s conftest.err'
27978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979 (eval $ac_try) 2>&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest$ac_exeext'
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; }; then
27991 echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27996 rm -f conftest.err conftest.$ac_objext \
27997 conftest$ac_exeext conftest.$ac_ext
28002 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28003 echo "${ECHO_T}$ol_cv_db_none" >&6
28005 if test $ol_cv_db_none = yes ; then
28010 if test $ol_cv_lib_db = no ; then
28011 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28012 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28013 if test "${ol_cv_db_db43+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28021 cat >conftest.$ac_ext <<_ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h. */
28028 #ifdef HAVE_DB_185_H
28029 # include <db_185.h>
28034 #ifndef DB_VERSION_MAJOR
28035 # define DB_VERSION_MAJOR 1
28039 #define NULL ((void*)0)
28046 #if DB_VERSION_MAJOR > 1
28049 int major, minor, patch;
28051 version = db_version( &major, &minor, &patch );
28053 if( major != DB_VERSION_MAJOR ||
28054 minor < DB_VERSION_MINOR )
28056 printf("Berkeley DB version mismatch\n"
28057 "\theader: %s\n\tlibrary: %s\n",
28058 DB_VERSION_STRING, version);
28064 #if DB_VERSION_MAJOR > 2
28065 db_env_create( NULL, 0 );
28066 #elif DB_VERSION_MAJOR > 1
28067 db_appexit( NULL );
28069 (void) dbopen( NULL, 0, 0, 0, NULL);
28076 rm -f conftest.$ac_objext conftest$ac_exeext
28077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28078 (eval $ac_link) 2>conftest.er1
28080 grep -v '^ *+' conftest.er1 >conftest.err
28082 cat conftest.err >&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); } &&
28085 { ac_try='test -z "$ac_c_werror_flag"
28086 || test ! -s conftest.err'
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; } &&
28092 { ac_try='test -s conftest$ac_exeext'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28105 rm -f conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
28111 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28112 echo "${ECHO_T}$ol_cv_db_db43" >&6
28114 if test $ol_cv_db_db43 = yes ; then
28115 ol_cv_lib_db=-ldb43
28119 if test $ol_cv_lib_db = no ; then
28120 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28121 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28122 if test "${ol_cv_db_db_43+set}" = set; then
28123 echo $ECHO_N "(cached) $ECHO_C" >&6
28128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28130 cat >conftest.$ac_ext <<_ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28137 #ifdef HAVE_DB_185_H
28138 # include <db_185.h>
28143 #ifndef DB_VERSION_MAJOR
28144 # define DB_VERSION_MAJOR 1
28148 #define NULL ((void*)0)
28155 #if DB_VERSION_MAJOR > 1
28158 int major, minor, patch;
28160 version = db_version( &major, &minor, &patch );
28162 if( major != DB_VERSION_MAJOR ||
28163 minor < DB_VERSION_MINOR )
28165 printf("Berkeley DB version mismatch\n"
28166 "\theader: %s\n\tlibrary: %s\n",
28167 DB_VERSION_STRING, version);
28173 #if DB_VERSION_MAJOR > 2
28174 db_env_create( NULL, 0 );
28175 #elif DB_VERSION_MAJOR > 1
28176 db_appexit( NULL );
28178 (void) dbopen( NULL, 0, 0, 0, NULL);
28185 rm -f conftest.$ac_objext conftest$ac_exeext
28186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28187 (eval $ac_link) 2>conftest.er1
28189 grep -v '^ *+' conftest.er1 >conftest.err
28191 cat conftest.err >&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
28194 { ac_try='test -z "$ac_c_werror_flag"
28195 || test ! -s conftest.err'
28196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197 (eval $ac_try) 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; } &&
28201 { ac_try='test -s conftest$ac_exeext'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28209 echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28214 rm -f conftest.err conftest.$ac_objext \
28215 conftest$ac_exeext conftest.$ac_ext
28220 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28221 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28223 if test $ol_cv_db_db_43 = yes ; then
28224 ol_cv_lib_db=-ldb-43
28228 if test $ol_cv_lib_db = no ; then
28229 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28230 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28231 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28237 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28246 #ifdef HAVE_DB_185_H
28247 # include <db_185.h>
28252 #ifndef DB_VERSION_MAJOR
28253 # define DB_VERSION_MAJOR 1
28257 #define NULL ((void*)0)
28264 #if DB_VERSION_MAJOR > 1
28267 int major, minor, patch;
28269 version = db_version( &major, &minor, &patch );
28271 if( major != DB_VERSION_MAJOR ||
28272 minor < DB_VERSION_MINOR )
28274 printf("Berkeley DB version mismatch\n"
28275 "\theader: %s\n\tlibrary: %s\n",
28276 DB_VERSION_STRING, version);
28282 #if DB_VERSION_MAJOR > 2
28283 db_env_create( NULL, 0 );
28284 #elif DB_VERSION_MAJOR > 1
28285 db_appexit( NULL );
28287 (void) dbopen( NULL, 0, 0, 0, NULL);
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296 (eval $ac_link) 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
28303 { ac_try='test -z "$ac_c_werror_flag"
28304 || test ! -s conftest.err'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest$ac_exeext'
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316 ol_cv_db_db_4_dot_3=yes
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ol_cv_db_db_4_dot_3=no
28323 rm -f conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
28329 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28330 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28332 if test $ol_cv_db_db_4_dot_3 = yes ; then
28333 ol_cv_lib_db=-ldb-4.3
28337 if test $ol_cv_lib_db = no ; then
28338 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28339 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28340 if test "${ol_cv_db_db_4_3+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28355 #ifdef HAVE_DB_185_H
28356 # include <db_185.h>
28361 #ifndef DB_VERSION_MAJOR
28362 # define DB_VERSION_MAJOR 1
28366 #define NULL ((void*)0)
28373 #if DB_VERSION_MAJOR > 1
28376 int major, minor, patch;
28378 version = db_version( &major, &minor, &patch );
28380 if( major != DB_VERSION_MAJOR ||
28381 minor < DB_VERSION_MINOR )
28383 printf("Berkeley DB version mismatch\n"
28384 "\theader: %s\n\tlibrary: %s\n",
28385 DB_VERSION_STRING, version);
28391 #if DB_VERSION_MAJOR > 2
28392 db_env_create( NULL, 0 );
28393 #elif DB_VERSION_MAJOR > 1
28394 db_appexit( NULL );
28396 (void) dbopen( NULL, 0, 0, 0, NULL);
28403 rm -f conftest.$ac_objext conftest$ac_exeext
28404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28405 (eval $ac_link) 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } &&
28412 { ac_try='test -z "$ac_c_werror_flag"
28413 || test ! -s conftest.err'
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest$ac_exeext'
28420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28421 (eval $ac_try) 2>&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; }; then
28425 ol_cv_db_db_4_3=yes
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28432 rm -f conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
28438 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28439 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28441 if test $ol_cv_db_db_4_3 = yes ; then
28442 ol_cv_lib_db=-ldb-4-3
28446 if test $ol_cv_lib_db = no ; then
28447 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28448 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28449 if test "${ol_cv_db_db42+set}" = set; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28457 cat >conftest.$ac_ext <<_ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28464 #ifdef HAVE_DB_185_H
28465 # include <db_185.h>
28470 #ifndef DB_VERSION_MAJOR
28471 # define DB_VERSION_MAJOR 1
28475 #define NULL ((void*)0)
28482 #if DB_VERSION_MAJOR > 1
28485 int major, minor, patch;
28487 version = db_version( &major, &minor, &patch );
28489 if( major != DB_VERSION_MAJOR ||
28490 minor < DB_VERSION_MINOR )
28492 printf("Berkeley DB version mismatch\n"
28493 "\theader: %s\n\tlibrary: %s\n",
28494 DB_VERSION_STRING, version);
28500 #if DB_VERSION_MAJOR > 2
28501 db_env_create( NULL, 0 );
28502 #elif DB_VERSION_MAJOR > 1
28503 db_appexit( NULL );
28505 (void) dbopen( NULL, 0, 0, 0, NULL);
28512 rm -f conftest.$ac_objext conftest$ac_exeext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28514 (eval $ac_link) 2>conftest.er1
28516 grep -v '^ *+' conftest.er1 >conftest.err
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
28521 { ac_try='test -z "$ac_c_werror_flag"
28522 || test ! -s conftest.err'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest$ac_exeext'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28541 rm -f conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
28547 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28548 echo "${ECHO_T}$ol_cv_db_db42" >&6
28550 if test $ol_cv_db_db42 = yes ; then
28551 ol_cv_lib_db=-ldb42
28555 if test $ol_cv_lib_db = no ; then
28556 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28557 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28558 if test "${ol_cv_db_db_42+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28564 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28566 cat >conftest.$ac_ext <<_ACEOF
28569 cat confdefs.h >>conftest.$ac_ext
28570 cat >>conftest.$ac_ext <<_ACEOF
28571 /* end confdefs.h. */
28573 #ifdef HAVE_DB_185_H
28574 # include <db_185.h>
28579 #ifndef DB_VERSION_MAJOR
28580 # define DB_VERSION_MAJOR 1
28584 #define NULL ((void*)0)
28591 #if DB_VERSION_MAJOR > 1
28594 int major, minor, patch;
28596 version = db_version( &major, &minor, &patch );
28598 if( major != DB_VERSION_MAJOR ||
28599 minor < DB_VERSION_MINOR )
28601 printf("Berkeley DB version mismatch\n"
28602 "\theader: %s\n\tlibrary: %s\n",
28603 DB_VERSION_STRING, version);
28609 #if DB_VERSION_MAJOR > 2
28610 db_env_create( NULL, 0 );
28611 #elif DB_VERSION_MAJOR > 1
28612 db_appexit( NULL );
28614 (void) dbopen( NULL, 0, 0, 0, NULL);
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28623 (eval $ac_link) 2>conftest.er1
28625 grep -v '^ *+' conftest.er1 >conftest.err
28627 cat conftest.err >&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } &&
28630 { ac_try='test -z "$ac_c_werror_flag"
28631 || test ! -s conftest.err'
28632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633 (eval $ac_try) 2>&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; } &&
28637 { ac_try='test -s conftest$ac_exeext'
28638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28639 (eval $ac_try) 2>&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); }; }; then
28645 echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28650 rm -f conftest.err conftest.$ac_objext \
28651 conftest$ac_exeext conftest.$ac_ext
28656 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28657 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28659 if test $ol_cv_db_db_42 = yes ; then
28660 ol_cv_lib_db=-ldb-42
28664 if test $ol_cv_lib_db = no ; then
28665 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28666 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28667 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28673 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28675 cat >conftest.$ac_ext <<_ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28682 #ifdef HAVE_DB_185_H
28683 # include <db_185.h>
28688 #ifndef DB_VERSION_MAJOR
28689 # define DB_VERSION_MAJOR 1
28693 #define NULL ((void*)0)
28700 #if DB_VERSION_MAJOR > 1
28703 int major, minor, patch;
28705 version = db_version( &major, &minor, &patch );
28707 if( major != DB_VERSION_MAJOR ||
28708 minor < DB_VERSION_MINOR )
28710 printf("Berkeley DB version mismatch\n"
28711 "\theader: %s\n\tlibrary: %s\n",
28712 DB_VERSION_STRING, version);
28718 #if DB_VERSION_MAJOR > 2
28719 db_env_create( NULL, 0 );
28720 #elif DB_VERSION_MAJOR > 1
28721 db_appexit( NULL );
28723 (void) dbopen( NULL, 0, 0, 0, NULL);
28730 rm -f conftest.$ac_objext conftest$ac_exeext
28731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28732 (eval $ac_link) 2>conftest.er1
28734 grep -v '^ *+' conftest.er1 >conftest.err
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } &&
28739 { ac_try='test -z "$ac_c_werror_flag"
28740 || test ! -s conftest.err'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; } &&
28746 { ac_try='test -s conftest$ac_exeext'
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 ol_cv_db_db_4_dot_2=yes
28754 echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28757 ol_cv_db_db_4_dot_2=no
28759 rm -f conftest.err conftest.$ac_objext \
28760 conftest$ac_exeext conftest.$ac_ext
28765 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28766 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28768 if test $ol_cv_db_db_4_dot_2 = yes ; then
28769 ol_cv_lib_db=-ldb-4.2
28773 if test $ol_cv_lib_db = no ; then
28774 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28775 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28776 if test "${ol_cv_db_db_4_2+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28784 cat >conftest.$ac_ext <<_ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h. */
28791 #ifdef HAVE_DB_185_H
28792 # include <db_185.h>
28797 #ifndef DB_VERSION_MAJOR
28798 # define DB_VERSION_MAJOR 1
28802 #define NULL ((void*)0)
28809 #if DB_VERSION_MAJOR > 1
28812 int major, minor, patch;
28814 version = db_version( &major, &minor, &patch );
28816 if( major != DB_VERSION_MAJOR ||
28817 minor < DB_VERSION_MINOR )
28819 printf("Berkeley DB version mismatch\n"
28820 "\theader: %s\n\tlibrary: %s\n",
28821 DB_VERSION_STRING, version);
28827 #if DB_VERSION_MAJOR > 2
28828 db_env_create( NULL, 0 );
28829 #elif DB_VERSION_MAJOR > 1
28830 db_appexit( NULL );
28832 (void) dbopen( NULL, 0, 0, 0, NULL);
28839 rm -f conftest.$ac_objext conftest$ac_exeext
28840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28841 (eval $ac_link) 2>conftest.er1
28843 grep -v '^ *+' conftest.er1 >conftest.err
28845 cat conftest.err >&5
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); } &&
28848 { ac_try='test -z "$ac_c_werror_flag"
28849 || test ! -s conftest.err'
28850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851 (eval $ac_try) 2>&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; } &&
28855 { ac_try='test -s conftest$ac_exeext'
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; }; then
28861 ol_cv_db_db_4_2=yes
28863 echo "$as_me: failed program was:" >&5
28864 sed 's/^/| /' conftest.$ac_ext >&5
28868 rm -f conftest.err conftest.$ac_objext \
28869 conftest$ac_exeext conftest.$ac_ext
28874 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28875 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28877 if test $ol_cv_db_db_4_2 = yes ; then
28878 ol_cv_lib_db=-ldb-4-2
28882 if test $ol_cv_lib_db = no ; then
28883 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28884 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28885 if test "${ol_cv_db_db_4+set}" = set; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28891 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28893 cat >conftest.$ac_ext <<_ACEOF
28896 cat confdefs.h >>conftest.$ac_ext
28897 cat >>conftest.$ac_ext <<_ACEOF
28898 /* end confdefs.h. */
28900 #ifdef HAVE_DB_185_H
28901 # include <db_185.h>
28906 #ifndef DB_VERSION_MAJOR
28907 # define DB_VERSION_MAJOR 1
28911 #define NULL ((void*)0)
28918 #if DB_VERSION_MAJOR > 1
28921 int major, minor, patch;
28923 version = db_version( &major, &minor, &patch );
28925 if( major != DB_VERSION_MAJOR ||
28926 minor < DB_VERSION_MINOR )
28928 printf("Berkeley DB version mismatch\n"
28929 "\theader: %s\n\tlibrary: %s\n",
28930 DB_VERSION_STRING, version);
28936 #if DB_VERSION_MAJOR > 2
28937 db_env_create( NULL, 0 );
28938 #elif DB_VERSION_MAJOR > 1
28939 db_appexit( NULL );
28941 (void) dbopen( NULL, 0, 0, 0, NULL);
28948 rm -f conftest.$ac_objext conftest$ac_exeext
28949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28950 (eval $ac_link) 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
28957 { ac_try='test -z "$ac_c_werror_flag"
28958 || test ! -s conftest.err'
28959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960 (eval $ac_try) 2>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; } &&
28964 { ac_try='test -s conftest$ac_exeext'
28965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966 (eval $ac_try) 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28977 rm -f conftest.err conftest.$ac_objext \
28978 conftest$ac_exeext conftest.$ac_ext
28983 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28984 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28986 if test $ol_cv_db_db_4 = yes ; then
28987 ol_cv_lib_db=-ldb-4
28991 if test $ol_cv_lib_db = no ; then
28992 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28993 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28994 if test "${ol_cv_db_db4+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
29000 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29002 cat >conftest.$ac_ext <<_ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h. */
29009 #ifdef HAVE_DB_185_H
29010 # include <db_185.h>
29015 #ifndef DB_VERSION_MAJOR
29016 # define DB_VERSION_MAJOR 1
29020 #define NULL ((void*)0)
29027 #if DB_VERSION_MAJOR > 1
29030 int major, minor, patch;
29032 version = db_version( &major, &minor, &patch );
29034 if( major != DB_VERSION_MAJOR ||
29035 minor < DB_VERSION_MINOR )
29037 printf("Berkeley DB version mismatch\n"
29038 "\theader: %s\n\tlibrary: %s\n",
29039 DB_VERSION_STRING, version);
29045 #if DB_VERSION_MAJOR > 2
29046 db_env_create( NULL, 0 );
29047 #elif DB_VERSION_MAJOR > 1
29048 db_appexit( NULL );
29050 (void) dbopen( NULL, 0, 0, 0, NULL);
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059 (eval $ac_link) 2>conftest.er1
29061 grep -v '^ *+' conftest.er1 >conftest.err
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } &&
29066 { ac_try='test -z "$ac_c_werror_flag"
29067 || test ! -s conftest.err'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest$ac_exeext'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29086 rm -f conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29092 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29093 echo "${ECHO_T}$ol_cv_db_db4" >&6
29095 if test $ol_cv_db_db4 = yes ; then
29100 if test $ol_cv_lib_db = no ; then
29101 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29102 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29103 if test "${ol_cv_db_db+set}" = set; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29111 cat >conftest.$ac_ext <<_ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29118 #ifdef HAVE_DB_185_H
29119 # include <db_185.h>
29124 #ifndef DB_VERSION_MAJOR
29125 # define DB_VERSION_MAJOR 1
29129 #define NULL ((void*)0)
29136 #if DB_VERSION_MAJOR > 1
29139 int major, minor, patch;
29141 version = db_version( &major, &minor, &patch );
29143 if( major != DB_VERSION_MAJOR ||
29144 minor < DB_VERSION_MINOR )
29146 printf("Berkeley DB version mismatch\n"
29147 "\theader: %s\n\tlibrary: %s\n",
29148 DB_VERSION_STRING, version);
29154 #if DB_VERSION_MAJOR > 2
29155 db_env_create( NULL, 0 );
29156 #elif DB_VERSION_MAJOR > 1
29157 db_appexit( NULL );
29159 (void) dbopen( NULL, 0, 0, 0, NULL);
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29168 (eval $ac_link) 2>conftest.er1
29170 grep -v '^ *+' conftest.er1 >conftest.err
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } &&
29175 { ac_try='test -z "$ac_c_werror_flag"
29176 || test ! -s conftest.err'
29177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; } &&
29182 { ac_try='test -s conftest$ac_exeext'
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
29190 echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29195 rm -f conftest.err conftest.$ac_objext \
29196 conftest$ac_exeext conftest.$ac_ext
29201 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29202 echo "${ECHO_T}$ol_cv_db_db" >&6
29204 if test $ol_cv_db_db = yes ; then
29209 if test $ol_cv_lib_db = no ; then
29210 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29211 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29212 if test "${ol_cv_db_db41+set}" = set; then
29213 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29220 cat >conftest.$ac_ext <<_ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h. */
29227 #ifdef HAVE_DB_185_H
29228 # include <db_185.h>
29233 #ifndef DB_VERSION_MAJOR
29234 # define DB_VERSION_MAJOR 1
29238 #define NULL ((void*)0)
29245 #if DB_VERSION_MAJOR > 1
29248 int major, minor, patch;
29250 version = db_version( &major, &minor, &patch );
29252 if( major != DB_VERSION_MAJOR ||
29253 minor < DB_VERSION_MINOR )
29255 printf("Berkeley DB version mismatch\n"
29256 "\theader: %s\n\tlibrary: %s\n",
29257 DB_VERSION_STRING, version);
29263 #if DB_VERSION_MAJOR > 2
29264 db_env_create( NULL, 0 );
29265 #elif DB_VERSION_MAJOR > 1
29266 db_appexit( NULL );
29268 (void) dbopen( NULL, 0, 0, 0, NULL);
29275 rm -f conftest.$ac_objext conftest$ac_exeext
29276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29277 (eval $ac_link) 2>conftest.er1
29279 grep -v '^ *+' conftest.er1 >conftest.err
29281 cat conftest.err >&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); } &&
29284 { ac_try='test -z "$ac_c_werror_flag"
29285 || test ! -s conftest.err'
29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287 (eval $ac_try) 2>&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; } &&
29291 { ac_try='test -s conftest$ac_exeext'
29292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293 (eval $ac_try) 2>&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29304 rm -f conftest.err conftest.$ac_objext \
29305 conftest$ac_exeext conftest.$ac_ext
29310 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29311 echo "${ECHO_T}$ol_cv_db_db41" >&6
29313 if test $ol_cv_db_db41 = yes ; then
29314 ol_cv_lib_db=-ldb41
29318 if test $ol_cv_lib_db = no ; then
29319 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29320 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29321 if test "${ol_cv_db_db_41+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29327 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29329 cat >conftest.$ac_ext <<_ACEOF
29332 cat confdefs.h >>conftest.$ac_ext
29333 cat >>conftest.$ac_ext <<_ACEOF
29334 /* end confdefs.h. */
29336 #ifdef HAVE_DB_185_H
29337 # include <db_185.h>
29342 #ifndef DB_VERSION_MAJOR
29343 # define DB_VERSION_MAJOR 1
29347 #define NULL ((void*)0)
29354 #if DB_VERSION_MAJOR > 1
29357 int major, minor, patch;
29359 version = db_version( &major, &minor, &patch );
29361 if( major != DB_VERSION_MAJOR ||
29362 minor < DB_VERSION_MINOR )
29364 printf("Berkeley DB version mismatch\n"
29365 "\theader: %s\n\tlibrary: %s\n",
29366 DB_VERSION_STRING, version);
29372 #if DB_VERSION_MAJOR > 2
29373 db_env_create( NULL, 0 );
29374 #elif DB_VERSION_MAJOR > 1
29375 db_appexit( NULL );
29377 (void) dbopen( NULL, 0, 0, 0, NULL);
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386 (eval $ac_link) 2>conftest.er1
29388 grep -v '^ *+' conftest.er1 >conftest.err
29390 cat conftest.err >&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } &&
29393 { ac_try='test -z "$ac_c_werror_flag"
29394 || test ! -s conftest.err'
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest$ac_exeext'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; }; then
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29413 rm -f conftest.err conftest.$ac_objext \
29414 conftest$ac_exeext conftest.$ac_ext
29419 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29420 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29422 if test $ol_cv_db_db_41 = yes ; then
29423 ol_cv_lib_db=-ldb-41
29427 if test $ol_cv_lib_db = no ; then
29428 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29429 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29430 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29445 #ifdef HAVE_DB_185_H
29446 # include <db_185.h>
29451 #ifndef DB_VERSION_MAJOR
29452 # define DB_VERSION_MAJOR 1
29456 #define NULL ((void*)0)
29463 #if DB_VERSION_MAJOR > 1
29466 int major, minor, patch;
29468 version = db_version( &major, &minor, &patch );
29470 if( major != DB_VERSION_MAJOR ||
29471 minor < DB_VERSION_MINOR )
29473 printf("Berkeley DB version mismatch\n"
29474 "\theader: %s\n\tlibrary: %s\n",
29475 DB_VERSION_STRING, version);
29481 #if DB_VERSION_MAJOR > 2
29482 db_env_create( NULL, 0 );
29483 #elif DB_VERSION_MAJOR > 1
29484 db_appexit( NULL );
29486 (void) dbopen( NULL, 0, 0, 0, NULL);
29493 rm -f conftest.$ac_objext conftest$ac_exeext
29494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29495 (eval $ac_link) 2>conftest.er1
29497 grep -v '^ *+' conftest.er1 >conftest.err
29499 cat conftest.err >&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); } &&
29502 { ac_try='test -z "$ac_c_werror_flag"
29503 || test ! -s conftest.err'
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; } &&
29509 { ac_try='test -s conftest$ac_exeext'
29510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511 (eval $ac_try) 2>&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; }; then
29515 ol_cv_db_db_4_dot_1=yes
29517 echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29520 ol_cv_db_db_4_dot_1=no
29522 rm -f conftest.err conftest.$ac_objext \
29523 conftest$ac_exeext conftest.$ac_ext
29528 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29529 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29531 if test $ol_cv_db_db_4_dot_1 = yes ; then
29532 ol_cv_lib_db=-ldb-4.1
29536 if test $ol_cv_lib_db = no ; then
29537 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29538 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29539 if test "${ol_cv_db_db_4_1+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29545 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29554 #ifdef HAVE_DB_185_H
29555 # include <db_185.h>
29560 #ifndef DB_VERSION_MAJOR
29561 # define DB_VERSION_MAJOR 1
29565 #define NULL ((void*)0)
29572 #if DB_VERSION_MAJOR > 1
29575 int major, minor, patch;
29577 version = db_version( &major, &minor, &patch );
29579 if( major != DB_VERSION_MAJOR ||
29580 minor < DB_VERSION_MINOR )
29582 printf("Berkeley DB version mismatch\n"
29583 "\theader: %s\n\tlibrary: %s\n",
29584 DB_VERSION_STRING, version);
29590 #if DB_VERSION_MAJOR > 2
29591 db_env_create( NULL, 0 );
29592 #elif DB_VERSION_MAJOR > 1
29593 db_appexit( NULL );
29595 (void) dbopen( NULL, 0, 0, 0, NULL);
29602 rm -f conftest.$ac_objext conftest$ac_exeext
29603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29604 (eval $ac_link) 2>conftest.er1
29606 grep -v '^ *+' conftest.er1 >conftest.err
29608 cat conftest.err >&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } &&
29611 { ac_try='test -z "$ac_c_werror_flag"
29612 || test ! -s conftest.err'
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; } &&
29618 { ac_try='test -s conftest$ac_exeext'
29619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620 (eval $ac_try) 2>&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); }; }; then
29624 ol_cv_db_db_4_1=yes
29626 echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29631 rm -f conftest.err conftest.$ac_objext \
29632 conftest$ac_exeext conftest.$ac_ext
29637 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29638 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29640 if test $ol_cv_db_db_4_1 = yes ; then
29641 ol_cv_lib_db=-ldb-4-1
29645 if test $ol_cv_lib_db = no ; then
29646 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29647 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29648 if test "${ol_cv_db_db3+set}" = set; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29663 #ifdef HAVE_DB_185_H
29664 # include <db_185.h>
29669 #ifndef DB_VERSION_MAJOR
29670 # define DB_VERSION_MAJOR 1
29674 #define NULL ((void*)0)
29681 #if DB_VERSION_MAJOR > 1
29684 int major, minor, patch;
29686 version = db_version( &major, &minor, &patch );
29688 if( major != DB_VERSION_MAJOR ||
29689 minor < DB_VERSION_MINOR )
29691 printf("Berkeley DB version mismatch\n"
29692 "\theader: %s\n\tlibrary: %s\n",
29693 DB_VERSION_STRING, version);
29699 #if DB_VERSION_MAJOR > 2
29700 db_env_create( NULL, 0 );
29701 #elif DB_VERSION_MAJOR > 1
29702 db_appexit( NULL );
29704 (void) dbopen( NULL, 0, 0, 0, NULL);
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29713 (eval $ac_link) 2>conftest.er1
29715 grep -v '^ *+' conftest.er1 >conftest.err
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } &&
29720 { ac_try='test -z "$ac_c_werror_flag"
29721 || test ! -s conftest.err'
29722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723 (eval $ac_try) 2>&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest$ac_exeext'
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29740 rm -f conftest.err conftest.$ac_objext \
29741 conftest$ac_exeext conftest.$ac_ext
29746 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29747 echo "${ECHO_T}$ol_cv_db_db3" >&6
29749 if test $ol_cv_db_db3 = yes ; then
29754 if test $ol_cv_lib_db = no ; then
29755 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29756 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29757 if test "${ol_cv_db_db_3+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29763 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29765 cat >conftest.$ac_ext <<_ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29772 #ifdef HAVE_DB_185_H
29773 # include <db_185.h>
29778 #ifndef DB_VERSION_MAJOR
29779 # define DB_VERSION_MAJOR 1
29783 #define NULL ((void*)0)
29790 #if DB_VERSION_MAJOR > 1
29793 int major, minor, patch;
29795 version = db_version( &major, &minor, &patch );
29797 if( major != DB_VERSION_MAJOR ||
29798 minor < DB_VERSION_MINOR )
29800 printf("Berkeley DB version mismatch\n"
29801 "\theader: %s\n\tlibrary: %s\n",
29802 DB_VERSION_STRING, version);
29808 #if DB_VERSION_MAJOR > 2
29809 db_env_create( NULL, 0 );
29810 #elif DB_VERSION_MAJOR > 1
29811 db_appexit( NULL );
29813 (void) dbopen( NULL, 0, 0, 0, NULL);
29820 rm -f conftest.$ac_objext conftest$ac_exeext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29822 (eval $ac_link) 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } &&
29829 { ac_try='test -z "$ac_c_werror_flag"
29830 || test ! -s conftest.err'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest$ac_exeext'
29837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838 (eval $ac_try) 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29849 rm -f conftest.err conftest.$ac_objext \
29850 conftest$ac_exeext conftest.$ac_ext
29855 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29856 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29858 if test $ol_cv_db_db_3 = yes ; then
29859 ol_cv_lib_db=-ldb-3
29863 if test $ol_cv_lib_db = no ; then
29864 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29865 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29866 if test "${ol_cv_db_db2+set}" = set; then
29867 echo $ECHO_N "(cached) $ECHO_C" >&6
29872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29874 cat >conftest.$ac_ext <<_ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h. */
29881 #ifdef HAVE_DB_185_H
29882 # include <db_185.h>
29887 #ifndef DB_VERSION_MAJOR
29888 # define DB_VERSION_MAJOR 1
29892 #define NULL ((void*)0)
29899 #if DB_VERSION_MAJOR > 1
29902 int major, minor, patch;
29904 version = db_version( &major, &minor, &patch );
29906 if( major != DB_VERSION_MAJOR ||
29907 minor < DB_VERSION_MINOR )
29909 printf("Berkeley DB version mismatch\n"
29910 "\theader: %s\n\tlibrary: %s\n",
29911 DB_VERSION_STRING, version);
29917 #if DB_VERSION_MAJOR > 2
29918 db_env_create( NULL, 0 );
29919 #elif DB_VERSION_MAJOR > 1
29920 db_appexit( NULL );
29922 (void) dbopen( NULL, 0, 0, 0, NULL);
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29931 (eval $ac_link) 2>conftest.er1
29933 grep -v '^ *+' conftest.er1 >conftest.err
29935 cat conftest.err >&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); } &&
29938 { ac_try='test -z "$ac_c_werror_flag"
29939 || test ! -s conftest.err'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest$ac_exeext'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29958 rm -f conftest.err conftest.$ac_objext \
29959 conftest$ac_exeext conftest.$ac_ext
29964 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29965 echo "${ECHO_T}$ol_cv_db_db2" >&6
29967 if test $ol_cv_db_db2 = yes ; then
29972 if test $ol_cv_lib_db = no ; then
29973 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29974 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29975 if test "${ol_cv_db_db_2+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29983 cat >conftest.$ac_ext <<_ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h. */
29990 #ifdef HAVE_DB_185_H
29991 # include <db_185.h>
29996 #ifndef DB_VERSION_MAJOR
29997 # define DB_VERSION_MAJOR 1
30001 #define NULL ((void*)0)
30008 #if DB_VERSION_MAJOR > 1
30011 int major, minor, patch;
30013 version = db_version( &major, &minor, &patch );
30015 if( major != DB_VERSION_MAJOR ||
30016 minor < DB_VERSION_MINOR )
30018 printf("Berkeley DB version mismatch\n"
30019 "\theader: %s\n\tlibrary: %s\n",
30020 DB_VERSION_STRING, version);
30026 #if DB_VERSION_MAJOR > 2
30027 db_env_create( NULL, 0 );
30028 #elif DB_VERSION_MAJOR > 1
30029 db_appexit( NULL );
30031 (void) dbopen( NULL, 0, 0, 0, NULL);
30038 rm -f conftest.$ac_objext conftest$ac_exeext
30039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30040 (eval $ac_link) 2>conftest.er1
30042 grep -v '^ *+' conftest.er1 >conftest.err
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
30047 { ac_try='test -z "$ac_c_werror_flag"
30048 || test ! -s conftest.err'
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest$ac_exeext'
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30062 echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30067 rm -f conftest.err conftest.$ac_objext \
30068 conftest$ac_exeext conftest.$ac_ext
30073 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30074 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30076 if test $ol_cv_db_db_2 = yes ; then
30077 ol_cv_lib_db=-ldb-2
30081 if test $ol_cv_lib_db = no ; then
30082 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30083 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30084 if test "${ol_cv_db_db1+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30090 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30092 cat >conftest.$ac_ext <<_ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h. */
30099 #ifdef HAVE_DB_185_H
30100 # include <db_185.h>
30105 #ifndef DB_VERSION_MAJOR
30106 # define DB_VERSION_MAJOR 1
30110 #define NULL ((void*)0)
30117 #if DB_VERSION_MAJOR > 1
30120 int major, minor, patch;
30122 version = db_version( &major, &minor, &patch );
30124 if( major != DB_VERSION_MAJOR ||
30125 minor < DB_VERSION_MINOR )
30127 printf("Berkeley DB version mismatch\n"
30128 "\theader: %s\n\tlibrary: %s\n",
30129 DB_VERSION_STRING, version);
30135 #if DB_VERSION_MAJOR > 2
30136 db_env_create( NULL, 0 );
30137 #elif DB_VERSION_MAJOR > 1
30138 db_appexit( NULL );
30140 (void) dbopen( NULL, 0, 0, 0, NULL);
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30149 (eval $ac_link) 2>conftest.er1
30151 grep -v '^ *+' conftest.er1 >conftest.err
30153 cat conftest.err >&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); } &&
30156 { ac_try='test -z "$ac_c_werror_flag"
30157 || test ! -s conftest.err'
30158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159 (eval $ac_try) 2>&5
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; } &&
30163 { ac_try='test -s conftest$ac_exeext'
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30176 rm -f conftest.err conftest.$ac_objext \
30177 conftest$ac_exeext conftest.$ac_ext
30182 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30183 echo "${ECHO_T}$ol_cv_db_db1" >&6
30185 if test $ol_cv_db_db1 = yes ; then
30190 if test $ol_cv_lib_db = no ; then
30191 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30192 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30193 if test "${ol_cv_db_db_1+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30208 #ifdef HAVE_DB_185_H
30209 # include <db_185.h>
30214 #ifndef DB_VERSION_MAJOR
30215 # define DB_VERSION_MAJOR 1
30219 #define NULL ((void*)0)
30226 #if DB_VERSION_MAJOR > 1
30229 int major, minor, patch;
30231 version = db_version( &major, &minor, &patch );
30233 if( major != DB_VERSION_MAJOR ||
30234 minor < DB_VERSION_MINOR )
30236 printf("Berkeley DB version mismatch\n"
30237 "\theader: %s\n\tlibrary: %s\n",
30238 DB_VERSION_STRING, version);
30244 #if DB_VERSION_MAJOR > 2
30245 db_env_create( NULL, 0 );
30246 #elif DB_VERSION_MAJOR > 1
30247 db_appexit( NULL );
30249 (void) dbopen( NULL, 0, 0, 0, NULL);
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30258 (eval $ac_link) 2>conftest.er1
30260 grep -v '^ *+' conftest.er1 >conftest.err
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } &&
30265 { ac_try='test -z "$ac_c_werror_flag"
30266 || test ! -s conftest.err'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30280 echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30285 rm -f conftest.err conftest.$ac_objext \
30286 conftest$ac_exeext conftest.$ac_ext
30291 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30292 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30294 if test $ol_cv_db_db_1 = yes ; then
30295 ol_cv_lib_db=-ldb-1
30300 if test "$ol_cv_lib_db" != no ; then
30301 ol_cv_berkeley_db=yes
30307 ol_cv_berkeley_db=no
30309 for ac_header in db.h
30311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30313 echo "$as_me:$LINENO: checking for $ac_header" >&5
30314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30316 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30321 # Is the header compilable?
30322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30324 cat >conftest.$ac_ext <<_ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h. */
30330 $ac_includes_default
30331 #include <$ac_header>
30333 rm -f conftest.$ac_objext
30334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30335 (eval $ac_compile) 2>conftest.er1
30337 grep -v '^ *+' conftest.er1 >conftest.err
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } &&
30342 { ac_try='test -z "$ac_c_werror_flag"
30343 || test ! -s conftest.err'
30344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30345 (eval $ac_try) 2>&5
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); }; } &&
30349 { ac_try='test -s conftest.$ac_objext'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; }; then
30355 ac_header_compiler=yes
30357 echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.$ac_ext >&5
30360 ac_header_compiler=no
30362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30364 echo "${ECHO_T}$ac_header_compiler" >&6
30366 # Is the header present?
30367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30369 cat >conftest.$ac_ext <<_ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30375 #include <$ac_header>
30377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30380 grep -v '^ *+' conftest.er1 >conftest.err
30382 cat conftest.err >&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } >/dev/null; then
30385 if test -s conftest.err; then
30386 ac_cpp_err=$ac_c_preproc_warn_flag
30387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30394 if test -z "$ac_cpp_err"; then
30395 ac_header_preproc=yes
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 ac_header_preproc=no
30402 rm -f conftest.err conftest.$ac_ext
30403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30404 echo "${ECHO_T}$ac_header_preproc" >&6
30406 # So? What about this header?
30407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30413 ac_header_preproc=yes
30416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30430 ## ------------------------------------------ ##
30431 ## Report this to the AC_PACKAGE_NAME lists. ##
30432 ## ------------------------------------------ ##
30435 sed "s/^/$as_me: WARNING: /" >&2
30438 echo "$as_me:$LINENO: checking for $ac_header" >&5
30439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30443 eval "$as_ac_Header=\$ac_header_preproc"
30445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30450 cat >>confdefs.h <<_ACEOF
30451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30458 if test $ac_cv_header_db_h = yes; then
30460 if test $ol_cv_lib_db = no ; then
30461 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30462 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30463 if test "${ol_cv_db_none+set}" = set; then
30464 echo $ECHO_N "(cached) $ECHO_C" >&6
30469 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30471 cat >conftest.$ac_ext <<_ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h. */
30478 #ifdef HAVE_DB_185_H
30479 # include <db_185.h>
30484 #ifndef DB_VERSION_MAJOR
30485 # define DB_VERSION_MAJOR 1
30489 #define NULL ((void*)0)
30496 #if DB_VERSION_MAJOR > 1
30499 int major, minor, patch;
30501 version = db_version( &major, &minor, &patch );
30503 if( major != DB_VERSION_MAJOR ||
30504 minor < DB_VERSION_MINOR )
30506 printf("Berkeley DB version mismatch\n"
30507 "\theader: %s\n\tlibrary: %s\n",
30508 DB_VERSION_STRING, version);
30514 #if DB_VERSION_MAJOR > 2
30515 db_env_create( NULL, 0 );
30516 #elif DB_VERSION_MAJOR > 1
30517 db_appexit( NULL );
30519 (void) dbopen( NULL, 0, 0, 0, NULL);
30526 rm -f conftest.$ac_objext conftest$ac_exeext
30527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30528 (eval $ac_link) 2>conftest.er1
30530 grep -v '^ *+' conftest.er1 >conftest.err
30532 cat conftest.err >&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); } &&
30535 { ac_try='test -z "$ac_c_werror_flag"
30536 || test ! -s conftest.err'
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30555 rm -f conftest.err conftest.$ac_objext \
30556 conftest$ac_exeext conftest.$ac_ext
30561 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30562 echo "${ECHO_T}$ol_cv_db_none" >&6
30564 if test $ol_cv_db_none = yes ; then
30569 if test $ol_cv_lib_db = no ; then
30570 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30571 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30572 if test "${ol_cv_db_db43+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30580 cat >conftest.$ac_ext <<_ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h. */
30587 #ifdef HAVE_DB_185_H
30588 # include <db_185.h>
30593 #ifndef DB_VERSION_MAJOR
30594 # define DB_VERSION_MAJOR 1
30598 #define NULL ((void*)0)
30605 #if DB_VERSION_MAJOR > 1
30608 int major, minor, patch;
30610 version = db_version( &major, &minor, &patch );
30612 if( major != DB_VERSION_MAJOR ||
30613 minor < DB_VERSION_MINOR )
30615 printf("Berkeley DB version mismatch\n"
30616 "\theader: %s\n\tlibrary: %s\n",
30617 DB_VERSION_STRING, version);
30623 #if DB_VERSION_MAJOR > 2
30624 db_env_create( NULL, 0 );
30625 #elif DB_VERSION_MAJOR > 1
30626 db_appexit( NULL );
30628 (void) dbopen( NULL, 0, 0, 0, NULL);
30635 rm -f conftest.$ac_objext conftest$ac_exeext
30636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30637 (eval $ac_link) 2>conftest.er1
30639 grep -v '^ *+' conftest.er1 >conftest.err
30641 cat conftest.err >&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); } &&
30644 { ac_try='test -z "$ac_c_werror_flag"
30645 || test ! -s conftest.err'
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; } &&
30651 { ac_try='test -s conftest$ac_exeext'
30652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30653 (eval $ac_try) 2>&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); }; }; then
30659 echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30664 rm -f conftest.err conftest.$ac_objext \
30665 conftest$ac_exeext conftest.$ac_ext
30670 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30671 echo "${ECHO_T}$ol_cv_db_db43" >&6
30673 if test $ol_cv_db_db43 = yes ; then
30674 ol_cv_lib_db=-ldb43
30678 if test $ol_cv_lib_db = no ; then
30679 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30680 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30681 if test "${ol_cv_db_db_43+set}" = set; then
30682 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30689 cat >conftest.$ac_ext <<_ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h. */
30696 #ifdef HAVE_DB_185_H
30697 # include <db_185.h>
30702 #ifndef DB_VERSION_MAJOR
30703 # define DB_VERSION_MAJOR 1
30707 #define NULL ((void*)0)
30714 #if DB_VERSION_MAJOR > 1
30717 int major, minor, patch;
30719 version = db_version( &major, &minor, &patch );
30721 if( major != DB_VERSION_MAJOR ||
30722 minor < DB_VERSION_MINOR )
30724 printf("Berkeley DB version mismatch\n"
30725 "\theader: %s\n\tlibrary: %s\n",
30726 DB_VERSION_STRING, version);
30732 #if DB_VERSION_MAJOR > 2
30733 db_env_create( NULL, 0 );
30734 #elif DB_VERSION_MAJOR > 1
30735 db_appexit( NULL );
30737 (void) dbopen( NULL, 0, 0, 0, NULL);
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30746 (eval $ac_link) 2>conftest.er1
30748 grep -v '^ *+' conftest.er1 >conftest.err
30750 cat conftest.err >&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } &&
30753 { ac_try='test -z "$ac_c_werror_flag"
30754 || test ! -s conftest.err'
30755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30756 (eval $ac_try) 2>&5
30758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759 (exit $ac_status); }; } &&
30760 { ac_try='test -s conftest$ac_exeext'
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; }; then
30768 echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30773 rm -f conftest.err conftest.$ac_objext \
30774 conftest$ac_exeext conftest.$ac_ext
30779 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30780 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30782 if test $ol_cv_db_db_43 = yes ; then
30783 ol_cv_lib_db=-ldb-43
30787 if test $ol_cv_lib_db = no ; then
30788 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30789 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30790 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30791 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30798 cat >conftest.$ac_ext <<_ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h. */
30805 #ifdef HAVE_DB_185_H
30806 # include <db_185.h>
30811 #ifndef DB_VERSION_MAJOR
30812 # define DB_VERSION_MAJOR 1
30816 #define NULL ((void*)0)
30823 #if DB_VERSION_MAJOR > 1
30826 int major, minor, patch;
30828 version = db_version( &major, &minor, &patch );
30830 if( major != DB_VERSION_MAJOR ||
30831 minor < DB_VERSION_MINOR )
30833 printf("Berkeley DB version mismatch\n"
30834 "\theader: %s\n\tlibrary: %s\n",
30835 DB_VERSION_STRING, version);
30841 #if DB_VERSION_MAJOR > 2
30842 db_env_create( NULL, 0 );
30843 #elif DB_VERSION_MAJOR > 1
30844 db_appexit( NULL );
30846 (void) dbopen( NULL, 0, 0, 0, NULL);
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30855 (eval $ac_link) 2>conftest.er1
30857 grep -v '^ *+' conftest.er1 >conftest.err
30859 cat conftest.err >&5
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); } &&
30862 { ac_try='test -z "$ac_c_werror_flag"
30863 || test ! -s conftest.err'
30864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30865 (eval $ac_try) 2>&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); }; } &&
30869 { ac_try='test -s conftest$ac_exeext'
30870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871 (eval $ac_try) 2>&5
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); }; }; then
30875 ol_cv_db_db_4_dot_3=yes
30877 echo "$as_me: failed program was:" >&5
30878 sed 's/^/| /' conftest.$ac_ext >&5
30880 ol_cv_db_db_4_dot_3=no
30882 rm -f conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
30888 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30889 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30891 if test $ol_cv_db_db_4_dot_3 = yes ; then
30892 ol_cv_lib_db=-ldb-4.3
30896 if test $ol_cv_lib_db = no ; then
30897 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30898 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30899 if test "${ol_cv_db_db_4_3+set}" = set; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
30905 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30907 cat >conftest.$ac_ext <<_ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h. */
30914 #ifdef HAVE_DB_185_H
30915 # include <db_185.h>
30920 #ifndef DB_VERSION_MAJOR
30921 # define DB_VERSION_MAJOR 1
30925 #define NULL ((void*)0)
30932 #if DB_VERSION_MAJOR > 1
30935 int major, minor, patch;
30937 version = db_version( &major, &minor, &patch );
30939 if( major != DB_VERSION_MAJOR ||
30940 minor < DB_VERSION_MINOR )
30942 printf("Berkeley DB version mismatch\n"
30943 "\theader: %s\n\tlibrary: %s\n",
30944 DB_VERSION_STRING, version);
30950 #if DB_VERSION_MAJOR > 2
30951 db_env_create( NULL, 0 );
30952 #elif DB_VERSION_MAJOR > 1
30953 db_appexit( NULL );
30955 (void) dbopen( NULL, 0, 0, 0, NULL);
30962 rm -f conftest.$ac_objext conftest$ac_exeext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30964 (eval $ac_link) 2>conftest.er1
30966 grep -v '^ *+' conftest.er1 >conftest.err
30968 cat conftest.err >&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); } &&
30971 { ac_try='test -z "$ac_c_werror_flag"
30972 || test ! -s conftest.err'
30973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30974 (eval $ac_try) 2>&5
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; } &&
30978 { ac_try='test -s conftest$ac_exeext'
30979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980 (eval $ac_try) 2>&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; }; then
30984 ol_cv_db_db_4_3=yes
30986 echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30991 rm -f conftest.err conftest.$ac_objext \
30992 conftest$ac_exeext conftest.$ac_ext
30997 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30998 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
31000 if test $ol_cv_db_db_4_3 = yes ; then
31001 ol_cv_lib_db=-ldb-4-3
31005 if test $ol_cv_lib_db = no ; then
31006 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31007 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31008 if test "${ol_cv_db_db42+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31014 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31016 cat >conftest.$ac_ext <<_ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31023 #ifdef HAVE_DB_185_H
31024 # include <db_185.h>
31029 #ifndef DB_VERSION_MAJOR
31030 # define DB_VERSION_MAJOR 1
31034 #define NULL ((void*)0)
31041 #if DB_VERSION_MAJOR > 1
31044 int major, minor, patch;
31046 version = db_version( &major, &minor, &patch );
31048 if( major != DB_VERSION_MAJOR ||
31049 minor < DB_VERSION_MINOR )
31051 printf("Berkeley DB version mismatch\n"
31052 "\theader: %s\n\tlibrary: %s\n",
31053 DB_VERSION_STRING, version);
31059 #if DB_VERSION_MAJOR > 2
31060 db_env_create( NULL, 0 );
31061 #elif DB_VERSION_MAJOR > 1
31062 db_appexit( NULL );
31064 (void) dbopen( NULL, 0, 0, 0, NULL);
31071 rm -f conftest.$ac_objext conftest$ac_exeext
31072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31073 (eval $ac_link) 2>conftest.er1
31075 grep -v '^ *+' conftest.er1 >conftest.err
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag"
31081 || test ! -s conftest.err'
31082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083 (eval $ac_try) 2>&5
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; } &&
31087 { ac_try='test -s conftest$ac_exeext'
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
31095 echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31100 rm -f conftest.err conftest.$ac_objext \
31101 conftest$ac_exeext conftest.$ac_ext
31106 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31107 echo "${ECHO_T}$ol_cv_db_db42" >&6
31109 if test $ol_cv_db_db42 = yes ; then
31110 ol_cv_lib_db=-ldb42
31114 if test $ol_cv_lib_db = no ; then
31115 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31116 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31117 if test "${ol_cv_db_db_42+set}" = set; then
31118 echo $ECHO_N "(cached) $ECHO_C" >&6
31123 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31125 cat >conftest.$ac_ext <<_ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h. */
31132 #ifdef HAVE_DB_185_H
31133 # include <db_185.h>
31138 #ifndef DB_VERSION_MAJOR
31139 # define DB_VERSION_MAJOR 1
31143 #define NULL ((void*)0)
31150 #if DB_VERSION_MAJOR > 1
31153 int major, minor, patch;
31155 version = db_version( &major, &minor, &patch );
31157 if( major != DB_VERSION_MAJOR ||
31158 minor < DB_VERSION_MINOR )
31160 printf("Berkeley DB version mismatch\n"
31161 "\theader: %s\n\tlibrary: %s\n",
31162 DB_VERSION_STRING, version);
31168 #if DB_VERSION_MAJOR > 2
31169 db_env_create( NULL, 0 );
31170 #elif DB_VERSION_MAJOR > 1
31171 db_appexit( NULL );
31173 (void) dbopen( NULL, 0, 0, 0, NULL);
31180 rm -f conftest.$ac_objext conftest$ac_exeext
31181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31182 (eval $ac_link) 2>conftest.er1
31184 grep -v '^ *+' conftest.er1 >conftest.err
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
31189 { ac_try='test -z "$ac_c_werror_flag"
31190 || test ! -s conftest.err'
31191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; }; then
31204 echo "$as_me: failed program was:" >&5
31205 sed 's/^/| /' conftest.$ac_ext >&5
31209 rm -f conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
31215 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31216 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31218 if test $ol_cv_db_db_42 = yes ; then
31219 ol_cv_lib_db=-ldb-42
31223 if test $ol_cv_lib_db = no ; then
31224 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31225 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31226 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31227 echo $ECHO_N "(cached) $ECHO_C" >&6
31232 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31234 cat >conftest.$ac_ext <<_ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h. */
31241 #ifdef HAVE_DB_185_H
31242 # include <db_185.h>
31247 #ifndef DB_VERSION_MAJOR
31248 # define DB_VERSION_MAJOR 1
31252 #define NULL ((void*)0)
31259 #if DB_VERSION_MAJOR > 1
31262 int major, minor, patch;
31264 version = db_version( &major, &minor, &patch );
31266 if( major != DB_VERSION_MAJOR ||
31267 minor < DB_VERSION_MINOR )
31269 printf("Berkeley DB version mismatch\n"
31270 "\theader: %s\n\tlibrary: %s\n",
31271 DB_VERSION_STRING, version);
31277 #if DB_VERSION_MAJOR > 2
31278 db_env_create( NULL, 0 );
31279 #elif DB_VERSION_MAJOR > 1
31280 db_appexit( NULL );
31282 (void) dbopen( NULL, 0, 0, 0, NULL);
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31291 (eval $ac_link) 2>conftest.er1
31293 grep -v '^ *+' conftest.er1 >conftest.err
31295 cat conftest.err >&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
31298 { ac_try='test -z "$ac_c_werror_flag"
31299 || test ! -s conftest.err'
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest$ac_exeext'
31306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307 (eval $ac_try) 2>&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; }; then
31311 ol_cv_db_db_4_dot_2=yes
31313 echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31316 ol_cv_db_db_4_dot_2=no
31318 rm -f conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
31324 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31325 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31327 if test $ol_cv_db_db_4_dot_2 = yes ; then
31328 ol_cv_lib_db=-ldb-4.2
31332 if test $ol_cv_lib_db = no ; then
31333 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31334 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31335 if test "${ol_cv_db_db_4_2+set}" = set; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31341 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31343 cat >conftest.$ac_ext <<_ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h. */
31350 #ifdef HAVE_DB_185_H
31351 # include <db_185.h>
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31361 #define NULL ((void*)0)
31368 #if DB_VERSION_MAJOR > 1
31371 int major, minor, patch;
31373 version = db_version( &major, &minor, &patch );
31375 if( major != DB_VERSION_MAJOR ||
31376 minor < DB_VERSION_MINOR )
31378 printf("Berkeley DB version mismatch\n"
31379 "\theader: %s\n\tlibrary: %s\n",
31380 DB_VERSION_STRING, version);
31386 #if DB_VERSION_MAJOR > 2
31387 db_env_create( NULL, 0 );
31388 #elif DB_VERSION_MAJOR > 1
31389 db_appexit( NULL );
31391 (void) dbopen( NULL, 0, 0, 0, NULL);
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31400 (eval $ac_link) 2>conftest.er1
31402 grep -v '^ *+' conftest.er1 >conftest.err
31404 cat conftest.err >&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); } &&
31407 { ac_try='test -z "$ac_c_werror_flag"
31408 || test ! -s conftest.err'
31409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410 (eval $ac_try) 2>&5
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); }; } &&
31414 { ac_try='test -s conftest$ac_exeext'
31415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31416 (eval $ac_try) 2>&5
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); }; }; then
31420 ol_cv_db_db_4_2=yes
31422 echo "$as_me: failed program was:" >&5
31423 sed 's/^/| /' conftest.$ac_ext >&5
31427 rm -f conftest.err conftest.$ac_objext \
31428 conftest$ac_exeext conftest.$ac_ext
31433 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31434 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31436 if test $ol_cv_db_db_4_2 = yes ; then
31437 ol_cv_lib_db=-ldb-4-2
31441 if test $ol_cv_lib_db = no ; then
31442 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31443 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31444 if test "${ol_cv_db_db_4+set}" = set; then
31445 echo $ECHO_N "(cached) $ECHO_C" >&6
31450 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31452 cat >conftest.$ac_ext <<_ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h. */
31459 #ifdef HAVE_DB_185_H
31460 # include <db_185.h>
31465 #ifndef DB_VERSION_MAJOR
31466 # define DB_VERSION_MAJOR 1
31470 #define NULL ((void*)0)
31477 #if DB_VERSION_MAJOR > 1
31480 int major, minor, patch;
31482 version = db_version( &major, &minor, &patch );
31484 if( major != DB_VERSION_MAJOR ||
31485 minor < DB_VERSION_MINOR )
31487 printf("Berkeley DB version mismatch\n"
31488 "\theader: %s\n\tlibrary: %s\n",
31489 DB_VERSION_STRING, version);
31495 #if DB_VERSION_MAJOR > 2
31496 db_env_create( NULL, 0 );
31497 #elif DB_VERSION_MAJOR > 1
31498 db_appexit( NULL );
31500 (void) dbopen( NULL, 0, 0, 0, NULL);
31507 rm -f conftest.$ac_objext conftest$ac_exeext
31508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31509 (eval $ac_link) 2>conftest.er1
31511 grep -v '^ *+' conftest.er1 >conftest.err
31513 cat conftest.err >&5
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); } &&
31516 { ac_try='test -z "$ac_c_werror_flag"
31517 || test ! -s conftest.err'
31518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31519 (eval $ac_try) 2>&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); }; } &&
31523 { ac_try='test -s conftest$ac_exeext'
31524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31525 (eval $ac_try) 2>&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; }; then
31531 echo "$as_me: failed program was:" >&5
31532 sed 's/^/| /' conftest.$ac_ext >&5
31536 rm -f conftest.err conftest.$ac_objext \
31537 conftest$ac_exeext conftest.$ac_ext
31542 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31543 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31545 if test $ol_cv_db_db_4 = yes ; then
31546 ol_cv_lib_db=-ldb-4
31550 if test $ol_cv_lib_db = no ; then
31551 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31552 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31553 if test "${ol_cv_db_db4+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31561 cat >conftest.$ac_ext <<_ACEOF
31564 cat confdefs.h >>conftest.$ac_ext
31565 cat >>conftest.$ac_ext <<_ACEOF
31566 /* end confdefs.h. */
31568 #ifdef HAVE_DB_185_H
31569 # include <db_185.h>
31574 #ifndef DB_VERSION_MAJOR
31575 # define DB_VERSION_MAJOR 1
31579 #define NULL ((void*)0)
31586 #if DB_VERSION_MAJOR > 1
31589 int major, minor, patch;
31591 version = db_version( &major, &minor, &patch );
31593 if( major != DB_VERSION_MAJOR ||
31594 minor < DB_VERSION_MINOR )
31596 printf("Berkeley DB version mismatch\n"
31597 "\theader: %s\n\tlibrary: %s\n",
31598 DB_VERSION_STRING, version);
31604 #if DB_VERSION_MAJOR > 2
31605 db_env_create( NULL, 0 );
31606 #elif DB_VERSION_MAJOR > 1
31607 db_appexit( NULL );
31609 (void) dbopen( NULL, 0, 0, 0, NULL);
31616 rm -f conftest.$ac_objext conftest$ac_exeext
31617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31618 (eval $ac_link) 2>conftest.er1
31620 grep -v '^ *+' conftest.er1 >conftest.err
31622 cat conftest.err >&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } &&
31625 { ac_try='test -z "$ac_c_werror_flag"
31626 || test ! -s conftest.err'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; } &&
31632 { ac_try='test -s conftest$ac_exeext'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
31640 echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31645 rm -f conftest.err conftest.$ac_objext \
31646 conftest$ac_exeext conftest.$ac_ext
31651 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31652 echo "${ECHO_T}$ol_cv_db_db4" >&6
31654 if test $ol_cv_db_db4 = yes ; then
31659 if test $ol_cv_lib_db = no ; then
31660 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31661 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31662 if test "${ol_cv_db_db+set}" = set; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31677 #ifdef HAVE_DB_185_H
31678 # include <db_185.h>
31683 #ifndef DB_VERSION_MAJOR
31684 # define DB_VERSION_MAJOR 1
31688 #define NULL ((void*)0)
31695 #if DB_VERSION_MAJOR > 1
31698 int major, minor, patch;
31700 version = db_version( &major, &minor, &patch );
31702 if( major != DB_VERSION_MAJOR ||
31703 minor < DB_VERSION_MINOR )
31705 printf("Berkeley DB version mismatch\n"
31706 "\theader: %s\n\tlibrary: %s\n",
31707 DB_VERSION_STRING, version);
31713 #if DB_VERSION_MAJOR > 2
31714 db_env_create( NULL, 0 );
31715 #elif DB_VERSION_MAJOR > 1
31716 db_appexit( NULL );
31718 (void) dbopen( NULL, 0, 0, 0, NULL);
31725 rm -f conftest.$ac_objext conftest$ac_exeext
31726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31727 (eval $ac_link) 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag"
31735 || test ! -s conftest.err'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; } &&
31741 { ac_try='test -s conftest$ac_exeext'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31749 echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31754 rm -f conftest.err conftest.$ac_objext \
31755 conftest$ac_exeext conftest.$ac_ext
31760 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31761 echo "${ECHO_T}$ol_cv_db_db" >&6
31763 if test $ol_cv_db_db = yes ; then
31768 if test $ol_cv_lib_db = no ; then
31769 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31770 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31771 if test "${ol_cv_db_db41+set}" = set; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31777 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31779 cat >conftest.$ac_ext <<_ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31786 #ifdef HAVE_DB_185_H
31787 # include <db_185.h>
31792 #ifndef DB_VERSION_MAJOR
31793 # define DB_VERSION_MAJOR 1
31797 #define NULL ((void*)0)
31804 #if DB_VERSION_MAJOR > 1
31807 int major, minor, patch;
31809 version = db_version( &major, &minor, &patch );
31811 if( major != DB_VERSION_MAJOR ||
31812 minor < DB_VERSION_MINOR )
31814 printf("Berkeley DB version mismatch\n"
31815 "\theader: %s\n\tlibrary: %s\n",
31816 DB_VERSION_STRING, version);
31822 #if DB_VERSION_MAJOR > 2
31823 db_env_create( NULL, 0 );
31824 #elif DB_VERSION_MAJOR > 1
31825 db_appexit( NULL );
31827 (void) dbopen( NULL, 0, 0, 0, NULL);
31834 rm -f conftest.$ac_objext conftest$ac_exeext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31836 (eval $ac_link) 2>conftest.er1
31838 grep -v '^ *+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -z "$ac_c_werror_flag"
31844 || test ! -s conftest.err'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest$ac_exeext'
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31863 rm -f conftest.err conftest.$ac_objext \
31864 conftest$ac_exeext conftest.$ac_ext
31869 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31870 echo "${ECHO_T}$ol_cv_db_db41" >&6
31872 if test $ol_cv_db_db41 = yes ; then
31873 ol_cv_lib_db=-ldb41
31877 if test $ol_cv_lib_db = no ; then
31878 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31879 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31880 if test "${ol_cv_db_db_41+set}" = set; then
31881 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31888 cat >conftest.$ac_ext <<_ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h. */
31895 #ifdef HAVE_DB_185_H
31896 # include <db_185.h>
31901 #ifndef DB_VERSION_MAJOR
31902 # define DB_VERSION_MAJOR 1
31906 #define NULL ((void*)0)
31913 #if DB_VERSION_MAJOR > 1
31916 int major, minor, patch;
31918 version = db_version( &major, &minor, &patch );
31920 if( major != DB_VERSION_MAJOR ||
31921 minor < DB_VERSION_MINOR )
31923 printf("Berkeley DB version mismatch\n"
31924 "\theader: %s\n\tlibrary: %s\n",
31925 DB_VERSION_STRING, version);
31931 #if DB_VERSION_MAJOR > 2
31932 db_env_create( NULL, 0 );
31933 #elif DB_VERSION_MAJOR > 1
31934 db_appexit( NULL );
31936 (void) dbopen( NULL, 0, 0, 0, NULL);
31943 rm -f conftest.$ac_objext conftest$ac_exeext
31944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31945 (eval $ac_link) 2>conftest.er1
31947 grep -v '^ *+' conftest.er1 >conftest.err
31949 cat conftest.err >&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); } &&
31952 { ac_try='test -z "$ac_c_werror_flag"
31953 || test ! -s conftest.err'
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
31960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961 (eval $ac_try) 2>&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; }; then
31967 echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31972 rm -f conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
31978 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31979 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31981 if test $ol_cv_db_db_41 = yes ; then
31982 ol_cv_lib_db=-ldb-41
31986 if test $ol_cv_lib_db = no ; then
31987 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31988 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31989 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31990 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31997 cat >conftest.$ac_ext <<_ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h. */
32004 #ifdef HAVE_DB_185_H
32005 # include <db_185.h>
32010 #ifndef DB_VERSION_MAJOR
32011 # define DB_VERSION_MAJOR 1
32015 #define NULL ((void*)0)
32022 #if DB_VERSION_MAJOR > 1
32025 int major, minor, patch;
32027 version = db_version( &major, &minor, &patch );
32029 if( major != DB_VERSION_MAJOR ||
32030 minor < DB_VERSION_MINOR )
32032 printf("Berkeley DB version mismatch\n"
32033 "\theader: %s\n\tlibrary: %s\n",
32034 DB_VERSION_STRING, version);
32040 #if DB_VERSION_MAJOR > 2
32041 db_env_create( NULL, 0 );
32042 #elif DB_VERSION_MAJOR > 1
32043 db_appexit( NULL );
32045 (void) dbopen( NULL, 0, 0, 0, NULL);
32052 rm -f conftest.$ac_objext conftest$ac_exeext
32053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32054 (eval $ac_link) 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
32061 { ac_try='test -z "$ac_c_werror_flag"
32062 || test ! -s conftest.err'
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest$ac_exeext'
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 ol_cv_db_db_4_dot_1=yes
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32079 ol_cv_db_db_4_dot_1=no
32081 rm -f conftest.err conftest.$ac_objext \
32082 conftest$ac_exeext conftest.$ac_ext
32087 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32088 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32090 if test $ol_cv_db_db_4_dot_1 = yes ; then
32091 ol_cv_lib_db=-ldb-4.1
32095 if test $ol_cv_lib_db = no ; then
32096 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32097 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32098 if test "${ol_cv_db_db_4_1+set}" = set; then
32099 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32106 cat >conftest.$ac_ext <<_ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h. */
32113 #ifdef HAVE_DB_185_H
32114 # include <db_185.h>
32119 #ifndef DB_VERSION_MAJOR
32120 # define DB_VERSION_MAJOR 1
32124 #define NULL ((void*)0)
32131 #if DB_VERSION_MAJOR > 1
32134 int major, minor, patch;
32136 version = db_version( &major, &minor, &patch );
32138 if( major != DB_VERSION_MAJOR ||
32139 minor < DB_VERSION_MINOR )
32141 printf("Berkeley DB version mismatch\n"
32142 "\theader: %s\n\tlibrary: %s\n",
32143 DB_VERSION_STRING, version);
32149 #if DB_VERSION_MAJOR > 2
32150 db_env_create( NULL, 0 );
32151 #elif DB_VERSION_MAJOR > 1
32152 db_appexit( NULL );
32154 (void) dbopen( NULL, 0, 0, 0, NULL);
32161 rm -f conftest.$ac_objext conftest$ac_exeext
32162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32163 (eval $ac_link) 2>conftest.er1
32165 grep -v '^ *+' conftest.er1 >conftest.err
32167 cat conftest.err >&5
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); } &&
32170 { ac_try='test -z "$ac_c_werror_flag"
32171 || test ! -s conftest.err'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; } &&
32177 { ac_try='test -s conftest$ac_exeext'
32178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179 (eval $ac_try) 2>&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; }; then
32183 ol_cv_db_db_4_1=yes
32185 echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32190 rm -f conftest.err conftest.$ac_objext \
32191 conftest$ac_exeext conftest.$ac_ext
32196 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32197 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32199 if test $ol_cv_db_db_4_1 = yes ; then
32200 ol_cv_lib_db=-ldb-4-1
32204 if test $ol_cv_lib_db = no ; then
32205 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32206 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32207 if test "${ol_cv_db_db3+set}" = set; then
32208 echo $ECHO_N "(cached) $ECHO_C" >&6
32213 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32215 cat >conftest.$ac_ext <<_ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h. */
32222 #ifdef HAVE_DB_185_H
32223 # include <db_185.h>
32228 #ifndef DB_VERSION_MAJOR
32229 # define DB_VERSION_MAJOR 1
32233 #define NULL ((void*)0)
32240 #if DB_VERSION_MAJOR > 1
32243 int major, minor, patch;
32245 version = db_version( &major, &minor, &patch );
32247 if( major != DB_VERSION_MAJOR ||
32248 minor < DB_VERSION_MINOR )
32250 printf("Berkeley DB version mismatch\n"
32251 "\theader: %s\n\tlibrary: %s\n",
32252 DB_VERSION_STRING, version);
32258 #if DB_VERSION_MAJOR > 2
32259 db_env_create( NULL, 0 );
32260 #elif DB_VERSION_MAJOR > 1
32261 db_appexit( NULL );
32263 (void) dbopen( NULL, 0, 0, 0, NULL);
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272 (eval $ac_link) 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
32279 { ac_try='test -z "$ac_c_werror_flag"
32280 || test ! -s conftest.err'
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; } &&
32286 { ac_try='test -s conftest$ac_exeext'
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32299 rm -f conftest.err conftest.$ac_objext \
32300 conftest$ac_exeext conftest.$ac_ext
32305 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32306 echo "${ECHO_T}$ol_cv_db_db3" >&6
32308 if test $ol_cv_db_db3 = yes ; then
32313 if test $ol_cv_lib_db = no ; then
32314 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32315 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32316 if test "${ol_cv_db_db_3+set}" = set; then
32317 echo $ECHO_N "(cached) $ECHO_C" >&6
32322 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32324 cat >conftest.$ac_ext <<_ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h. */
32331 #ifdef HAVE_DB_185_H
32332 # include <db_185.h>
32337 #ifndef DB_VERSION_MAJOR
32338 # define DB_VERSION_MAJOR 1
32342 #define NULL ((void*)0)
32349 #if DB_VERSION_MAJOR > 1
32352 int major, minor, patch;
32354 version = db_version( &major, &minor, &patch );
32356 if( major != DB_VERSION_MAJOR ||
32357 minor < DB_VERSION_MINOR )
32359 printf("Berkeley DB version mismatch\n"
32360 "\theader: %s\n\tlibrary: %s\n",
32361 DB_VERSION_STRING, version);
32367 #if DB_VERSION_MAJOR > 2
32368 db_env_create( NULL, 0 );
32369 #elif DB_VERSION_MAJOR > 1
32370 db_appexit( NULL );
32372 (void) dbopen( NULL, 0, 0, 0, NULL);
32379 rm -f conftest.$ac_objext conftest$ac_exeext
32380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32381 (eval $ac_link) 2>conftest.er1
32383 grep -v '^ *+' conftest.er1 >conftest.err
32385 cat conftest.err >&5
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); } &&
32388 { ac_try='test -z "$ac_c_werror_flag"
32389 || test ! -s conftest.err'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; } &&
32395 { ac_try='test -s conftest$ac_exeext'
32396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397 (eval $ac_try) 2>&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32408 rm -f conftest.err conftest.$ac_objext \
32409 conftest$ac_exeext conftest.$ac_ext
32414 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32415 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32417 if test $ol_cv_db_db_3 = yes ; then
32418 ol_cv_lib_db=-ldb-3
32422 if test $ol_cv_lib_db = no ; then
32423 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32424 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32425 if test "${ol_cv_db_db2+set}" = set; then
32426 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32433 cat >conftest.$ac_ext <<_ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32440 #ifdef HAVE_DB_185_H
32441 # include <db_185.h>
32446 #ifndef DB_VERSION_MAJOR
32447 # define DB_VERSION_MAJOR 1
32451 #define NULL ((void*)0)
32458 #if DB_VERSION_MAJOR > 1
32461 int major, minor, patch;
32463 version = db_version( &major, &minor, &patch );
32465 if( major != DB_VERSION_MAJOR ||
32466 minor < DB_VERSION_MINOR )
32468 printf("Berkeley DB version mismatch\n"
32469 "\theader: %s\n\tlibrary: %s\n",
32470 DB_VERSION_STRING, version);
32476 #if DB_VERSION_MAJOR > 2
32477 db_env_create( NULL, 0 );
32478 #elif DB_VERSION_MAJOR > 1
32479 db_appexit( NULL );
32481 (void) dbopen( NULL, 0, 0, 0, NULL);
32488 rm -f conftest.$ac_objext conftest$ac_exeext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32490 (eval $ac_link) 2>conftest.er1
32492 grep -v '^ *+' conftest.er1 >conftest.err
32494 cat conftest.err >&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
32497 { ac_try='test -z "$ac_c_werror_flag"
32498 || test ! -s conftest.err'
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; } &&
32504 { ac_try='test -s conftest$ac_exeext'
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32512 echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32517 rm -f conftest.err conftest.$ac_objext \
32518 conftest$ac_exeext conftest.$ac_ext
32523 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32524 echo "${ECHO_T}$ol_cv_db_db2" >&6
32526 if test $ol_cv_db_db2 = yes ; then
32531 if test $ol_cv_lib_db = no ; then
32532 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32533 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32534 if test "${ol_cv_db_db_2+set}" = set; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32540 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32542 cat >conftest.$ac_ext <<_ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h. */
32549 #ifdef HAVE_DB_185_H
32550 # include <db_185.h>
32555 #ifndef DB_VERSION_MAJOR
32556 # define DB_VERSION_MAJOR 1
32560 #define NULL ((void*)0)
32567 #if DB_VERSION_MAJOR > 1
32570 int major, minor, patch;
32572 version = db_version( &major, &minor, &patch );
32574 if( major != DB_VERSION_MAJOR ||
32575 minor < DB_VERSION_MINOR )
32577 printf("Berkeley DB version mismatch\n"
32578 "\theader: %s\n\tlibrary: %s\n",
32579 DB_VERSION_STRING, version);
32585 #if DB_VERSION_MAJOR > 2
32586 db_env_create( NULL, 0 );
32587 #elif DB_VERSION_MAJOR > 1
32588 db_appexit( NULL );
32590 (void) dbopen( NULL, 0, 0, 0, NULL);
32597 rm -f conftest.$ac_objext conftest$ac_exeext
32598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32599 (eval $ac_link) 2>conftest.er1
32601 grep -v '^ *+' conftest.er1 >conftest.err
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); } &&
32606 { ac_try='test -z "$ac_c_werror_flag"
32607 || test ! -s conftest.err'
32608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609 (eval $ac_try) 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; } &&
32613 { ac_try='test -s conftest$ac_exeext'
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32626 rm -f conftest.err conftest.$ac_objext \
32627 conftest$ac_exeext conftest.$ac_ext
32632 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32633 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32635 if test $ol_cv_db_db_2 = yes ; then
32636 ol_cv_lib_db=-ldb-2
32640 if test $ol_cv_lib_db = no ; then
32641 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32642 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32643 if test "${ol_cv_db_db1+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32649 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32651 cat >conftest.$ac_ext <<_ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32658 #ifdef HAVE_DB_185_H
32659 # include <db_185.h>
32664 #ifndef DB_VERSION_MAJOR
32665 # define DB_VERSION_MAJOR 1
32669 #define NULL ((void*)0)
32676 #if DB_VERSION_MAJOR > 1
32679 int major, minor, patch;
32681 version = db_version( &major, &minor, &patch );
32683 if( major != DB_VERSION_MAJOR ||
32684 minor < DB_VERSION_MINOR )
32686 printf("Berkeley DB version mismatch\n"
32687 "\theader: %s\n\tlibrary: %s\n",
32688 DB_VERSION_STRING, version);
32694 #if DB_VERSION_MAJOR > 2
32695 db_env_create( NULL, 0 );
32696 #elif DB_VERSION_MAJOR > 1
32697 db_appexit( NULL );
32699 (void) dbopen( NULL, 0, 0, 0, NULL);
32706 rm -f conftest.$ac_objext conftest$ac_exeext
32707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32708 (eval $ac_link) 2>conftest.er1
32710 grep -v '^ *+' conftest.er1 >conftest.err
32712 cat conftest.err >&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } &&
32715 { ac_try='test -z "$ac_c_werror_flag"
32716 || test ! -s conftest.err'
32717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32718 (eval $ac_try) 2>&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; } &&
32722 { ac_try='test -s conftest$ac_exeext'
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; }; then
32730 echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32735 rm -f conftest.err conftest.$ac_objext \
32736 conftest$ac_exeext conftest.$ac_ext
32741 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32742 echo "${ECHO_T}$ol_cv_db_db1" >&6
32744 if test $ol_cv_db_db1 = yes ; then
32749 if test $ol_cv_lib_db = no ; then
32750 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32751 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32752 if test "${ol_cv_db_db_1+set}" = set; then
32753 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32760 cat >conftest.$ac_ext <<_ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32767 #ifdef HAVE_DB_185_H
32768 # include <db_185.h>
32773 #ifndef DB_VERSION_MAJOR
32774 # define DB_VERSION_MAJOR 1
32778 #define NULL ((void*)0)
32785 #if DB_VERSION_MAJOR > 1
32788 int major, minor, patch;
32790 version = db_version( &major, &minor, &patch );
32792 if( major != DB_VERSION_MAJOR ||
32793 minor < DB_VERSION_MINOR )
32795 printf("Berkeley DB version mismatch\n"
32796 "\theader: %s\n\tlibrary: %s\n",
32797 DB_VERSION_STRING, version);
32803 #if DB_VERSION_MAJOR > 2
32804 db_env_create( NULL, 0 );
32805 #elif DB_VERSION_MAJOR > 1
32806 db_appexit( NULL );
32808 (void) dbopen( NULL, 0, 0, 0, NULL);
32815 rm -f conftest.$ac_objext conftest$ac_exeext
32816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817 (eval $ac_link) 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
32824 { ac_try='test -z "$ac_c_werror_flag"
32825 || test ! -s conftest.err'
32826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32827 (eval $ac_try) 2>&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); }; } &&
32831 { ac_try='test -s conftest$ac_exeext'
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; }; then
32839 echo "$as_me: failed program was:" >&5
32840 sed 's/^/| /' conftest.$ac_ext >&5
32844 rm -f conftest.err conftest.$ac_objext \
32845 conftest$ac_exeext conftest.$ac_ext
32850 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32851 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32853 if test $ol_cv_db_db_1 = yes ; then
32854 ol_cv_lib_db=-ldb-1
32859 if test "$ol_cv_lib_db" != no ; then
32860 ol_cv_berkeley_db=yes
32861 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32862 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32863 if test "${ol_cv_berkeley_db_version+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32868 LIBS="$LTHREAD_LIBS $LIBS"
32869 if test $ol_cv_lib_db != yes ; then
32870 LIBS="$ol_cv_lib_db $LIBS"
32873 if test "$cross_compiling" = yes; then
32874 ol_cv_berkeley_db_version=cross
32876 cat >conftest.$ac_ext <<_ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h. */
32883 #ifdef HAVE_DB_185_H
32888 #ifndef DB_VERSION_MAJOR
32889 # define DB_VERSION_MAJOR 1
32892 #define NULL ((void *)0)
32896 #if DB_VERSION_MAJOR > 1
32898 int major, minor, patch;
32900 version = db_version( &major, &minor, &patch );
32902 if( major != DB_VERSION_MAJOR ||
32903 minor != DB_VERSION_MINOR ||
32904 patch != DB_VERSION_PATCH )
32906 printf("Berkeley DB version mismatch\n"
32907 "\theader: %s\n\tlibrary: %s\n",
32908 DB_VERSION_STRING, version);
32916 rm -f conftest$ac_exeext
32917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32918 (eval $ac_link) 2>&5
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923 (eval $ac_try) 2>&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); }; }; then
32927 ol_cv_berkeley_db_version=yes
32929 echo "$as_me: program exited with status $ac_status" >&5
32930 echo "$as_me: failed program was:" >&5
32931 sed 's/^/| /' conftest.$ac_ext >&5
32933 ( exit $ac_status )
32934 ol_cv_berkeley_db_version=no
32936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32942 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32943 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32945 if test $ol_cv_berkeley_db_version = no ; then
32946 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32947 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32948 { (exit 1); exit 1; }; }
32951 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32952 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32953 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32954 echo $ECHO_N "(cached) $ECHO_C" >&6
32958 LIBS="$LTHREAD_LIBS $LIBS"
32959 if test $ol_cv_lib_db != yes ; then
32960 LIBS="$ol_cv_lib_db $LIBS"
32963 if test "$cross_compiling" = yes; then
32964 ol_cv_berkeley_db_thread=cross
32966 cat >conftest.$ac_ext <<_ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h. */
32973 #ifdef HAVE_DB_185_H
32979 #define NULL ((void *)0)
32984 u_int32_t flags = DB_CREATE |
32990 #if DB_VERSION_MAJOR > 2
32991 DB_ENV *env = NULL;
32993 rc = db_env_create( &env, 0 );
32995 flags |= DB_INIT_MPOOL;
32996 #ifdef DB_MPOOL_PRIVATE
32997 flags |= DB_MPOOL_PRIVATE;
33001 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33005 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33006 rc = env->open( env, NULL, flags, 0 );
33008 rc = env->open( env, NULL, NULL, flags, 0 );
33012 rc = env->close( env, 0 );
33016 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33022 memset( &env, '\0', sizeof(env) );
33024 rc = db_appinit( NULL, NULL, &env, flags );
33027 db_appexit( &env );
33030 unlink("__db_mpool.share");
33031 unlink("__db_lock.share");
33037 rm -f conftest$ac_exeext
33038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33039 (eval $ac_link) 2>&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044 (eval $ac_try) 2>&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); }; }; then
33048 ol_cv_berkeley_db_thread=yes
33050 echo "$as_me: program exited with status $ac_status" >&5
33051 echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33054 ( exit $ac_status )
33055 ol_cv_berkeley_db_thread=no
33057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33063 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33064 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33066 if test $ol_cv_berkeley_db_thread != no ; then
33068 cat >>confdefs.h <<\_ACEOF
33069 #define HAVE_BERKELEY_DB_THREAD 1
33079 if test $ol_cv_berkeley_db != no ; then
33081 cat >>confdefs.h <<\_ACEOF
33082 #define HAVE_BERKELEY_DB 1
33086 ol_link_ldbm=berkeley
33087 ol_enable_ldbm_api=berkeley
33089 if test $ol_enable_ldbm_type = hash ; then
33091 cat >>confdefs.h <<\_ACEOF
33092 #define LDBM_USE_DBHASH 1
33097 cat >>confdefs.h <<\_ACEOF
33098 #define LDBM_USE_DBBTREE 1
33103 if test $ol_cv_lib_db != yes ; then
33104 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33109 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
33110 if test $ol_link_ldbm != berkeley ; then
33111 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33112 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33113 { (exit 1); exit 1; }; }
33115 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33116 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33117 if test "${ol_cv_bdb_compat+set}" = set; then
33118 echo $ECHO_N "(cached) $ECHO_C" >&6
33121 cat >conftest.$ac_ext <<_ACEOF
33124 cat confdefs.h >>conftest.$ac_ext
33125 cat >>conftest.$ac_ext <<_ACEOF
33126 /* end confdefs.h. */
33130 /* this check could be improved */
33131 #ifndef DB_VERSION_MAJOR
33132 # define DB_VERSION_MAJOR 1
33134 #ifndef DB_VERSION_MINOR
33135 # define DB_VERSION_MINOR 0
33138 /* require 4.2 or later */
33139 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33140 __db_version_compat
33144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33145 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33146 ol_cv_bdb_compat=yes
33148 ol_cv_bdb_compat=no
33153 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33154 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33157 if test $ol_cv_bdb_compat != yes ; then
33158 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33159 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33160 { (exit 1); exit 1; }; }
33165 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
33166 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33167 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33168 ol_enable_ldbm_api=none
33171 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
33172 echo "$as_me:$LINENO: checking for MDBM library" >&5
33173 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33174 if test "${ol_cv_lib_mdbm+set}" = set; then
33175 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33179 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33180 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33183 cat >conftest.$ac_ext <<_ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33189 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33191 #define mdbm_set_chain innocuous_mdbm_set_chain
33193 /* System header to define __stub macros and hopefully few prototypes,
33194 which can conflict with char mdbm_set_chain (); below.
33195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33196 <limits.h> exists even on freestanding compilers. */
33199 # include <limits.h>
33201 # include <assert.h>
33204 #undef mdbm_set_chain
33206 /* Override any gcc2 internal prototype to avoid an error. */
33211 /* We use char because int might match the return type of a gcc2
33212 builtin and then its argument prototype would still apply. */
33213 char mdbm_set_chain ();
33214 /* The GNU C library defines this for functions which it implements
33215 to always fail with ENOSYS. Some functions are actually named
33216 something starting with __ and the normal name is an alias. */
33217 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33220 char (*f) () = mdbm_set_chain;
33229 return f != mdbm_set_chain;
33234 rm -f conftest.$ac_objext conftest$ac_exeext
33235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33236 (eval $ac_link) 2>conftest.er1
33238 grep -v '^ *+' conftest.er1 >conftest.err
33240 cat conftest.err >&5
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); } &&
33243 { ac_try='test -z "$ac_c_werror_flag"
33244 || test ! -s conftest.err'
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; } &&
33250 { ac_try='test -s conftest$ac_exeext'
33251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 (eval $ac_try) 2>&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; }; then
33256 ac_cv_func_mdbm_set_chain=yes
33258 echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33261 ac_cv_func_mdbm_set_chain=no
33263 rm -f conftest.err conftest.$ac_objext \
33264 conftest$ac_exeext conftest.$ac_ext
33266 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33267 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33268 if test $ac_cv_func_mdbm_set_chain = yes; then
33272 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33273 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33274 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33275 echo $ECHO_N "(cached) $ECHO_C" >&6
33277 ac_check_lib_save_LIBS=$LIBS
33278 LIBS="-lmdbm $LIBS"
33279 cat >conftest.$ac_ext <<_ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h. */
33286 /* Override any gcc2 internal prototype to avoid an error. */
33290 /* We use char because int might match the return type of a gcc2
33291 builtin and then its argument prototype would still apply. */
33292 char mdbm_set_chain ();
33301 rm -f conftest.$ac_objext conftest$ac_exeext
33302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33303 (eval $ac_link) 2>conftest.er1
33305 grep -v '^ *+' conftest.er1 >conftest.err
33307 cat conftest.err >&5
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); } &&
33310 { ac_try='test -z "$ac_c_werror_flag"
33311 || test ! -s conftest.err'
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; } &&
33317 { ac_try='test -s conftest$ac_exeext'
33318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319 (eval $ac_try) 2>&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; }; then
33323 ac_cv_lib_mdbm_mdbm_set_chain=yes
33325 echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33328 ac_cv_lib_mdbm_mdbm_set_chain=no
33330 rm -f conftest.err conftest.$ac_objext \
33331 conftest$ac_exeext conftest.$ac_ext
33332 LIBS=$ac_check_lib_save_LIBS
33334 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33335 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33336 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33337 ol_cv_lib_mdbm=-lmdbm
33348 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33349 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33353 for ac_header in mdbm.h
33355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33357 echo "$as_me:$LINENO: checking for $ac_header" >&5
33358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33360 echo $ECHO_N "(cached) $ECHO_C" >&6
33362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33365 # Is the header compilable?
33366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33368 cat >conftest.$ac_ext <<_ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h. */
33374 $ac_includes_default
33375 #include <$ac_header>
33377 rm -f conftest.$ac_objext
33378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33379 (eval $ac_compile) 2>conftest.er1
33381 grep -v '^ *+' conftest.er1 >conftest.err
33383 cat conftest.err >&5
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } &&
33386 { ac_try='test -z "$ac_c_werror_flag"
33387 || test ! -s conftest.err'
33388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389 (eval $ac_try) 2>&5
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest.$ac_objext'
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; }; then
33399 ac_header_compiler=yes
33401 echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33404 ac_header_compiler=no
33406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33408 echo "${ECHO_T}$ac_header_compiler" >&6
33410 # Is the header present?
33411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33413 cat >conftest.$ac_ext <<_ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h. */
33419 #include <$ac_header>
33421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33424 grep -v '^ *+' conftest.er1 >conftest.err
33426 cat conftest.err >&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } >/dev/null; then
33429 if test -s conftest.err; then
33430 ac_cpp_err=$ac_c_preproc_warn_flag
33431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33438 if test -z "$ac_cpp_err"; then
33439 ac_header_preproc=yes
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_header_preproc=no
33446 rm -f conftest.err conftest.$ac_ext
33447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33448 echo "${ECHO_T}$ac_header_preproc" >&6
33450 # So? What about this header?
33451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33457 ac_header_preproc=yes
33460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33474 ## ------------------------------------------ ##
33475 ## Report this to the AC_PACKAGE_NAME lists. ##
33476 ## ------------------------------------------ ##
33479 sed "s/^/$as_me: WARNING: /" >&2
33482 echo "$as_me:$LINENO: checking for $ac_header" >&5
33483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33487 eval "$as_ac_Header=\$ac_header_preproc"
33489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33494 cat >>confdefs.h <<_ACEOF
33495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33502 echo "$as_me:$LINENO: checking for db" >&5
33503 echo $ECHO_N "checking for db... $ECHO_C" >&6
33504 if test "${ol_cv_mdbm+set}" = set; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33508 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
33515 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33516 echo "${ECHO_T}$ol_cv_mdbm" >&6
33517 if test $ol_cv_mdbm = yes ; then
33519 cat >>confdefs.h <<\_ACEOF
33520 #define HAVE_MDBM 1
33526 if test $ol_cv_mdbm = yes ; then
33528 ol_enable_ldbm_api=mdbm
33529 if test $ol_cv_lib_mdbm != yes ; then
33530 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33535 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
33536 echo "$as_me:$LINENO: checking for GDBM library" >&5
33537 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33538 if test "${ol_cv_lib_gdbm+set}" = set; then
33539 echo $ECHO_N "(cached) $ECHO_C" >&6
33542 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33543 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33544 if test "${ac_cv_func_gdbm_open+set}" = set; then
33545 echo $ECHO_N "(cached) $ECHO_C" >&6
33547 cat >conftest.$ac_ext <<_ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h. */
33553 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33555 #define gdbm_open innocuous_gdbm_open
33557 /* System header to define __stub macros and hopefully few prototypes,
33558 which can conflict with char gdbm_open (); below.
33559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33560 <limits.h> exists even on freestanding compilers. */
33563 # include <limits.h>
33565 # include <assert.h>
33570 /* Override any gcc2 internal prototype to avoid an error. */
33575 /* We use char because int might match the return type of a gcc2
33576 builtin and then its argument prototype would still apply. */
33578 /* The GNU C library defines this for functions which it implements
33579 to always fail with ENOSYS. Some functions are actually named
33580 something starting with __ and the normal name is an alias. */
33581 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33584 char (*f) () = gdbm_open;
33593 return f != gdbm_open;
33598 rm -f conftest.$ac_objext conftest$ac_exeext
33599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33600 (eval $ac_link) 2>conftest.er1
33602 grep -v '^ *+' conftest.er1 >conftest.err
33604 cat conftest.err >&5
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } &&
33607 { ac_try='test -z "$ac_c_werror_flag"
33608 || test ! -s conftest.err'
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; } &&
33614 { ac_try='test -s conftest$ac_exeext'
33615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33616 (eval $ac_try) 2>&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); }; }; then
33620 ac_cv_func_gdbm_open=yes
33622 echo "$as_me: failed program was:" >&5
33623 sed 's/^/| /' conftest.$ac_ext >&5
33625 ac_cv_func_gdbm_open=no
33627 rm -f conftest.err conftest.$ac_objext \
33628 conftest$ac_exeext conftest.$ac_ext
33630 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33631 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33632 if test $ac_cv_func_gdbm_open = yes; then
33636 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33637 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33638 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33639 echo $ECHO_N "(cached) $ECHO_C" >&6
33641 ac_check_lib_save_LIBS=$LIBS
33642 LIBS="-lgdbm $LIBS"
33643 cat >conftest.$ac_ext <<_ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h. */
33650 /* Override any gcc2 internal prototype to avoid an error. */
33654 /* We use char because int might match the return type of a gcc2
33655 builtin and then its argument prototype would still apply. */
33665 rm -f conftest.$ac_objext conftest$ac_exeext
33666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33667 (eval $ac_link) 2>conftest.er1
33669 grep -v '^ *+' conftest.er1 >conftest.err
33671 cat conftest.err >&5
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); } &&
33674 { ac_try='test -z "$ac_c_werror_flag"
33675 || test ! -s conftest.err'
33676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33677 (eval $ac_try) 2>&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; } &&
33681 { ac_try='test -s conftest$ac_exeext'
33682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683 (eval $ac_try) 2>&5
33685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686 (exit $ac_status); }; }; then
33687 ac_cv_lib_gdbm_gdbm_open=yes
33689 echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33692 ac_cv_lib_gdbm_gdbm_open=no
33694 rm -f conftest.err conftest.$ac_objext \
33695 conftest$ac_exeext conftest.$ac_ext
33696 LIBS=$ac_check_lib_save_LIBS
33698 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33699 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33700 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33701 ol_cv_lib_gdbm=-lgdbm
33712 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33713 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33717 for ac_header in gdbm.h
33719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33721 echo "$as_me:$LINENO: checking for $ac_header" >&5
33722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33729 # Is the header compilable?
33730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33732 cat >conftest.$ac_ext <<_ACEOF
33735 cat confdefs.h >>conftest.$ac_ext
33736 cat >>conftest.$ac_ext <<_ACEOF
33737 /* end confdefs.h. */
33738 $ac_includes_default
33739 #include <$ac_header>
33741 rm -f conftest.$ac_objext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33743 (eval $ac_compile) 2>conftest.er1
33745 grep -v '^ *+' conftest.er1 >conftest.err
33747 cat conftest.err >&5
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); } &&
33750 { ac_try='test -z "$ac_c_werror_flag"
33751 || test ! -s conftest.err'
33752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33753 (eval $ac_try) 2>&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; } &&
33757 { ac_try='test -s conftest.$ac_objext'
33758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33759 (eval $ac_try) 2>&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; }; then
33763 ac_header_compiler=yes
33765 echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33768 ac_header_compiler=no
33770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33772 echo "${ECHO_T}$ac_header_compiler" >&6
33774 # Is the header present?
33775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33777 cat >conftest.$ac_ext <<_ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h. */
33783 #include <$ac_header>
33785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33788 grep -v '^ *+' conftest.er1 >conftest.err
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } >/dev/null; then
33793 if test -s conftest.err; then
33794 ac_cpp_err=$ac_c_preproc_warn_flag
33795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33802 if test -z "$ac_cpp_err"; then
33803 ac_header_preproc=yes
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_header_preproc=no
33810 rm -f conftest.err conftest.$ac_ext
33811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33812 echo "${ECHO_T}$ac_header_preproc" >&6
33814 # So? What about this header?
33815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33821 ac_header_preproc=yes
33824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33838 ## ------------------------------------------ ##
33839 ## Report this to the AC_PACKAGE_NAME lists. ##
33840 ## ------------------------------------------ ##
33843 sed "s/^/$as_me: WARNING: /" >&2
33846 echo "$as_me:$LINENO: checking for $ac_header" >&5
33847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33851 eval "$as_ac_Header=\$ac_header_preproc"
33853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33866 echo "$as_me:$LINENO: checking for db" >&5
33867 echo $ECHO_N "checking for db... $ECHO_C" >&6
33868 if test "${ol_cv_gdbm+set}" = set; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33872 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
33879 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33880 echo "${ECHO_T}$ol_cv_gdbm" >&6
33881 if test $ol_cv_gdbm = yes ; then
33883 cat >>confdefs.h <<\_ACEOF
33884 #define HAVE_GDBM 1
33890 if test $ol_cv_gdbm = yes ; then
33892 ol_enable_ldbm_api=gdbm
33894 if test $ol_cv_lib_gdbm != yes ; then
33895 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33900 if test $ol_enable_ldbm_api = ndbm ; then
33901 echo "$as_me:$LINENO: checking for NDBM library" >&5
33902 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33903 if test "${ol_cv_lib_ndbm+set}" = set; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33907 echo "$as_me:$LINENO: checking for dbm_open" >&5
33908 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33909 if test "${ac_cv_func_dbm_open+set}" = set; then
33910 echo $ECHO_N "(cached) $ECHO_C" >&6
33912 cat >conftest.$ac_ext <<_ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33920 #define dbm_open innocuous_dbm_open
33922 /* System header to define __stub macros and hopefully few prototypes,
33923 which can conflict with char dbm_open (); below.
33924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33925 <limits.h> exists even on freestanding compilers. */
33928 # include <limits.h>
33930 # include <assert.h>
33935 /* Override any gcc2 internal prototype to avoid an error. */
33940 /* We use char because int might match the return type of a gcc2
33941 builtin and then its argument prototype would still apply. */
33943 /* The GNU C library defines this for functions which it implements
33944 to always fail with ENOSYS. Some functions are actually named
33945 something starting with __ and the normal name is an alias. */
33946 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33949 char (*f) () = dbm_open;
33958 return f != dbm_open;
33963 rm -f conftest.$ac_objext conftest$ac_exeext
33964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33965 (eval $ac_link) 2>conftest.er1
33967 grep -v '^ *+' conftest.er1 >conftest.err
33969 cat conftest.err >&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } &&
33972 { ac_try='test -z "$ac_c_werror_flag"
33973 || test ! -s conftest.err'
33974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33975 (eval $ac_try) 2>&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); }; } &&
33979 { ac_try='test -s conftest$ac_exeext'
33980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33981 (eval $ac_try) 2>&5
33983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984 (exit $ac_status); }; }; then
33985 ac_cv_func_dbm_open=yes
33987 echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.$ac_ext >&5
33990 ac_cv_func_dbm_open=no
33992 rm -f conftest.err conftest.$ac_objext \
33993 conftest$ac_exeext conftest.$ac_ext
33995 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33996 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33997 if test $ac_cv_func_dbm_open = yes; then
34001 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34002 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34003 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34004 echo $ECHO_N "(cached) $ECHO_C" >&6
34006 ac_check_lib_save_LIBS=$LIBS
34007 LIBS="-lndbm $LIBS"
34008 cat >conftest.$ac_ext <<_ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h. */
34015 /* Override any gcc2 internal prototype to avoid an error. */
34019 /* We use char because int might match the return type of a gcc2
34020 builtin and then its argument prototype would still apply. */
34030 rm -f conftest.$ac_objext conftest$ac_exeext
34031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34032 (eval $ac_link) 2>conftest.er1
34034 grep -v '^ *+' conftest.er1 >conftest.err
34036 cat conftest.err >&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); } &&
34039 { ac_try='test -z "$ac_c_werror_flag"
34040 || test ! -s conftest.err'
34041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042 (eval $ac_try) 2>&5
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; } &&
34046 { ac_try='test -s conftest$ac_exeext'
34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 (eval $ac_try) 2>&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 ac_cv_lib_ndbm_dbm_open=yes
34054 echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34057 ac_cv_lib_ndbm_dbm_open=no
34059 rm -f conftest.err conftest.$ac_objext \
34060 conftest$ac_exeext conftest.$ac_ext
34061 LIBS=$ac_check_lib_save_LIBS
34063 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34064 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34065 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34066 ol_cv_lib_ndbm=-lndbm
34069 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34070 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34071 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34074 ac_check_lib_save_LIBS=$LIBS
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34083 /* Override any gcc2 internal prototype to avoid an error. */
34087 /* We use char because int might match the return type of a gcc2
34088 builtin and then its argument prototype would still apply. */
34098 rm -f conftest.$ac_objext conftest$ac_exeext
34099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100 (eval $ac_link) 2>conftest.er1
34102 grep -v '^ *+' conftest.er1 >conftest.err
34104 cat conftest.err >&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); } &&
34107 { ac_try='test -z "$ac_c_werror_flag"
34108 || test ! -s conftest.err'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest$ac_exeext'
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 ac_cv_lib_dbm_dbm_open=yes
34122 echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34125 ac_cv_lib_dbm_dbm_open=no
34127 rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
34129 LIBS=$ac_check_lib_save_LIBS
34131 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34132 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34133 if test $ac_cv_lib_dbm_dbm_open = yes; then
34134 ol_cv_lib_ndbm=-ldbm
34147 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34148 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34152 for ac_header in ndbm.h
34154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34156 echo "$as_me:$LINENO: checking for $ac_header" >&5
34157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34159 echo $ECHO_N "(cached) $ECHO_C" >&6
34161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34164 # Is the header compilable?
34165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34167 cat >conftest.$ac_ext <<_ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h. */
34173 $ac_includes_default
34174 #include <$ac_header>
34176 rm -f conftest.$ac_objext
34177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34178 (eval $ac_compile) 2>conftest.er1
34180 grep -v '^ *+' conftest.er1 >conftest.err
34182 cat conftest.err >&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); } &&
34185 { ac_try='test -z "$ac_c_werror_flag"
34186 || test ! -s conftest.err'
34187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188 (eval $ac_try) 2>&5
34190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191 (exit $ac_status); }; } &&
34192 { ac_try='test -s conftest.$ac_objext'
34193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194 (eval $ac_try) 2>&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; }; then
34198 ac_header_compiler=yes
34200 echo "$as_me: failed program was:" >&5
34201 sed 's/^/| /' conftest.$ac_ext >&5
34203 ac_header_compiler=no
34205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34207 echo "${ECHO_T}$ac_header_compiler" >&6
34209 # Is the header present?
34210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34212 cat >conftest.$ac_ext <<_ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h. */
34218 #include <$ac_header>
34220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34223 grep -v '^ *+' conftest.er1 >conftest.err
34225 cat conftest.err >&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); } >/dev/null; then
34228 if test -s conftest.err; then
34229 ac_cpp_err=$ac_c_preproc_warn_flag
34230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34237 if test -z "$ac_cpp_err"; then
34238 ac_header_preproc=yes
34240 echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.$ac_ext >&5
34243 ac_header_preproc=no
34245 rm -f conftest.err conftest.$ac_ext
34246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34247 echo "${ECHO_T}$ac_header_preproc" >&6
34249 # So? What about this header?
34250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34256 ac_header_preproc=yes
34259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34273 ## ------------------------------------------ ##
34274 ## Report this to the AC_PACKAGE_NAME lists. ##
34275 ## ------------------------------------------ ##
34278 sed "s/^/$as_me: WARNING: /" >&2
34281 echo "$as_me:$LINENO: checking for $ac_header" >&5
34282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34286 eval "$as_ac_Header=\$ac_header_preproc"
34288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34293 cat >>confdefs.h <<_ACEOF
34294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34301 echo "$as_me:$LINENO: checking for db" >&5
34302 echo $ECHO_N "checking for db... $ECHO_C" >&6
34303 if test "${ol_cv_ndbm+set}" = set; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
34314 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34315 echo "${ECHO_T}$ol_cv_ndbm" >&6
34316 if test $ol_cv_ndbm = yes ; then
34318 cat >>confdefs.h <<\_ACEOF
34319 #define HAVE_NDBM 1
34325 if test $ol_cv_ndbm = yes ; then
34327 ol_enable_ldbm_api=ndbm
34329 if test $ol_cv_lib_ndbm != yes ; then
34330 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34335 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
34336 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34337 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34338 { (exit 1); exit 1; }; }
34341 if test $ol_enable_bdb = yes -o \
34342 $ol_enable_hdb = yes -o \
34343 $ol_enable_ldbm = yes ; then
34344 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34348 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
34349 BUILD_LIBS_DYNAMIC=shared
34351 cat >>confdefs.h <<\_ACEOF
34352 #define LDAP_LIBS_DYNAMIC 1
34357 BUILD_LIBS_DYNAMIC=static
34361 if test $ol_enable_wrappers != no ; then
34363 for ac_header in tcpd.h
34365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34367 echo "$as_me:$LINENO: checking for $ac_header" >&5
34368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34370 echo $ECHO_N "(cached) $ECHO_C" >&6
34372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34375 # Is the header compilable?
34376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34378 cat >conftest.$ac_ext <<_ACEOF
34381 cat confdefs.h >>conftest.$ac_ext
34382 cat >>conftest.$ac_ext <<_ACEOF
34383 /* end confdefs.h. */
34384 $ac_includes_default
34385 #include <$ac_header>
34387 rm -f conftest.$ac_objext
34388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34389 (eval $ac_compile) 2>conftest.er1
34391 grep -v '^ *+' conftest.er1 >conftest.err
34393 cat conftest.err >&5
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); } &&
34396 { ac_try='test -z "$ac_c_werror_flag"
34397 || test ! -s conftest.err'
34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399 (eval $ac_try) 2>&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; } &&
34403 { ac_try='test -s conftest.$ac_objext'
34404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405 (eval $ac_try) 2>&5
34407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); }; }; then
34409 ac_header_compiler=yes
34411 echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34414 ac_header_compiler=no
34416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34418 echo "${ECHO_T}$ac_header_compiler" >&6
34420 # Is the header present?
34421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34423 cat >conftest.$ac_ext <<_ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h. */
34429 #include <$ac_header>
34431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34434 grep -v '^ *+' conftest.er1 >conftest.err
34436 cat conftest.err >&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); } >/dev/null; then
34439 if test -s conftest.err; then
34440 ac_cpp_err=$ac_c_preproc_warn_flag
34441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34448 if test -z "$ac_cpp_err"; then
34449 ac_header_preproc=yes
34451 echo "$as_me: failed program was:" >&5
34452 sed 's/^/| /' conftest.$ac_ext >&5
34454 ac_header_preproc=no
34456 rm -f conftest.err conftest.$ac_ext
34457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34458 echo "${ECHO_T}$ac_header_preproc" >&6
34460 # So? What about this header?
34461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34467 ac_header_preproc=yes
34470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34484 ## ------------------------------------------ ##
34485 ## Report this to the AC_PACKAGE_NAME lists. ##
34486 ## ------------------------------------------ ##
34489 sed "s/^/$as_me: WARNING: /" >&2
34492 echo "$as_me:$LINENO: checking for $ac_header" >&5
34493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34495 echo $ECHO_N "(cached) $ECHO_C" >&6
34497 eval "$as_ac_Header=\$ac_header_preproc"
34499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34504 cat >>confdefs.h <<_ACEOF
34505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34508 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34509 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34511 LIBS="$LIBS -lwrap"
34512 cat >conftest.$ac_ext <<_ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h. */
34520 int allow_severity = 0;
34521 int deny_severity = 0;
34523 struct request_info *req;
34535 rm -f conftest.$ac_objext conftest$ac_exeext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34537 (eval $ac_link) 2>conftest.er1
34539 grep -v '^ *+' conftest.er1 >conftest.err
34541 cat conftest.err >&5
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); } &&
34544 { ac_try='test -z "$ac_c_werror_flag"
34545 || test ! -s conftest.err'
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest$ac_exeext'
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 echo "$as_me:$LINENO: result: -lwrap" >&5
34558 echo "${ECHO_T}-lwrap" >&6
34562 echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.$ac_ext >&5
34567 cat >conftest.$ac_ext <<_ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34575 int allow_severity = 0;
34576 int deny_severity = 0;
34578 struct request_info *req;
34590 rm -f conftest.$ac_objext conftest$ac_exeext
34591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34592 (eval $ac_link) 2>conftest.er1
34594 grep -v '^ *+' conftest.er1 >conftest.err
34596 cat conftest.err >&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } &&
34599 { ac_try='test -z "$ac_c_werror_flag"
34600 || test ! -s conftest.err'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; } &&
34606 { ac_try='test -s conftest$ac_exeext'
34607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34608 (eval $ac_try) 2>&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); }; }; then
34612 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34613 echo "${ECHO_T}-lwrap -lnsl" >&6
34615 LIBS="$save_LIBS -lnsl"
34617 echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34621 echo "$as_me:$LINENO: result: no" >&5
34622 echo "${ECHO_T}no" >&6
34626 rm -f conftest.err conftest.$ac_objext \
34627 conftest$ac_exeext conftest.$ac_ext
34629 rm -f conftest.err conftest.$ac_objext \
34630 conftest$ac_exeext conftest.$ac_ext
34638 if test $have_wrappers = yes ; then
34640 cat >>confdefs.h <<\_ACEOF
34641 #define HAVE_TCPD 1
34645 elif test $ol_enable_wrappers = yes ; then
34646 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34647 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34648 { (exit 1); exit 1; }; }
34650 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34651 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34656 if test $ol_enable_syslog != no ; then
34657 echo "$as_me:$LINENO: checking for openlog" >&5
34658 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34659 if test "${ac_cv_func_openlog+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 cat >conftest.$ac_ext <<_ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h. */
34668 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34670 #define openlog innocuous_openlog
34672 /* System header to define __stub macros and hopefully few prototypes,
34673 which can conflict with char openlog (); below.
34674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34675 <limits.h> exists even on freestanding compilers. */
34678 # include <limits.h>
34680 # include <assert.h>
34685 /* Override any gcc2 internal prototype to avoid an error. */
34690 /* We use char because int might match the return type of a gcc2
34691 builtin and then its argument prototype would still apply. */
34693 /* The GNU C library defines this for functions which it implements
34694 to always fail with ENOSYS. Some functions are actually named
34695 something starting with __ and the normal name is an alias. */
34696 #if defined (__stub_openlog) || defined (__stub___openlog)
34699 char (*f) () = openlog;
34708 return f != openlog;
34713 rm -f conftest.$ac_objext conftest$ac_exeext
34714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34715 (eval $ac_link) 2>conftest.er1
34717 grep -v '^ *+' conftest.er1 >conftest.err
34719 cat conftest.err >&5
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); } &&
34722 { ac_try='test -z "$ac_c_werror_flag"
34723 || test ! -s conftest.err'
34724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725 (eval $ac_try) 2>&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; } &&
34729 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34735 ac_cv_func_openlog=yes
34737 echo "$as_me: failed program was:" >&5
34738 sed 's/^/| /' conftest.$ac_ext >&5
34740 ac_cv_func_openlog=no
34742 rm -f conftest.err conftest.$ac_objext \
34743 conftest$ac_exeext conftest.$ac_ext
34745 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34746 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34748 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
34749 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34750 echo "$as_me: error: could not find syslog" >&2;}
34751 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34753 ol_enable_syslog=$ac_cv_func_openlog
34757 if test $ol_enable_sql != no ; then
34760 for ac_header in sql.h sqlext.h
34762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34764 echo "$as_me:$LINENO: checking for $ac_header" >&5
34765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34767 echo $ECHO_N "(cached) $ECHO_C" >&6
34769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34772 # Is the header compilable?
34773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34775 cat >conftest.$ac_ext <<_ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34781 $ac_includes_default
34782 #include <$ac_header>
34784 rm -f conftest.$ac_objext
34785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34786 (eval $ac_compile) 2>conftest.er1
34788 grep -v '^ *+' conftest.er1 >conftest.err
34790 cat conftest.err >&5
34791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792 (exit $ac_status); } &&
34793 { ac_try='test -z "$ac_c_werror_flag"
34794 || test ! -s conftest.err'
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; } &&
34800 { ac_try='test -s conftest.$ac_objext'
34801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802 (eval $ac_try) 2>&5
34804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805 (exit $ac_status); }; }; then
34806 ac_header_compiler=yes
34808 echo "$as_me: failed program was:" >&5
34809 sed 's/^/| /' conftest.$ac_ext >&5
34811 ac_header_compiler=no
34813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34815 echo "${ECHO_T}$ac_header_compiler" >&6
34817 # Is the header present?
34818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34820 cat >conftest.$ac_ext <<_ACEOF
34823 cat confdefs.h >>conftest.$ac_ext
34824 cat >>conftest.$ac_ext <<_ACEOF
34825 /* end confdefs.h. */
34826 #include <$ac_header>
34828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34831 grep -v '^ *+' conftest.er1 >conftest.err
34833 cat conftest.err >&5
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); } >/dev/null; then
34836 if test -s conftest.err; then
34837 ac_cpp_err=$ac_c_preproc_warn_flag
34838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34845 if test -z "$ac_cpp_err"; then
34846 ac_header_preproc=yes
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34851 ac_header_preproc=no
34853 rm -f conftest.err conftest.$ac_ext
34854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34855 echo "${ECHO_T}$ac_header_preproc" >&6
34857 # So? What about this header?
34858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34864 ac_header_preproc=yes
34867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34881 ## ------------------------------------------ ##
34882 ## Report this to the AC_PACKAGE_NAME lists. ##
34883 ## ------------------------------------------ ##
34886 sed "s/^/$as_me: WARNING: /" >&2
34889 echo "$as_me:$LINENO: checking for $ac_header" >&5
34890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34894 eval "$as_ac_Header=\$ac_header_preproc"
34896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34901 cat >>confdefs.h <<_ACEOF
34902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34907 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34908 echo "$as_me: error: could not locate SQL headers" >&2;}
34909 { (exit 1); exit 1; }; }
34917 LIBS="$LTHREAD_LIBS"
34919 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34920 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34921 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34924 ac_check_lib_save_LIBS=$LIBS
34925 LIBS="-liodbc $LIBS"
34926 cat >conftest.$ac_ext <<_ACEOF
34929 cat confdefs.h >>conftest.$ac_ext
34930 cat >>conftest.$ac_ext <<_ACEOF
34931 /* end confdefs.h. */
34933 /* Override any gcc2 internal prototype to avoid an error. */
34937 /* We use char because int might match the return type of a gcc2
34938 builtin and then its argument prototype would still apply. */
34939 char SQLDriverConnect ();
34943 SQLDriverConnect ();
34948 rm -f conftest.$ac_objext conftest$ac_exeext
34949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34950 (eval $ac_link) 2>conftest.er1
34952 grep -v '^ *+' conftest.er1 >conftest.err
34954 cat conftest.err >&5
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); } &&
34957 { ac_try='test -z "$ac_c_werror_flag"
34958 || test ! -s conftest.err'
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; } &&
34964 { ac_try='test -s conftest$ac_exeext'
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 ac_cv_lib_iodbc_SQLDriverConnect=yes
34972 echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34975 ac_cv_lib_iodbc_SQLDriverConnect=no
34977 rm -f conftest.err conftest.$ac_objext \
34978 conftest$ac_exeext conftest.$ac_ext
34979 LIBS=$ac_check_lib_save_LIBS
34981 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34982 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34983 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34989 if test $have_iodbc = yes ; then
34990 ol_link_sql="-liodbc"
34992 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34993 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34994 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
34997 ac_check_lib_save_LIBS=$LIBS
34998 LIBS="-lodbc $LIBS"
34999 cat >conftest.$ac_ext <<_ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h. */
35006 /* Override any gcc2 internal prototype to avoid an error. */
35010 /* We use char because int might match the return type of a gcc2
35011 builtin and then its argument prototype would still apply. */
35012 char SQLDriverConnect ();
35016 SQLDriverConnect ();
35021 rm -f conftest.$ac_objext conftest$ac_exeext
35022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35023 (eval $ac_link) 2>conftest.er1
35025 grep -v '^ *+' conftest.er1 >conftest.err
35027 cat conftest.err >&5
35028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029 (exit $ac_status); } &&
35030 { ac_try='test -z "$ac_c_werror_flag"
35031 || test ! -s conftest.err'
35032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 (eval $ac_try) 2>&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest$ac_exeext'
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; }; then
35043 ac_cv_lib_odbc_SQLDriverConnect=yes
35045 echo "$as_me: failed program was:" >&5
35046 sed 's/^/| /' conftest.$ac_ext >&5
35048 ac_cv_lib_odbc_SQLDriverConnect=no
35050 rm -f conftest.err conftest.$ac_objext \
35051 conftest$ac_exeext conftest.$ac_ext
35052 LIBS=$ac_check_lib_save_LIBS
35054 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35055 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35056 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35062 if test $have_odbc = yes ; then
35063 ol_link_sql="-lodbc"
35069 if test $ol_link_sql != no ; then
35070 SLAPD_SQL_LIBS="$ol_link_sql"
35072 elif test $ol_enable_sql != auto ; then
35073 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35074 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35075 { (exit 1); exit 1; }; }
35082 if test $ol_with_cyrus_sasl != no ; then
35085 for ac_header in sasl/sasl.h sasl.h
35087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35089 echo "$as_me:$LINENO: checking for $ac_header" >&5
35090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35097 # Is the header compilable?
35098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35100 cat >conftest.$ac_ext <<_ACEOF
35103 cat confdefs.h >>conftest.$ac_ext
35104 cat >>conftest.$ac_ext <<_ACEOF
35105 /* end confdefs.h. */
35106 $ac_includes_default
35107 #include <$ac_header>
35109 rm -f conftest.$ac_objext
35110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35111 (eval $ac_compile) 2>conftest.er1
35113 grep -v '^ *+' conftest.er1 >conftest.err
35115 cat conftest.err >&5
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); } &&
35118 { ac_try='test -z "$ac_c_werror_flag"
35119 || test ! -s conftest.err'
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest.$ac_objext'
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 ac_header_compiler=yes
35133 echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35136 ac_header_compiler=no
35138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35140 echo "${ECHO_T}$ac_header_compiler" >&6
35142 # Is the header present?
35143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35145 cat >conftest.$ac_ext <<_ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h. */
35151 #include <$ac_header>
35153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35156 grep -v '^ *+' conftest.er1 >conftest.err
35158 cat conftest.err >&5
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); } >/dev/null; then
35161 if test -s conftest.err; then
35162 ac_cpp_err=$ac_c_preproc_warn_flag
35163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35170 if test -z "$ac_cpp_err"; then
35171 ac_header_preproc=yes
35173 echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35176 ac_header_preproc=no
35178 rm -f conftest.err conftest.$ac_ext
35179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35180 echo "${ECHO_T}$ac_header_preproc" >&6
35182 # So? What about this header?
35183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35189 ac_header_preproc=yes
35192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35206 ## ------------------------------------------ ##
35207 ## Report this to the AC_PACKAGE_NAME lists. ##
35208 ## ------------------------------------------ ##
35211 sed "s/^/$as_me: WARNING: /" >&2
35214 echo "$as_me:$LINENO: checking for $ac_header" >&5
35215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35219 eval "$as_ac_Header=\$ac_header_preproc"
35221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35226 cat >>confdefs.h <<_ACEOF
35227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35235 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
35236 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35237 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35238 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35239 echo $ECHO_N "(cached) $ECHO_C" >&6
35241 ac_check_lib_save_LIBS=$LIBS
35242 LIBS="-lsasl2 $LIBS"
35243 cat >conftest.$ac_ext <<_ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h. */
35250 /* Override any gcc2 internal prototype to avoid an error. */
35254 /* We use char because int might match the return type of a gcc2
35255 builtin and then its argument prototype would still apply. */
35256 char sasl_client_init ();
35260 sasl_client_init ();
35265 rm -f conftest.$ac_objext conftest$ac_exeext
35266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35267 (eval $ac_link) 2>conftest.er1
35269 grep -v '^ *+' conftest.er1 >conftest.err
35271 cat conftest.err >&5
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); } &&
35274 { ac_try='test -z "$ac_c_werror_flag"
35275 || test ! -s conftest.err'
35276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277 (eval $ac_try) 2>&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); }; } &&
35281 { ac_try='test -s conftest$ac_exeext'
35282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 (eval $ac_try) 2>&5
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); }; }; then
35287 ac_cv_lib_sasl2_sasl_client_init=yes
35289 echo "$as_me: failed program was:" >&5
35290 sed 's/^/| /' conftest.$ac_ext >&5
35292 ac_cv_lib_sasl2_sasl_client_init=no
35294 rm -f conftest.err conftest.$ac_objext \
35295 conftest$ac_exeext conftest.$ac_ext
35296 LIBS=$ac_check_lib_save_LIBS
35298 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35299 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35300 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35301 ol_link_sasl="-lsasl2"
35303 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35304 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35305 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35306 echo $ECHO_N "(cached) $ECHO_C" >&6
35308 ac_check_lib_save_LIBS=$LIBS
35309 LIBS="-lsasl $LIBS"
35310 cat >conftest.$ac_ext <<_ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h. */
35317 /* Override any gcc2 internal prototype to avoid an error. */
35321 /* We use char because int might match the return type of a gcc2
35322 builtin and then its argument prototype would still apply. */
35323 char sasl_client_init ();
35327 sasl_client_init ();
35332 rm -f conftest.$ac_objext conftest$ac_exeext
35333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35334 (eval $ac_link) 2>conftest.er1
35336 grep -v '^ *+' conftest.er1 >conftest.err
35338 cat conftest.err >&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); } &&
35341 { ac_try='test -z "$ac_c_werror_flag"
35342 || test ! -s conftest.err'
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; } &&
35348 { ac_try='test -s conftest$ac_exeext'
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; }; then
35354 ac_cv_lib_sasl_sasl_client_init=yes
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35359 ac_cv_lib_sasl_sasl_client_init=no
35361 rm -f conftest.err conftest.$ac_objext \
35362 conftest$ac_exeext conftest.$ac_ext
35363 LIBS=$ac_check_lib_save_LIBS
35365 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35366 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35367 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35368 ol_link_sasl="-lsasl"
35375 if test $ol_link_sasl = no ; then
35376 if test $ol_with_cyrus_sasl != auto ; then
35377 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35378 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35379 { (exit 1); exit 1; }; }
35381 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35382 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35383 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35384 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35385 if test $ol_link_tls = no ; then
35386 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35387 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35391 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35392 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35393 if test "${ol_cv_sasl_compat+set}" = set; then
35394 echo $ECHO_N "(cached) $ECHO_C" >&6
35397 cat >conftest.$ac_ext <<_ACEOF
35400 cat confdefs.h >>conftest.$ac_ext
35401 cat >>conftest.$ac_ext <<_ACEOF
35402 /* end confdefs.h. */
35404 #ifdef HAVE_SASL_SASL_H
35405 #include <sasl/sasl.h>
35410 /* Require 2.1.15+ */
35411 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35412 char *__sasl_compat = "2.2+ or better okay (we guess)";
35413 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35414 && SASL_VERSION_STEP >=15
35415 char *__sasl_compat = "2.1.15+ or better okay";
35419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35420 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35421 ol_cv_sasl_compat=yes
35423 ol_cv_sasl_compat=no
35428 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35429 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35431 if test $ol_cv_sasl_compat = no ; then
35433 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35434 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35435 { (exit 1); exit 1; }; }
35439 cat >>confdefs.h <<\_ACEOF
35440 #define HAVE_CYRUS_SASL 1
35443 SASL_LIBS="$ol_link_sasl"
35444 if test $ol_enable_spasswd != no ; then
35445 ol_link_spasswd=yes
35448 ac_save_LIBS="$LIBS"
35449 LIBS="$LIBS $ol_link_sasl"
35450 echo "$as_me:$LINENO: checking for sasl_version" >&5
35451 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35452 if test "${ac_cv_func_sasl_version+set}" = set; then
35453 echo $ECHO_N "(cached) $ECHO_C" >&6
35455 cat >conftest.$ac_ext <<_ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h. */
35461 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35463 #define sasl_version innocuous_sasl_version
35465 /* System header to define __stub macros and hopefully few prototypes,
35466 which can conflict with char sasl_version (); below.
35467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468 <limits.h> exists even on freestanding compilers. */
35471 # include <limits.h>
35473 # include <assert.h>
35476 #undef sasl_version
35478 /* Override any gcc2 internal prototype to avoid an error. */
35483 /* We use char because int might match the return type of a gcc2
35484 builtin and then its argument prototype would still apply. */
35485 char sasl_version ();
35486 /* The GNU C library defines this for functions which it implements
35487 to always fail with ENOSYS. Some functions are actually named
35488 something starting with __ and the normal name is an alias. */
35489 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35492 char (*f) () = sasl_version;
35501 return f != sasl_version;
35506 rm -f conftest.$ac_objext conftest$ac_exeext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35508 (eval $ac_link) 2>conftest.er1
35510 grep -v '^ *+' conftest.er1 >conftest.err
35512 cat conftest.err >&5
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
35515 { ac_try='test -z "$ac_c_werror_flag"
35516 || test ! -s conftest.err'
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; } &&
35522 { ac_try='test -s conftest$ac_exeext'
35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524 (eval $ac_try) 2>&5
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); }; }; then
35528 ac_cv_func_sasl_version=yes
35530 echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35533 ac_cv_func_sasl_version=no
35535 rm -f conftest.err conftest.$ac_objext \
35536 conftest$ac_exeext conftest.$ac_ext
35538 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35539 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35540 if test $ac_cv_func_sasl_version = yes; then
35542 cat >>confdefs.h <<\_ACEOF
35543 #define HAVE_SASL_VERSION 1
35548 LIBS="$ac_save_LIBS"
35554 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35555 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35556 if test $ol_link_tls = no ; then
35557 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35558 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35562 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
35564 if test -r /dev/urandom ; then
35565 dev="/dev/urandom";
35566 elif test -r /idev/urandom ; then
35567 dev="/idev/urandom";
35568 elif test -r /dev/srandom ; then
35569 dev="/dev/srandom";
35570 elif test -r /dev/random ; then
35572 elif test -r /idev/random ; then
35573 dev="/idev/random";
35576 if test $dev != no ; then
35578 cat >>confdefs.h <<_ACEOF
35579 #define URANDOM_DEVICE "$dev"
35586 if test $ol_with_fetch != no ; then
35588 LIBS="-lfetch -lcom_err $LIBS"
35589 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35590 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35591 if test "${ol_cv_lib_fetch+set}" = set; then
35592 echo $ECHO_N "(cached) $ECHO_C" >&6
35595 cat >conftest.$ac_ext <<_ACEOF
35598 cat confdefs.h >>conftest.$ac_ext
35599 cat >>conftest.$ac_ext <<_ACEOF
35600 /* end confdefs.h. */
35602 #include <sys/param.h>
35608 struct url *u = fetchParseURL("file:///");
35613 rm -f conftest.$ac_objext conftest$ac_exeext
35614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35615 (eval $ac_link) 2>conftest.er1
35617 grep -v '^ *+' conftest.er1 >conftest.err
35619 cat conftest.err >&5
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); } &&
35622 { ac_try='test -z "$ac_c_werror_flag"
35623 || test ! -s conftest.err'
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } &&
35629 { ac_try='test -s conftest$ac_exeext'
35630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35631 (eval $ac_try) 2>&5
35633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634 (exit $ac_status); }; }; then
35635 ol_cv_lib_fetch=yes
35637 echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35642 rm -f conftest.err conftest.$ac_objext \
35643 conftest$ac_exeext conftest.$ac_ext
35645 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35646 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35648 if test $ol_cv_lib_fetch != no ; then
35649 ol_link_fetch="-lfetch -lcom_err"
35651 cat >>confdefs.h <<\_ACEOF
35652 #define HAVE_FETCH 1
35658 if test $ol_cv_lib_fetch != no ; then
35659 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35660 ol_link_fetch=freebsd
35662 elif test $ol_with_fetch != auto ; then
35663 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35664 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35665 { (exit 1); exit 1; }; }
35669 if test $ol_enable_crypt != no ; then
35671 LIBS="$TLS_LIBS $LIBS"
35673 echo "$as_me:$LINENO: checking for crypt" >&5
35674 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35675 if test "${ac_cv_func_crypt+set}" = set; then
35676 echo $ECHO_N "(cached) $ECHO_C" >&6
35678 cat >conftest.$ac_ext <<_ACEOF
35681 cat confdefs.h >>conftest.$ac_ext
35682 cat >>conftest.$ac_ext <<_ACEOF
35683 /* end confdefs.h. */
35684 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35686 #define crypt innocuous_crypt
35688 /* System header to define __stub macros and hopefully few prototypes,
35689 which can conflict with char crypt (); below.
35690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35691 <limits.h> exists even on freestanding compilers. */
35694 # include <limits.h>
35696 # include <assert.h>
35701 /* Override any gcc2 internal prototype to avoid an error. */
35706 /* We use char because int might match the return type of a gcc2
35707 builtin and then its argument prototype would still apply. */
35709 /* The GNU C library defines this for functions which it implements
35710 to always fail with ENOSYS. Some functions are actually named
35711 something starting with __ and the normal name is an alias. */
35712 #if defined (__stub_crypt) || defined (__stub___crypt)
35715 char (*f) () = crypt;
35729 rm -f conftest.$ac_objext conftest$ac_exeext
35730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35731 (eval $ac_link) 2>conftest.er1
35733 grep -v '^ *+' conftest.er1 >conftest.err
35735 cat conftest.err >&5
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); } &&
35738 { ac_try='test -z "$ac_c_werror_flag"
35739 || test ! -s conftest.err'
35740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741 (eval $ac_try) 2>&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); }; } &&
35745 { ac_try='test -s conftest$ac_exeext'
35746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747 (eval $ac_try) 2>&5
35749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750 (exit $ac_status); }; }; then
35751 ac_cv_func_crypt=yes
35753 echo "$as_me: failed program was:" >&5
35754 sed 's/^/| /' conftest.$ac_ext >&5
35756 ac_cv_func_crypt=no
35758 rm -f conftest.err conftest.$ac_objext \
35759 conftest$ac_exeext conftest.$ac_ext
35761 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35762 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35763 if test $ac_cv_func_crypt = yes; then
35768 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35769 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35770 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35771 echo $ECHO_N "(cached) $ECHO_C" >&6
35773 ac_check_lib_save_LIBS=$LIBS
35774 LIBS="-lcrypt $LIBS"
35775 cat >conftest.$ac_ext <<_ACEOF
35778 cat confdefs.h >>conftest.$ac_ext
35779 cat >>conftest.$ac_ext <<_ACEOF
35780 /* end confdefs.h. */
35782 /* Override any gcc2 internal prototype to avoid an error. */
35786 /* We use char because int might match the return type of a gcc2
35787 builtin and then its argument prototype would still apply. */
35797 rm -f conftest.$ac_objext conftest$ac_exeext
35798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35799 (eval $ac_link) 2>conftest.er1
35801 grep -v '^ *+' conftest.er1 >conftest.err
35803 cat conftest.err >&5
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); } &&
35806 { ac_try='test -z "$ac_c_werror_flag"
35807 || test ! -s conftest.err'
35808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809 (eval $ac_try) 2>&5
35811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812 (exit $ac_status); }; } &&
35813 { ac_try='test -s conftest$ac_exeext'
35814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35815 (eval $ac_try) 2>&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); }; }; then
35819 ac_cv_lib_crypt_crypt=yes
35821 echo "$as_me: failed program was:" >&5
35822 sed 's/^/| /' conftest.$ac_ext >&5
35824 ac_cv_lib_crypt_crypt=no
35826 rm -f conftest.err conftest.$ac_objext \
35827 conftest$ac_exeext conftest.$ac_ext
35828 LIBS=$ac_check_lib_save_LIBS
35830 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35831 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35832 if test $ac_cv_lib_crypt_crypt = yes; then
35833 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35844 if test $have_crypt = yes ; then
35846 cat >>confdefs.h <<\_ACEOF
35847 #define HAVE_CRYPT 1
35851 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35852 echo "$as_me: WARNING: could not find crypt" >&2;}
35853 if test $ol_enable_crypt = yes ; then
35854 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35855 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35856 { (exit 1); exit 1; }; }
35859 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35860 echo "$as_me: WARNING: disabling crypt support" >&2;}
35865 if test $ol_enable_proctitle != no ; then
35866 echo "$as_me:$LINENO: checking for setproctitle" >&5
35867 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35868 if test "${ac_cv_func_setproctitle+set}" = set; then
35869 echo $ECHO_N "(cached) $ECHO_C" >&6
35871 cat >conftest.$ac_ext <<_ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h. */
35877 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35879 #define setproctitle innocuous_setproctitle
35881 /* System header to define __stub macros and hopefully few prototypes,
35882 which can conflict with char setproctitle (); below.
35883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35884 <limits.h> exists even on freestanding compilers. */
35887 # include <limits.h>
35889 # include <assert.h>
35892 #undef setproctitle
35894 /* Override any gcc2 internal prototype to avoid an error. */
35899 /* We use char because int might match the return type of a gcc2
35900 builtin and then its argument prototype would still apply. */
35901 char setproctitle ();
35902 /* The GNU C library defines this for functions which it implements
35903 to always fail with ENOSYS. Some functions are actually named
35904 something starting with __ and the normal name is an alias. */
35905 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35908 char (*f) () = setproctitle;
35917 return f != setproctitle;
35922 rm -f conftest.$ac_objext conftest$ac_exeext
35923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35924 (eval $ac_link) 2>conftest.er1
35926 grep -v '^ *+' conftest.er1 >conftest.err
35928 cat conftest.err >&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } &&
35931 { ac_try='test -z "$ac_c_werror_flag"
35932 || test ! -s conftest.err'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; } &&
35938 { ac_try='test -s conftest$ac_exeext'
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; }; then
35944 ac_cv_func_setproctitle=yes
35946 echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35949 ac_cv_func_setproctitle=no
35951 rm -f conftest.err conftest.$ac_objext \
35952 conftest$ac_exeext conftest.$ac_ext
35954 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35955 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35956 if test $ac_cv_func_setproctitle = yes; then
35957 have_setproctitle=yes
35960 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35961 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35962 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35963 echo $ECHO_N "(cached) $ECHO_C" >&6
35965 ac_check_lib_save_LIBS=$LIBS
35966 LIBS="-lutil $LIBS"
35967 cat >conftest.$ac_ext <<_ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h. */
35974 /* Override any gcc2 internal prototype to avoid an error. */
35978 /* We use char because int might match the return type of a gcc2
35979 builtin and then its argument prototype would still apply. */
35980 char setproctitle ();
35989 rm -f conftest.$ac_objext conftest$ac_exeext
35990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35991 (eval $ac_link) 2>conftest.er1
35993 grep -v '^ *+' conftest.er1 >conftest.err
35995 cat conftest.err >&5
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); } &&
35998 { ac_try='test -z "$ac_c_werror_flag"
35999 || test ! -s conftest.err'
36000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36001 (eval $ac_try) 2>&5
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); }; } &&
36005 { ac_try='test -s conftest$ac_exeext'
36006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007 (eval $ac_try) 2>&5
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); }; }; then
36011 ac_cv_lib_util_setproctitle=yes
36013 echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36016 ac_cv_lib_util_setproctitle=no
36018 rm -f conftest.err conftest.$ac_objext \
36019 conftest$ac_exeext conftest.$ac_ext
36020 LIBS=$ac_check_lib_save_LIBS
36022 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36023 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36024 if test $ac_cv_lib_util_setproctitle = yes; then
36025 have_setproctitle=yes
36026 LUTIL_LIBS="$LUTIL_LIBS -lutil"
36028 have_setproctitle=no
36030 "setproctitle.$ac_objext" | \
36031 *" setproctitle.$ac_objext" | \
36032 "setproctitle.$ac_objext "* | \
36033 *" setproctitle.$ac_objext "* ) ;;
36034 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36037 LIBSRCS="$LIBSRCS setproctitle.c"
36043 if test $have_setproctitle = yes ; then
36045 cat >>confdefs.h <<\_ACEOF
36046 #define HAVE_SETPROCTITLE 1
36052 if test $ol_enable_slp != no ; then
36054 for ac_header in slp.h
36056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36058 echo "$as_me:$LINENO: checking for $ac_header" >&5
36059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36061 echo $ECHO_N "(cached) $ECHO_C" >&6
36063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36066 # Is the header compilable?
36067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36069 cat >conftest.$ac_ext <<_ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h. */
36075 $ac_includes_default
36076 #include <$ac_header>
36078 rm -f conftest.$ac_objext
36079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36080 (eval $ac_compile) 2>conftest.er1
36082 grep -v '^ *+' conftest.er1 >conftest.err
36084 cat conftest.err >&5
36085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); } &&
36087 { ac_try='test -z "$ac_c_werror_flag"
36088 || test ! -s conftest.err'
36089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090 (eval $ac_try) 2>&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); }; } &&
36094 { ac_try='test -s conftest.$ac_objext'
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; }; then
36100 ac_header_compiler=yes
36102 echo "$as_me: failed program was:" >&5
36103 sed 's/^/| /' conftest.$ac_ext >&5
36105 ac_header_compiler=no
36107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36109 echo "${ECHO_T}$ac_header_compiler" >&6
36111 # Is the header present?
36112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36114 cat >conftest.$ac_ext <<_ACEOF
36117 cat confdefs.h >>conftest.$ac_ext
36118 cat >>conftest.$ac_ext <<_ACEOF
36119 /* end confdefs.h. */
36120 #include <$ac_header>
36122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36125 grep -v '^ *+' conftest.er1 >conftest.err
36127 cat conftest.err >&5
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); } >/dev/null; then
36130 if test -s conftest.err; then
36131 ac_cpp_err=$ac_c_preproc_warn_flag
36132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36139 if test -z "$ac_cpp_err"; then
36140 ac_header_preproc=yes
36142 echo "$as_me: failed program was:" >&5
36143 sed 's/^/| /' conftest.$ac_ext >&5
36145 ac_header_preproc=no
36147 rm -f conftest.err conftest.$ac_ext
36148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36149 echo "${ECHO_T}$ac_header_preproc" >&6
36151 # So? What about this header?
36152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36158 ac_header_preproc=yes
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36175 ## ------------------------------------------ ##
36176 ## Report this to the AC_PACKAGE_NAME lists. ##
36177 ## ------------------------------------------ ##
36180 sed "s/^/$as_me: WARNING: /" >&2
36183 echo "$as_me:$LINENO: checking for $ac_header" >&5
36184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36186 echo $ECHO_N "(cached) $ECHO_C" >&6
36188 eval "$as_ac_Header=\$ac_header_preproc"
36190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36195 cat >>confdefs.h <<_ACEOF
36196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36204 if test $ac_cv_header_slp_h = yes ; then
36205 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36206 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36207 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36208 echo $ECHO_N "(cached) $ECHO_C" >&6
36210 ac_check_lib_save_LIBS=$LIBS
36212 cat >conftest.$ac_ext <<_ACEOF
36215 cat confdefs.h >>conftest.$ac_ext
36216 cat >>conftest.$ac_ext <<_ACEOF
36217 /* end confdefs.h. */
36219 /* Override any gcc2 internal prototype to avoid an error. */
36223 /* We use char because int might match the return type of a gcc2
36224 builtin and then its argument prototype would still apply. */
36234 rm -f conftest.$ac_objext conftest$ac_exeext
36235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36236 (eval $ac_link) 2>conftest.er1
36238 grep -v '^ *+' conftest.er1 >conftest.err
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } &&
36243 { ac_try='test -z "$ac_c_werror_flag"
36244 || test ! -s conftest.err'
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; } &&
36250 { ac_try='test -s conftest$ac_exeext'
36251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252 (eval $ac_try) 2>&5
36254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255 (exit $ac_status); }; }; then
36256 ac_cv_lib_slp_SLPOpen=yes
36258 echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36261 ac_cv_lib_slp_SLPOpen=no
36263 rm -f conftest.err conftest.$ac_objext \
36264 conftest$ac_exeext conftest.$ac_ext
36265 LIBS=$ac_check_lib_save_LIBS
36267 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36268 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36269 if test $ac_cv_lib_slp_SLPOpen = yes; then
36275 if test $have_slp = yes ; then
36277 cat >>confdefs.h <<\_ACEOF
36281 SLAPD_SLP_LIBS=-lslp
36284 elif test $ol_enable_slp = yes ; then
36285 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36286 echo "$as_me: error: SLP not found" >&2;}
36287 { (exit 1); exit 1; }; }
36291 if test "$ol_with_multiple_precision" != "no" ; then
36297 for ac_header in openssl/bn.h bn.h
36299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36301 echo "$as_me:$LINENO: checking for $ac_header" >&5
36302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36304 echo $ECHO_N "(cached) $ECHO_C" >&6
36306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36309 # Is the header compilable?
36310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36312 cat >conftest.$ac_ext <<_ACEOF
36315 cat confdefs.h >>conftest.$ac_ext
36316 cat >>conftest.$ac_ext <<_ACEOF
36317 /* end confdefs.h. */
36318 $ac_includes_default
36319 #include <$ac_header>
36321 rm -f conftest.$ac_objext
36322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36323 (eval $ac_compile) 2>conftest.er1
36325 grep -v '^ *+' conftest.er1 >conftest.err
36327 cat conftest.err >&5
36328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); } &&
36330 { ac_try='test -z "$ac_c_werror_flag"
36331 || test ! -s conftest.err'
36332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36333 (eval $ac_try) 2>&5
36335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336 (exit $ac_status); }; } &&
36337 { ac_try='test -s conftest.$ac_objext'
36338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36339 (eval $ac_try) 2>&5
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); }; }; then
36343 ac_header_compiler=yes
36345 echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36348 ac_header_compiler=no
36350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36352 echo "${ECHO_T}$ac_header_compiler" >&6
36354 # Is the header present?
36355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36357 cat >conftest.$ac_ext <<_ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h. */
36363 #include <$ac_header>
36365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36368 grep -v '^ *+' conftest.er1 >conftest.err
36370 cat conftest.err >&5
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); } >/dev/null; then
36373 if test -s conftest.err; then
36374 ac_cpp_err=$ac_c_preproc_warn_flag
36375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36382 if test -z "$ac_cpp_err"; then
36383 ac_header_preproc=yes
36385 echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36388 ac_header_preproc=no
36390 rm -f conftest.err conftest.$ac_ext
36391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36392 echo "${ECHO_T}$ac_header_preproc" >&6
36394 # So? What about this header?
36395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36401 ac_header_preproc=yes
36404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36418 ## ------------------------------------------ ##
36419 ## Report this to the AC_PACKAGE_NAME lists. ##
36420 ## ------------------------------------------ ##
36423 sed "s/^/$as_me: WARNING: /" >&2
36426 echo "$as_me:$LINENO: checking for $ac_header" >&5
36427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36429 echo $ECHO_N "(cached) $ECHO_C" >&6
36431 eval "$as_ac_Header=\$ac_header_preproc"
36433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36438 cat >>confdefs.h <<_ACEOF
36439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36448 for ac_header in openssl/crypto.h crypto.h
36450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36452 echo "$as_me:$LINENO: checking for $ac_header" >&5
36453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36455 echo $ECHO_N "(cached) $ECHO_C" >&6
36457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36460 # Is the header compilable?
36461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36463 cat >conftest.$ac_ext <<_ACEOF
36466 cat confdefs.h >>conftest.$ac_ext
36467 cat >>conftest.$ac_ext <<_ACEOF
36468 /* end confdefs.h. */
36469 $ac_includes_default
36470 #include <$ac_header>
36472 rm -f conftest.$ac_objext
36473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36474 (eval $ac_compile) 2>conftest.er1
36476 grep -v '^ *+' conftest.er1 >conftest.err
36478 cat conftest.err >&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); } &&
36481 { ac_try='test -z "$ac_c_werror_flag"
36482 || test ! -s conftest.err'
36483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36484 (eval $ac_try) 2>&5
36486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); }; } &&
36488 { ac_try='test -s conftest.$ac_objext'
36489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36490 (eval $ac_try) 2>&5
36492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493 (exit $ac_status); }; }; then
36494 ac_header_compiler=yes
36496 echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36499 ac_header_compiler=no
36501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36503 echo "${ECHO_T}$ac_header_compiler" >&6
36505 # Is the header present?
36506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36508 cat >conftest.$ac_ext <<_ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36514 #include <$ac_header>
36516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36519 grep -v '^ *+' conftest.er1 >conftest.err
36521 cat conftest.err >&5
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); } >/dev/null; then
36524 if test -s conftest.err; then
36525 ac_cpp_err=$ac_c_preproc_warn_flag
36526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36533 if test -z "$ac_cpp_err"; then
36534 ac_header_preproc=yes
36536 echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36539 ac_header_preproc=no
36541 rm -f conftest.err conftest.$ac_ext
36542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36543 echo "${ECHO_T}$ac_header_preproc" >&6
36545 # So? What about this header?
36546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36552 ac_header_preproc=yes
36555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36569 ## ------------------------------------------ ##
36570 ## Report this to the AC_PACKAGE_NAME lists. ##
36571 ## ------------------------------------------ ##
36574 sed "s/^/$as_me: WARNING: /" >&2
36577 echo "$as_me:$LINENO: checking for $ac_header" >&5
36578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36580 echo $ECHO_N "(cached) $ECHO_C" >&6
36582 eval "$as_ac_Header=\$ac_header_preproc"
36584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36589 cat >>confdefs.h <<_ACEOF
36590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36598 for ac_header in gmp.h
36600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36602 echo "$as_me:$LINENO: checking for $ac_header" >&5
36603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36605 echo $ECHO_N "(cached) $ECHO_C" >&6
36607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36610 # Is the header compilable?
36611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36613 cat >conftest.$ac_ext <<_ACEOF
36616 cat confdefs.h >>conftest.$ac_ext
36617 cat >>conftest.$ac_ext <<_ACEOF
36618 /* end confdefs.h. */
36619 $ac_includes_default
36620 #include <$ac_header>
36622 rm -f conftest.$ac_objext
36623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36624 (eval $ac_compile) 2>conftest.er1
36626 grep -v '^ *+' conftest.er1 >conftest.err
36628 cat conftest.err >&5
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); } &&
36631 { ac_try='test -z "$ac_c_werror_flag"
36632 || test ! -s conftest.err'
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; } &&
36638 { ac_try='test -s conftest.$ac_objext'
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; }; then
36644 ac_header_compiler=yes
36646 echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36649 ac_header_compiler=no
36651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36653 echo "${ECHO_T}$ac_header_compiler" >&6
36655 # Is the header present?
36656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36658 cat >conftest.$ac_ext <<_ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h. */
36664 #include <$ac_header>
36666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36669 grep -v '^ *+' conftest.er1 >conftest.err
36671 cat conftest.err >&5
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); } >/dev/null; then
36674 if test -s conftest.err; then
36675 ac_cpp_err=$ac_c_preproc_warn_flag
36676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36683 if test -z "$ac_cpp_err"; then
36684 ac_header_preproc=yes
36686 echo "$as_me: failed program was:" >&5
36687 sed 's/^/| /' conftest.$ac_ext >&5
36689 ac_header_preproc=no
36691 rm -f conftest.err conftest.$ac_ext
36692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36693 echo "${ECHO_T}$ac_header_preproc" >&6
36695 # So? What about this header?
36696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36702 ac_header_preproc=yes
36705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36719 ## ------------------------------------------ ##
36720 ## Report this to the AC_PACKAGE_NAME lists. ##
36721 ## ------------------------------------------ ##
36724 sed "s/^/$as_me: WARNING: /" >&2
36727 echo "$as_me:$LINENO: checking for $ac_header" >&5
36728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36730 echo $ECHO_N "(cached) $ECHO_C" >&6
36732 eval "$as_ac_Header=\$ac_header_preproc"
36734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36739 cat >>confdefs.h <<_ACEOF
36740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36748 if test "$ol_with_tls" = "found" ; then
36750 ol_have_crypto_h=no
36752 if test "$ac_cv_header_openssl_bn_h" = "yes" \
36753 -o "$ac_cv_header_bn_h" = "yes" ; then
36757 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
36758 -o "$ac_cv_header_crypto_h" = "yes" ; then
36759 ol_have_crypto_h=yes
36762 if test "$ol_have_bn_h" = "yes" \
36763 -a "$ol_have_crypto_h" = "yes" ; then
36768 if test $ac_cv_header_gmp_h = yes ; then
36769 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36770 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36771 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36772 echo $ECHO_N "(cached) $ECHO_C" >&6
36774 ac_check_lib_save_LIBS=$LIBS
36776 cat >conftest.$ac_ext <<_ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h. */
36783 /* Override any gcc2 internal prototype to avoid an error. */
36787 /* We use char because int might match the return type of a gcc2
36788 builtin and then its argument prototype would still apply. */
36789 char __gmpz_add_ui ();
36798 rm -f conftest.$ac_objext conftest$ac_exeext
36799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36800 (eval $ac_link) 2>conftest.er1
36802 grep -v '^ *+' conftest.er1 >conftest.err
36804 cat conftest.err >&5
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); } &&
36807 { ac_try='test -z "$ac_c_werror_flag"
36808 || test ! -s conftest.err'
36809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36810 (eval $ac_try) 2>&5
36812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813 (exit $ac_status); }; } &&
36814 { ac_try='test -s conftest$ac_exeext'
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; }; then
36820 ac_cv_lib_gmp___gmpz_add_ui=yes
36822 echo "$as_me: failed program was:" >&5
36823 sed 's/^/| /' conftest.$ac_ext >&5
36825 ac_cv_lib_gmp___gmpz_add_ui=no
36827 rm -f conftest.err conftest.$ac_objext \
36828 conftest$ac_exeext conftest.$ac_ext
36829 LIBS=$ac_check_lib_save_LIBS
36831 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36832 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36833 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36839 if test $have_gmp = yes ; then
36844 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36845 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36847 ol_mp_support="none"
36848 case "$ol_with_multiple_precision" in
36850 if test "$ol_have_bignum" = "yes" ; then
36851 ol_mp_support="bignum"
36853 if test "$ol_have_gmp" = "yes" ; then
36854 ol_mp_support="gmp"
36859 if test "$ol_have_bignum" != "yes" ; then
36860 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36861 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36862 { (exit 1); exit 1; }; }
36864 ol_mp_support="bignum"
36867 if test "$ol_have_gmp" != "yes" ; then
36868 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36869 echo "$as_me: error: GMP not available" >&2;}
36870 { (exit 1); exit 1; }; }
36872 ol_mp_support="gmp"
36875 if test "$ol_have_bignum" = "yes" ; then
36876 ol_mp_support="bignum"
36877 elif test "$ol_have_gmp" = "yes" ; then
36878 ol_mp_support="gmp"
36880 { { echo "$as_me:$LINENO: error: not available" >&5
36881 echo "$as_me: error: not available" >&2;}
36882 { (exit 1); exit 1; }; }
36887 case "$ol_mp_support" in
36890 cat >>confdefs.h <<\_ACEOF
36891 #define HAVE_BIGNUM 1
36897 cat >>confdefs.h <<\_ACEOF
36901 SLAPD_GMP_LIBS=-lgmp
36907 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36908 echo "${ECHO_T}$ol_mp_support" >&6
36912 echo "$as_me:$LINENO: checking for mode_t" >&5
36913 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36914 if test "${ac_cv_type_mode_t+set}" = set; then
36915 echo $ECHO_N "(cached) $ECHO_C" >&6
36917 cat >conftest.$ac_ext <<_ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36923 $ac_includes_default
36929 if (sizeof (mode_t))
36935 rm -f conftest.$ac_objext
36936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36937 (eval $ac_compile) 2>conftest.er1
36939 grep -v '^ *+' conftest.er1 >conftest.err
36941 cat conftest.err >&5
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } &&
36944 { ac_try='test -z "$ac_c_werror_flag"
36945 || test ! -s conftest.err'
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; } &&
36951 { ac_try='test -s conftest.$ac_objext'
36952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36953 (eval $ac_try) 2>&5
36955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956 (exit $ac_status); }; }; then
36957 ac_cv_type_mode_t=yes
36959 echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36962 ac_cv_type_mode_t=no
36964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36966 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36967 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36968 if test $ac_cv_type_mode_t = yes; then
36972 cat >>confdefs.h <<_ACEOF
36978 echo "$as_me:$LINENO: checking for off_t" >&5
36979 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36980 if test "${ac_cv_type_off_t+set}" = set; then
36981 echo $ECHO_N "(cached) $ECHO_C" >&6
36983 cat >conftest.$ac_ext <<_ACEOF
36986 cat confdefs.h >>conftest.$ac_ext
36987 cat >>conftest.$ac_ext <<_ACEOF
36988 /* end confdefs.h. */
36989 $ac_includes_default
36995 if (sizeof (off_t))
37001 rm -f conftest.$ac_objext
37002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37003 (eval $ac_compile) 2>conftest.er1
37005 grep -v '^ *+' conftest.er1 >conftest.err
37007 cat conftest.err >&5
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); } &&
37010 { ac_try='test -z "$ac_c_werror_flag"
37011 || test ! -s conftest.err'
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; } &&
37017 { ac_try='test -s conftest.$ac_objext'
37018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37019 (eval $ac_try) 2>&5
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); }; }; then
37023 ac_cv_type_off_t=yes
37025 echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37028 ac_cv_type_off_t=no
37030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37032 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37033 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37034 if test $ac_cv_type_off_t = yes; then
37038 cat >>confdefs.h <<_ACEOF
37044 echo "$as_me:$LINENO: checking for pid_t" >&5
37045 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37046 if test "${ac_cv_type_pid_t+set}" = set; then
37047 echo $ECHO_N "(cached) $ECHO_C" >&6
37049 cat >conftest.$ac_ext <<_ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h. */
37055 $ac_includes_default
37061 if (sizeof (pid_t))
37067 rm -f conftest.$ac_objext
37068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37069 (eval $ac_compile) 2>conftest.er1
37071 grep -v '^ *+' conftest.er1 >conftest.err
37073 cat conftest.err >&5
37074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075 (exit $ac_status); } &&
37076 { ac_try='test -z "$ac_c_werror_flag"
37077 || test ! -s conftest.err'
37078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37079 (eval $ac_try) 2>&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); }; } &&
37083 { ac_try='test -s conftest.$ac_objext'
37084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37085 (eval $ac_try) 2>&5
37087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088 (exit $ac_status); }; }; then
37089 ac_cv_type_pid_t=yes
37091 echo "$as_me: failed program was:" >&5
37092 sed 's/^/| /' conftest.$ac_ext >&5
37094 ac_cv_type_pid_t=no
37096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37098 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37099 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37100 if test $ac_cv_type_pid_t = yes; then
37104 cat >>confdefs.h <<_ACEOF
37110 echo "$as_me:$LINENO: checking for ssize_t" >&5
37111 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37112 if test "${ac_cv_type_ssize_t+set}" = set; then
37113 echo $ECHO_N "(cached) $ECHO_C" >&6
37115 cat >conftest.$ac_ext <<_ACEOF
37118 cat confdefs.h >>conftest.$ac_ext
37119 cat >>conftest.$ac_ext <<_ACEOF
37120 /* end confdefs.h. */
37121 $ac_includes_default
37127 if (sizeof (ssize_t))
37133 rm -f conftest.$ac_objext
37134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37135 (eval $ac_compile) 2>conftest.er1
37137 grep -v '^ *+' conftest.er1 >conftest.err
37139 cat conftest.err >&5
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); } &&
37142 { ac_try='test -z "$ac_c_werror_flag"
37143 || test ! -s conftest.err'
37144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37145 (eval $ac_try) 2>&5
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); }; } &&
37149 { ac_try='test -s conftest.$ac_objext'
37150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37151 (eval $ac_try) 2>&5
37153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154 (exit $ac_status); }; }; then
37155 ac_cv_type_ssize_t=yes
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37160 ac_cv_type_ssize_t=no
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37164 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37165 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37166 if test $ac_cv_type_ssize_t = yes; then
37170 cat >>confdefs.h <<_ACEOF
37171 #define ssize_t signed int
37176 echo "$as_me:$LINENO: checking for caddr_t" >&5
37177 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37178 if test "${ac_cv_type_caddr_t+set}" = set; then
37179 echo $ECHO_N "(cached) $ECHO_C" >&6
37181 cat >conftest.$ac_ext <<_ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h. */
37187 $ac_includes_default
37193 if (sizeof (caddr_t))
37199 rm -f conftest.$ac_objext
37200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37201 (eval $ac_compile) 2>conftest.er1
37203 grep -v '^ *+' conftest.er1 >conftest.err
37205 cat conftest.err >&5
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); } &&
37208 { ac_try='test -z "$ac_c_werror_flag"
37209 || test ! -s conftest.err'
37210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37211 (eval $ac_try) 2>&5
37213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); }; } &&
37215 { ac_try='test -s conftest.$ac_objext'
37216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37217 (eval $ac_try) 2>&5
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); }; }; then
37221 ac_cv_type_caddr_t=yes
37223 echo "$as_me: failed program was:" >&5
37224 sed 's/^/| /' conftest.$ac_ext >&5
37226 ac_cv_type_caddr_t=no
37228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37230 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37231 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37232 if test $ac_cv_type_caddr_t = yes; then
37236 cat >>confdefs.h <<_ACEOF
37237 #define caddr_t char *
37242 echo "$as_me:$LINENO: checking for size_t" >&5
37243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37244 if test "${ac_cv_type_size_t+set}" = set; then
37245 echo $ECHO_N "(cached) $ECHO_C" >&6
37247 cat >conftest.$ac_ext <<_ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h. */
37253 $ac_includes_default
37259 if (sizeof (size_t))
37265 rm -f conftest.$ac_objext
37266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37267 (eval $ac_compile) 2>conftest.er1
37269 grep -v '^ *+' conftest.er1 >conftest.err
37271 cat conftest.err >&5
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); } &&
37274 { ac_try='test -z "$ac_c_werror_flag"
37275 || test ! -s conftest.err'
37276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277 (eval $ac_try) 2>&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); }; } &&
37281 { ac_try='test -s conftest.$ac_objext'
37282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283 (eval $ac_try) 2>&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); }; }; then
37287 ac_cv_type_size_t=yes
37289 echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37292 ac_cv_type_size_t=no
37294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37296 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37297 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37298 if test $ac_cv_type_size_t = yes; then
37302 cat >>confdefs.h <<_ACEOF
37303 #define size_t unsigned
37309 echo "$as_me:$LINENO: checking for long long" >&5
37310 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37311 if test "${ac_cv_type_long_long+set}" = set; then
37312 echo $ECHO_N "(cached) $ECHO_C" >&6
37314 cat >conftest.$ac_ext <<_ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h. */
37320 $ac_includes_default
37324 if ((long long *) 0)
37326 if (sizeof (long long))
37332 rm -f conftest.$ac_objext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37334 (eval $ac_compile) 2>conftest.er1
37336 grep -v '^ *+' conftest.er1 >conftest.err
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
37341 { ac_try='test -z "$ac_c_werror_flag"
37342 || test ! -s conftest.err'
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest.$ac_objext'
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 ac_cv_type_long_long=yes
37356 echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37359 ac_cv_type_long_long=no
37361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37363 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37364 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37365 if test $ac_cv_type_long_long = yes; then
37367 cat >>confdefs.h <<_ACEOF
37368 #define HAVE_LONG_LONG 1
37374 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37375 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37376 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37379 cat >conftest.$ac_ext <<_ACEOF
37382 cat confdefs.h >>conftest.$ac_ext
37383 cat >>conftest.$ac_ext <<_ACEOF
37384 /* end confdefs.h. */
37385 $ac_includes_default
37389 if ((ptrdiff_t *) 0)
37391 if (sizeof (ptrdiff_t))
37397 rm -f conftest.$ac_objext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37399 (eval $ac_compile) 2>conftest.er1
37401 grep -v '^ *+' conftest.er1 >conftest.err
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } &&
37406 { ac_try='test -z "$ac_c_werror_flag"
37407 || test ! -s conftest.err'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; } &&
37413 { ac_try='test -s conftest.$ac_objext'
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; }; then
37419 ac_cv_type_ptrdiff_t=yes
37421 echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37424 ac_cv_type_ptrdiff_t=no
37426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37428 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37429 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37430 if test $ac_cv_type_ptrdiff_t = yes; then
37432 cat >>confdefs.h <<_ACEOF
37433 #define HAVE_PTRDIFF_T 1
37440 echo "$as_me:$LINENO: checking for socklen_t" >&5
37441 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37442 if test "${ac_cv_type_socklen_t+set}" = set; then
37443 echo $ECHO_N "(cached) $ECHO_C" >&6
37445 cat >conftest.$ac_ext <<_ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h. */
37451 $ac_includes_default
37452 #ifdef HAVE_SYS_SOCKET_H
37453 #include <sys/socket.h>
37460 if ((socklen_t *) 0)
37462 if (sizeof (socklen_t))
37468 rm -f conftest.$ac_objext
37469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37470 (eval $ac_compile) 2>conftest.er1
37472 grep -v '^ *+' conftest.er1 >conftest.err
37474 cat conftest.err >&5
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); } &&
37477 { ac_try='test -z "$ac_c_werror_flag"
37478 || test ! -s conftest.err'
37479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37480 (eval $ac_try) 2>&5
37482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37483 (exit $ac_status); }; } &&
37484 { ac_try='test -s conftest.$ac_objext'
37485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37486 (eval $ac_try) 2>&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); }; }; then
37490 ac_cv_type_socklen_t=yes
37492 echo "$as_me: failed program was:" >&5
37493 sed 's/^/| /' conftest.$ac_ext >&5
37495 ac_cv_type_socklen_t=no
37497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37499 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37500 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37501 if test $ac_cv_type_socklen_t = yes; then
37505 cat >>confdefs.h <<_ACEOF
37506 #define socklen_t int
37512 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37514 if test "${ac_cv_type_signal+set}" = set; then
37515 echo $ECHO_N "(cached) $ECHO_C" >&6
37517 cat >conftest.$ac_ext <<_ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37523 #include <sys/types.h>
37524 #include <signal.h>
37529 extern "C" void (*signal (int, void (*)(int)))(int);
37531 void (*signal ()) ();
37542 rm -f conftest.$ac_objext
37543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37544 (eval $ac_compile) 2>conftest.er1
37546 grep -v '^ *+' conftest.er1 >conftest.err
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } &&
37551 { ac_try='test -z "$ac_c_werror_flag"
37552 || test ! -s conftest.err'
37553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554 (eval $ac_try) 2>&5
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); }; } &&
37558 { ac_try='test -s conftest.$ac_objext'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; }; then
37564 ac_cv_type_signal=void
37566 echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37569 ac_cv_type_signal=int
37571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37573 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37574 echo "${ECHO_T}$ac_cv_type_signal" >&6
37576 cat >>confdefs.h <<_ACEOF
37577 #define RETSIGTYPE $ac_cv_type_signal
37582 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37583 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37584 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37585 echo $ECHO_N "(cached) $ECHO_C" >&6
37587 cat >conftest.$ac_ext <<_ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h. */
37593 $ac_includes_default
37594 #include <signal.h>
37600 if ((sig_atomic_t *) 0)
37602 if (sizeof (sig_atomic_t))
37608 rm -f conftest.$ac_objext
37609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37610 (eval $ac_compile) 2>conftest.er1
37612 grep -v '^ *+' conftest.er1 >conftest.err
37614 cat conftest.err >&5
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); } &&
37617 { ac_try='test -z "$ac_c_werror_flag"
37618 || test ! -s conftest.err'
37619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620 (eval $ac_try) 2>&5
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); }; } &&
37624 { ac_try='test -s conftest.$ac_objext'
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; }; then
37630 ac_cv_type_sig_atomic_t=yes
37632 echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37635 ac_cv_type_sig_atomic_t=no
37637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37639 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37640 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37641 if test $ac_cv_type_sig_atomic_t = yes; then
37645 cat >>confdefs.h <<_ACEOF
37646 #define sig_atomic_t int
37652 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37653 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37654 if test "${ac_cv_type_uid_t+set}" = set; then
37655 echo $ECHO_N "(cached) $ECHO_C" >&6
37657 cat >conftest.$ac_ext <<_ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h. */
37663 #include <sys/types.h>
37666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37667 $EGREP "uid_t" >/dev/null 2>&1; then
37668 ac_cv_type_uid_t=yes
37670 ac_cv_type_uid_t=no
37675 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37676 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37677 if test $ac_cv_type_uid_t = no; then
37679 cat >>confdefs.h <<\_ACEOF
37684 cat >>confdefs.h <<\_ACEOF
37691 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37692 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37693 if test "${ac_cv_header_time+set}" = set; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37696 cat >conftest.$ac_ext <<_ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702 #include <sys/types.h>
37703 #include <sys/time.h>
37709 if ((struct tm *) 0)
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717 (eval $ac_compile) 2>conftest.er1
37719 grep -v '^ *+' conftest.er1 >conftest.err
37721 cat conftest.err >&5
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); } &&
37724 { ac_try='test -z "$ac_c_werror_flag"
37725 || test ! -s conftest.err'
37726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727 (eval $ac_try) 2>&5
37729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730 (exit $ac_status); }; } &&
37731 { ac_try='test -s conftest.$ac_objext'
37732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733 (eval $ac_try) 2>&5
37735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736 (exit $ac_status); }; }; then
37737 ac_cv_header_time=yes
37739 echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37742 ac_cv_header_time=no
37744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37746 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37747 echo "${ECHO_T}$ac_cv_header_time" >&6
37748 if test $ac_cv_header_time = yes; then
37750 cat >>confdefs.h <<\_ACEOF
37751 #define TIME_WITH_SYS_TIME 1
37756 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37758 if test "${ac_cv_struct_tm+set}" = set; then
37759 echo $ECHO_N "(cached) $ECHO_C" >&6
37761 cat >conftest.$ac_ext <<_ACEOF
37764 cat confdefs.h >>conftest.$ac_ext
37765 cat >>conftest.$ac_ext <<_ACEOF
37766 /* end confdefs.h. */
37767 #include <sys/types.h>
37773 struct tm *tp; tp->tm_sec;
37778 rm -f conftest.$ac_objext
37779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37780 (eval $ac_compile) 2>conftest.er1
37782 grep -v '^ *+' conftest.er1 >conftest.err
37784 cat conftest.err >&5
37785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); } &&
37787 { ac_try='test -z "$ac_c_werror_flag"
37788 || test ! -s conftest.err'
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; } &&
37794 { ac_try='test -s conftest.$ac_objext'
37795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796 (eval $ac_try) 2>&5
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); }; }; then
37800 ac_cv_struct_tm=time.h
37802 echo "$as_me: failed program was:" >&5
37803 sed 's/^/| /' conftest.$ac_ext >&5
37805 ac_cv_struct_tm=sys/time.h
37807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37809 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37810 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37811 if test $ac_cv_struct_tm = sys/time.h; then
37813 cat >>confdefs.h <<\_ACEOF
37814 #define TM_IN_SYS_TIME 1
37819 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37820 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37821 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37824 cat >conftest.$ac_ext <<_ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h. */
37830 $ac_includes_default
37834 static struct stat ac_aggr;
37835 if (ac_aggr.st_blksize)
37841 rm -f conftest.$ac_objext
37842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37843 (eval $ac_compile) 2>conftest.er1
37845 grep -v '^ *+' conftest.er1 >conftest.err
37847 cat conftest.err >&5
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); } &&
37850 { ac_try='test -z "$ac_c_werror_flag"
37851 || test ! -s conftest.err'
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853 (eval $ac_try) 2>&5
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); }; } &&
37857 { ac_try='test -s conftest.$ac_objext'
37858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37859 (eval $ac_try) 2>&5
37861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37862 (exit $ac_status); }; }; then
37863 ac_cv_member_struct_stat_st_blksize=yes
37865 echo "$as_me: failed program was:" >&5
37866 sed 's/^/| /' conftest.$ac_ext >&5
37868 cat >conftest.$ac_ext <<_ACEOF
37871 cat confdefs.h >>conftest.$ac_ext
37872 cat >>conftest.$ac_ext <<_ACEOF
37873 /* end confdefs.h. */
37874 $ac_includes_default
37878 static struct stat ac_aggr;
37879 if (sizeof ac_aggr.st_blksize)
37885 rm -f conftest.$ac_objext
37886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37887 (eval $ac_compile) 2>conftest.er1
37889 grep -v '^ *+' conftest.er1 >conftest.err
37891 cat conftest.err >&5
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); } &&
37894 { ac_try='test -z "$ac_c_werror_flag"
37895 || test ! -s conftest.err'
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897 (eval $ac_try) 2>&5
37899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; } &&
37901 { ac_try='test -s conftest.$ac_objext'
37902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37903 (eval $ac_try) 2>&5
37905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906 (exit $ac_status); }; }; then
37907 ac_cv_member_struct_stat_st_blksize=yes
37909 echo "$as_me: failed program was:" >&5
37910 sed 's/^/| /' conftest.$ac_ext >&5
37912 ac_cv_member_struct_stat_st_blksize=no
37914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37918 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37919 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37920 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37922 cat >>confdefs.h <<_ACEOF
37923 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37929 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37930 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37931 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37932 echo $ECHO_N "(cached) $ECHO_C" >&6
37934 cat >conftest.$ac_ext <<_ACEOF
37937 cat confdefs.h >>conftest.$ac_ext
37938 cat >>conftest.$ac_ext <<_ACEOF
37939 /* end confdefs.h. */
37940 $ac_includes_default
37946 static struct passwd ac_aggr;
37947 if (ac_aggr.pw_gecos)
37953 rm -f conftest.$ac_objext
37954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37955 (eval $ac_compile) 2>conftest.er1
37957 grep -v '^ *+' conftest.er1 >conftest.err
37959 cat conftest.err >&5
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); } &&
37962 { ac_try='test -z "$ac_c_werror_flag"
37963 || test ! -s conftest.err'
37964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965 (eval $ac_try) 2>&5
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); }; } &&
37969 { ac_try='test -s conftest.$ac_objext'
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; }; then
37975 ac_cv_member_struct_passwd_pw_gecos=yes
37977 echo "$as_me: failed program was:" >&5
37978 sed 's/^/| /' conftest.$ac_ext >&5
37980 cat >conftest.$ac_ext <<_ACEOF
37983 cat confdefs.h >>conftest.$ac_ext
37984 cat >>conftest.$ac_ext <<_ACEOF
37985 /* end confdefs.h. */
37986 $ac_includes_default
37992 static struct passwd ac_aggr;
37993 if (sizeof ac_aggr.pw_gecos)
37999 rm -f conftest.$ac_objext
38000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38001 (eval $ac_compile) 2>conftest.er1
38003 grep -v '^ *+' conftest.er1 >conftest.err
38005 cat conftest.err >&5
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } &&
38008 { ac_try='test -z "$ac_c_werror_flag"
38009 || test ! -s conftest.err'
38010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011 (eval $ac_try) 2>&5
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); }; } &&
38015 { ac_try='test -s conftest.$ac_objext'
38016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017 (eval $ac_try) 2>&5
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); }; }; then
38021 ac_cv_member_struct_passwd_pw_gecos=yes
38023 echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38026 ac_cv_member_struct_passwd_pw_gecos=no
38028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38032 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38033 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38034 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38036 cat >>confdefs.h <<_ACEOF
38037 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38043 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38044 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38045 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38046 echo $ECHO_N "(cached) $ECHO_C" >&6
38048 cat >conftest.$ac_ext <<_ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h. */
38054 $ac_includes_default
38060 static struct passwd ac_aggr;
38061 if (ac_aggr.pw_passwd)
38067 rm -f conftest.$ac_objext
38068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38069 (eval $ac_compile) 2>conftest.er1
38071 grep -v '^ *+' conftest.er1 >conftest.err
38073 cat conftest.err >&5
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); } &&
38076 { ac_try='test -z "$ac_c_werror_flag"
38077 || test ! -s conftest.err'
38078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38079 (eval $ac_try) 2>&5
38081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082 (exit $ac_status); }; } &&
38083 { ac_try='test -s conftest.$ac_objext'
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; }; then
38089 ac_cv_member_struct_passwd_pw_passwd=yes
38091 echo "$as_me: failed program was:" >&5
38092 sed 's/^/| /' conftest.$ac_ext >&5
38094 cat >conftest.$ac_ext <<_ACEOF
38097 cat confdefs.h >>conftest.$ac_ext
38098 cat >>conftest.$ac_ext <<_ACEOF
38099 /* end confdefs.h. */
38100 $ac_includes_default
38106 static struct passwd ac_aggr;
38107 if (sizeof ac_aggr.pw_passwd)
38113 rm -f conftest.$ac_objext
38114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38115 (eval $ac_compile) 2>conftest.er1
38117 grep -v '^ *+' conftest.er1 >conftest.err
38119 cat conftest.err >&5
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); } &&
38122 { ac_try='test -z "$ac_c_werror_flag"
38123 || test ! -s conftest.err'
38124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125 (eval $ac_try) 2>&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); }; } &&
38129 { ac_try='test -s conftest.$ac_objext'
38130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38131 (eval $ac_try) 2>&5
38133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134 (exit $ac_status); }; }; then
38135 ac_cv_member_struct_passwd_pw_passwd=yes
38137 echo "$as_me: failed program was:" >&5
38138 sed 's/^/| /' conftest.$ac_ext >&5
38140 ac_cv_member_struct_passwd_pw_passwd=no
38142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38147 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38148 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38150 cat >>confdefs.h <<_ACEOF
38151 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38158 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38159 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38160 if test "${ol_cv_c_upper_lower+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38164 if test "$cross_compiling" = yes; then
38165 ol_cv_c_upper_lower=safe
38167 cat >conftest.$ac_ext <<_ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h. */
38177 if ('C' == toupper('C'))
38183 rm -f conftest$ac_exeext
38184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38185 (eval $ac_link) 2>&5
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; }; then
38194 ol_cv_c_upper_lower=no
38196 echo "$as_me: program exited with status $ac_status" >&5
38197 echo "$as_me: failed program was:" >&5
38198 sed 's/^/| /' conftest.$ac_ext >&5
38200 ( exit $ac_status )
38201 ol_cv_c_upper_lower=yes
38203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38206 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38207 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38208 if test $ol_cv_c_upper_lower != no ; then
38210 cat >>confdefs.h <<\_ACEOF
38211 #define C_UPPER_LOWER 1
38216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38218 if test "${ac_cv_c_const+set}" = set; then
38219 echo $ECHO_N "(cached) $ECHO_C" >&6
38221 cat >conftest.$ac_ext <<_ACEOF
38224 cat confdefs.h >>conftest.$ac_ext
38225 cat >>conftest.$ac_ext <<_ACEOF
38226 /* end confdefs.h. */
38231 /* FIXME: Include the comments suggested by Paul. */
38232 #ifndef __cplusplus
38233 /* Ultrix mips cc rejects this. */
38234 typedef int charset[2];
38236 /* SunOS 4.1.1 cc rejects this. */
38237 char const *const *ccp;
38239 /* NEC SVR4.0.2 mips cc rejects this. */
38240 struct point {int x, y;};
38241 static struct point const zero = {0,0};
38242 /* AIX XL C 1.02.0.0 rejects this.
38243 It does not let you subtract one const X* pointer from another in
38244 an arm of an if-expression whose if-part is not a constant
38246 const char *g = "string";
38247 ccp = &g + (g ? g-g : 0);
38248 /* HPUX 7.0 cc rejects these. */
38251 ccp = (char const *const *) p;
38252 { /* SCO 3.2v4 cc rejects this. */
38254 char const *s = 0 ? (char *) 0 : (char const *) 0;
38258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38259 int x[] = {25, 17};
38260 const int *foo = &x[0];
38263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38264 typedef const int *iptr;
38268 { /* AIX XL C 1.02.0.0 rejects this saying
38269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38270 struct s { int j; const int *ap[3]; };
38271 struct s *b; b->j = 5;
38273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38274 const int foo = 10;
38282 rm -f conftest.$ac_objext
38283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38284 (eval $ac_compile) 2>conftest.er1
38286 grep -v '^ *+' conftest.er1 >conftest.err
38288 cat conftest.err >&5
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); } &&
38291 { ac_try='test -z "$ac_c_werror_flag"
38292 || test ! -s conftest.err'
38293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294 (eval $ac_try) 2>&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); }; } &&
38298 { ac_try='test -s conftest.$ac_objext'
38299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38300 (eval $ac_try) 2>&5
38302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303 (exit $ac_status); }; }; then
38306 echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38313 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38314 echo "${ECHO_T}$ac_cv_c_const" >&6
38315 if test $ac_cv_c_const = no; then
38317 cat >>confdefs.h <<\_ACEOF
38323 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38324 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38325 if test "${ol_cv_c_volatile+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38328 cat >conftest.$ac_ext <<_ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h. */
38338 volatile int a; int * volatile b = x ? &y : &z;
38339 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38345 rm -f conftest.$ac_objext
38346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38347 (eval $ac_compile) 2>conftest.er1
38349 grep -v '^ *+' conftest.er1 >conftest.err
38351 cat conftest.err >&5
38352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353 (exit $ac_status); } &&
38354 { ac_try='test -z "$ac_c_werror_flag"
38355 || test ! -s conftest.err'
38356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 (eval $ac_try) 2>&5
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); }; } &&
38361 { ac_try='test -s conftest.$ac_objext'
38362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363 (eval $ac_try) 2>&5
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; }; then
38367 ol_cv_c_volatile=yes
38369 echo "$as_me: failed program was:" >&5
38370 sed 's/^/| /' conftest.$ac_ext >&5
38372 ol_cv_c_volatile=no
38374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38376 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38377 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38378 if test $ol_cv_c_volatile = yes; then
38382 cat >>confdefs.h <<\_ACEOF
38389 if test $cross_compiling = yes ; then
38390 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38391 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38393 cat >>confdefs.h <<\_ACEOF
38394 #define CROSS_COMPILING 1
38398 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38400 if test "${ac_cv_c_bigendian+set}" = set; then
38401 echo $ECHO_N "(cached) $ECHO_C" >&6
38403 # See if sys/param.h defines the BYTE_ORDER macro.
38404 cat >conftest.$ac_ext <<_ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h. */
38410 #include <sys/types.h>
38411 #include <sys/param.h>
38416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38417 bogus endian macros
38424 rm -f conftest.$ac_objext
38425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38426 (eval $ac_compile) 2>conftest.er1
38428 grep -v '^ *+' conftest.er1 >conftest.err
38430 cat conftest.err >&5
38431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432 (exit $ac_status); } &&
38433 { ac_try='test -z "$ac_c_werror_flag"
38434 || test ! -s conftest.err'
38435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436 (eval $ac_try) 2>&5
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); }; } &&
38440 { ac_try='test -s conftest.$ac_objext'
38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442 (eval $ac_try) 2>&5
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); }; }; then
38446 # It does; now see whether it defined to BIG_ENDIAN or not.
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38453 #include <sys/types.h>
38454 #include <sys/param.h>
38459 #if BYTE_ORDER != BIG_ENDIAN
38467 rm -f conftest.$ac_objext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38469 (eval $ac_compile) 2>conftest.er1
38471 grep -v '^ *+' conftest.er1 >conftest.err
38473 cat conftest.err >&5
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); } &&
38476 { ac_try='test -z "$ac_c_werror_flag"
38477 || test ! -s conftest.err'
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); }; } &&
38483 { ac_try='test -s conftest.$ac_objext'
38484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38485 (eval $ac_try) 2>&5
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); }; }; then
38489 ac_cv_c_bigendian=yes
38491 echo "$as_me: failed program was:" >&5
38492 sed 's/^/| /' conftest.$ac_ext >&5
38494 ac_cv_c_bigendian=no
38496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38498 echo "$as_me: failed program was:" >&5
38499 sed 's/^/| /' conftest.$ac_ext >&5
38501 # It does not; compile a test program.
38502 if test "$cross_compiling" = yes; then
38503 # try to guess the endianness by grepping values into an object file
38504 ac_cv_c_bigendian=unknown
38505 cat >conftest.$ac_ext <<_ACEOF
38508 cat confdefs.h >>conftest.$ac_ext
38509 cat >>conftest.$ac_ext <<_ACEOF
38510 /* end confdefs.h. */
38511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38520 _ascii (); _ebcdic ();
38525 rm -f conftest.$ac_objext
38526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38527 (eval $ac_compile) 2>conftest.er1
38529 grep -v '^ *+' conftest.er1 >conftest.err
38531 cat conftest.err >&5
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); } &&
38534 { ac_try='test -z "$ac_c_werror_flag"
38535 || test ! -s conftest.err'
38536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38537 (eval $ac_try) 2>&5
38539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540 (exit $ac_status); }; } &&
38541 { ac_try='test -s conftest.$ac_objext'
38542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38543 (eval $ac_try) 2>&5
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); }; }; then
38547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38548 ac_cv_c_bigendian=yes
38550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38551 if test "$ac_cv_c_bigendian" = unknown; then
38552 ac_cv_c_bigendian=no
38554 # finding both strings is unlikely to happen, but who knows?
38555 ac_cv_c_bigendian=unknown
38559 echo "$as_me: failed program was:" >&5
38560 sed 's/^/| /' conftest.$ac_ext >&5
38563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38565 cat >conftest.$ac_ext <<_ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h. */
38574 /* Are we little or big endian? From Harbison&Steele. */
38578 char c[sizeof (long)];
38581 exit (u.c[sizeof (long) - 1] == 1);
38584 rm -f conftest$ac_exeext
38585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38586 (eval $ac_link) 2>&5
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; }; then
38595 ac_cv_c_bigendian=no
38597 echo "$as_me: program exited with status $ac_status" >&5
38598 echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38601 ( exit $ac_status )
38602 ac_cv_c_bigendian=yes
38604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38609 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38610 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38611 case $ac_cv_c_bigendian in
38614 cat >>confdefs.h <<\_ACEOF
38615 #define WORDS_BIGENDIAN 1
38621 { { echo "$as_me:$LINENO: error: unknown endianness
38622 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38623 echo "$as_me: error: unknown endianness
38624 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38625 { (exit 1); exit 1; }; } ;;
38630 echo "$as_me:$LINENO: checking for short" >&5
38631 echo $ECHO_N "checking for short... $ECHO_C" >&6
38632 if test "${ac_cv_type_short+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
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
38647 if (sizeof (short))
38653 rm -f conftest.$ac_objext
38654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38655 (eval $ac_compile) 2>conftest.er1
38657 grep -v '^ *+' conftest.er1 >conftest.err
38659 cat conftest.err >&5
38660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661 (exit $ac_status); } &&
38662 { ac_try='test -z "$ac_c_werror_flag"
38663 || test ! -s conftest.err'
38664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665 (eval $ac_try) 2>&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); }; } &&
38669 { ac_try='test -s conftest.$ac_objext'
38670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38671 (eval $ac_try) 2>&5
38673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674 (exit $ac_status); }; }; then
38675 ac_cv_type_short=yes
38677 echo "$as_me: failed program was:" >&5
38678 sed 's/^/| /' conftest.$ac_ext >&5
38680 ac_cv_type_short=no
38682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38684 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38685 echo "${ECHO_T}$ac_cv_type_short" >&6
38687 echo "$as_me:$LINENO: checking size of short" >&5
38688 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38689 if test "${ac_cv_sizeof_short+set}" = set; then
38690 echo $ECHO_N "(cached) $ECHO_C" >&6
38692 if test "$ac_cv_type_short" = yes; then
38693 # The cast to unsigned long works around a bug in the HP C Compiler
38694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38696 # This bug is HP SR number 8606223364.
38697 if test "$cross_compiling" = yes; then
38698 # Depending upon the size, compute the lo and hi bounds.
38699 cat >conftest.$ac_ext <<_ACEOF
38702 cat confdefs.h >>conftest.$ac_ext
38703 cat >>conftest.$ac_ext <<_ACEOF
38704 /* end confdefs.h. */
38705 $ac_includes_default
38709 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38716 rm -f conftest.$ac_objext
38717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38718 (eval $ac_compile) 2>conftest.er1
38720 grep -v '^ *+' conftest.er1 >conftest.err
38722 cat conftest.err >&5
38723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724 (exit $ac_status); } &&
38725 { ac_try='test -z "$ac_c_werror_flag"
38726 || test ! -s conftest.err'
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; } &&
38732 { ac_try='test -s conftest.$ac_objext'
38733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734 (eval $ac_try) 2>&5
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); }; }; then
38740 cat >conftest.$ac_ext <<_ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 $ac_includes_default
38750 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38757 rm -f conftest.$ac_objext
38758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38759 (eval $ac_compile) 2>conftest.er1
38761 grep -v '^ *+' conftest.er1 >conftest.err
38763 cat conftest.err >&5
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); } &&
38766 { ac_try='test -z "$ac_c_werror_flag"
38767 || test ! -s conftest.err'
38768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38769 (eval $ac_try) 2>&5
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); }; } &&
38773 { ac_try='test -s conftest.$ac_objext'
38774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38775 (eval $ac_try) 2>&5
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); }; }; then
38779 ac_hi=$ac_mid; break
38781 echo "$as_me: failed program was:" >&5
38782 sed 's/^/| /' conftest.$ac_ext >&5
38784 ac_lo=`expr $ac_mid + 1`
38785 if test $ac_lo -le $ac_mid; then
38789 ac_mid=`expr 2 '*' $ac_mid + 1`
38791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38794 echo "$as_me: failed program was:" >&5
38795 sed 's/^/| /' conftest.$ac_ext >&5
38797 cat >conftest.$ac_ext <<_ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h. */
38803 $ac_includes_default
38807 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38814 rm -f conftest.$ac_objext
38815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38816 (eval $ac_compile) 2>conftest.er1
38818 grep -v '^ *+' conftest.er1 >conftest.err
38820 cat conftest.err >&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
38823 { ac_try='test -z "$ac_c_werror_flag"
38824 || test ! -s conftest.err'
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } &&
38830 { ac_try='test -s conftest.$ac_objext'
38831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832 (eval $ac_try) 2>&5
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); }; }; then
38838 cat >conftest.$ac_ext <<_ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h. */
38844 $ac_includes_default
38848 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38855 rm -f conftest.$ac_objext
38856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38857 (eval $ac_compile) 2>conftest.er1
38859 grep -v '^ *+' conftest.er1 >conftest.err
38861 cat conftest.err >&5
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); } &&
38864 { ac_try='test -z "$ac_c_werror_flag"
38865 || test ! -s conftest.err'
38866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867 (eval $ac_try) 2>&5
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); }; } &&
38871 { ac_try='test -s conftest.$ac_objext'
38872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873 (eval $ac_try) 2>&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); }; }; then
38877 ac_lo=$ac_mid; break
38879 echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38882 ac_hi=`expr '(' $ac_mid ')' - 1`
38883 if test $ac_mid -le $ac_hi; then
38887 ac_mid=`expr 2 '*' $ac_mid`
38889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38892 echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38900 # Binary search between lo and hi bounds.
38901 while test "x$ac_lo" != "x$ac_hi"; do
38902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
38913 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38920 rm -f conftest.$ac_objext
38921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38922 (eval $ac_compile) 2>conftest.er1
38924 grep -v '^ *+' conftest.er1 >conftest.err
38926 cat conftest.err >&5
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); } &&
38929 { ac_try='test -z "$ac_c_werror_flag"
38930 || test ! -s conftest.err'
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; } &&
38936 { ac_try='test -s conftest.$ac_objext'
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; }; then
38944 echo "$as_me: failed program was:" >&5
38945 sed 's/^/| /' conftest.$ac_ext >&5
38947 ac_lo=`expr '(' $ac_mid ')' + 1`
38949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38952 ?*) ac_cv_sizeof_short=$ac_lo;;
38953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38954 See \`config.log' for more details." >&5
38955 echo "$as_me: error: cannot compute sizeof (short), 77
38956 See \`config.log' for more details." >&2;}
38957 { (exit 1); exit 1; }; } ;;
38960 if test "$cross_compiling" = yes; then
38961 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38962 See \`config.log' for more details." >&5
38963 echo "$as_me: error: cannot run test program while cross compiling
38964 See \`config.log' for more details." >&2;}
38965 { (exit 1); exit 1; }; }
38967 cat >conftest.$ac_ext <<_ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h. */
38973 $ac_includes_default
38974 long longval () { return (long) (sizeof (short)); }
38975 unsigned long ulongval () { return (long) (sizeof (short)); }
38977 #include <stdlib.h>
38982 FILE *f = fopen ("conftest.val", "w");
38985 if (((long) (sizeof (short))) < 0)
38987 long i = longval ();
38988 if (i != ((long) (sizeof (short))))
38990 fprintf (f, "%ld\n", i);
38994 unsigned long i = ulongval ();
38995 if (i != ((long) (sizeof (short))))
38997 fprintf (f, "%lu\n", i);
38999 exit (ferror (f) || fclose (f) != 0);
39005 rm -f conftest$ac_exeext
39006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39007 (eval $ac_link) 2>&5
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; }; then
39016 ac_cv_sizeof_short=`cat conftest.val`
39018 echo "$as_me: program exited with status $ac_status" >&5
39019 echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39022 ( exit $ac_status )
39023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39024 See \`config.log' for more details." >&5
39025 echo "$as_me: error: cannot compute sizeof (short), 77
39026 See \`config.log' for more details." >&2;}
39027 { (exit 1); exit 1; }; }
39029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39034 ac_cv_sizeof_short=0
39037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39038 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39039 cat >>confdefs.h <<_ACEOF
39040 #define SIZEOF_SHORT $ac_cv_sizeof_short
39044 echo "$as_me:$LINENO: checking for int" >&5
39045 echo $ECHO_N "checking for int... $ECHO_C" >&6
39046 if test "${ac_cv_type_int+set}" = set; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
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
39067 rm -f conftest.$ac_objext
39068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39069 (eval $ac_compile) 2>conftest.er1
39071 grep -v '^ *+' conftest.er1 >conftest.err
39073 cat conftest.err >&5
39074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075 (exit $ac_status); } &&
39076 { ac_try='test -z "$ac_c_werror_flag"
39077 || test ! -s conftest.err'
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; } &&
39083 { ac_try='test -s conftest.$ac_objext'
39084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39085 (eval $ac_try) 2>&5
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); }; }; then
39091 echo "$as_me: failed program was:" >&5
39092 sed 's/^/| /' conftest.$ac_ext >&5
39096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39098 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39099 echo "${ECHO_T}$ac_cv_type_int" >&6
39101 echo "$as_me:$LINENO: checking size of int" >&5
39102 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39103 if test "${ac_cv_sizeof_int+set}" = set; then
39104 echo $ECHO_N "(cached) $ECHO_C" >&6
39106 if test "$ac_cv_type_int" = yes; then
39107 # The cast to unsigned long works around a bug in the HP C Compiler
39108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39110 # This bug is HP SR number 8606223364.
39111 if test "$cross_compiling" = yes; then
39112 # Depending upon the size, compute the lo and hi bounds.
39113 cat >conftest.$ac_ext <<_ACEOF
39116 cat confdefs.h >>conftest.$ac_ext
39117 cat >>conftest.$ac_ext <<_ACEOF
39118 /* end confdefs.h. */
39119 $ac_includes_default
39123 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39130 rm -f conftest.$ac_objext
39131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39132 (eval $ac_compile) 2>conftest.er1
39134 grep -v '^ *+' conftest.er1 >conftest.err
39136 cat conftest.err >&5
39137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); } &&
39139 { ac_try='test -z "$ac_c_werror_flag"
39140 || test ! -s conftest.err'
39141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39142 (eval $ac_try) 2>&5
39144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145 (exit $ac_status); }; } &&
39146 { ac_try='test -s conftest.$ac_objext'
39147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39148 (eval $ac_try) 2>&5
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); }; }; then
39154 cat >conftest.$ac_ext <<_ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39160 $ac_includes_default
39164 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39171 rm -f conftest.$ac_objext
39172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39173 (eval $ac_compile) 2>conftest.er1
39175 grep -v '^ *+' conftest.er1 >conftest.err
39177 cat conftest.err >&5
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); } &&
39180 { ac_try='test -z "$ac_c_werror_flag"
39181 || test ! -s conftest.err'
39182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183 (eval $ac_try) 2>&5
39185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); }; } &&
39187 { ac_try='test -s conftest.$ac_objext'
39188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189 (eval $ac_try) 2>&5
39191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); }; }; then
39193 ac_hi=$ac_mid; break
39195 echo "$as_me: failed program was:" >&5
39196 sed 's/^/| /' conftest.$ac_ext >&5
39198 ac_lo=`expr $ac_mid + 1`
39199 if test $ac_lo -le $ac_mid; then
39203 ac_mid=`expr 2 '*' $ac_mid + 1`
39205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39208 echo "$as_me: failed program was:" >&5
39209 sed 's/^/| /' conftest.$ac_ext >&5
39211 cat >conftest.$ac_ext <<_ACEOF
39214 cat confdefs.h >>conftest.$ac_ext
39215 cat >>conftest.$ac_ext <<_ACEOF
39216 /* end confdefs.h. */
39217 $ac_includes_default
39221 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39228 rm -f conftest.$ac_objext
39229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39230 (eval $ac_compile) 2>conftest.er1
39232 grep -v '^ *+' conftest.er1 >conftest.err
39234 cat conftest.err >&5
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); } &&
39237 { ac_try='test -z "$ac_c_werror_flag"
39238 || test ! -s conftest.err'
39239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39240 (eval $ac_try) 2>&5
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); }; } &&
39244 { ac_try='test -s conftest.$ac_objext'
39245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39246 (eval $ac_try) 2>&5
39248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249 (exit $ac_status); }; }; then
39252 cat >conftest.$ac_ext <<_ACEOF
39255 cat confdefs.h >>conftest.$ac_ext
39256 cat >>conftest.$ac_ext <<_ACEOF
39257 /* end confdefs.h. */
39258 $ac_includes_default
39262 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271 (eval $ac_compile) 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -z "$ac_c_werror_flag"
39279 || test ! -s conftest.err'
39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281 (eval $ac_try) 2>&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } &&
39285 { ac_try='test -s conftest.$ac_objext'
39286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287 (eval $ac_try) 2>&5
39289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290 (exit $ac_status); }; }; then
39291 ac_lo=$ac_mid; break
39293 echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39296 ac_hi=`expr '(' $ac_mid ')' - 1`
39297 if test $ac_mid -le $ac_hi; then
39301 ac_mid=`expr 2 '*' $ac_mid`
39303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39306 echo "$as_me: failed program was:" >&5
39307 sed 's/^/| /' conftest.$ac_ext >&5
39311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39314 # Binary search between lo and hi bounds.
39315 while test "x$ac_lo" != "x$ac_hi"; do
39316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
39327 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39334 rm -f conftest.$ac_objext
39335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39336 (eval $ac_compile) 2>conftest.er1
39338 grep -v '^ *+' conftest.er1 >conftest.err
39340 cat conftest.err >&5
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); } &&
39343 { ac_try='test -z "$ac_c_werror_flag"
39344 || test ! -s conftest.err'
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; } &&
39350 { ac_try='test -s conftest.$ac_objext'
39351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352 (eval $ac_try) 2>&5
39354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355 (exit $ac_status); }; }; then
39358 echo "$as_me: failed program was:" >&5
39359 sed 's/^/| /' conftest.$ac_ext >&5
39361 ac_lo=`expr '(' $ac_mid ')' + 1`
39363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39366 ?*) ac_cv_sizeof_int=$ac_lo;;
39367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39368 See \`config.log' for more details." >&5
39369 echo "$as_me: error: cannot compute sizeof (int), 77
39370 See \`config.log' for more details." >&2;}
39371 { (exit 1); exit 1; }; } ;;
39374 if test "$cross_compiling" = yes; then
39375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39376 See \`config.log' for more details." >&5
39377 echo "$as_me: error: cannot run test program while cross compiling
39378 See \`config.log' for more details." >&2;}
39379 { (exit 1); exit 1; }; }
39381 cat >conftest.$ac_ext <<_ACEOF
39384 cat confdefs.h >>conftest.$ac_ext
39385 cat >>conftest.$ac_ext <<_ACEOF
39386 /* end confdefs.h. */
39387 $ac_includes_default
39388 long longval () { return (long) (sizeof (int)); }
39389 unsigned long ulongval () { return (long) (sizeof (int)); }
39391 #include <stdlib.h>
39396 FILE *f = fopen ("conftest.val", "w");
39399 if (((long) (sizeof (int))) < 0)
39401 long i = longval ();
39402 if (i != ((long) (sizeof (int))))
39404 fprintf (f, "%ld\n", i);
39408 unsigned long i = ulongval ();
39409 if (i != ((long) (sizeof (int))))
39411 fprintf (f, "%lu\n", i);
39413 exit (ferror (f) || fclose (f) != 0);
39419 rm -f conftest$ac_exeext
39420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39421 (eval $ac_link) 2>&5
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39426 (eval $ac_try) 2>&5
39428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429 (exit $ac_status); }; }; then
39430 ac_cv_sizeof_int=`cat conftest.val`
39432 echo "$as_me: program exited with status $ac_status" >&5
39433 echo "$as_me: failed program was:" >&5
39434 sed 's/^/| /' conftest.$ac_ext >&5
39436 ( exit $ac_status )
39437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39438 See \`config.log' for more details." >&5
39439 echo "$as_me: error: cannot compute sizeof (int), 77
39440 See \`config.log' for more details." >&2;}
39441 { (exit 1); exit 1; }; }
39443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39452 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39453 cat >>confdefs.h <<_ACEOF
39454 #define SIZEOF_INT $ac_cv_sizeof_int
39458 echo "$as_me:$LINENO: checking for long" >&5
39459 echo $ECHO_N "checking for long... $ECHO_C" >&6
39460 if test "${ac_cv_type_long+set}" = set; then
39461 echo $ECHO_N "(cached) $ECHO_C" >&6
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
39481 rm -f conftest.$ac_objext
39482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39483 (eval $ac_compile) 2>conftest.er1
39485 grep -v '^ *+' conftest.er1 >conftest.err
39487 cat conftest.err >&5
39488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489 (exit $ac_status); } &&
39490 { ac_try='test -z "$ac_c_werror_flag"
39491 || test ! -s conftest.err'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; } &&
39497 { ac_try='test -s conftest.$ac_objext'
39498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499 (eval $ac_try) 2>&5
39501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502 (exit $ac_status); }; }; then
39503 ac_cv_type_long=yes
39505 echo "$as_me: failed program was:" >&5
39506 sed 's/^/| /' conftest.$ac_ext >&5
39510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39512 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39513 echo "${ECHO_T}$ac_cv_type_long" >&6
39515 echo "$as_me:$LINENO: checking size of long" >&5
39516 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39517 if test "${ac_cv_sizeof_long+set}" = set; then
39518 echo $ECHO_N "(cached) $ECHO_C" >&6
39520 if test "$ac_cv_type_long" = yes; then
39521 # The cast to unsigned long works around a bug in the HP C Compiler
39522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39524 # This bug is HP SR number 8606223364.
39525 if test "$cross_compiling" = yes; then
39526 # Depending upon the size, compute the lo and hi bounds.
39527 cat >conftest.$ac_ext <<_ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h. */
39533 $ac_includes_default
39537 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39544 rm -f conftest.$ac_objext
39545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39546 (eval $ac_compile) 2>conftest.er1
39548 grep -v '^ *+' conftest.er1 >conftest.err
39550 cat conftest.err >&5
39551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552 (exit $ac_status); } &&
39553 { ac_try='test -z "$ac_c_werror_flag"
39554 || test ! -s conftest.err'
39555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39556 (eval $ac_try) 2>&5
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); }; } &&
39560 { ac_try='test -s conftest.$ac_objext'
39561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39562 (eval $ac_try) 2>&5
39564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565 (exit $ac_status); }; }; then
39568 cat >conftest.$ac_ext <<_ACEOF
39571 cat confdefs.h >>conftest.$ac_ext
39572 cat >>conftest.$ac_ext <<_ACEOF
39573 /* end confdefs.h. */
39574 $ac_includes_default
39578 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39585 rm -f conftest.$ac_objext
39586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39587 (eval $ac_compile) 2>conftest.er1
39589 grep -v '^ *+' conftest.er1 >conftest.err
39591 cat conftest.err >&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } &&
39594 { ac_try='test -z "$ac_c_werror_flag"
39595 || test ! -s conftest.err'
39596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597 (eval $ac_try) 2>&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); }; } &&
39601 { ac_try='test -s conftest.$ac_objext'
39602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603 (eval $ac_try) 2>&5
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); }; }; then
39607 ac_hi=$ac_mid; break
39609 echo "$as_me: failed program was:" >&5
39610 sed 's/^/| /' conftest.$ac_ext >&5
39612 ac_lo=`expr $ac_mid + 1`
39613 if test $ac_lo -le $ac_mid; then
39617 ac_mid=`expr 2 '*' $ac_mid + 1`
39619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39622 echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39625 cat >conftest.$ac_ext <<_ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h. */
39631 $ac_includes_default
39635 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39642 rm -f conftest.$ac_objext
39643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39644 (eval $ac_compile) 2>conftest.er1
39646 grep -v '^ *+' conftest.er1 >conftest.err
39648 cat conftest.err >&5
39649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650 (exit $ac_status); } &&
39651 { ac_try='test -z "$ac_c_werror_flag"
39652 || test ! -s conftest.err'
39653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654 (eval $ac_try) 2>&5
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); }; } &&
39658 { ac_try='test -s conftest.$ac_objext'
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; }; then
39666 cat >conftest.$ac_ext <<_ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39672 $ac_includes_default
39676 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685 (eval $ac_compile) 2>conftest.er1
39687 grep -v '^ *+' conftest.er1 >conftest.err
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
39692 { ac_try='test -z "$ac_c_werror_flag"
39693 || test ! -s conftest.err'
39694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39695 (eval $ac_try) 2>&5
39697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698 (exit $ac_status); }; } &&
39699 { ac_try='test -s conftest.$ac_objext'
39700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701 (eval $ac_try) 2>&5
39703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704 (exit $ac_status); }; }; then
39705 ac_lo=$ac_mid; break
39707 echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39710 ac_hi=`expr '(' $ac_mid ')' - 1`
39711 if test $ac_mid -le $ac_hi; then
39715 ac_mid=`expr 2 '*' $ac_mid`
39717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39720 echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39728 # Binary search between lo and hi bounds.
39729 while test "x$ac_lo" != "x$ac_hi"; do
39730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
39741 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39748 rm -f conftest.$ac_objext
39749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39750 (eval $ac_compile) 2>conftest.er1
39752 grep -v '^ *+' conftest.er1 >conftest.err
39754 cat conftest.err >&5
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); } &&
39757 { ac_try='test -z "$ac_c_werror_flag"
39758 || test ! -s conftest.err'
39759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760 (eval $ac_try) 2>&5
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); }; } &&
39764 { ac_try='test -s conftest.$ac_objext'
39765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766 (eval $ac_try) 2>&5
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); }; }; then
39772 echo "$as_me: failed program was:" >&5
39773 sed 's/^/| /' conftest.$ac_ext >&5
39775 ac_lo=`expr '(' $ac_mid ')' + 1`
39777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39780 ?*) ac_cv_sizeof_long=$ac_lo;;
39781 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39782 See \`config.log' for more details." >&5
39783 echo "$as_me: error: cannot compute sizeof (long), 77
39784 See \`config.log' for more details." >&2;}
39785 { (exit 1); exit 1; }; } ;;
39788 if test "$cross_compiling" = yes; then
39789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39790 See \`config.log' for more details." >&5
39791 echo "$as_me: error: cannot run test program while cross compiling
39792 See \`config.log' for more details." >&2;}
39793 { (exit 1); exit 1; }; }
39795 cat >conftest.$ac_ext <<_ACEOF
39798 cat confdefs.h >>conftest.$ac_ext
39799 cat >>conftest.$ac_ext <<_ACEOF
39800 /* end confdefs.h. */
39801 $ac_includes_default
39802 long longval () { return (long) (sizeof (long)); }
39803 unsigned long ulongval () { return (long) (sizeof (long)); }
39805 #include <stdlib.h>
39810 FILE *f = fopen ("conftest.val", "w");
39813 if (((long) (sizeof (long))) < 0)
39815 long i = longval ();
39816 if (i != ((long) (sizeof (long))))
39818 fprintf (f, "%ld\n", i);
39822 unsigned long i = ulongval ();
39823 if (i != ((long) (sizeof (long))))
39825 fprintf (f, "%lu\n", i);
39827 exit (ferror (f) || fclose (f) != 0);
39833 rm -f conftest$ac_exeext
39834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39835 (eval $ac_link) 2>&5
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840 (eval $ac_try) 2>&5
39842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843 (exit $ac_status); }; }; then
39844 ac_cv_sizeof_long=`cat conftest.val`
39846 echo "$as_me: program exited with status $ac_status" >&5
39847 echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39850 ( exit $ac_status )
39851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39852 See \`config.log' for more details." >&5
39853 echo "$as_me: error: cannot compute sizeof (long), 77
39854 See \`config.log' for more details." >&2;}
39855 { (exit 1); exit 1; }; }
39857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39862 ac_cv_sizeof_long=0
39865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39866 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39867 cat >>confdefs.h <<_ACEOF
39868 #define SIZEOF_LONG $ac_cv_sizeof_long
39872 echo "$as_me:$LINENO: checking for wchar_t" >&5
39873 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39874 if test "${ac_cv_type_wchar_t+set}" = set; then
39875 echo $ECHO_N "(cached) $ECHO_C" >&6
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
39889 if (sizeof (wchar_t))
39895 rm -f conftest.$ac_objext
39896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39897 (eval $ac_compile) 2>conftest.er1
39899 grep -v '^ *+' conftest.er1 >conftest.err
39901 cat conftest.err >&5
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); } &&
39904 { ac_try='test -z "$ac_c_werror_flag"
39905 || test ! -s conftest.err'
39906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39907 (eval $ac_try) 2>&5
39909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39910 (exit $ac_status); }; } &&
39911 { ac_try='test -s conftest.$ac_objext'
39912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39913 (eval $ac_try) 2>&5
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); }; }; then
39917 ac_cv_type_wchar_t=yes
39919 echo "$as_me: failed program was:" >&5
39920 sed 's/^/| /' conftest.$ac_ext >&5
39922 ac_cv_type_wchar_t=no
39924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39926 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39927 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39929 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39930 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39931 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39932 echo $ECHO_N "(cached) $ECHO_C" >&6
39934 if test "$ac_cv_type_wchar_t" = yes; then
39935 # The cast to unsigned long works around a bug in the HP C Compiler
39936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39938 # This bug is HP SR number 8606223364.
39939 if test "$cross_compiling" = yes; then
39940 # Depending upon the size, compute the lo and hi bounds.
39941 cat >conftest.$ac_ext <<_ACEOF
39944 cat confdefs.h >>conftest.$ac_ext
39945 cat >>conftest.$ac_ext <<_ACEOF
39946 /* end confdefs.h. */
39947 $ac_includes_default
39951 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39958 rm -f conftest.$ac_objext
39959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39960 (eval $ac_compile) 2>conftest.er1
39962 grep -v '^ *+' conftest.er1 >conftest.err
39964 cat conftest.err >&5
39965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); } &&
39967 { ac_try='test -z "$ac_c_werror_flag"
39968 || test ! -s conftest.err'
39969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970 (eval $ac_try) 2>&5
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); }; } &&
39974 { ac_try='test -s conftest.$ac_objext'
39975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39976 (eval $ac_try) 2>&5
39978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979 (exit $ac_status); }; }; then
39982 cat >conftest.$ac_ext <<_ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h. */
39988 $ac_includes_default
39992 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39999 rm -f conftest.$ac_objext
40000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40001 (eval $ac_compile) 2>conftest.er1
40003 grep -v '^ *+' conftest.er1 >conftest.err
40005 cat conftest.err >&5
40006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007 (exit $ac_status); } &&
40008 { ac_try='test -z "$ac_c_werror_flag"
40009 || test ! -s conftest.err'
40010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011 (eval $ac_try) 2>&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); }; } &&
40015 { ac_try='test -s conftest.$ac_objext'
40016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017 (eval $ac_try) 2>&5
40019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); }; }; then
40021 ac_hi=$ac_mid; break
40023 echo "$as_me: failed program was:" >&5
40024 sed 's/^/| /' conftest.$ac_ext >&5
40026 ac_lo=`expr $ac_mid + 1`
40027 if test $ac_lo -le $ac_mid; then
40031 ac_mid=`expr 2 '*' $ac_mid + 1`
40033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40036 echo "$as_me: failed program was:" >&5
40037 sed 's/^/| /' conftest.$ac_ext >&5
40039 cat >conftest.$ac_ext <<_ACEOF
40042 cat confdefs.h >>conftest.$ac_ext
40043 cat >>conftest.$ac_ext <<_ACEOF
40044 /* end confdefs.h. */
40045 $ac_includes_default
40049 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40056 rm -f conftest.$ac_objext
40057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40058 (eval $ac_compile) 2>conftest.er1
40060 grep -v '^ *+' conftest.er1 >conftest.err
40062 cat conftest.err >&5
40063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40064 (exit $ac_status); } &&
40065 { ac_try='test -z "$ac_c_werror_flag"
40066 || test ! -s conftest.err'
40067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40068 (eval $ac_try) 2>&5
40070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071 (exit $ac_status); }; } &&
40072 { ac_try='test -s conftest.$ac_objext'
40073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40074 (eval $ac_try) 2>&5
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); }; }; then
40080 cat >conftest.$ac_ext <<_ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h. */
40086 $ac_includes_default
40090 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40097 rm -f conftest.$ac_objext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40099 (eval $ac_compile) 2>conftest.er1
40101 grep -v '^ *+' conftest.er1 >conftest.err
40103 cat conftest.err >&5
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); } &&
40106 { ac_try='test -z "$ac_c_werror_flag"
40107 || test ! -s conftest.err'
40108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109 (eval $ac_try) 2>&5
40111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); }; } &&
40113 { ac_try='test -s conftest.$ac_objext'
40114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115 (eval $ac_try) 2>&5
40117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); }; }; then
40119 ac_lo=$ac_mid; break
40121 echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40124 ac_hi=`expr '(' $ac_mid ')' - 1`
40125 if test $ac_mid -le $ac_hi; then
40129 ac_mid=`expr 2 '*' $ac_mid`
40131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40134 echo "$as_me: failed program was:" >&5
40135 sed 's/^/| /' conftest.$ac_ext >&5
40139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40142 # Binary search between lo and hi bounds.
40143 while test "x$ac_lo" != "x$ac_hi"; do
40144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
40155 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40162 rm -f conftest.$ac_objext
40163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40164 (eval $ac_compile) 2>conftest.er1
40166 grep -v '^ *+' conftest.er1 >conftest.err
40168 cat conftest.err >&5
40169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170 (exit $ac_status); } &&
40171 { ac_try='test -z "$ac_c_werror_flag"
40172 || test ! -s conftest.err'
40173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174 (eval $ac_try) 2>&5
40176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177 (exit $ac_status); }; } &&
40178 { ac_try='test -s conftest.$ac_objext'
40179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40180 (eval $ac_try) 2>&5
40182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183 (exit $ac_status); }; }; then
40186 echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40189 ac_lo=`expr '(' $ac_mid ')' + 1`
40191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40194 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40196 See \`config.log' for more details." >&5
40197 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40198 See \`config.log' for more details." >&2;}
40199 { (exit 1); exit 1; }; } ;;
40202 if test "$cross_compiling" = yes; then
40203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40204 See \`config.log' for more details." >&5
40205 echo "$as_me: error: cannot run test program while cross compiling
40206 See \`config.log' for more details." >&2;}
40207 { (exit 1); exit 1; }; }
40209 cat >conftest.$ac_ext <<_ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h. */
40215 $ac_includes_default
40216 long longval () { return (long) (sizeof (wchar_t)); }
40217 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40219 #include <stdlib.h>
40224 FILE *f = fopen ("conftest.val", "w");
40227 if (((long) (sizeof (wchar_t))) < 0)
40229 long i = longval ();
40230 if (i != ((long) (sizeof (wchar_t))))
40232 fprintf (f, "%ld\n", i);
40236 unsigned long i = ulongval ();
40237 if (i != ((long) (sizeof (wchar_t))))
40239 fprintf (f, "%lu\n", i);
40241 exit (ferror (f) || fclose (f) != 0);
40247 rm -f conftest$ac_exeext
40248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40249 (eval $ac_link) 2>&5
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40254 (eval $ac_try) 2>&5
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); }; }; then
40258 ac_cv_sizeof_wchar_t=`cat conftest.val`
40260 echo "$as_me: program exited with status $ac_status" >&5
40261 echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40264 ( exit $ac_status )
40265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40266 See \`config.log' for more details." >&5
40267 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40268 See \`config.log' for more details." >&2;}
40269 { (exit 1); exit 1; }; }
40271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40276 ac_cv_sizeof_wchar_t=0
40279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40280 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40281 cat >>confdefs.h <<_ACEOF
40282 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40287 if test "$ac_cv_sizeof_int" -lt 4 ; then
40288 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40289 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40292 cat >>confdefs.h <<\_ACEOF
40293 #define LBER_INT_T long
40298 cat >>confdefs.h <<\_ACEOF
40299 #define LBER_INT_T int
40305 cat >>confdefs.h <<\_ACEOF
40306 #define LBER_LEN_T long
40310 cat >>confdefs.h <<\_ACEOF
40311 #define LBER_SOCKET_T int
40315 cat >>confdefs.h <<\_ACEOF
40316 #define LBER_TAG_T long
40320 echo "$as_me:$LINENO: checking for working memcmp" >&5
40321 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40322 if test "${ac_cv_func_memcmp_working+set}" = set; then
40323 echo $ECHO_N "(cached) $ECHO_C" >&6
40325 if test "$cross_compiling" = yes; then
40326 ac_cv_func_memcmp_working=no
40328 cat >conftest.$ac_ext <<_ACEOF
40331 cat confdefs.h >>conftest.$ac_ext
40332 cat >>conftest.$ac_ext <<_ACEOF
40333 /* end confdefs.h. */
40334 $ac_includes_default
40339 /* Some versions of memcmp are not 8-bit clean. */
40340 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40341 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40344 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40345 or more and with at least one buffer not starting on a 4-byte boundary.
40346 William Lewis provided this test program. */
40351 for (i = 0; i < 4; i++)
40355 strcpy (a, "--------01111111");
40356 strcpy (b, "--------10000000");
40357 if (memcmp (a, b, 16) >= 0)
40367 rm -f conftest$ac_exeext
40368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40369 (eval $ac_link) 2>&5
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40374 (eval $ac_try) 2>&5
40376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); }; }; then
40378 ac_cv_func_memcmp_working=yes
40380 echo "$as_me: program exited with status $ac_status" >&5
40381 echo "$as_me: failed program was:" >&5
40382 sed 's/^/| /' conftest.$ac_ext >&5
40384 ( exit $ac_status )
40385 ac_cv_func_memcmp_working=no
40387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40390 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40391 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40392 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40393 "memcmp.$ac_objext" | \
40394 *" memcmp.$ac_objext" | \
40395 "memcmp.$ac_objext "* | \
40396 *" memcmp.$ac_objext "* ) ;;
40397 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40402 if test $ac_cv_func_memcmp_working = no ; then
40404 cat >>confdefs.h <<\_ACEOF
40405 #define NEED_MEMCMP_REPLACEMENT 1
40411 for ac_func in strftime
40413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40414 echo "$as_me:$LINENO: checking for $ac_func" >&5
40415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40416 if eval "test \"\${$as_ac_var+set}\" = set"; then
40417 echo $ECHO_N "(cached) $ECHO_C" >&6
40419 cat >conftest.$ac_ext <<_ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h. */
40425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40427 #define $ac_func innocuous_$ac_func
40429 /* System header to define __stub macros and hopefully few prototypes,
40430 which can conflict with char $ac_func (); below.
40431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40432 <limits.h> exists even on freestanding compilers. */
40435 # include <limits.h>
40437 # include <assert.h>
40442 /* Override any gcc2 internal prototype to avoid an error. */
40447 /* We use char because int might match the return type of a gcc2
40448 builtin and then its argument prototype would still apply. */
40450 /* The GNU C library defines this for functions which it implements
40451 to always fail with ENOSYS. Some functions are actually named
40452 something starting with __ and the normal name is an alias. */
40453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40456 char (*f) () = $ac_func;
40465 return f != $ac_func;
40470 rm -f conftest.$ac_objext conftest$ac_exeext
40471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40472 (eval $ac_link) 2>conftest.er1
40474 grep -v '^ *+' conftest.er1 >conftest.err
40476 cat conftest.err >&5
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); } &&
40479 { ac_try='test -z "$ac_c_werror_flag"
40480 || test ! -s conftest.err'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; } &&
40486 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40492 eval "$as_ac_var=yes"
40494 echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40497 eval "$as_ac_var=no"
40499 rm -f conftest.err conftest.$ac_objext \
40500 conftest$ac_exeext conftest.$ac_ext
40502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40504 if test `eval echo '${'$as_ac_var'}'` = yes; then
40505 cat >>confdefs.h <<_ACEOF
40506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40510 # strftime is in -lintl on SCO UNIX.
40511 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40512 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40513 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40514 echo $ECHO_N "(cached) $ECHO_C" >&6
40516 ac_check_lib_save_LIBS=$LIBS
40517 LIBS="-lintl $LIBS"
40518 cat >conftest.$ac_ext <<_ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h. */
40525 /* Override any gcc2 internal prototype to avoid an error. */
40529 /* We use char because int might match the return type of a gcc2
40530 builtin and then its argument prototype would still apply. */
40540 rm -f conftest.$ac_objext conftest$ac_exeext
40541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40542 (eval $ac_link) 2>conftest.er1
40544 grep -v '^ *+' conftest.er1 >conftest.err
40546 cat conftest.err >&5
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); } &&
40549 { ac_try='test -z "$ac_c_werror_flag"
40550 || test ! -s conftest.err'
40551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552 (eval $ac_try) 2>&5
40554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555 (exit $ac_status); }; } &&
40556 { ac_try='test -s conftest$ac_exeext'
40557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40558 (eval $ac_try) 2>&5
40560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561 (exit $ac_status); }; }; then
40562 ac_cv_lib_intl_strftime=yes
40564 echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40567 ac_cv_lib_intl_strftime=no
40569 rm -f conftest.err conftest.$ac_objext \
40570 conftest$ac_exeext conftest.$ac_ext
40571 LIBS=$ac_check_lib_save_LIBS
40573 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40574 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40575 if test $ac_cv_lib_intl_strftime = yes; then
40576 cat >>confdefs.h <<\_ACEOF
40577 #define HAVE_STRFTIME 1
40580 LIBS="-lintl $LIBS"
40587 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40588 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40589 if test "${ol_cv_func_inet_aton+set}" = set; then
40590 echo $ECHO_N "(cached) $ECHO_C" >&6
40592 cat >conftest.$ac_ext <<_ACEOF
40595 cat confdefs.h >>conftest.$ac_ext
40596 cat >>conftest.$ac_ext <<_ACEOF
40597 /* end confdefs.h. */
40599 #ifdef HAVE_SYS_TYPES_H
40600 # include <sys/types.h>
40602 #ifdef HAVE_SYS_SOCKET_H
40603 # include <sys/socket.h>
40604 # ifdef HAVE_SYS_SELECT_H
40605 # include <sys/select.h>
40607 # include <netinet/in.h>
40608 # ifdef HAVE_ARPA_INET_H
40609 # include <arpa/inet.h>
40617 int rc = inet_aton( "255.255.255.255", &in );
40622 rm -f conftest.$ac_objext conftest$ac_exeext
40623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40624 (eval $ac_link) 2>conftest.er1
40626 grep -v '^ *+' conftest.er1 >conftest.err
40628 cat conftest.err >&5
40629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630 (exit $ac_status); } &&
40631 { ac_try='test -z "$ac_c_werror_flag"
40632 || test ! -s conftest.err'
40633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40634 (eval $ac_try) 2>&5
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); }; } &&
40638 { ac_try='test -s conftest$ac_exeext'
40639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40640 (eval $ac_try) 2>&5
40642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40643 (exit $ac_status); }; }; then
40644 ol_cv_func_inet_aton=yes
40646 echo "$as_me: failed program was:" >&5
40647 sed 's/^/| /' conftest.$ac_ext >&5
40649 ol_cv_func_inet_aton=no
40651 rm -f conftest.err conftest.$ac_objext \
40652 conftest$ac_exeext conftest.$ac_ext
40654 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40655 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40656 if test $ol_cv_func_inet_aton != no; then
40658 cat >>confdefs.h <<\_ACEOF
40659 #define HAVE_INET_ATON 1
40665 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40666 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40667 if test "${ac_cv_func__spawnlp+set}" = set; then
40668 echo $ECHO_N "(cached) $ECHO_C" >&6
40670 cat >conftest.$ac_ext <<_ACEOF
40673 cat confdefs.h >>conftest.$ac_ext
40674 cat >>conftest.$ac_ext <<_ACEOF
40675 /* end confdefs.h. */
40676 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40678 #define _spawnlp innocuous__spawnlp
40680 /* System header to define __stub macros and hopefully few prototypes,
40681 which can conflict with char _spawnlp (); below.
40682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40683 <limits.h> exists even on freestanding compilers. */
40686 # include <limits.h>
40688 # include <assert.h>
40693 /* Override any gcc2 internal prototype to avoid an error. */
40698 /* We use char because int might match the return type of a gcc2
40699 builtin and then its argument prototype would still apply. */
40701 /* The GNU C library defines this for functions which it implements
40702 to always fail with ENOSYS. Some functions are actually named
40703 something starting with __ and the normal name is an alias. */
40704 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40707 char (*f) () = _spawnlp;
40716 return f != _spawnlp;
40721 rm -f conftest.$ac_objext conftest$ac_exeext
40722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40723 (eval $ac_link) 2>conftest.er1
40725 grep -v '^ *+' conftest.er1 >conftest.err
40727 cat conftest.err >&5
40728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40729 (exit $ac_status); } &&
40730 { ac_try='test -z "$ac_c_werror_flag"
40731 || test ! -s conftest.err'
40732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40733 (eval $ac_try) 2>&5
40735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); }; } &&
40737 { ac_try='test -s conftest$ac_exeext'
40738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40739 (eval $ac_try) 2>&5
40741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40742 (exit $ac_status); }; }; then
40743 ac_cv_func__spawnlp=yes
40745 echo "$as_me: failed program was:" >&5
40746 sed 's/^/| /' conftest.$ac_ext >&5
40748 ac_cv_func__spawnlp=no
40750 rm -f conftest.err conftest.$ac_objext \
40751 conftest$ac_exeext conftest.$ac_ext
40753 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40754 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40755 if test $ac_cv_func__spawnlp = yes; then
40757 cat >>confdefs.h <<\_ACEOF
40758 #define HAVE_SPAWNLP 1
40764 echo "$as_me:$LINENO: checking for _snprintf" >&5
40765 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40766 if test "${ac_cv_func__snprintf+set}" = set; then
40767 echo $ECHO_N "(cached) $ECHO_C" >&6
40769 cat >conftest.$ac_ext <<_ACEOF
40772 cat confdefs.h >>conftest.$ac_ext
40773 cat >>conftest.$ac_ext <<_ACEOF
40774 /* end confdefs.h. */
40775 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40777 #define _snprintf innocuous__snprintf
40779 /* System header to define __stub macros and hopefully few prototypes,
40780 which can conflict with char _snprintf (); below.
40781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40782 <limits.h> exists even on freestanding compilers. */
40785 # include <limits.h>
40787 # include <assert.h>
40792 /* Override any gcc2 internal prototype to avoid an error. */
40797 /* We use char because int might match the return type of a gcc2
40798 builtin and then its argument prototype would still apply. */
40800 /* The GNU C library defines this for functions which it implements
40801 to always fail with ENOSYS. Some functions are actually named
40802 something starting with __ and the normal name is an alias. */
40803 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40806 char (*f) () = _snprintf;
40815 return f != _snprintf;
40820 rm -f conftest.$ac_objext conftest$ac_exeext
40821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40822 (eval $ac_link) 2>conftest.er1
40824 grep -v '^ *+' conftest.er1 >conftest.err
40826 cat conftest.err >&5
40827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828 (exit $ac_status); } &&
40829 { ac_try='test -z "$ac_c_werror_flag"
40830 || test ! -s conftest.err'
40831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832 (eval $ac_try) 2>&5
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); }; } &&
40836 { ac_try='test -s conftest$ac_exeext'
40837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40838 (eval $ac_try) 2>&5
40840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841 (exit $ac_status); }; }; then
40842 ac_cv_func__snprintf=yes
40844 echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40847 ac_cv_func__snprintf=no
40849 rm -f conftest.err conftest.$ac_objext \
40850 conftest$ac_exeext conftest.$ac_ext
40852 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40853 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40854 if test $ac_cv_func__snprintf = yes; then
40855 ac_cv_func_snprintf=yes
40857 cat >>confdefs.h <<\_ACEOF
40858 #define snprintf _snprintf
40865 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40866 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40867 if test "${ac_cv_func__vsnprintf+set}" = set; then
40868 echo $ECHO_N "(cached) $ECHO_C" >&6
40870 cat >conftest.$ac_ext <<_ACEOF
40873 cat confdefs.h >>conftest.$ac_ext
40874 cat >>conftest.$ac_ext <<_ACEOF
40875 /* end confdefs.h. */
40876 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40878 #define _vsnprintf innocuous__vsnprintf
40880 /* System header to define __stub macros and hopefully few prototypes,
40881 which can conflict with char _vsnprintf (); below.
40882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40883 <limits.h> exists even on freestanding compilers. */
40886 # include <limits.h>
40888 # include <assert.h>
40893 /* Override any gcc2 internal prototype to avoid an error. */
40898 /* We use char because int might match the return type of a gcc2
40899 builtin and then its argument prototype would still apply. */
40900 char _vsnprintf ();
40901 /* The GNU C library defines this for functions which it implements
40902 to always fail with ENOSYS. Some functions are actually named
40903 something starting with __ and the normal name is an alias. */
40904 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40907 char (*f) () = _vsnprintf;
40916 return f != _vsnprintf;
40921 rm -f conftest.$ac_objext conftest$ac_exeext
40922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40923 (eval $ac_link) 2>conftest.er1
40925 grep -v '^ *+' conftest.er1 >conftest.err
40927 cat conftest.err >&5
40928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929 (exit $ac_status); } &&
40930 { ac_try='test -z "$ac_c_werror_flag"
40931 || test ! -s conftest.err'
40932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933 (eval $ac_try) 2>&5
40935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936 (exit $ac_status); }; } &&
40937 { ac_try='test -s conftest$ac_exeext'
40938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40939 (eval $ac_try) 2>&5
40941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942 (exit $ac_status); }; }; then
40943 ac_cv_func__vsnprintf=yes
40945 echo "$as_me: failed program was:" >&5
40946 sed 's/^/| /' conftest.$ac_ext >&5
40948 ac_cv_func__vsnprintf=no
40950 rm -f conftest.err conftest.$ac_objext \
40951 conftest$ac_exeext conftest.$ac_ext
40953 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40954 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40955 if test $ac_cv_func__vsnprintf = yes; then
40956 ac_cv_func_vsnprintf=yes
40958 cat >>confdefs.h <<\_ACEOF
40959 #define vsnprintf _vsnprintf
40967 for ac_func in vprintf
40969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40970 echo "$as_me:$LINENO: checking for $ac_func" >&5
40971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40972 if eval "test \"\${$as_ac_var+set}\" = set"; then
40973 echo $ECHO_N "(cached) $ECHO_C" >&6
40975 cat >conftest.$ac_ext <<_ACEOF
40978 cat confdefs.h >>conftest.$ac_ext
40979 cat >>conftest.$ac_ext <<_ACEOF
40980 /* end confdefs.h. */
40981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40983 #define $ac_func innocuous_$ac_func
40985 /* System header to define __stub macros and hopefully few prototypes,
40986 which can conflict with char $ac_func (); below.
40987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40988 <limits.h> exists even on freestanding compilers. */
40991 # include <limits.h>
40993 # include <assert.h>
40998 /* Override any gcc2 internal prototype to avoid an error. */
41003 /* We use char because int might match the return type of a gcc2
41004 builtin and then its argument prototype would still apply. */
41006 /* The GNU C library defines this for functions which it implements
41007 to always fail with ENOSYS. Some functions are actually named
41008 something starting with __ and the normal name is an alias. */
41009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41012 char (*f) () = $ac_func;
41021 return f != $ac_func;
41026 rm -f conftest.$ac_objext conftest$ac_exeext
41027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41028 (eval $ac_link) 2>conftest.er1
41030 grep -v '^ *+' conftest.er1 >conftest.err
41032 cat conftest.err >&5
41033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 (exit $ac_status); } &&
41035 { ac_try='test -z "$ac_c_werror_flag"
41036 || test ! -s conftest.err'
41037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038 (eval $ac_try) 2>&5
41040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041 (exit $ac_status); }; } &&
41042 { ac_try='test -s conftest$ac_exeext'
41043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41044 (eval $ac_try) 2>&5
41046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047 (exit $ac_status); }; }; then
41048 eval "$as_ac_var=yes"
41050 echo "$as_me: failed program was:" >&5
41051 sed 's/^/| /' conftest.$ac_ext >&5
41053 eval "$as_ac_var=no"
41055 rm -f conftest.err conftest.$ac_objext \
41056 conftest$ac_exeext conftest.$ac_ext
41058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41060 if test `eval echo '${'$as_ac_var'}'` = yes; then
41061 cat >>confdefs.h <<_ACEOF
41062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41065 echo "$as_me:$LINENO: checking for _doprnt" >&5
41066 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41067 if test "${ac_cv_func__doprnt+set}" = set; then
41068 echo $ECHO_N "(cached) $ECHO_C" >&6
41070 cat >conftest.$ac_ext <<_ACEOF
41073 cat confdefs.h >>conftest.$ac_ext
41074 cat >>conftest.$ac_ext <<_ACEOF
41075 /* end confdefs.h. */
41076 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41078 #define _doprnt innocuous__doprnt
41080 /* System header to define __stub macros and hopefully few prototypes,
41081 which can conflict with char _doprnt (); below.
41082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41083 <limits.h> exists even on freestanding compilers. */
41086 # include <limits.h>
41088 # include <assert.h>
41093 /* Override any gcc2 internal prototype to avoid an error. */
41098 /* We use char because int might match the return type of a gcc2
41099 builtin and then its argument prototype would still apply. */
41101 /* The GNU C library defines this for functions which it implements
41102 to always fail with ENOSYS. Some functions are actually named
41103 something starting with __ and the normal name is an alias. */
41104 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41107 char (*f) () = _doprnt;
41116 return f != _doprnt;
41121 rm -f conftest.$ac_objext conftest$ac_exeext
41122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41123 (eval $ac_link) 2>conftest.er1
41125 grep -v '^ *+' conftest.er1 >conftest.err
41127 cat conftest.err >&5
41128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129 (exit $ac_status); } &&
41130 { ac_try='test -z "$ac_c_werror_flag"
41131 || test ! -s conftest.err'
41132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41133 (eval $ac_try) 2>&5
41135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136 (exit $ac_status); }; } &&
41137 { ac_try='test -s conftest$ac_exeext'
41138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41139 (eval $ac_try) 2>&5
41141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); }; }; then
41143 ac_cv_func__doprnt=yes
41145 echo "$as_me: failed program was:" >&5
41146 sed 's/^/| /' conftest.$ac_ext >&5
41148 ac_cv_func__doprnt=no
41150 rm -f conftest.err conftest.$ac_objext \
41151 conftest$ac_exeext conftest.$ac_ext
41153 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41154 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41155 if test $ac_cv_func__doprnt = yes; then
41157 cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_DOPRNT 1
41168 if test $ac_cv_func_vprintf = yes ; then
41171 for ac_func in snprintf vsnprintf
41173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41174 echo "$as_me:$LINENO: checking for $ac_func" >&5
41175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41176 if eval "test \"\${$as_ac_var+set}\" = set"; then
41177 echo $ECHO_N "(cached) $ECHO_C" >&6
41179 cat >conftest.$ac_ext <<_ACEOF
41182 cat confdefs.h >>conftest.$ac_ext
41183 cat >>conftest.$ac_ext <<_ACEOF
41184 /* end confdefs.h. */
41185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41187 #define $ac_func innocuous_$ac_func
41189 /* System header to define __stub macros and hopefully few prototypes,
41190 which can conflict with char $ac_func (); below.
41191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41192 <limits.h> exists even on freestanding compilers. */
41195 # include <limits.h>
41197 # include <assert.h>
41202 /* Override any gcc2 internal prototype to avoid an error. */
41207 /* We use char because int might match the return type of a gcc2
41208 builtin and then its argument prototype would still apply. */
41210 /* The GNU C library defines this for functions which it implements
41211 to always fail with ENOSYS. Some functions are actually named
41212 something starting with __ and the normal name is an alias. */
41213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41216 char (*f) () = $ac_func;
41225 return f != $ac_func;
41230 rm -f conftest.$ac_objext conftest$ac_exeext
41231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41232 (eval $ac_link) 2>conftest.er1
41234 grep -v '^ *+' conftest.er1 >conftest.err
41236 cat conftest.err >&5
41237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238 (exit $ac_status); } &&
41239 { ac_try='test -z "$ac_c_werror_flag"
41240 || test ! -s conftest.err'
41241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41242 (eval $ac_try) 2>&5
41244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41245 (exit $ac_status); }; } &&
41246 { ac_try='test -s conftest$ac_exeext'
41247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41248 (eval $ac_try) 2>&5
41250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41251 (exit $ac_status); }; }; then
41252 eval "$as_ac_var=yes"
41254 echo "$as_me: failed program was:" >&5
41255 sed 's/^/| /' conftest.$ac_ext >&5
41257 eval "$as_ac_var=no"
41259 rm -f conftest.err conftest.$ac_objext \
41260 conftest$ac_exeext conftest.$ac_ext
41262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41264 if test `eval echo '${'$as_ac_var'}'` = yes; then
41265 cat >>confdefs.h <<_ACEOF
41266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41384 echo "$as_me:$LINENO: checking for $ac_func" >&5
41385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41386 if eval "test \"\${$as_ac_var+set}\" = set"; then
41387 echo $ECHO_N "(cached) $ECHO_C" >&6
41389 cat >conftest.$ac_ext <<_ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h. */
41395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41397 #define $ac_func innocuous_$ac_func
41399 /* System header to define __stub macros and hopefully few prototypes,
41400 which can conflict with char $ac_func (); below.
41401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41402 <limits.h> exists even on freestanding compilers. */
41405 # include <limits.h>
41407 # include <assert.h>
41412 /* Override any gcc2 internal prototype to avoid an error. */
41417 /* We use char because int might match the return type of a gcc2
41418 builtin and then its argument prototype would still apply. */
41420 /* The GNU C library defines this for functions which it implements
41421 to always fail with ENOSYS. Some functions are actually named
41422 something starting with __ and the normal name is an alias. */
41423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41426 char (*f) () = $ac_func;
41435 return f != $ac_func;
41440 rm -f conftest.$ac_objext conftest$ac_exeext
41441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41442 (eval $ac_link) 2>conftest.er1
41444 grep -v '^ *+' conftest.er1 >conftest.err
41446 cat conftest.err >&5
41447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448 (exit $ac_status); } &&
41449 { ac_try='test -z "$ac_c_werror_flag"
41450 || test ! -s conftest.err'
41451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41452 (eval $ac_try) 2>&5
41454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455 (exit $ac_status); }; } &&
41456 { ac_try='test -s conftest$ac_exeext'
41457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458 (eval $ac_try) 2>&5
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); }; }; then
41462 eval "$as_ac_var=yes"
41464 echo "$as_me: failed program was:" >&5
41465 sed 's/^/| /' conftest.$ac_ext >&5
41467 eval "$as_ac_var=no"
41469 rm -f conftest.err conftest.$ac_objext \
41470 conftest$ac_exeext conftest.$ac_ext
41472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41474 if test `eval echo '${'$as_ac_var'}'` = yes; then
41475 cat >>confdefs.h <<_ACEOF
41476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41485 for ac_func in getopt getpeereid
41487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41488 echo "$as_me:$LINENO: checking for $ac_func" >&5
41489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41490 if eval "test \"\${$as_ac_var+set}\" = set"; then
41491 echo $ECHO_N "(cached) $ECHO_C" >&6
41493 cat >conftest.$ac_ext <<_ACEOF
41496 cat confdefs.h >>conftest.$ac_ext
41497 cat >>conftest.$ac_ext <<_ACEOF
41498 /* end confdefs.h. */
41499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41501 #define $ac_func innocuous_$ac_func
41503 /* System header to define __stub macros and hopefully few prototypes,
41504 which can conflict with char $ac_func (); below.
41505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41506 <limits.h> exists even on freestanding compilers. */
41509 # include <limits.h>
41511 # include <assert.h>
41516 /* Override any gcc2 internal prototype to avoid an error. */
41521 /* We use char because int might match the return type of a gcc2
41522 builtin and then its argument prototype would still apply. */
41524 /* The GNU C library defines this for functions which it implements
41525 to always fail with ENOSYS. Some functions are actually named
41526 something starting with __ and the normal name is an alias. */
41527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41530 char (*f) () = $ac_func;
41539 return f != $ac_func;
41544 rm -f conftest.$ac_objext conftest$ac_exeext
41545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41546 (eval $ac_link) 2>conftest.er1
41548 grep -v '^ *+' conftest.er1 >conftest.err
41550 cat conftest.err >&5
41551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41552 (exit $ac_status); } &&
41553 { ac_try='test -z "$ac_c_werror_flag"
41554 || test ! -s conftest.err'
41555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41556 (eval $ac_try) 2>&5
41558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41559 (exit $ac_status); }; } &&
41560 { ac_try='test -s conftest$ac_exeext'
41561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41562 (eval $ac_try) 2>&5
41564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41565 (exit $ac_status); }; }; then
41566 eval "$as_ac_var=yes"
41568 echo "$as_me: failed program was:" >&5
41569 sed 's/^/| /' conftest.$ac_ext >&5
41571 eval "$as_ac_var=no"
41573 rm -f conftest.err conftest.$ac_objext \
41574 conftest$ac_exeext conftest.$ac_ext
41576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41578 if test `eval echo '${'$as_ac_var'}'` = yes; then
41579 cat >>confdefs.h <<_ACEOF
41580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41585 "$ac_func.$ac_objext" | \
41586 *" $ac_func.$ac_objext" | \
41587 "$ac_func.$ac_objext "* | \
41588 *" $ac_func.$ac_objext "* ) ;;
41589 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41597 if test "$ac_cv_func_getopt" != yes; then
41598 LIBSRCS="$LIBSRCS getopt.c"
41600 if test "$ac_cv_func_getpeereid" != yes; then
41601 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41602 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41603 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41604 echo $ECHO_N "(cached) $ECHO_C" >&6
41606 cat >conftest.$ac_ext <<_ACEOF
41609 cat confdefs.h >>conftest.$ac_ext
41610 cat >>conftest.$ac_ext <<_ACEOF
41611 /* end confdefs.h. */
41612 $ac_includes_default
41613 #ifdef HAVE_SYS_SOCKET_H
41614 #include <sys/socket.h>
41620 static struct msghdr ac_aggr;
41621 if (ac_aggr.msg_accrightslen)
41627 rm -f conftest.$ac_objext
41628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41629 (eval $ac_compile) 2>conftest.er1
41631 grep -v '^ *+' conftest.er1 >conftest.err
41633 cat conftest.err >&5
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); } &&
41636 { ac_try='test -z "$ac_c_werror_flag"
41637 || test ! -s conftest.err'
41638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41639 (eval $ac_try) 2>&5
41641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41642 (exit $ac_status); }; } &&
41643 { ac_try='test -s conftest.$ac_objext'
41644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41645 (eval $ac_try) 2>&5
41647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); }; }; then
41649 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41651 echo "$as_me: failed program was:" >&5
41652 sed 's/^/| /' conftest.$ac_ext >&5
41654 cat >conftest.$ac_ext <<_ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h. */
41660 $ac_includes_default
41661 #ifdef HAVE_SYS_SOCKET_H
41662 #include <sys/socket.h>
41668 static struct msghdr ac_aggr;
41669 if (sizeof ac_aggr.msg_accrightslen)
41675 rm -f conftest.$ac_objext
41676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41677 (eval $ac_compile) 2>conftest.er1
41679 grep -v '^ *+' conftest.er1 >conftest.err
41681 cat conftest.err >&5
41682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683 (exit $ac_status); } &&
41684 { ac_try='test -z "$ac_c_werror_flag"
41685 || test ! -s conftest.err'
41686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687 (eval $ac_try) 2>&5
41689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690 (exit $ac_status); }; } &&
41691 { ac_try='test -s conftest.$ac_objext'
41692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693 (eval $ac_try) 2>&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); }; }; then
41697 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41699 echo "$as_me: failed program was:" >&5
41700 sed 's/^/| /' conftest.$ac_ext >&5
41702 ac_cv_member_struct_msghdr_msg_accrightslen=no
41704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41708 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41709 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41710 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41712 cat >>confdefs.h <<_ACEOF
41713 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41719 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41720 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41721 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41722 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41723 echo $ECHO_N "(cached) $ECHO_C" >&6
41725 cat >conftest.$ac_ext <<_ACEOF
41728 cat confdefs.h >>conftest.$ac_ext
41729 cat >>conftest.$ac_ext <<_ACEOF
41730 /* end confdefs.h. */
41731 $ac_includes_default
41732 #ifdef HAVE_SYS_SOCKET_H
41733 #include <sys/socket.h>
41739 static struct msghdr ac_aggr;
41740 if (ac_aggr.msg_control)
41746 rm -f conftest.$ac_objext
41747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41748 (eval $ac_compile) 2>conftest.er1
41750 grep -v '^ *+' conftest.er1 >conftest.err
41752 cat conftest.err >&5
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); } &&
41755 { ac_try='test -z "$ac_c_werror_flag"
41756 || test ! -s conftest.err'
41757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758 (eval $ac_try) 2>&5
41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761 (exit $ac_status); }; } &&
41762 { ac_try='test -s conftest.$ac_objext'
41763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41764 (eval $ac_try) 2>&5
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); }; }; then
41768 ac_cv_member_struct_msghdr_msg_control=yes
41770 echo "$as_me: failed program was:" >&5
41771 sed 's/^/| /' conftest.$ac_ext >&5
41773 cat >conftest.$ac_ext <<_ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h. */
41779 $ac_includes_default
41780 #ifdef HAVE_SYS_SOCKET_H
41781 #include <sys/socket.h>
41787 static struct msghdr ac_aggr;
41788 if (sizeof ac_aggr.msg_control)
41794 rm -f conftest.$ac_objext
41795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41796 (eval $ac_compile) 2>conftest.er1
41798 grep -v '^ *+' conftest.er1 >conftest.err
41800 cat conftest.err >&5
41801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802 (exit $ac_status); } &&
41803 { ac_try='test -z "$ac_c_werror_flag"
41804 || test ! -s conftest.err'
41805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41806 (eval $ac_try) 2>&5
41808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41809 (exit $ac_status); }; } &&
41810 { ac_try='test -s conftest.$ac_objext'
41811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41812 (eval $ac_try) 2>&5
41814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815 (exit $ac_status); }; }; then
41816 ac_cv_member_struct_msghdr_msg_control=yes
41818 echo "$as_me: failed program was:" >&5
41819 sed 's/^/| /' conftest.$ac_ext >&5
41821 ac_cv_member_struct_msghdr_msg_control=no
41823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41827 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41828 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41829 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41831 cat >>confdefs.h <<_ACEOF
41832 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41839 LIBSRCS="$LIBSRCS getpeereid.c"
41841 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
41842 if test "$ac_cv_func_snprintf" != yes; then
41844 cat >>confdefs.h <<\_ACEOF
41845 #define snprintf ber_pvt_snprintf
41849 if test "$ac_cv_func_vsnprintf" != yes; then
41851 cat >>confdefs.h <<\_ACEOF
41852 #define vsnprintf ber_pvt_vsnprintf
41859 if test "$ol_enable_slapi" != no ; then
41861 for ac_header in ltdl.h
41863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41865 echo "$as_me:$LINENO: checking for $ac_header" >&5
41866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41868 echo $ECHO_N "(cached) $ECHO_C" >&6
41870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41873 # Is the header compilable?
41874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41876 cat >conftest.$ac_ext <<_ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h. */
41882 $ac_includes_default
41883 #include <$ac_header>
41885 rm -f conftest.$ac_objext
41886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41887 (eval $ac_compile) 2>conftest.er1
41889 grep -v '^ *+' conftest.er1 >conftest.err
41891 cat conftest.err >&5
41892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41893 (exit $ac_status); } &&
41894 { ac_try='test -z "$ac_c_werror_flag"
41895 || test ! -s conftest.err'
41896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41897 (eval $ac_try) 2>&5
41899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900 (exit $ac_status); }; } &&
41901 { ac_try='test -s conftest.$ac_objext'
41902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41903 (eval $ac_try) 2>&5
41905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41906 (exit $ac_status); }; }; then
41907 ac_header_compiler=yes
41909 echo "$as_me: failed program was:" >&5
41910 sed 's/^/| /' conftest.$ac_ext >&5
41912 ac_header_compiler=no
41914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41916 echo "${ECHO_T}$ac_header_compiler" >&6
41918 # Is the header present?
41919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41921 cat >conftest.$ac_ext <<_ACEOF
41924 cat confdefs.h >>conftest.$ac_ext
41925 cat >>conftest.$ac_ext <<_ACEOF
41926 /* end confdefs.h. */
41927 #include <$ac_header>
41929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41932 grep -v '^ *+' conftest.er1 >conftest.err
41934 cat conftest.err >&5
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); } >/dev/null; then
41937 if test -s conftest.err; then
41938 ac_cpp_err=$ac_c_preproc_warn_flag
41939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41946 if test -z "$ac_cpp_err"; then
41947 ac_header_preproc=yes
41949 echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41952 ac_header_preproc=no
41954 rm -f conftest.err conftest.$ac_ext
41955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41956 echo "${ECHO_T}$ac_header_preproc" >&6
41958 # So? What about this header?
41959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41965 ac_header_preproc=yes
41968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41982 ## ------------------------------------------ ##
41983 ## Report this to the AC_PACKAGE_NAME lists. ##
41984 ## ------------------------------------------ ##
41987 sed "s/^/$as_me: WARNING: /" >&2
41990 echo "$as_me:$LINENO: checking for $ac_header" >&5
41991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41993 echo $ECHO_N "(cached) $ECHO_C" >&6
41995 eval "$as_ac_Header=\$ac_header_preproc"
41997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42002 cat >>confdefs.h <<_ACEOF
42003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42011 if test $ac_cv_header_ltdl_h != yes ; then
42012 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42013 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42014 { (exit 1); exit 1; }; }
42016 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42017 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42018 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42019 echo $ECHO_N "(cached) $ECHO_C" >&6
42021 ac_check_lib_save_LIBS=$LIBS
42022 LIBS="-lltdl $LIBS"
42023 cat >conftest.$ac_ext <<_ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h. */
42030 /* Override any gcc2 internal prototype to avoid an error. */
42034 /* We use char because int might match the return type of a gcc2
42035 builtin and then its argument prototype would still apply. */
42045 rm -f conftest.$ac_objext conftest$ac_exeext
42046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42047 (eval $ac_link) 2>conftest.er1
42049 grep -v '^ *+' conftest.er1 >conftest.err
42051 cat conftest.err >&5
42052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053 (exit $ac_status); } &&
42054 { ac_try='test -z "$ac_c_werror_flag"
42055 || test ! -s conftest.err'
42056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057 (eval $ac_try) 2>&5
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); }; } &&
42061 { ac_try='test -s conftest$ac_exeext'
42062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063 (eval $ac_try) 2>&5
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; }; then
42067 ac_cv_lib_ltdl_lt_dlinit=yes
42069 echo "$as_me: failed program was:" >&5
42070 sed 's/^/| /' conftest.$ac_ext >&5
42072 ac_cv_lib_ltdl_lt_dlinit=no
42074 rm -f conftest.err conftest.$ac_objext \
42075 conftest$ac_exeext conftest.$ac_ext
42076 LIBS=$ac_check_lib_save_LIBS
42078 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42079 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42080 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42083 LIBSLAPI=libslapi.a
42084 LIBSLAPITOOLS=../libslapi.a
42086 cat >>confdefs.h <<\_ACEOF
42087 #define HAVE_LIBLTDL 1
42092 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42093 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42094 { (exit 1); exit 1; }; }
42099 cat >>confdefs.h <<\_ACEOF
42100 #define LDAP_SLAPI 1
42105 if test "$ol_enable_debug" != no ; then
42107 cat >>confdefs.h <<\_ACEOF
42108 #define LDAP_DEBUG 1
42112 if test "$ol_enable_syslog" = yes ; then
42114 cat >>confdefs.h <<\_ACEOF
42115 #define LDAP_SYSLOG 1
42119 if test "$ol_link_kbind" != no ; then
42121 cat >>confdefs.h <<\_ACEOF
42122 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42126 if test "$ol_enable_proctitle" != no ; then
42128 cat >>confdefs.h <<\_ACEOF
42129 #define LDAP_PROCTITLE 1
42133 if test "$ol_enable_referrals" != no ; then
42135 cat >>confdefs.h <<\_ACEOF
42136 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42140 if test "$ol_enable_local" != no; then
42142 cat >>confdefs.h <<\_ACEOF
42143 #define LDAP_PF_LOCAL 1
42147 if test "$ol_link_ipv6" != no; then
42149 cat >>confdefs.h <<\_ACEOF
42150 #define LDAP_PF_INET6 1
42154 if test "$ol_enable_cleartext" != no ; then
42156 cat >>confdefs.h <<\_ACEOF
42157 #define SLAPD_CLEARTEXT 1
42161 if test "$ol_enable_crypt" != no ; then
42163 cat >>confdefs.h <<\_ACEOF
42164 #define SLAPD_CRYPT 1
42168 if test "$ol_link_spasswd" != no ; then
42170 cat >>confdefs.h <<\_ACEOF
42171 #define SLAPD_SPASSWD 1
42175 if test "$ol_enable_multimaster" != no ; then
42177 cat >>confdefs.h <<\_ACEOF
42178 #define SLAPD_MULTIMASTER 1
42182 if test "$ol_enable_rlookups" != no ; then
42184 cat >>confdefs.h <<\_ACEOF
42185 #define SLAPD_RLOOKUPS 1
42189 if test "$ol_enable_aci" != no ; then
42191 cat >>confdefs.h <<\_ACEOF
42192 #define SLAPD_ACI_ENABLED 1
42195 WITH_ACI_ENABLED=yes
42197 WITH_ACI_ENABLED=no
42200 if test "$ol_link_modules" != no ; then
42202 cat >>confdefs.h <<\_ACEOF
42203 #define SLAPD_MODULES 1
42207 SLAPD_MODULES_LDFLAGS="-dlopen self"
42211 cat >>confdefs.h <<\_ACEOF
42212 #define SLAPD_MOD_STATIC 1
42216 cat >>confdefs.h <<\_ACEOF
42217 #define SLAPD_MOD_DYNAMIC 2
42221 if test "$ol_enable_bdb" != no ; then
42223 BUILD_BDB=$ol_enable_bdb
42224 if test "$ol_enable_bdb" = mod ; then
42225 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42226 MFLAG=SLAPD_MOD_DYNAMIC
42228 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42229 MFLAG=SLAPD_MOD_STATIC
42232 cat >>confdefs.h <<_ACEOF
42233 #define SLAPD_BDB $MFLAG
42238 if test "$ol_enable_dnssrv" != no ; then
42240 BUILD_DNSSRV=$ol_enable_dnssrv
42241 if test "$ol_enable_dnssrv" = mod ; then
42242 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42243 MFLAG=SLAPD_MOD_DYNAMIC
42245 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42246 MFLAG=SLAPD_MOD_STATIC
42249 cat >>confdefs.h <<_ACEOF
42250 #define SLAPD_DNSSRV $MFLAG
42255 if test "$ol_enable_hdb" != no ; then
42257 BUILD_HDB=$ol_enable_hdb
42258 if test "$ol_enable_hdb" = mod ; then
42259 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42260 MFLAG=SLAPD_MOD_DYNAMIC
42262 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42263 MFLAG=SLAPD_MOD_STATIC
42266 cat >>confdefs.h <<_ACEOF
42267 #define SLAPD_HDB $MFLAG
42272 if test "$ol_enable_ldap" != no ; then
42274 BUILD_LDAP=$ol_enable_ldap
42275 if test "$ol_enable_ldap" = mod ; then
42276 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42277 MFLAG=SLAPD_MOD_DYNAMIC
42279 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42280 MFLAG=SLAPD_MOD_STATIC
42283 cat >>confdefs.h <<_ACEOF
42284 #define SLAPD_LDAP $MFLAG
42289 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
42291 BUILD_LDBM=$ol_enable_ldbm
42292 if test "$ol_enable_ldbm" = mod ; then
42293 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42294 MFLAG=SLAPD_MOD_DYNAMIC
42296 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42297 MFLAG=SLAPD_MOD_STATIC
42300 cat >>confdefs.h <<_ACEOF
42301 #define SLAPD_LDBM $MFLAG
42306 if test "$ol_enable_meta" != no ; then
42308 BUILD_META=$ol_enable_meta
42310 if test "$ol_enable_meta" = mod ; then
42311 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42312 MFLAG=SLAPD_MOD_DYNAMIC
42314 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42315 MFLAG=SLAPD_MOD_STATIC
42318 cat >>confdefs.h <<_ACEOF
42319 #define SLAPD_META $MFLAG
42324 if test "$ol_enable_monitor" != no ; then
42326 BUILD_MONITOR=$ol_enable_monitor
42327 if test "$ol_enable_monitor" = mod ; then
42328 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42329 MFLAG=SLAPD_MOD_DYNAMIC
42331 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42332 MFLAG=SLAPD_MOD_STATIC
42335 cat >>confdefs.h <<_ACEOF
42336 #define SLAPD_MONITOR $MFLAG
42341 if test "$ol_enable_null" != no ; then
42343 BUILD_NULL=$ol_enable_null
42344 if test "$ol_enable_null" = mod ; then
42345 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42346 MFLAG=SLAPD_MOD_DYNAMIC
42348 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42349 MFLAG=SLAPD_MOD_STATIC
42352 cat >>confdefs.h <<_ACEOF
42353 #define SLAPD_NULL $MFLAG
42358 if test "$ol_enable_passwd" != no ; then
42360 BUILD_PASSWD=$ol_enable_passwd
42361 if test "$ol_enable_passwd" = mod ; then
42362 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42363 MFLAG=SLAPD_MOD_DYNAMIC
42365 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42366 MFLAG=SLAPD_MOD_STATIC
42369 cat >>confdefs.h <<_ACEOF
42370 #define SLAPD_PASSWD $MFLAG
42375 if test "$ol_link_perl" != no ; then
42377 BUILD_PERL=$ol_enable_perl
42378 if test "$ol_enable_perl" = mod ; then
42379 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42380 MFLAG=SLAPD_MOD_DYNAMIC
42382 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42383 MFLAG=SLAPD_MOD_STATIC
42386 cat >>confdefs.h <<_ACEOF
42387 #define SLAPD_PERL $MFLAG
42392 if test "$ol_enable_relay" != no ; then
42394 BUILD_RELAY=$ol_enable_relay
42395 if test "$ol_enable_relay" = mod ; then
42396 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42397 MFLAG=SLAPD_MOD_DYNAMIC
42399 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42400 MFLAG=SLAPD_MOD_STATIC
42403 cat >>confdefs.h <<_ACEOF
42404 #define SLAPD_RELAY $MFLAG
42409 if test "$ol_enable_shell" != no ; then
42410 if test "$ol_link_threads" != no ; then
42411 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42412 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42415 BUILD_SHELL=$ol_enable_shell
42416 if test "$ol_enable_shell" = mod ; then
42417 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42418 MFLAG=SLAPD_MOD_DYNAMIC
42420 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42421 MFLAG=SLAPD_MOD_STATIC
42424 cat >>confdefs.h <<_ACEOF
42425 #define SLAPD_SHELL $MFLAG
42430 if test "$ol_link_sql" != no ; then
42432 BUILD_SQL=$ol_enable_sql
42433 if test "$ol_enable_sql" = mod; then
42434 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42435 MFLAG=SLAPD_MOD_DYNAMIC
42437 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42438 MFLAG=SLAPD_MOD_STATIC
42441 cat >>confdefs.h <<_ACEOF
42442 #define SLAPD_SQL $MFLAG
42447 if test "$ol_enable_accesslog" != no ; then
42448 BUILD_ACCESSLOG=$ol_enable_accesslog
42449 if test "$ol_enable_accesslog" = mod ; then
42450 MFLAG=SLAPD_MOD_DYNAMIC
42451 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42453 MFLAG=SLAPD_MOD_STATIC
42454 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42457 cat >>confdefs.h <<_ACEOF
42458 #define SLAPD_OVER_ACCESSLOG $MFLAG
42463 if test "$ol_enable_denyop" != no ; then
42464 BUILD_DENYOP=$ol_enable_denyop
42465 if test "$ol_enable_denyop" = mod ; then
42466 MFLAG=SLAPD_MOD_DYNAMIC
42467 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42469 MFLAG=SLAPD_MOD_STATIC
42470 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42473 cat >>confdefs.h <<_ACEOF
42474 #define SLAPD_OVER_DENYOP $MFLAG
42479 if test "$ol_enable_dyngroup" != no ; then
42480 BUILD_DYNGROUP=$ol_enable_dyngroup
42481 if test "$ol_enable_dyngroup" = mod ; then
42482 MFLAG=SLAPD_MOD_DYNAMIC
42483 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42485 MFLAG=SLAPD_MOD_STATIC
42486 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42489 cat >>confdefs.h <<_ACEOF
42490 #define SLAPD_OVER_DYNGROUP $MFLAG
42495 if test "$ol_enable_dynlist" != no ; then
42496 BUILD_DYNLIST=$ol_enable_dynlist
42497 if test "$ol_enable_dynlist" = mod ; then
42498 MFLAG=SLAPD_MOD_DYNAMIC
42499 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42501 MFLAG=SLAPD_MOD_STATIC
42502 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42505 cat >>confdefs.h <<_ACEOF
42506 #define SLAPD_OVER_DYNLIST $MFLAG
42511 if test "$ol_enable_lastmod" != no ; then
42512 BUILD_LASTMOD=$ol_enable_lastmod
42513 if test "$ol_enable_lastmod" = mod ; then
42514 MFLAG=SLAPD_MOD_DYNAMIC
42515 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42517 MFLAG=SLAPD_MOD_STATIC
42518 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42521 cat >>confdefs.h <<_ACEOF
42522 #define SLAPD_OVER_LASTMOD $MFLAG
42527 if test "$ol_enable_ppolicy" != no ; then
42528 BUILD_PPOLICY=$ol_enable_ppolicy
42529 if test "$ol_enable_ppolicy" = mod ; then
42530 MFLAG=SLAPD_MOD_DYNAMIC
42531 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42533 MFLAG=SLAPD_MOD_STATIC
42534 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42537 cat >>confdefs.h <<_ACEOF
42538 #define SLAPD_OVER_PPOLICY $MFLAG
42543 if test "$ol_enable_proxycache" != no ; then
42544 BUILD_PROXYCACHE=$ol_enable_proxycache
42545 if test "$ol_enable_proxycache" = mod ; then
42546 MFLAG=SLAPD_MOD_DYNAMIC
42547 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42549 MFLAG=SLAPD_MOD_STATIC
42550 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42553 cat >>confdefs.h <<_ACEOF
42554 #define SLAPD_OVER_PROXYCACHE $MFLAG
42559 if test "$ol_enable_refint" != no ; then
42560 BUILD_REFINT=$ol_enable_refint
42561 if test "$ol_enable_refint" = mod ; then
42562 MFLAG=SLAPD_MOD_DYNAMIC
42563 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42565 MFLAG=SLAPD_MOD_STATIC
42566 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42569 cat >>confdefs.h <<_ACEOF
42570 #define SLAPD_OVER_REFINT $MFLAG
42575 if test "$ol_enable_retcode" != no ; then
42576 BUILD_RETCODE=$ol_enable_retcode
42577 if test "$ol_enable_retcode" = mod ; then
42578 MFLAG=SLAPD_MOD_DYNAMIC
42579 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42581 MFLAG=SLAPD_MOD_STATIC
42582 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42585 cat >>confdefs.h <<_ACEOF
42586 #define SLAPD_OVER_RETCODE $MFLAG
42591 if test "$ol_enable_rwm" != no ; then
42593 BUILD_RWM=$ol_enable_rwm
42594 if test "$ol_enable_rwm" = mod ; then
42595 MFLAG=SLAPD_MOD_DYNAMIC
42596 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42598 MFLAG=SLAPD_MOD_STATIC
42599 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42602 cat >>confdefs.h <<_ACEOF
42603 #define SLAPD_OVER_RWM $MFLAG
42608 if test "$ol_enable_syncprov" != no ; then
42609 BUILD_SYNCPROV=$ol_enable_syncprov
42610 if test "$ol_enable_syncprov" = mod ; then
42611 MFLAG=SLAPD_MOD_DYNAMIC
42612 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42614 MFLAG=SLAPD_MOD_STATIC
42615 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42618 cat >>confdefs.h <<_ACEOF
42619 #define SLAPD_OVER_SYNCPROV $MFLAG
42624 if test "$ol_enable_translucent" != no ; then
42625 BUILD_TRANSLUCENT=$ol_enable_translucent
42626 if test "$ol_enable_translucent" = mod ; then
42627 MFLAG=SLAPD_MOD_DYNAMIC
42628 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42630 MFLAG=SLAPD_MOD_STATIC
42631 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42634 cat >>confdefs.h <<_ACEOF
42635 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42640 if test "$ol_enable_unique" != no ; then
42641 BUILD_UNIQUE=$ol_enable_unique
42642 if test "$ol_enable_unique" = mod ; then
42643 MFLAG=SLAPD_MOD_DYNAMIC
42644 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42646 MFLAG=SLAPD_MOD_STATIC
42647 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42650 cat >>confdefs.h <<_ACEOF
42651 #define SLAPD_OVER_UNIQUE $MFLAG
42656 if test "$ol_enable_valsort" != no ; then
42657 BUILD_VALSORT=$ol_enable_valsort
42658 if test "$ol_enable_valsort" = mod ; then
42659 MFLAG=SLAPD_MOD_DYNAMIC
42660 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42662 MFLAG=SLAPD_MOD_STATIC
42663 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42666 cat >>confdefs.h <<_ACEOF
42667 #define SLAPD_OVER_VALSORT $MFLAG
42672 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
42673 $BUILD_SLAPD = yes ; then
42677 if test "$ol_enable_rewrite" != no ; then
42679 cat >>confdefs.h <<\_ACEOF
42680 #define ENABLE_REWRITE 1
42686 if test "$ol_enable_slapi" != no ; then
42688 cat >>confdefs.h <<\_ACEOF
42689 #define ENABLE_SLAPI 1
42693 SLAPD_SLAPI_DEPEND=libslapi.a
42698 if test "$ac_cv_mingw32" = yes ; then
42700 SLAPD_MODULES_LDFLAGS=
42784 # Check whether --with-xxinstall or --without-xxinstall was given.
42785 if test "${with_xxinstall+set}" = set; then
42786 withval="$with_xxinstall"
42791 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"
42794 ac_config_commands="$ac_config_commands default"
42798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42799 # Let make expand exec_prefix.
42800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42804 # trailing colons and then remove the whole line if VPATH becomes empty
42805 # (actually we leave an empty line to preserve line numbers).
42806 if test "x$srcdir" = x.; then
42807 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42808 s/:*\$(srcdir):*/:/;
42809 s/:*\${srcdir}:*/:/;
42811 s/^\([^=]*=[ ]*\):*/\1/;
42817 DEFS=-DHAVE_CONFIG_H
42821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42822 # 1. Remove the extension, and $U if already installed.
42823 ac_i=`echo "$ac_i" |
42824 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42826 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42827 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42829 LIBOBJS=$ac_libobjs
42831 LTLIBOBJS=$ac_ltlibobjs
42834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42835 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42836 Usually this means the macro was only invoked conditionally." >&5
42837 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42838 Usually this means the macro was only invoked conditionally." >&2;}
42839 { (exit 1); exit 1; }; }
42841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42842 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42843 Usually this means the macro was only invoked conditionally." >&5
42844 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42845 Usually this means the macro was only invoked conditionally." >&2;}
42846 { (exit 1); exit 1; }; }
42848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42849 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42850 Usually this means the macro was only invoked conditionally." >&5
42851 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42852 Usually this means the macro was only invoked conditionally." >&2;}
42853 { (exit 1); exit 1; }; }
42856 : ${CONFIG_STATUS=./config.status}
42857 ac_clean_files_save=$ac_clean_files
42858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42859 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42860 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42861 cat >$CONFIG_STATUS <<_ACEOF
42863 # Generated by $as_me.
42864 # Run this file to recreate the current configuration.
42865 # Compiler output produced by configure, useful for debugging
42866 # configure, is in config.log if it exists.
42869 ac_cs_recheck=false
42871 SHELL=\${CONFIG_SHELL-$SHELL}
42874 cat >>$CONFIG_STATUS <<\_ACEOF
42875 ## --------------------- ##
42876 ## M4sh Initialization. ##
42877 ## --------------------- ##
42879 # Be Bourne compatible
42880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42883 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42884 # is contrary to our usage. Disable this feature.
42885 alias -g '${1+"$@"}'='"$@"'
42886 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42889 DUALCASE=1; export DUALCASE # for MKS sh
42891 # Support unset when possible.
42892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42899 # Work around bugs in pre-3.0 UWIN ksh.
42900 $as_unset ENV MAIL MAILPATH
42907 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42908 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42909 LC_TELEPHONE LC_TIME
42911 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42912 eval $as_var=C; export $as_var
42918 # Required to use basename.
42919 if expr a : '\(a\)' >/dev/null 2>&1; then
42925 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42926 as_basename=basename
42932 # Name of the executable.
42933 as_me=`$as_basename "$0" ||
42934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42935 X"$0" : 'X\(//\)$' \| \
42936 X"$0" : 'X\(/\)$' \| \
42937 . : '\(.\)' 2>/dev/null ||
42939 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42940 /^X\/\(\/\/\)$/{ s//\1/; q; }
42941 /^X\/\(\/\).*/{ s//\1/; q; }
42945 # PATH needs CR, and LINENO needs CR and PATH.
42946 # Avoid depending upon Character Ranges.
42947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42950 as_cr_digits='0123456789'
42951 as_cr_alnum=$as_cr_Letters$as_cr_digits
42953 # The user is always right.
42954 if test "${PATH_SEPARATOR+set}" != set; then
42955 echo "#! /bin/sh" >conf$$.sh
42956 echo "exit 0" >>conf$$.sh
42958 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42967 as_lineno_1=$LINENO
42968 as_lineno_2=$LINENO
42969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42970 test "x$as_lineno_1" != "x$as_lineno_2" &&
42971 test "x$as_lineno_3" = "x$as_lineno_2" || {
42972 # Find who we are. Look in the path if we contain no path at all
42975 *[\\/]* ) as_myself=$0 ;;
42976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42977 for as_dir in $PATH
42980 test -z "$as_dir" && as_dir=.
42981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42986 # We did not find ourselves, most probably we were run as `sh COMMAND'
42987 # in which case we are not to be found in the path.
42988 if test "x$as_myself" = x; then
42991 if test ! -f "$as_myself"; then
42992 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42993 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42994 { (exit 1); exit 1; }; }
42996 case $CONFIG_SHELL in
42998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42999 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43002 test -z "$as_dir" && as_dir=.
43003 for as_base in sh bash ksh sh5; do
43006 if ("$as_dir/$as_base" -c '
43007 as_lineno_1=$LINENO
43008 as_lineno_2=$LINENO
43009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43010 test "x$as_lineno_1" != "x$as_lineno_2" &&
43011 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43012 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43013 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43014 CONFIG_SHELL=$as_dir/$as_base
43015 export CONFIG_SHELL
43016 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43025 # uniformly replaced by the line number. The first 'sed' inserts a
43026 # line-number line before each line; the second 'sed' does the real
43027 # work. The second script uses 'N' to pair each line-number line
43028 # with the numbered line, and appends trailing '-' during
43029 # substitution so that $LINENO is not a special case at line end.
43030 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43031 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43032 sed '=' <$as_myself |
43037 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43040 s,^['$as_cr_digits']*\n,,
43041 ' >$as_me.lineno &&
43042 chmod +x $as_me.lineno ||
43043 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43044 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43045 { (exit 1); exit 1; }; }
43047 # Don't try to exec as it changes $[0], causing all sort of problems
43048 # (the dirname of $[0] is not the place where we might find the
43049 # original and so on. Autoconf is especially sensible to this).
43051 # Exit status is that of the last command.
43056 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43057 *c*,-n*) ECHO_N= ECHO_C='
43059 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43060 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43063 if expr a : '\(a\)' >/dev/null 2>&1; then
43069 rm -f conf$$ conf$$.exe conf$$.file
43071 if ln -s conf$$.file conf$$ 2>/dev/null; then
43072 # We could just check for DJGPP; but this test a) works b) is more generic
43073 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43074 if test -f conf$$.exe; then
43075 # Don't use ln at all; we don't have any links
43080 elif ln conf$$.file conf$$ 2>/dev/null; then
43085 rm -f conf$$ conf$$.exe conf$$.file
43087 if mkdir -p . 2>/dev/null; then
43090 test -d ./-p && rmdir ./-p
43094 as_executable_p="test -f"
43096 # Sed expression to map a string onto a valid CPP name.
43097 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43099 # Sed expression to map a string onto a valid variable name.
43100 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43104 # We need space, tab and new line, in precisely that order.
43114 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43115 # report actual input values of CONFIG_FILES etc. instead of their
43116 # values after options handling. Logging --version etc. is OK.
43120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43121 ## Running $as_me. ##
43126 This file was extended by $as_me, which was
43127 generated by GNU Autoconf 2.59. Invocation command line was
43129 CONFIG_FILES = $CONFIG_FILES
43130 CONFIG_HEADERS = $CONFIG_HEADERS
43131 CONFIG_LINKS = $CONFIG_LINKS
43132 CONFIG_COMMANDS = $CONFIG_COMMANDS
43136 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43140 # Files that config.status was made for.
43141 if test -n "$ac_config_files"; then
43142 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43145 if test -n "$ac_config_headers"; then
43146 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43149 if test -n "$ac_config_links"; then
43150 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43153 if test -n "$ac_config_commands"; then
43154 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43157 cat >>$CONFIG_STATUS <<\_ACEOF
43160 \`$as_me' instantiates files from templates according to the
43161 current configuration.
43163 Usage: $0 [OPTIONS] [FILE]...
43165 -h, --help print this help, then exit
43166 -V, --version print version number, then exit
43167 -q, --quiet do not print progress messages
43168 -d, --debug don't remove temporary files
43169 --recheck update $as_me by reconfiguring in the same conditions
43170 --file=FILE[:TEMPLATE]
43171 instantiate the configuration file FILE
43172 --header=FILE[:TEMPLATE]
43173 instantiate the configuration header FILE
43175 Configuration files:
43178 Configuration headers:
43181 Configuration commands:
43184 Report bugs to <bug-autoconf@gnu.org>."
43187 cat >>$CONFIG_STATUS <<_ACEOF
43190 configured by $0, generated by GNU Autoconf 2.59,
43191 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43193 Copyright (C) 2003 Free Software Foundation, Inc.
43194 This config.status script is free software; the Free Software Foundation
43195 gives unlimited permission to copy, distribute and modify it."
43200 cat >>$CONFIG_STATUS <<\_ACEOF
43201 # If no file are specified by the user, then we need to provide default
43202 # value. By we need to know if files were specified by the user.
43208 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43209 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43217 *) # This is not an option, so the user has probably given explicit
43220 ac_need_defaults=false;;
43224 # Handling of the options.
43226 cat >>$CONFIG_STATUS <<\_ACEOF
43227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43229 --version | --vers* | -V )
43230 echo "$ac_cs_version"; exit 0 ;;
43232 # Conflict between --help and --header
43233 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43234 Try \`$0 --help' for more information." >&5
43235 echo "$as_me: error: ambiguous option: $1
43236 Try \`$0 --help' for more information." >&2;}
43237 { (exit 1); exit 1; }; };;
43238 --help | --hel | -h )
43239 echo "$ac_cs_usage"; exit 0 ;;
43240 --debug | --d* | -d )
43242 --file | --fil | --fi | --f )
43244 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43245 ac_need_defaults=false;;
43246 --header | --heade | --head | --hea )
43248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43249 ac_need_defaults=false;;
43250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43254 # This is an error.
43255 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43256 Try \`$0 --help' for more information." >&5
43257 echo "$as_me: error: unrecognized option: $1
43258 Try \`$0 --help' for more information." >&2;}
43259 { (exit 1); exit 1; }; } ;;
43261 *) ac_config_targets="$ac_config_targets $1" ;;
43267 ac_configure_extra_args=
43269 if $ac_cs_silent; then
43271 ac_configure_extra_args="$ac_configure_extra_args --silent"
43275 cat >>$CONFIG_STATUS <<_ACEOF
43276 if \$ac_cs_recheck; then
43277 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43278 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43283 cat >>$CONFIG_STATUS <<_ACEOF
43285 # INIT-COMMANDS section.
43288 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43289 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43295 cat >>$CONFIG_STATUS <<\_ACEOF
43296 for ac_config_target in $ac_config_targets
43298 case "$ac_config_target" in
43299 # Handling of arguments.
43300 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43301 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43302 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43303 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43304 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43305 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43306 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43307 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43308 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43309 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43310 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43311 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43312 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43313 "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" ;;
43314 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43315 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43316 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43317 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43318 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43319 "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" ;;
43320 "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" ;;
43321 "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" ;;
43322 "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" ;;
43323 "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" ;;
43324 "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" ;;
43325 "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" ;;
43326 "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" ;;
43327 "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" ;;
43328 "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" ;;
43329 "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" ;;
43330 "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" ;;
43331 "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" ;;
43332 "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" ;;
43333 "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" ;;
43334 "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" ;;
43335 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43336 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43337 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43338 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43339 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43340 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43341 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43342 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43343 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43344 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43347 { (exit 1); exit 1; }; };;
43351 # If the user did not use the arguments to specify the items to instantiate,
43352 # then the envvar interface is used. Set only those that are not.
43353 # We use the long form for the default assignment because of an extremely
43354 # bizarre bug on SunOS 4.1.3.
43355 if $ac_need_defaults; then
43356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43361 # Have a temporary directory for convenience. Make it in the build tree
43362 # simply because there is no reason to put it here, and in addition,
43363 # creating and moving files from /tmp can sometimes cause problems.
43364 # Create a temporary directory, and hook for its removal unless debugging.
43367 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43368 trap '{ (exit 1); exit 1; }' 1 2 13 15
43371 # Create a (secure) tmp directory for tmp files.
43374 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43375 test -n "$tmp" && test -d "$tmp"
43378 tmp=./confstat$$-$RANDOM
43379 (umask 077 && mkdir $tmp)
43382 echo "$me: cannot create a temporary directory in ." >&2
43383 { (exit 1); exit 1; }
43388 cat >>$CONFIG_STATUS <<_ACEOF
43391 # CONFIG_FILES section.
43394 # No need to generate the scripts if there are no CONFIG_FILES.
43395 # This happens for instance when ./config.status config.h
43396 if test -n "\$CONFIG_FILES"; then
43397 # Protect against being on the right side of a sed subst in config.status.
43398 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43399 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43400 s,@SHELL@,$SHELL,;t t
43401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43407 s,@exec_prefix@,$exec_prefix,;t t
43408 s,@prefix@,$prefix,;t t
43409 s,@program_transform_name@,$program_transform_name,;t t
43410 s,@bindir@,$bindir,;t t
43411 s,@sbindir@,$sbindir,;t t
43412 s,@libexecdir@,$libexecdir,;t t
43413 s,@datadir@,$datadir,;t t
43414 s,@sysconfdir@,$sysconfdir,;t t
43415 s,@sharedstatedir@,$sharedstatedir,;t t
43416 s,@localstatedir@,$localstatedir,;t t
43417 s,@libdir@,$libdir,;t t
43418 s,@includedir@,$includedir,;t t
43419 s,@oldincludedir@,$oldincludedir,;t t
43420 s,@infodir@,$infodir,;t t
43421 s,@mandir@,$mandir,;t t
43422 s,@build_alias@,$build_alias,;t t
43423 s,@host_alias@,$host_alias,;t t
43424 s,@target_alias@,$target_alias,;t t
43425 s,@DEFS@,$DEFS,;t t
43426 s,@ECHO_C@,$ECHO_C,;t t
43427 s,@ECHO_N@,$ECHO_N,;t t
43428 s,@ECHO_T@,$ECHO_T,;t t
43429 s,@LIBS@,$LIBS,;t t
43430 s,@build@,$build,;t t
43431 s,@build_cpu@,$build_cpu,;t t
43432 s,@build_vendor@,$build_vendor,;t t
43433 s,@build_os@,$build_os,;t t
43434 s,@host@,$host,;t t
43435 s,@host_cpu@,$host_cpu,;t t
43436 s,@host_vendor@,$host_vendor,;t t
43437 s,@host_os@,$host_os,;t t
43438 s,@target@,$target,;t t
43439 s,@target_cpu@,$target_cpu,;t t
43440 s,@target_vendor@,$target_vendor,;t t
43441 s,@target_os@,$target_os,;t t
43442 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43443 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43444 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43445 s,@CYGPATH_W@,$CYGPATH_W,;t t
43446 s,@PACKAGE@,$PACKAGE,;t t
43447 s,@VERSION@,$VERSION,;t t
43448 s,@ACLOCAL@,$ACLOCAL,;t t
43449 s,@AUTOCONF@,$AUTOCONF,;t t
43450 s,@AUTOMAKE@,$AUTOMAKE,;t t
43451 s,@AUTOHEADER@,$AUTOHEADER,;t t
43452 s,@MAKEINFO@,$MAKEINFO,;t t
43453 s,@install_sh@,$install_sh,;t t
43454 s,@STRIP@,$STRIP,;t t
43455 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43456 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43457 s,@mkdir_p@,$mkdir_p,;t t
43459 s,@SET_MAKE@,$SET_MAKE,;t t
43460 s,@am__leading_dot@,$am__leading_dot,;t t
43461 s,@AMTAR@,$AMTAR,;t t
43462 s,@am__tar@,$am__tar,;t t
43463 s,@am__untar@,$am__untar,;t t
43464 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43465 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43466 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43467 s,@top_builddir@,$top_builddir,;t t
43468 s,@ldap_subdir@,$ldap_subdir,;t t
43471 s,@CFLAGS@,$CFLAGS,;t t
43472 s,@LDFLAGS@,$LDFLAGS,;t t
43473 s,@CPPFLAGS@,$CPPFLAGS,;t t
43474 s,@ac_ct_CC@,$ac_ct_CC,;t t
43475 s,@EXEEXT@,$EXEEXT,;t t
43476 s,@OBJEXT@,$OBJEXT,;t t
43477 s,@DEPDIR@,$DEPDIR,;t t
43478 s,@am__include@,$am__include,;t t
43479 s,@am__quote@,$am__quote,;t t
43480 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43481 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43482 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43483 s,@CCDEPMODE@,$CCDEPMODE,;t t
43484 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43485 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43486 s,@EGREP@,$EGREP,;t t
43487 s,@LN_S@,$LN_S,;t t
43488 s,@ECHO@,$ECHO,;t t
43489 s,@ac_ct_AR@,$ac_ct_AR,;t t
43490 s,@RANLIB@,$RANLIB,;t t
43491 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43492 s,@DLLTOOL@,$DLLTOOL,;t t
43493 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43495 s,@ac_ct_AS@,$ac_ct_AS,;t t
43496 s,@OBJDUMP@,$OBJDUMP,;t t
43497 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43499 s,@LIBTOOL@,$LIBTOOL,;t t
43500 s,@PERLBIN@,$PERLBIN,;t t
43501 s,@OL_MKDEP@,$OL_MKDEP,;t t
43502 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43503 s,@LTSTATIC@,$LTSTATIC,;t t
43504 s,@LIBOBJS@,$LIBOBJS,;t t
43505 s,@LIBSRCS@,$LIBSRCS,;t t
43506 s,@PLAT@,$PLAT,;t t
43507 s,@WITH_SASL@,$WITH_SASL,;t t
43508 s,@WITH_TLS@,$WITH_TLS,;t t
43509 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43510 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43511 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43512 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43513 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43514 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43515 s,@BUILD_BDB@,$BUILD_BDB,;t t
43516 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43517 s,@BUILD_HDB@,$BUILD_HDB,;t t
43518 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43519 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43520 s,@BUILD_META@,$BUILD_META,;t t
43521 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43522 s,@BUILD_NULL@,$BUILD_NULL,;t t
43523 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43524 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43525 s,@BUILD_PERL@,$BUILD_PERL,;t t
43526 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43527 s,@BUILD_SQL@,$BUILD_SQL,;t t
43528 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43529 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43530 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43531 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43532 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43533 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43534 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43535 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43536 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43537 s,@BUILD_RWM@,$BUILD_RWM,;t t
43538 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43539 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43540 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43541 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43542 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43543 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43544 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43545 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43546 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43547 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43548 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43549 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43550 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43551 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43552 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43553 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43554 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43555 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43556 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43557 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43558 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43559 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43560 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43561 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43562 s,@SASL_LIBS@,$SASL_LIBS,;t t
43563 s,@TLS_LIBS@,$TLS_LIBS,;t t
43564 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43565 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43566 s,@LIBSLAPI@,$LIBSLAPI,;t t
43567 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43568 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43569 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43570 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43571 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43572 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43573 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43574 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43579 cat >>$CONFIG_STATUS <<\_ACEOF
43580 # Split the substitutions into bite-sized pieces for seds with
43581 # small command number limits, like on Digital OSF/1 and HP-UX.
43582 ac_max_sed_lines=48
43583 ac_sed_frag=1 # Number of current file.
43584 ac_beg=1 # First line for current file.
43585 ac_end=$ac_max_sed_lines # Line after last line for current file.
43588 while $ac_more_lines; do
43589 if test $ac_beg -gt 1; then
43590 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43592 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43594 if test ! -s $tmp/subs.frag; then
43595 ac_more_lines=false
43597 # The purpose of the label and of the branching condition is to
43598 # speed up the sed processing (if there are no `@' at all, there
43599 # is no need to browse any of the substitutions).
43600 # These are the two extra sed commands mentioned above.
43602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43603 if test -z "$ac_sed_cmds"; then
43604 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43606 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43608 ac_sed_frag=`expr $ac_sed_frag + 1`
43610 ac_end=`expr $ac_end + $ac_max_sed_lines`
43613 if test -z "$ac_sed_cmds"; then
43616 fi # test -n "$CONFIG_FILES"
43619 cat >>$CONFIG_STATUS <<\_ACEOF
43620 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43623 - | *:- | *:-:* ) # input from stdin
43625 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43627 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43629 * ) ac_file_in=$ac_file.in ;;
43632 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43635 X"$ac_file" : 'X\(//\)[^/]' \| \
43636 X"$ac_file" : 'X\(//\)$' \| \
43637 X"$ac_file" : 'X\(/\)' \| \
43638 . : '\(.\)' 2>/dev/null ||
43640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43642 /^X\(\/\/\)$/{ s//\1/; q; }
43643 /^X\(\/\).*/{ s//\1/; q; }
43645 { if $as_mkdir_p; then
43650 while test ! -d "$as_dir"; do
43651 as_dirs="$as_dir $as_dirs"
43652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43654 X"$as_dir" : 'X\(//\)[^/]' \| \
43655 X"$as_dir" : 'X\(//\)$' \| \
43656 X"$as_dir" : 'X\(/\)' \| \
43657 . : '\(.\)' 2>/dev/null ||
43659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43661 /^X\(\/\/\)$/{ s//\1/; q; }
43662 /^X\(\/\).*/{ s//\1/; q; }
43665 test ! -n "$as_dirs" || mkdir $as_dirs
43666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43668 { (exit 1); exit 1; }; }; }
43672 if test "$ac_dir" != .; then
43673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43674 # A "../" for each directory in $ac_dir_suffix.
43675 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43677 ac_dir_suffix= ac_top_builddir=
43681 .) # No --srcdir option. We are building in place.
43683 if test -z "$ac_top_builddir"; then
43686 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43688 [\\/]* | ?:[\\/]* ) # Absolute path.
43689 ac_srcdir=$srcdir$ac_dir_suffix;
43690 ac_top_srcdir=$srcdir ;;
43691 *) # Relative path.
43692 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43693 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43696 # Do not use `cd foo && pwd` to compute absolute paths, because
43697 # the directories may not exist.
43699 .) ac_abs_builddir="$ac_dir";;
43702 .) ac_abs_builddir=`pwd`;;
43703 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43704 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43707 case $ac_abs_builddir in
43708 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43710 case ${ac_top_builddir}. in
43711 .) ac_abs_top_builddir=$ac_abs_builddir;;
43712 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43713 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43716 case $ac_abs_builddir in
43717 .) ac_abs_srcdir=$ac_srcdir;;
43720 .) ac_abs_srcdir=$ac_abs_builddir;;
43721 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43722 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43725 case $ac_abs_builddir in
43726 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43728 case $ac_top_srcdir in
43729 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43730 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43731 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43738 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43741 if test x"$ac_file" != x-; then
43742 { echo "$as_me:$LINENO: creating $ac_file" >&5
43743 echo "$as_me: creating $ac_file" >&6;}
43746 # Let's still pretend it is `configure' which instantiates (i.e., don't
43747 # use $as_me), people would be surprised to read:
43748 # /* config.h. Generated by config.status. */
43749 if test x"$ac_file" = x-; then
43752 configure_input="$ac_file. "
43754 configure_input=$configure_input"Generated from `echo $ac_file_in |
43755 sed 's,.*/,,'` by configure."
43757 # First look for the input files in the build tree, otherwise in the
43759 ac_file_inputs=`IFS=:
43760 for f in $ac_file_in; do
43762 -) echo $tmp/stdin ;;
43764 # Absolute (can't be DOS-style, as IFS=:)
43765 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43766 echo "$as_me: error: cannot find input file: $f" >&2;}
43767 { (exit 1); exit 1; }; }
43770 if test -f "$f"; then
43773 elif test -f "$srcdir/$f"; then
43778 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43779 echo "$as_me: error: cannot find input file: $f" >&2;}
43780 { (exit 1); exit 1; }; }
43783 done` || { (exit 1); exit 1; }
43785 cat >>$CONFIG_STATUS <<_ACEOF
43789 cat >>$CONFIG_STATUS <<\_ACEOF
43791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43792 s,@configure_input@,$configure_input,;t t
43793 s,@srcdir@,$ac_srcdir,;t t
43794 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43795 s,@top_srcdir@,$ac_top_srcdir,;t t
43796 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43797 s,@builddir@,$ac_builddir,;t t
43798 s,@abs_builddir@,$ac_abs_builddir,;t t
43799 s,@top_builddir@,$ac_top_builddir,;t t
43800 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43801 s,@INSTALL@,$ac_INSTALL,;t t
43802 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43804 if test x"$ac_file" != x-; then
43805 mv $tmp/out $ac_file
43813 cat >>$CONFIG_STATUS <<\_ACEOF
43816 # CONFIG_HEADER section.
43819 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43820 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43822 # ac_d sets the value in "#define NAME VALUE" lines.
43823 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43824 ac_dB='[ ].*$,\1#\2'
43827 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43828 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43829 ac_uB='$,\1#\2define\3'
43833 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43836 - | *:- | *:-:* ) # input from stdin
43838 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43840 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43842 * ) ac_file_in=$ac_file.in ;;
43845 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43846 echo "$as_me: creating $ac_file" >&6;}
43848 # First look for the input files in the build tree, otherwise in the
43850 ac_file_inputs=`IFS=:
43851 for f in $ac_file_in; do
43853 -) echo $tmp/stdin ;;
43855 # Absolute (can't be DOS-style, as IFS=:)
43856 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43857 echo "$as_me: error: cannot find input file: $f" >&2;}
43858 { (exit 1); exit 1; }; }
43859 # Do quote $f, to prevent DOS paths from being IFS'd.
43862 if test -f "$f"; then
43865 elif test -f "$srcdir/$f"; then
43870 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43871 echo "$as_me: error: cannot find input file: $f" >&2;}
43872 { (exit 1); exit 1; }; }
43875 done` || { (exit 1); exit 1; }
43876 # Remove the trailing spaces.
43877 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43881 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43882 # `conftest.undefs', that substitutes the proper values into
43883 # config.h.in to produce config.h. The first handles `#define'
43884 # templates, and the second `#undef' templates.
43885 # And first: Protect against being on the right side of a sed subst in
43886 # config.status. Protect against being in an unquoted here document
43887 # in config.status.
43888 rm -f conftest.defines conftest.undefs
43889 # Using a here document instead of a string reduces the quoting nightmare.
43890 # Putting comments in sed scripts is not portable.
43892 # `end' is used to avoid that the second main sed command (meant for
43893 # 0-ary CPP macros) applies to n-ary macro definitions.
43894 # See the Autoconf documentation for `clear'.
43895 cat >confdef2sed.sed <<\_ACEOF
43900 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43902 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43905 # If some macros were called several times there might be several times
43906 # the same #defines, which is useless. Nevertheless, we may not want to
43907 # sort them, since we want the *last* AC-DEFINE to be honored.
43908 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43909 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43910 rm -f confdef2sed.sed
43912 # This sed command replaces #undef with comments. This is necessary, for
43913 # example, in the case of _POSIX_SOURCE, which is predefined and required
43914 # on some systems where configure will not decide to define it.
43915 cat >>conftest.undefs <<\_ACEOF
43916 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43919 # Break up conftest.defines because some shells have a limit on the size
43920 # of here documents, and old seds have small limits too (100 cmds).
43921 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43922 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43923 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43924 echo ' :' >>$CONFIG_STATUS
43925 rm -f conftest.tail
43926 while grep . conftest.defines >/dev/null
43928 # Write a limited-size here document to $tmp/defines.sed.
43929 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43930 # Speed up: don't consider the non `#define' lines.
43931 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43932 # Work around the forget-to-reset-the-flag bug.
43933 echo 't clr' >>$CONFIG_STATUS
43934 echo ': clr' >>$CONFIG_STATUS
43935 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43937 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43939 mv $tmp/out $tmp/in
43941 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43942 rm -f conftest.defines
43943 mv conftest.tail conftest.defines
43945 rm -f conftest.defines
43946 echo ' fi # grep' >>$CONFIG_STATUS
43947 echo >>$CONFIG_STATUS
43949 # Break up conftest.undefs because some shells have a limit on the size
43950 # of here documents, and old seds have small limits too (100 cmds).
43951 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43952 rm -f conftest.tail
43953 while grep . conftest.undefs >/dev/null
43955 # Write a limited-size here document to $tmp/undefs.sed.
43956 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43957 # Speed up: don't consider the non `#undef'
43958 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43959 # Work around the forget-to-reset-the-flag bug.
43960 echo 't clr' >>$CONFIG_STATUS
43961 echo ': clr' >>$CONFIG_STATUS
43962 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43964 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43966 mv $tmp/out $tmp/in
43968 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43969 rm -f conftest.undefs
43970 mv conftest.tail conftest.undefs
43972 rm -f conftest.undefs
43974 cat >>$CONFIG_STATUS <<\_ACEOF
43975 # Let's still pretend it is `configure' which instantiates (i.e., don't
43976 # use $as_me), people would be surprised to read:
43977 # /* config.h. Generated by config.status. */
43978 if test x"$ac_file" = x-; then
43979 echo "/* Generated by configure. */" >$tmp/config.h
43981 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43983 cat $tmp/in >>$tmp/config.h
43985 if test x"$ac_file" != x-; then
43986 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43987 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43988 echo "$as_me: $ac_file is unchanged" >&6;}
43990 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43992 X"$ac_file" : 'X\(//\)[^/]' \| \
43993 X"$ac_file" : 'X\(//\)$' \| \
43994 X"$ac_file" : 'X\(/\)' \| \
43995 . : '\(.\)' 2>/dev/null ||
43997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43999 /^X\(\/\/\)$/{ s//\1/; q; }
44000 /^X\(\/\).*/{ s//\1/; q; }
44002 { if $as_mkdir_p; then
44007 while test ! -d "$as_dir"; do
44008 as_dirs="$as_dir $as_dirs"
44009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44011 X"$as_dir" : 'X\(//\)[^/]' \| \
44012 X"$as_dir" : 'X\(//\)$' \| \
44013 X"$as_dir" : 'X\(/\)' \| \
44014 . : '\(.\)' 2>/dev/null ||
44016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44018 /^X\(\/\/\)$/{ s//\1/; q; }
44019 /^X\(\/\).*/{ s//\1/; q; }
44022 test ! -n "$as_dirs" || mkdir $as_dirs
44023 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44024 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44025 { (exit 1); exit 1; }; }; }
44028 mv $tmp/config.h $ac_file
44032 rm -f $tmp/config.h
44034 # Compute $ac_file's index in $config_headers.
44036 for _am_header in $config_headers :; do
44037 case $_am_header in
44038 $ac_file | $ac_file:* )
44041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44044 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44045 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44046 X$ac_file : 'X\(//\)[^/]' \| \
44047 X$ac_file : 'X\(//\)$' \| \
44048 X$ac_file : 'X\(/\)' \| \
44049 . : '\(.\)' 2>/dev/null ||
44051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44053 /^X\(\/\/\)$/{ s//\1/; q; }
44054 /^X\(\/\).*/{ s//\1/; q; }
44055 s/.*/./; q'`/stamp-h$_am_stamp_count
44058 cat >>$CONFIG_STATUS <<\_ACEOF
44061 # CONFIG_COMMANDS section.
44063 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44064 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44065 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44066 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44067 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44068 X"$ac_dest" : 'X\(//\)[^/]' \| \
44069 X"$ac_dest" : 'X\(//\)$' \| \
44070 X"$ac_dest" : 'X\(/\)' \| \
44071 . : '\(.\)' 2>/dev/null ||
44073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44075 /^X\(\/\/\)$/{ s//\1/; q; }
44076 /^X\(\/\).*/{ s//\1/; q; }
44078 { if $as_mkdir_p; then
44083 while test ! -d "$as_dir"; do
44084 as_dirs="$as_dir $as_dirs"
44085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44087 X"$as_dir" : 'X\(//\)[^/]' \| \
44088 X"$as_dir" : 'X\(//\)$' \| \
44089 X"$as_dir" : 'X\(/\)' \| \
44090 . : '\(.\)' 2>/dev/null ||
44092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44094 /^X\(\/\/\)$/{ s//\1/; q; }
44095 /^X\(\/\).*/{ s//\1/; q; }
44098 test ! -n "$as_dirs" || mkdir $as_dirs
44099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44101 { (exit 1); exit 1; }; }; }
44105 if test "$ac_dir" != .; then
44106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44107 # A "../" for each directory in $ac_dir_suffix.
44108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44110 ac_dir_suffix= ac_top_builddir=
44114 .) # No --srcdir option. We are building in place.
44116 if test -z "$ac_top_builddir"; then
44119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44121 [\\/]* | ?:[\\/]* ) # Absolute path.
44122 ac_srcdir=$srcdir$ac_dir_suffix;
44123 ac_top_srcdir=$srcdir ;;
44124 *) # Relative path.
44125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44129 # Do not use `cd foo && pwd` to compute absolute paths, because
44130 # the directories may not exist.
44132 .) ac_abs_builddir="$ac_dir";;
44135 .) ac_abs_builddir=`pwd`;;
44136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44137 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44140 case $ac_abs_builddir in
44141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44143 case ${ac_top_builddir}. in
44144 .) ac_abs_top_builddir=$ac_abs_builddir;;
44145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44149 case $ac_abs_builddir in
44150 .) ac_abs_srcdir=$ac_srcdir;;
44153 .) ac_abs_srcdir=$ac_abs_builddir;;
44154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44158 case $ac_abs_builddir in
44159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44161 case $ac_top_srcdir in
44162 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44169 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44170 echo "$as_me: executing $ac_dest commands" >&6;}
44172 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44173 # Strip MF so we end up with the name of the file.
44174 mf=`echo "$mf" | sed -e 's/:.*$//'`
44175 # Check whether this is an Automake generated Makefile or not.
44176 # We used to match only the files named `Makefile.in', but
44177 # some people rename them; so instead we look at the file content.
44178 # Grep'ing the first line is not enough: some people post-process
44179 # each Makefile.in and add a new line on top of each file to say so.
44180 # So let's grep whole file.
44181 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44182 dirpart=`(dirname "$mf") 2>/dev/null ||
44183 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44184 X"$mf" : 'X\(//\)[^/]' \| \
44185 X"$mf" : 'X\(//\)$' \| \
44186 X"$mf" : 'X\(/\)' \| \
44187 . : '\(.\)' 2>/dev/null ||
44189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44191 /^X\(\/\/\)$/{ s//\1/; q; }
44192 /^X\(\/\).*/{ s//\1/; q; }
44197 # Extract the definition of DEPDIR, am__include, and am__quote
44198 # from the Makefile without running `make'.
44199 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44200 test -z "$DEPDIR" && continue
44201 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44202 test -z "am__include" && continue
44203 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44204 # When using ansi2knr, U may be empty or an underscore; expand it
44205 U=`sed -n 's/^U = //p' < "$mf"`
44206 # Find all dependency output files, they are included files with
44207 # $(DEPDIR) in their names. We invoke sed twice because it is the
44208 # simplest approach to changing $(DEPDIR) to its actual value in the
44210 for file in `sed -n "
44211 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44212 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44213 # Make sure the directory exists.
44214 test -f "$dirpart/$file" && continue
44215 fdir=`(dirname "$file") 2>/dev/null ||
44216 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44217 X"$file" : 'X\(//\)[^/]' \| \
44218 X"$file" : 'X\(//\)$' \| \
44219 X"$file" : 'X\(/\)' \| \
44220 . : '\(.\)' 2>/dev/null ||
44222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44224 /^X\(\/\/\)$/{ s//\1/; q; }
44225 /^X\(\/\).*/{ s//\1/; q; }
44227 { if $as_mkdir_p; then
44228 mkdir -p $dirpart/$fdir
44230 as_dir=$dirpart/$fdir
44232 while test ! -d "$as_dir"; do
44233 as_dirs="$as_dir $as_dirs"
44234 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44236 X"$as_dir" : 'X\(//\)[^/]' \| \
44237 X"$as_dir" : 'X\(//\)$' \| \
44238 X"$as_dir" : 'X\(/\)' \| \
44239 . : '\(.\)' 2>/dev/null ||
44241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44243 /^X\(\/\/\)$/{ s//\1/; q; }
44244 /^X\(\/\).*/{ s//\1/; q; }
44247 test ! -n "$as_dirs" || mkdir $as_dirs
44248 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44249 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44250 { (exit 1); exit 1; }; }; }
44252 # echo "creating $dirpart/$file"
44253 echo '# dummy' > "$dirpart/$file"
44260 BACKENDSC="servers/slapd/backends.c"
44261 echo "Making $BACKENDSC"
44263 cat > $BACKENDSC << ENDX
44264 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44266 * Copyright 1998-2005 The OpenLDAP Foundation.
44267 * All rights reserved.
44269 * Redistribution and use in source and binary forms, with or without
44270 * modification, are permitted only as authorized by the OpenLDAP
44273 * A copy of this license is available in the file LICENSE in the
44274 * top-level directory of the distribution or, alternatively, at
44275 * <http://www.OpenLDAP.org/license.html>.
44277 /* This file is automatically generated by configure; please do not edit. */
44279 #include "portable.h"
44283 if test "${STATIC_BACKENDS}"; then
44284 for b in config ${STATIC_BACKENDS}; do
44285 bb=`echo "${b}" | sed -e 's/back-//'`
44286 cat >> $BACKENDSC << ENDX
44287 extern BI_init ${bb}_back_initialize;
44291 cat >> $BACKENDSC << ENDX
44293 BackendInfo slap_binfo[] = {
44296 for b in config ${STATIC_BACKENDS}; do
44297 bb=`echo "${b}" | sed -e 's/back-//'`
44298 echo " Add ${bb} ..."
44299 cat >> $BACKENDSC << ENDX
44300 { "${bb}", ${bb}_back_initialize },
44304 cat >> $BACKENDSC << ENDX
44308 /* end of generated file */
44312 echo Please run \"make depend\" to build dependencies
44318 cat >>$CONFIG_STATUS <<\_ACEOF
44320 { (exit 0); exit 0; }
44322 chmod +x $CONFIG_STATUS
44323 ac_clean_files=$ac_clean_files_save
44326 # configure is writing to config.log, and then calls config.status.
44327 # config.status does its own redirection, appending to config.log.
44328 # Unfortunately, on DOS this fails, as config.log is still kept open
44329 # by configure, so config.status won't be able to write to it; its
44330 # output is simply discarded. So we exec the FD to /dev/null,
44331 # effectively closing config.log, so it can be properly (re)opened and
44332 # appended to by config.status. When coming back to configure, we
44333 # need to make the FD available again.
44334 if test "$no_create" != yes; then
44336 ac_config_status_args=
44337 test "$silent" = yes &&
44338 ac_config_status_args="$ac_config_status_args --quiet"
44340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44343 # would make configure fail if this is the last instruction.
44344 $ac_cs_success || { (exit 1); exit 1; }