2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
14 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
15 # Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Support unset when possible.
34 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 # Work around bugs in pre-3.0 UWIN ksh.
42 $as_unset ENV MAIL MAILPATH
49 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
54 eval $as_var=C; export $as_var
60 # Required to use basename.
61 if expr a : '\(a\)' >/dev/null 2>&1; then
67 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
74 # Name of the executable.
75 as_me=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits='0123456789'
93 as_cr_alnum=$as_cr_Letters$as_cr_digits
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conf$$.sh
98 echo "exit 0" >>conf$$.sh
100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" || {
114 # Find who we are. Look in the path if we contain no path at all
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
137 case $CONFIG_SHELL in
139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
143 test -z "$as_dir" && as_dir=.
144 for as_base in sh bash ksh sh5; do
147 if ("$as_dir/$as_base" -c '
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155 CONFIG_SHELL=$as_dir/$as_base
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
181 s,^['$as_cr_digits']*\n,,
183 chmod +x $as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
191 # Exit status is that of the last command.
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c*,-n*) ECHO_N= ECHO_C='
199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
203 if expr a : '\(a\)' >/dev/null 2>&1; then
209 rm -f conf$$ conf$$.exe conf$$.file
211 if ln -s conf$$.file conf$$ 2>/dev/null; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe; then
215 # Don't use ln at all; we don't have any links
220 elif ln conf$$.file conf$$ 2>/dev/null; then
225 rm -f conf$$ conf$$.exe conf$$.file
227 if mkdir -p . 2>/dev/null; then
233 as_executable_p="test -f"
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
243 # We need space, tab and new line, in precisely that order.
252 # Find the correct PATH separator. Usually this is `:', but
253 # DJGPP uses `;' like DOS.
254 if test "X${PATH_SEPARATOR+set}" != Xset; then
255 UNAME=${UNAME-`uname 2>/dev/null`}
257 *-DOS) lt_cv_sys_path_separator=';' ;;
258 *) lt_cv_sys_path_separator=':' ;;
260 PATH_SEPARATOR=$lt_cv_sys_path_separator
264 # Check that we are running under the correct shell.
265 SHELL=${CONFIG_SHELL-/bin/sh}
269 # Remove one level of quotation (which was required for Make).
270 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
275 if test "X$1" = X--no-reexec; then
276 # Discard the --no-reexec flag, and continue.
278 elif test "X$1" = X--fallback-echo; then
279 # Avoid inline document here, it may be left over
281 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
282 # Yippee, $echo works!
285 # Restart under the correct shell.
286 exec $SHELL "$0" --no-reexec ${1+"$@"}
289 if test "X$1" = X--fallback-echo; then
290 # used as fallback echo
298 # The HP-UX ksh and POSIX shell print the target directory to stdout
300 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
302 if test -z "$ECHO"; then
303 if test "X${echo_test_string+set}" != Xset; then
304 # find a string as large as possible, as long as the shell can cope with it
305 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
306 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
307 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
308 echo_test_string="`eval $cmd`" &&
309 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
316 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
321 # The Solaris, AIX, and Digital Unix default echo programs unquote
322 # backslashes. This makes it impossible to quote backslashes using
323 # echo "$something" | sed 's/\\/\\\\/g'
325 # So, first we look for a working echo in the user's PATH.
327 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
328 for dir in $PATH /usr/ucb; do
329 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
330 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
331 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
332 test "X$echo_testing_string" = "X$echo_test_string"; then
339 if test "X$echo" = Xecho; then
340 # We didn't find a better echo, so look for alternatives.
341 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # This shell has a builtin print -r that does the trick.
346 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
347 test "X$CONFIG_SHELL" != X/bin/ksh; then
348 # If we have ksh, try running configure again with it.
349 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
350 export ORIGINAL_CONFIG_SHELL
351 CONFIG_SHELL=/bin/ksh
353 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
357 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
358 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
362 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
368 SHELL="$CONFIG_SHELL"
370 echo="$CONFIG_SHELL $0 --fallback-echo"
371 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
372 test "X$echo_testing_string" = 'X\t' &&
373 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
374 test "X$echo_testing_string" = "X$echo_test_string"; then
375 echo="$CONFIG_SHELL $0 --fallback-echo"
377 # maybe with a smaller string...
380 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
381 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
388 if test "$prev" != 'sed 50q "$0"'; then
389 echo_test_string=`eval $prev`
390 export echo_test_string
391 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
393 # Oops. We lost completely, so just stick with echo.
402 # Copy echo and quote the copy suitably for passing to libtool from
403 # the Makefile, instead of quoting the original, which is used later.
405 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
406 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
412 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
413 # so uname gets run too.
414 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
421 ac_default_prefix=/usr/local
422 ac_config_libobj_dir=.
427 SHELL=${CONFIG_SHELL-/bin/sh}
429 # Maximum number of lines to put in a shell here document.
430 # This variable seems obsolete. It should probably be removed, and
431 # only ac_max_sed_lines should be used.
432 : ${ac_max_here_lines=38}
434 # Identity of this package.
441 ac_unique_file="OpenLDAP"
442 ac_unique_file="include/ldap.h"
443 ac_default_prefix=/usr/local
444 # Factoring default headers for most tests.
445 ac_includes_default="\
448 # include <sys/types.h>
451 # include <sys/stat.h>
462 # if !STDC_HEADERS && HAVE_MEMORY_H
468 # include <strings.h>
471 # include <inttypes.h>
481 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 SHTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OPENLDAP_PACKAGE OPENLDAP_VERSION OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LN_H PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_TCL BUILD_BDB_DYNAMIC BUILD_DNSSRV_DYNAMIC BUILD_LDAP_DYNAMIC BUILD_LDBM_DYNAMIC BUILD_META_DYNAMIC BUILD_MONITOR_DYNAMIC BUILD_NULL_DYNAMIC BUILD_PASSWD_DYNAMIC BUILD_PERL_DYNAMIC BUILD_SHELL_DYNAMIC BUILD_SQL_DYNAMIC BUILD_TCL_DYNAMIC BUILD_SLURPD LDAP_LIBS LDIF_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS MOD_TCL_LIB SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS READLINE_LIBS SASL_LIBS TERMCAP_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
484 # Initialize some variables set by options.
486 ac_init_version=false
487 # The variables have the same names as the options, with
488 # dashes changed to underlines.
496 program_transform_name=s,x,x,
504 # Installation directory options.
505 # These are left unexpanded so users can "make install exec_prefix=/foo"
506 # and all the variables that are supposed to be based on exec_prefix
507 # by default will actually change.
508 # Use braces instead of parens because sh, perl, etc. also accept them.
509 bindir='${exec_prefix}/bin'
510 sbindir='${exec_prefix}/sbin'
511 libexecdir='${exec_prefix}/libexec'
512 datadir='${prefix}/share'
513 sysconfdir='${prefix}/etc'
514 sharedstatedir='${prefix}/com'
515 localstatedir='${prefix}/var'
516 libdir='${exec_prefix}/lib'
517 includedir='${prefix}/include'
518 oldincludedir='/usr/include'
519 infodir='${prefix}/info'
520 mandir='${prefix}/man'
525 # If the previous option needs an argument, assign it.
526 if test -n "$ac_prev"; then
527 eval "$ac_prev=\$ac_option"
532 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
534 # Accept the important Cygnus configure options, so we can diagnose typos.
538 -bindir | --bindir | --bindi | --bind | --bin | --bi)
540 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
543 -build | --build | --buil | --bui | --bu)
544 ac_prev=build_alias ;;
545 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
546 build_alias=$ac_optarg ;;
548 -cache-file | --cache-file | --cache-fil | --cache-fi \
549 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
550 ac_prev=cache_file ;;
551 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
552 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
553 cache_file=$ac_optarg ;;
556 cache_file=config.cache ;;
558 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
560 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
562 datadir=$ac_optarg ;;
564 -disable-* | --disable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 eval "enable_$ac_feature=no" ;;
573 -enable-* | --enable-*)
574 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578 { (exit 1); exit 1; }; }
579 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584 eval "enable_$ac_feature='$ac_optarg'" ;;
586 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
587 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
588 | --exec | --exe | --ex)
589 ac_prev=exec_prefix ;;
590 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
591 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
592 | --exec=* | --exe=* | --ex=*)
593 exec_prefix=$ac_optarg ;;
595 -gas | --gas | --ga | --g)
596 # Obsolete; use --with-gas.
599 -help | --help | --hel | --he | -h)
601 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
602 ac_init_help=recursive ;;
603 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
604 ac_init_help=short ;;
606 -host | --host | --hos | --ho)
607 ac_prev=host_alias ;;
608 -host=* | --host=* | --hos=* | --ho=*)
609 host_alias=$ac_optarg ;;
611 -includedir | --includedir | --includedi | --included | --include \
612 | --includ | --inclu | --incl | --inc)
613 ac_prev=includedir ;;
614 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
615 | --includ=* | --inclu=* | --incl=* | --inc=*)
616 includedir=$ac_optarg ;;
618 -infodir | --infodir | --infodi | --infod | --info | --inf)
620 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
621 infodir=$ac_optarg ;;
623 -libdir | --libdir | --libdi | --libd)
625 -libdir=* | --libdir=* | --libdi=* | --libd=*)
628 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
629 | --libexe | --libex | --libe)
630 ac_prev=libexecdir ;;
631 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
632 | --libexe=* | --libex=* | --libe=*)
633 libexecdir=$ac_optarg ;;
635 -localstatedir | --localstatedir | --localstatedi | --localstated \
636 | --localstate | --localstat | --localsta | --localst \
637 | --locals | --local | --loca | --loc | --lo)
638 ac_prev=localstatedir ;;
639 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
640 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
641 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
642 localstatedir=$ac_optarg ;;
644 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
646 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
650 # Obsolete; use --without-fp.
653 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
654 | --no-cr | --no-c | -n)
657 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
658 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
661 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
662 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
663 | --oldin | --oldi | --old | --ol | --o)
664 ac_prev=oldincludedir ;;
665 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
666 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
667 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
668 oldincludedir=$ac_optarg ;;
670 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
672 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
675 -program-prefix | --program-prefix | --program-prefi | --program-pref \
676 | --program-pre | --program-pr | --program-p)
677 ac_prev=program_prefix ;;
678 -program-prefix=* | --program-prefix=* | --program-prefi=* \
679 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
680 program_prefix=$ac_optarg ;;
682 -program-suffix | --program-suffix | --program-suffi | --program-suff \
683 | --program-suf | --program-su | --program-s)
684 ac_prev=program_suffix ;;
685 -program-suffix=* | --program-suffix=* | --program-suffi=* \
686 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
687 program_suffix=$ac_optarg ;;
689 -program-transform-name | --program-transform-name \
690 | --program-transform-nam | --program-transform-na \
691 | --program-transform-n | --program-transform- \
692 | --program-transform | --program-transfor \
693 | --program-transfo | --program-transf \
694 | --program-trans | --program-tran \
695 | --progr-tra | --program-tr | --program-t)
696 ac_prev=program_transform_name ;;
697 -program-transform-name=* | --program-transform-name=* \
698 | --program-transform-nam=* | --program-transform-na=* \
699 | --program-transform-n=* | --program-transform-=* \
700 | --program-transform=* | --program-transfor=* \
701 | --program-transfo=* | --program-transf=* \
702 | --program-trans=* | --program-tran=* \
703 | --progr-tra=* | --program-tr=* | --program-t=*)
704 program_transform_name=$ac_optarg ;;
706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
707 | -silent | --silent | --silen | --sile | --sil)
710 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714 sbindir=$ac_optarg ;;
716 -sharedstatedir | --sharedstatedir | --sharedstatedi \
717 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
718 | --sharedst | --shareds | --shared | --share | --shar \
720 ac_prev=sharedstatedir ;;
721 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
722 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
723 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725 sharedstatedir=$ac_optarg ;;
727 -site | --site | --sit)
729 -site=* | --site=* | --sit=*)
732 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
737 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
738 | --syscon | --sysco | --sysc | --sys | --sy)
739 ac_prev=sysconfdir ;;
740 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
741 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
742 sysconfdir=$ac_optarg ;;
744 -target | --target | --targe | --targ | --tar | --ta | --t)
745 ac_prev=target_alias ;;
746 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
747 target_alias=$ac_optarg ;;
749 -v | -verbose | --verbose | --verbos | --verbo | --verb)
752 -version | --version | --versio | --versi | --vers | -V)
756 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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'`
763 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
766 eval "with_$ac_package='$ac_optarg'" ;;
768 -without-* | --without-*)
769 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
770 # Reject names that are not valid shell variable names.
771 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
772 { echo "$as_me: error: invalid package name: $ac_package" >&2
773 { (exit 1); exit 1; }; }
774 ac_package=`echo $ac_package | sed 's/-/_/g'`
775 eval "with_$ac_package=no" ;;
778 # Obsolete; use --with-x.
781 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
782 | --x-incl | --x-inc | --x-in | --x-i)
783 ac_prev=x_includes ;;
784 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
785 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
786 x_includes=$ac_optarg ;;
788 -x-libraries | --x-libraries | --x-librarie | --x-librari \
789 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
790 ac_prev=x_libraries ;;
791 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
792 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
793 x_libraries=$ac_optarg ;;
795 -*) { echo "$as_me: error: unrecognized option: $ac_option
796 Try \`$0 --help' for more information." >&2
797 { (exit 1); exit 1; }; }
801 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
805 { (exit 1); exit 1; }; }
806 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
807 eval "$ac_envvar='$ac_optarg'"
811 # FIXME: should be removed in autoconf 3.0.
812 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
813 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
815 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821 if test -n "$ac_prev"; then
822 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
823 { echo "$as_me: error: missing argument to $ac_option" >&2
824 { (exit 1); exit 1; }; }
827 # Be sure to have absolute paths.
828 for ac_var in exec_prefix prefix
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # Be sure to have absolute paths.
839 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
840 localstatedir libdir includedir oldincludedir infodir mandir
842 eval ac_val=$`echo $ac_var`
844 [\\/$]* | ?:[\\/]* ) ;;
845 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
846 { (exit 1); exit 1; }; };;
850 # There might be people who depend on the old broken behavior: `$host'
851 # used to hold the argument of --host etc.
852 # FIXME: To remove some day.
857 # FIXME: To remove some day.
858 if test "x$host_alias" != x; then
859 if test "x$build_alias" = x; then
860 cross_compiling=maybe
861 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
862 If a cross compiler is detected then cross compile mode will be used." >&2
863 elif test "x$build_alias" != "x$host_alias"; then
869 test -n "$host_alias" && ac_tool_prefix=$host_alias-
871 test "$silent" = yes && exec 6>/dev/null
874 # Find the source files, if location was not specified.
875 if test -z "$srcdir"; then
876 ac_srcdir_defaulted=yes
877 # Try the directory containing this script, then its parent.
878 ac_confdir=`(dirname "$0") 2>/dev/null ||
879 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
880 X"$0" : 'X\(//\)[^/]' \| \
881 X"$0" : 'X\(//\)$' \| \
882 X"$0" : 'X\(/\)' \| \
883 . : '\(.\)' 2>/dev/null ||
885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
887 /^X\(\/\/\)$/{ s//\1/; q; }
888 /^X\(\/\).*/{ s//\1/; q; }
891 if test ! -r $srcdir/$ac_unique_file; then
895 ac_srcdir_defaulted=no
897 if test ! -r $srcdir/$ac_unique_file; then
898 if test "$ac_srcdir_defaulted" = yes; then
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
900 { (exit 1); exit 1; }; }
902 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
903 { (exit 1); exit 1; }; }
906 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
907 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
908 { (exit 1); exit 1; }; }
909 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
910 ac_env_build_alias_set=${build_alias+set}
911 ac_env_build_alias_value=$build_alias
912 ac_cv_env_build_alias_set=${build_alias+set}
913 ac_cv_env_build_alias_value=$build_alias
914 ac_env_host_alias_set=${host_alias+set}
915 ac_env_host_alias_value=$host_alias
916 ac_cv_env_host_alias_set=${host_alias+set}
917 ac_cv_env_host_alias_value=$host_alias
918 ac_env_target_alias_set=${target_alias+set}
919 ac_env_target_alias_value=$target_alias
920 ac_cv_env_target_alias_set=${target_alias+set}
921 ac_cv_env_target_alias_value=$target_alias
922 ac_env_CC_set=${CC+set}
924 ac_cv_env_CC_set=${CC+set}
925 ac_cv_env_CC_value=$CC
926 ac_env_CFLAGS_set=${CFLAGS+set}
927 ac_env_CFLAGS_value=$CFLAGS
928 ac_cv_env_CFLAGS_set=${CFLAGS+set}
929 ac_cv_env_CFLAGS_value=$CFLAGS
930 ac_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_env_LDFLAGS_value=$LDFLAGS
932 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
933 ac_cv_env_LDFLAGS_value=$LDFLAGS
934 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_env_CPPFLAGS_value=$CPPFLAGS
936 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
937 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
938 ac_env_CPP_set=${CPP+set}
939 ac_env_CPP_value=$CPP
940 ac_cv_env_CPP_set=${CPP+set}
941 ac_cv_env_CPP_value=$CPP
944 # Report the --help message.
946 if test "$ac_init_help" = "long"; then
947 # Omit some internal or obsolete options to make the list less imposing.
948 # This message is too long to be a string in the A/UX 3.1 sh.
950 \`configure' configures this package to adapt to many kinds of systems.
952 Usage: $0 [OPTION]... [VAR=VALUE]...
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE. See below for descriptions of some of the useful variables.
957 Defaults for the options are specified in brackets.
960 -h, --help display this help and exit
961 --help=short display options specific to this package
962 --help=recursive display the short help of all the included packages
963 -V, --version display version information and exit
964 -q, --quiet, --silent do not print \`checking...' messages
965 --cache-file=FILE cache test results in FILE [disabled]
966 -C, --config-cache alias for \`--cache-file=config.cache'
967 -n, --no-create do not create output files
968 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 Installation directories:
974 --prefix=PREFIX install architecture-independent files in PREFIX
976 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
984 For better control, use the options below.
986 Fine tuning of the installation directories:
987 --bindir=DIR user executables [EPREFIX/bin]
988 --sbindir=DIR system admin executables [EPREFIX/sbin]
989 --libexecdir=DIR program executables [EPREFIX/libexec]
990 --datadir=DIR read-only architecture-independent data [PREFIX/share]
991 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
992 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
993 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
994 --libdir=DIR object code libraries [EPREFIX/lib]
995 --includedir=DIR C header files [PREFIX/include]
996 --oldincludedir=DIR C header files for non-gcc [/usr/include]
997 --infodir=DIR info documentation [PREFIX/info]
998 --mandir=DIR man documentation [PREFIX/man]
1004 --build=BUILD configure for building on BUILD [guessed]
1005 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1006 --target=TARGET configure for building compilers for TARGET [HOST]
1010 if test -n "$ac_init_help"; then
1015 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1016 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1017 --enable-debug enable debugging yes
1018 --enable-dynamic enable linking built binaries with dynamic libs no
1019 --enable-syslog enable syslog support auto
1020 --enable-proctitle enable proctitle support yes
1021 --enable-ipv6 enable IPv6 support auto
1022 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1023 --enable-x-compile enable cross compiling no
1024 --enable-slapd enable building slapd yes
1025 --enable-aci enable per-object ACIs (experimental) no
1026 --enable-cleartext enable cleartext passwords yes
1027 --enable-crypt enable crypt(3) passwords no
1028 --enable-kpasswd enable Kerberos password verification no
1029 --enable-lmpasswd enable LAN Manager passwords no
1030 --enable-spasswd enable (Cyrus) SASL password verification no
1031 --enable-modules enable dynamic module support no
1032 --enable-phonetic enable phonetic/soundex no
1033 --enable-rewrite enable DN rewriting in back-ldap and back-meta no
1034 --enable-rlookups enable reverse lookups of client hostnames no
1035 --enable-slapi enable installation of slapi library no
1036 --enable-slp enable SLPv2 support no
1037 --enable-wrappers enable tcp wrapper support no
1038 --enable-bdb enable Berkeley DB backend yes
1039 --enable-dnssrv enable dnssrv backend no
1040 --enable-ldap enable ldap backend no
1041 --enable-ldbm enable ldbm backend no
1042 --enable-meta enable metadirectory backend no
1043 --enable-monitor enable monitor backend no
1044 --enable-null enable null backend no
1045 --enable-passwd enable passwd backend no
1046 --enable-perl enable perl backend no
1047 --enable-shell enable shell backend no
1048 --enable-sql enable sql backend no
1049 --enable-tcl enable tcl backend no
1050 --enable-slurpd enable building slurpd auto
1051 --enable-static=PKGS build static libraries default=yes
1052 --enable-shared=PKGS build shared libraries default=yes
1053 --enable-fast-install=PKGS optimize for fast installation default=yes
1054 --disable-libtool-lock avoid locking (might break parallel builds)
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1059 --with-subdir=DIR change default subdirectory used for installs
1060 --with-cyrus-sasl with Cyrus SASL support auto
1061 --with-fetch with fetch(3) URL support auto
1062 --with-kerberos with Kerberos support auto
1063 --with-readline with readline support auto
1064 --with-threads with threads auto
1065 --with-tls with TLS/SSL support auto
1066 --with-yielding-select with implicitly yielding select auto
1068 SLAPD (Standalone LDAP Daemon) Options:
1069 --with-bdb-module module type static|dynamic static
1070 --with-dnssrv-module module type static|dynamic static
1071 --with-ldap-module module type static|dynamic static
1072 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1073 --with-ldbm-module module type static|dynamic static
1074 --with-ldbm-type use LDBM type auto|btree|hash auto
1075 --with-meta-module module type static|dynamic static
1076 --with-monitor-module module type static|dynamic static
1077 --with-null-module module type static|dynamic static
1078 --with-passwd-module module type static|dynamic static
1079 --with-perl-module module type static|dynamic static
1080 --with-shell-module module type static|dynamic static
1081 --with-sql-module module type static|dynamic static
1082 --with-tcl-module module type static|dynamic static
1084 SLURPD (Replication Daemon) Options:
1086 Library Generation & Linking Options
1087 --with-gnu-ld assume the C compiler uses GNU ld default=no
1088 --with-pic try to use only PIC/non-PIC objects default=use both
1090 See INSTALL file for further details.
1092 Some influential environment variables:
1093 CC C compiler command
1094 CFLAGS C compiler flags
1095 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1096 nonstandard directory <lib dir>
1097 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098 headers in a nonstandard directory <include dir>
1101 Use these variables to override the choices made by `configure' or to help
1102 it to find libraries and programs with nonstandard names/locations.
1107 if test "$ac_init_help" = "recursive"; then
1108 # If there are subdirs, report their specific --help.
1110 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111 test -d $ac_dir || continue
1114 if test "$ac_dir" != .; then
1115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116 # A "../" for each directory in $ac_dir_suffix.
1117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119 ac_dir_suffix= ac_top_builddir=
1123 .) # No --srcdir option. We are building in place.
1125 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 [\\/]* | ?:[\\/]* ) # Absolute path.
1131 ac_srcdir=$srcdir$ac_dir_suffix;
1132 ac_top_srcdir=$srcdir ;;
1134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1139 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1140 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1141 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1142 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1167 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1168 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1172 Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
1174 Redistribution and use in source and binary forms, with or without
1175 modification, are permitted only as authorized by the OpenLDAP
1176 Public License. A copy of this license is available at
1177 http://www.OpenLDAP.org/license.html or in file LICENSE in the
1178 top-level directory of the distribution.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by $as_me, which was
1189 generated by GNU Autoconf 2.57. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core core.* *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 for ac_dir in build $srcdir/build; do
1518 if test -f $ac_dir/install-sh; then
1520 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 elif test -f $ac_dir/install.sh; then
1524 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 elif test -f $ac_dir/shtool; then
1528 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 if test -z "$ac_aux_dir"; then
1533 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1534 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1535 { (exit 1); exit 1; }; }
1537 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541 eval `$ac_aux_dir/version.sh`
1542 if test -z "$OL_STRING"; then
1543 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1544 echo "$as_me: error: could not determine version" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: checking for GNU shtool" >&5
1549 echo $ECHO_N "checking for GNU shtool... $ECHO_C" >&6
1550 if test "${ac_cv_shtool+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 # canonicalize and split path string
1554 ac_paths="`echo .:$ac_aux_dir:$PATH |\
1555 sed -e 's%/*:%:%g' -e 's%/*$%%' \
1556 -e 's/^:/.:/' -e 's/::/:.:/g' -e 's/:$/:./' \
1558 # iterate over $PATH but prefer CWD
1560 for ac_path in $ac_paths; do
1561 if test -f "$ac_path/shtool" && test ! -d "$ac_path/shtool"; then
1562 ac_cv_shtool="$ac_path/shtool"
1566 # check for existance
1567 if test ".$ac_cv_shtool" = .; then
1568 { { echo "$as_me:$LINENO: error: no shtool found in .:$PATH" >&5
1569 echo "$as_me: error: no shtool found in .:$PATH" >&2;}
1570 { (exit 1); exit 1; }; }
1573 ac_rc=`($ac_cv_shtool --version) </dev/null 2>/dev/null | grep 'GNU shtool'`
1574 if test ".$ac_rc" = .; then
1575 ac_cv_shtool="${CONFIG_SHELL-/bin/sh} $ac_cv_shtool"
1576 ac_rc=`($ac_cv_shtool --version) </dev/null 2>/dev/null | grep 'GNU shtool'`
1577 if test ".$ac_rc" = .; then
1578 { { echo "$as_me:$LINENO: error: $ac_cv_shtool seems not to be GNU shtool" >&5
1579 echo "$as_me: error: $ac_cv_shtool seems not to be GNU shtool" >&2;}
1580 { (exit 1); exit 1; }; }
1585 echo "$as_me:$LINENO: result: $ac_cv_shtool" >&5
1586 echo "${ECHO_T}$ac_cv_shtool" >&6
1587 SHTOOL="$ac_cv_shtool"
1591 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1592 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1595 if test -d $ac_aux_dir/CVS; then
1596 OPENLDAP_CVS="(from CVS sources) "
1599 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1601 # Make sure we can run config.sub.
1602 $ac_config_sub sun4 >/dev/null 2>&1 ||
1603 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1604 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1605 { (exit 1); exit 1; }; }
1607 echo "$as_me:$LINENO: checking build system type" >&5
1608 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1609 if test "${ac_cv_build+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 ac_cv_build_alias=$build_alias
1613 test -z "$ac_cv_build_alias" &&
1614 ac_cv_build_alias=`$ac_config_guess`
1615 test -z "$ac_cv_build_alias" &&
1616 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1617 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1618 { (exit 1); exit 1; }; }
1619 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1626 echo "${ECHO_T}$ac_cv_build" >&6
1628 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 echo "$as_me:$LINENO: checking host system type" >&5
1634 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1635 if test "${ac_cv_host+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 ac_cv_host_alias=$host_alias
1639 test -z "$ac_cv_host_alias" &&
1640 ac_cv_host_alias=$ac_cv_build_alias
1641 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1643 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1648 echo "${ECHO_T}$ac_cv_host" >&6
1650 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655 echo "$as_me:$LINENO: checking target system type" >&5
1656 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1657 if test "${ac_cv_target+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 ac_cv_target_alias=$target_alias
1661 test "x$ac_cv_target_alias" = "x" &&
1662 ac_cv_target_alias=$ac_cv_host_alias
1663 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1670 echo "${ECHO_T}$ac_cv_target" >&6
1671 target=$ac_cv_target
1672 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677 # The aliases save the names the user supplied, while $host etc.
1678 # will get canonicalized.
1679 test -n "$target_alias" &&
1680 test "$program_prefix$program_suffix$program_transform_name" = \
1682 program_prefix=${target_alias}-
1684 OPENLDAP_PACKAGE=$OL_PACKAGE
1685 OPENLDAP_VERSION=$OL_VERSION
1691 cat >>confdefs.h <<_ACEOF
1692 #define OPENLDAP_PACKAGE "$OL_PACKAGE"
1696 cat >>confdefs.h <<_ACEOF
1697 #define OPENLDAP_VERSION "$OL_VERSION"
1702 cat >>confdefs.h <<_ACEOF
1703 #define LDAP_VENDOR_VERSION $OL_API_INC
1707 cat >>confdefs.h <<_ACEOF
1708 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1712 cat >>confdefs.h <<_ACEOF
1713 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1717 cat >>confdefs.h <<_ACEOF
1718 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1722 OPENLDAP_LIBVERSION=$OL_API_LIB
1724 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1727 ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
1729 echo "$as_me:$LINENO: checking configure arguments" >&5
1730 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
1735 ldap_subdir="/openldap"
1738 # Check whether --with-subdir or --without-subdir was given.
1739 if test "${with_subdir+set}" = set; then
1740 withval="$with_subdir"
1747 ldap_subdir="$withval"
1750 ldap_subdir="/$withval"
1756 # OpenLDAP --enable-debug
1757 # Check whether --enable-debug or --disable-debug was given.
1758 if test "${enable_debug+set}" = set; then
1759 enableval="$enable_debug"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
1769 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
1770 { (exit 1); exit 1; }; }
1772 ol_enable_debug="$ol_arg"
1775 ol_enable_debug="yes"
1776 fi; # end --enable-debug
1777 # OpenLDAP --enable-dynamic
1778 # Check whether --enable-dynamic or --disable-dynamic was given.
1779 if test "${enable_dynamic+set}" = set; then
1780 enableval="$enable_dynamic"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
1790 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
1791 { (exit 1); exit 1; }; }
1793 ol_enable_dynamic="$ol_arg"
1796 ol_enable_dynamic="no"
1797 fi; # end --enable-dynamic
1798 # OpenLDAP --enable-syslog
1799 # Check whether --enable-syslog or --disable-syslog was given.
1800 if test "${enable_syslog+set}" = set; then
1801 enableval="$enable_syslog"
1804 for ol_val in auto yes no ; do
1805 if test "$enableval" = "$ol_val" ; then
1809 if test "$ol_arg" = "invalid" ; then
1810 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
1811 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
1812 { (exit 1); exit 1; }; }
1814 ol_enable_syslog="$ol_arg"
1817 ol_enable_syslog="auto"
1818 fi; # end --enable-syslog
1819 # OpenLDAP --enable-proctitle
1820 # Check whether --enable-proctitle or --disable-proctitle was given.
1821 if test "${enable_proctitle+set}" = set; then
1822 enableval="$enable_proctitle"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
1832 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
1833 { (exit 1); exit 1; }; }
1835 ol_enable_proctitle="$ol_arg"
1838 ol_enable_proctitle="yes"
1839 fi; # end --enable-proctitle
1840 ol_enable_referrals=${ol_enable_referrals-no}
1841 ol_enable_kbind=${ol_enable_kbind-no}
1842 # OpenLDAP --enable-ipv6
1843 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1844 if test "${enable_ipv6+set}" = set; then
1845 enableval="$enable_ipv6"
1848 for ol_val in auto yes no ; do
1849 if test "$enableval" = "$ol_val" ; then
1853 if test "$ol_arg" = "invalid" ; then
1854 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
1855 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
1856 { (exit 1); exit 1; }; }
1858 ol_enable_ipv6="$ol_arg"
1861 ol_enable_ipv6="auto"
1862 fi; # end --enable-ipv6
1863 # OpenLDAP --enable-local
1864 # Check whether --enable-local or --disable-local was given.
1865 if test "${enable_local+set}" = set; then
1866 enableval="$enable_local"
1869 for ol_val in auto yes no ; do
1870 if test "$enableval" = "$ol_val" ; then
1874 if test "$ol_arg" = "invalid" ; then
1875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
1876 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
1877 { (exit 1); exit 1; }; }
1879 ol_enable_local="$ol_arg"
1882 ol_enable_local="auto"
1883 fi; # end --enable-local
1884 # OpenLDAP --enable-x_compile
1885 # Check whether --enable-x_compile or --disable-x_compile was given.
1886 if test "${enable_x_compile+set}" = set; then
1887 enableval="$enable_x_compile"
1890 for ol_val in yes no ; do
1891 if test "$enableval" = "$ol_val" ; then
1895 if test "$ol_arg" = "invalid" ; then
1896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-x_compile" >&5
1897 echo "$as_me: error: bad value $enableval for --enable-x_compile" >&2;}
1898 { (exit 1); exit 1; }; }
1900 ol_enable_x_compile="$ol_arg"
1903 ol_enable_x_compile="no"
1904 fi; # end --enable-x_compile
1907 # OpenLDAP --with-cyrus_sasl
1909 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1910 if test "${with_cyrus_sasl+set}" = set; then
1911 withval="$with_cyrus_sasl"
1914 for ol_val in auto yes no ; do
1915 if test "$withval" = "$ol_val" ; then
1919 if test "$ol_arg" = "invalid" ; then
1920 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
1921 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
1922 { (exit 1); exit 1; }; }
1924 ol_with_cyrus_sasl="$ol_arg"
1927 ol_with_cyrus_sasl="auto"
1928 fi; # end --with-cyrus_sasl
1930 # OpenLDAP --with-fetch
1932 # Check whether --with-fetch or --without-fetch was given.
1933 if test "${with_fetch+set}" = set; then
1934 withval="$with_fetch"
1937 for ol_val in auto yes no ; do
1938 if test "$withval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
1944 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
1945 { (exit 1); exit 1; }; }
1947 ol_with_fetch="$ol_arg"
1950 ol_with_fetch="auto"
1951 fi; # end --with-fetch
1953 # OpenLDAP --with-kerberos
1955 # Check whether --with-kerberos or --without-kerberos was given.
1956 if test "${with_kerberos+set}" = set; then
1957 withval="$with_kerberos"
1960 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1961 if test "$withval" = "$ol_val" ; then
1965 if test "$ol_arg" = "invalid" ; then
1966 { { echo "$as_me:$LINENO: error: bad value $withval for --with-kerberos" >&5
1967 echo "$as_me: error: bad value $withval for --with-kerberos" >&2;}
1968 { (exit 1); exit 1; }; }
1970 ol_with_kerberos="$ol_arg"
1973 ol_with_kerberos="auto"
1974 fi; # end --with-kerberos
1976 # OpenLDAP --with-readline
1978 # Check whether --with-readline or --without-readline was given.
1979 if test "${with_readline+set}" = set; then
1980 withval="$with_readline"
1983 for ol_val in auto yes no ; do
1984 if test "$withval" = "$ol_val" ; then
1988 if test "$ol_arg" = "invalid" ; then
1989 { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline" >&5
1990 echo "$as_me: error: bad value $withval for --with-readline" >&2;}
1991 { (exit 1); exit 1; }; }
1993 ol_with_readline="$ol_arg"
1996 ol_with_readline="auto"
1997 fi; # end --with-readline
1999 # OpenLDAP --with-threads
2001 # Check whether --with-threads or --without-threads was given.
2002 if test "${with_threads+set}" = set; then
2003 withval="$with_threads"
2006 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2007 if test "$withval" = "$ol_val" ; then
2011 if test "$ol_arg" = "invalid" ; then
2012 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2013 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2014 { (exit 1); exit 1; }; }
2016 ol_with_threads="$ol_arg"
2019 ol_with_threads="auto"
2020 fi; # end --with-threads
2022 # OpenLDAP --with-tls
2024 # Check whether --with-tls or --without-tls was given.
2025 if test "${with_tls+set}" = set; then
2029 for ol_val in auto ssleay openssl yes no ; do
2030 if test "$withval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2036 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2037 { (exit 1); exit 1; }; }
2039 ol_with_tls="$ol_arg"
2043 fi; # end --with-tls
2045 # OpenLDAP --with-yielding_select
2047 # Check whether --with-yielding_select or --without-yielding_select was given.
2048 if test "${with_yielding_select+set}" = set; then
2049 withval="$with_yielding_select"
2052 for ol_val in auto yes no manual ; do
2053 if test "$withval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2059 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2060 { (exit 1); exit 1; }; }
2062 ol_with_yielding_select="$ol_arg"
2065 ol_with_yielding_select="auto"
2066 fi; # end --with-yielding_select
2071 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2072 if test "${with_xxslapdoptions+set}" = set; then
2073 withval="$with_xxslapdoptions"
2076 # OpenLDAP --enable-slapd
2077 # Check whether --enable-slapd or --disable-slapd was given.
2078 if test "${enable_slapd+set}" = set; then
2079 enableval="$enable_slapd"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2089 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2090 { (exit 1); exit 1; }; }
2092 ol_enable_slapd="$ol_arg"
2095 ol_enable_slapd="yes"
2096 fi; # end --enable-slapd
2097 # OpenLDAP --enable-aci
2098 # Check whether --enable-aci or --disable-aci was given.
2099 if test "${enable_aci+set}" = set; then
2100 enableval="$enable_aci"
2103 for ol_val in auto yes no ; do
2104 if test "$enableval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2110 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2111 { (exit 1); exit 1; }; }
2113 ol_enable_aci="$ol_arg"
2117 fi; # end --enable-aci
2118 # OpenLDAP --enable-cleartext
2119 # Check whether --enable-cleartext or --disable-cleartext was given.
2120 if test "${enable_cleartext+set}" = set; then
2121 enableval="$enable_cleartext"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2131 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2132 { (exit 1); exit 1; }; }
2134 ol_enable_cleartext="$ol_arg"
2137 ol_enable_cleartext="yes"
2138 fi; # end --enable-cleartext
2139 # OpenLDAP --enable-crypt
2140 # Check whether --enable-crypt or --disable-crypt was given.
2141 if test "${enable_crypt+set}" = set; then
2142 enableval="$enable_crypt"
2145 for ol_val in auto yes no ; do
2146 if test "$enableval" = "$ol_val" ; then
2150 if test "$ol_arg" = "invalid" ; then
2151 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2152 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2153 { (exit 1); exit 1; }; }
2155 ol_enable_crypt="$ol_arg"
2158 ol_enable_crypt="no"
2159 fi; # end --enable-crypt
2160 # OpenLDAP --enable-kpasswd
2161 # Check whether --enable-kpasswd or --disable-kpasswd was given.
2162 if test "${enable_kpasswd+set}" = set; then
2163 enableval="$enable_kpasswd"
2166 for ol_val in auto yes no ; do
2167 if test "$enableval" = "$ol_val" ; then
2171 if test "$ol_arg" = "invalid" ; then
2172 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-kpasswd" >&5
2173 echo "$as_me: error: bad value $enableval for --enable-kpasswd" >&2;}
2174 { (exit 1); exit 1; }; }
2176 ol_enable_kpasswd="$ol_arg"
2179 ol_enable_kpasswd="no"
2180 fi; # end --enable-kpasswd
2181 # OpenLDAP --enable-lmpasswd
2182 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2183 if test "${enable_lmpasswd+set}" = set; then
2184 enableval="$enable_lmpasswd"
2187 for ol_val in auto yes no ; do
2188 if test "$enableval" = "$ol_val" ; then
2192 if test "$ol_arg" = "invalid" ; then
2193 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2194 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2195 { (exit 1); exit 1; }; }
2197 ol_enable_lmpasswd="$ol_arg"
2200 ol_enable_lmpasswd="no"
2201 fi; # end --enable-lmpasswd
2202 # OpenLDAP --enable-spasswd
2203 # Check whether --enable-spasswd or --disable-spasswd was given.
2204 if test "${enable_spasswd+set}" = set; then
2205 enableval="$enable_spasswd"
2208 for ol_val in auto yes no ; do
2209 if test "$enableval" = "$ol_val" ; then
2213 if test "$ol_arg" = "invalid" ; then
2214 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2215 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2216 { (exit 1); exit 1; }; }
2218 ol_enable_spasswd="$ol_arg"
2221 ol_enable_spasswd="no"
2222 fi; # end --enable-spasswd
2223 # OpenLDAP --enable-modules
2224 # Check whether --enable-modules or --disable-modules was given.
2225 if test "${enable_modules+set}" = set; then
2226 enableval="$enable_modules"
2229 for ol_val in auto yes no ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2237 { (exit 1); exit 1; }; }
2239 ol_enable_modules="$ol_arg"
2242 ol_enable_modules="no"
2243 fi; # end --enable-modules
2244 ol_enable_multimaster=${ol_enable_multimaster-no}
2245 # OpenLDAP --enable-phonetic
2246 # Check whether --enable-phonetic or --disable-phonetic was given.
2247 if test "${enable_phonetic+set}" = set; then
2248 enableval="$enable_phonetic"
2251 for ol_val in auto yes no ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-phonetic" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-phonetic" >&2;}
2259 { (exit 1); exit 1; }; }
2261 ol_enable_phonetic="$ol_arg"
2264 ol_enable_phonetic="no"
2265 fi; # end --enable-phonetic
2266 # OpenLDAP --enable-rewrite
2267 # Check whether --enable-rewrite or --disable-rewrite was given.
2268 if test "${enable_rewrite+set}" = set; then
2269 enableval="$enable_rewrite"
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-rewrite" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_rewrite="$ol_arg"
2285 ol_enable_rewrite="no"
2286 fi; # end --enable-rewrite
2287 # OpenLDAP --enable-rlookups
2288 # Check whether --enable-rlookups or --disable-rlookups was given.
2289 if test "${enable_rlookups+set}" = set; then
2290 enableval="$enable_rlookups"
2293 for ol_val in auto yes no ; do
2294 if test "$enableval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2300 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2301 { (exit 1); exit 1; }; }
2303 ol_enable_rlookups="$ol_arg"
2306 ol_enable_rlookups="no"
2307 fi; # end --enable-rlookups
2308 # OpenLDAP --enable-slapi
2309 # Check whether --enable-slapi or --disable-slapi was given.
2310 if test "${enable_slapi+set}" = set; then
2311 enableval="$enable_slapi"
2314 for ol_val in auto yes no ; do
2315 if test "$enableval" = "$ol_val" ; then
2319 if test "$ol_arg" = "invalid" ; then
2320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2322 { (exit 1); exit 1; }; }
2324 ol_enable_slapi="$ol_arg"
2327 ol_enable_slapi="no"
2328 fi; # end --enable-slapi
2329 # OpenLDAP --enable-slp
2330 # Check whether --enable-slp or --disable-slp was given.
2331 if test "${enable_slp+set}" = set; then
2332 enableval="$enable_slp"
2335 for ol_val in auto yes no ; do
2336 if test "$enableval" = "$ol_val" ; then
2340 if test "$ol_arg" = "invalid" ; then
2341 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2342 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2343 { (exit 1); exit 1; }; }
2345 ol_enable_slp="$ol_arg"
2349 fi; # end --enable-slp
2350 # OpenLDAP --enable-wrappers
2351 # Check whether --enable-wrappers or --disable-wrappers was given.
2352 if test "${enable_wrappers+set}" = set; then
2353 enableval="$enable_wrappers"
2356 for ol_val in auto yes no ; do
2357 if test "$enableval" = "$ol_val" ; then
2361 if test "$ol_arg" = "invalid" ; then
2362 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2363 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2364 { (exit 1); exit 1; }; }
2366 ol_enable_wrappers="$ol_arg"
2369 ol_enable_wrappers="no"
2370 fi; # end --enable-wrappers
2373 # OpenLDAP --enable-bdb
2374 # Check whether --enable-bdb or --disable-bdb was given.
2375 if test "${enable_bdb+set}" = set; then
2376 enableval="$enable_bdb"
2379 for ol_val in auto yes no ; do
2380 if test "$enableval" = "$ol_val" ; then
2384 if test "$ol_arg" = "invalid" ; then
2385 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2386 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2387 { (exit 1); exit 1; }; }
2389 ol_enable_bdb="$ol_arg"
2393 fi; # end --enable-bdb
2394 # OpenLDAP --with-bdb_module
2396 # Check whether --with-bdb_module or --without-bdb_module was given.
2397 if test "${with_bdb_module+set}" = set; then
2398 withval="$with_bdb_module"
2401 for ol_val in static dynamic ; do
2402 if test "$withval" = "$ol_val" ; then
2406 if test "$ol_arg" = "invalid" ; then
2407 { { echo "$as_me:$LINENO: error: bad value $withval for --with-bdb_module" >&5
2408 echo "$as_me: error: bad value $withval for --with-bdb_module" >&2;}
2409 { (exit 1); exit 1; }; }
2411 ol_with_bdb_module="$ol_arg"
2414 ol_with_bdb_module="static"
2415 fi; # end --with-bdb_module
2417 # OpenLDAP --enable-dnssrv
2418 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2419 if test "${enable_dnssrv+set}" = set; then
2420 enableval="$enable_dnssrv"
2423 for ol_val in auto yes no ; do
2424 if test "$enableval" = "$ol_val" ; then
2428 if test "$ol_arg" = "invalid" ; then
2429 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2430 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2431 { (exit 1); exit 1; }; }
2433 ol_enable_dnssrv="$ol_arg"
2436 ol_enable_dnssrv="no"
2437 fi; # end --enable-dnssrv
2438 # OpenLDAP --with-dnssrv_module
2440 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2441 if test "${with_dnssrv_module+set}" = set; then
2442 withval="$with_dnssrv_module"
2445 for ol_val in static dynamic ; do
2446 if test "$withval" = "$ol_val" ; then
2450 if test "$ol_arg" = "invalid" ; then
2451 { { echo "$as_me:$LINENO: error: bad value $withval for --with-dnssrv_module" >&5
2452 echo "$as_me: error: bad value $withval for --with-dnssrv_module" >&2;}
2453 { (exit 1); exit 1; }; }
2455 ol_with_dnssrv_module="$ol_arg"
2458 ol_with_dnssrv_module="static"
2459 fi; # end --with-dnssrv_module
2461 # OpenLDAP --enable-ldap
2462 # Check whether --enable-ldap or --disable-ldap was given.
2463 if test "${enable_ldap+set}" = set; then
2464 enableval="$enable_ldap"
2467 for ol_val in auto yes no ; do
2468 if test "$enableval" = "$ol_val" ; then
2472 if test "$ol_arg" = "invalid" ; then
2473 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2474 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2475 { (exit 1); exit 1; }; }
2477 ol_enable_ldap="$ol_arg"
2481 fi; # end --enable-ldap
2482 # OpenLDAP --with-ldap_module
2484 # Check whether --with-ldap_module or --without-ldap_module was given.
2485 if test "${with_ldap_module+set}" = set; then
2486 withval="$with_ldap_module"
2489 for ol_val in static dynamic ; do
2490 if test "$withval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldap_module" >&5
2496 echo "$as_me: error: bad value $withval for --with-ldap_module" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_with_ldap_module="$ol_arg"
2502 ol_with_ldap_module="static"
2503 fi; # end --with-ldap_module
2505 # OpenLDAP --enable-ldbm
2506 # Check whether --enable-ldbm or --disable-ldbm was given.
2507 if test "${enable_ldbm+set}" = set; then
2508 enableval="$enable_ldbm"
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-ldbm" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_ldbm="$ol_arg"
2525 fi; # end --enable-ldbm
2526 # OpenLDAP --with-ldbm_api
2528 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2529 if test "${with_ldbm_api+set}" = set; then
2530 withval="$with_ldbm_api"
2533 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2534 if test "$withval" = "$ol_val" ; then
2538 if test "$ol_arg" = "invalid" ; then
2539 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2540 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2541 { (exit 1); exit 1; }; }
2543 ol_with_ldbm_api="$ol_arg"
2546 ol_with_ldbm_api="auto"
2547 fi; # end --with-ldbm_api
2549 # OpenLDAP --with-ldbm_module
2551 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2552 if test "${with_ldbm_module+set}" = set; then
2553 withval="$with_ldbm_module"
2556 for ol_val in static dynamic ; do
2557 if test "$withval" = "$ol_val" ; then
2561 if test "$ol_arg" = "invalid" ; then
2562 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_module" >&5
2563 echo "$as_me: error: bad value $withval for --with-ldbm_module" >&2;}
2564 { (exit 1); exit 1; }; }
2566 ol_with_ldbm_module="$ol_arg"
2569 ol_with_ldbm_module="static"
2570 fi; # end --with-ldbm_module
2572 # OpenLDAP --with-ldbm_type
2574 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2575 if test "${with_ldbm_type+set}" = set; then
2576 withval="$with_ldbm_type"
2579 for ol_val in auto btree hash ; do
2580 if test "$withval" = "$ol_val" ; then
2584 if test "$ol_arg" = "invalid" ; then
2585 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2586 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2587 { (exit 1); exit 1; }; }
2589 ol_with_ldbm_type="$ol_arg"
2592 ol_with_ldbm_type="auto"
2593 fi; # end --with-ldbm_type
2595 # OpenLDAP --enable-meta
2596 # Check whether --enable-meta or --disable-meta was given.
2597 if test "${enable_meta+set}" = set; then
2598 enableval="$enable_meta"
2601 for ol_val in auto yes no ; do
2602 if test "$enableval" = "$ol_val" ; then
2606 if test "$ol_arg" = "invalid" ; then
2607 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2609 { (exit 1); exit 1; }; }
2611 ol_enable_meta="$ol_arg"
2615 fi; # end --enable-meta
2616 # OpenLDAP --with-meta_module
2618 # Check whether --with-meta_module or --without-meta_module was given.
2619 if test "${with_meta_module+set}" = set; then
2620 withval="$with_meta_module"
2623 for ol_val in static dynamic ; do
2624 if test "$withval" = "$ol_val" ; then
2628 if test "$ol_arg" = "invalid" ; then
2629 { { echo "$as_me:$LINENO: error: bad value $withval for --with-meta_module" >&5
2630 echo "$as_me: error: bad value $withval for --with-meta_module" >&2;}
2631 { (exit 1); exit 1; }; }
2633 ol_with_meta_module="$ol_arg"
2636 ol_with_meta_module="static"
2637 fi; # end --with-meta_module
2639 # OpenLDAP --enable-monitor
2640 # Check whether --enable-monitor or --disable-monitor was given.
2641 if test "${enable_monitor+set}" = set; then
2642 enableval="$enable_monitor"
2645 for ol_val in auto yes no ; do
2646 if test "$enableval" = "$ol_val" ; then
2650 if test "$ol_arg" = "invalid" ; then
2651 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2652 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2653 { (exit 1); exit 1; }; }
2655 ol_enable_monitor="$ol_arg"
2658 ol_enable_monitor="no"
2659 fi; # end --enable-monitor
2660 # OpenLDAP --with-monitor_module
2662 # Check whether --with-monitor_module or --without-monitor_module was given.
2663 if test "${with_monitor_module+set}" = set; then
2664 withval="$with_monitor_module"
2667 for ol_val in static dynamic ; do
2668 if test "$withval" = "$ol_val" ; then
2672 if test "$ol_arg" = "invalid" ; then
2673 { { echo "$as_me:$LINENO: error: bad value $withval for --with-monitor_module" >&5
2674 echo "$as_me: error: bad value $withval for --with-monitor_module" >&2;}
2675 { (exit 1); exit 1; }; }
2677 ol_with_monitor_module="$ol_arg"
2680 ol_with_monitor_module="static"
2681 fi; # end --with-monitor_module
2683 # OpenLDAP --enable-null
2684 # Check whether --enable-null or --disable-null was given.
2685 if test "${enable_null+set}" = set; then
2686 enableval="$enable_null"
2689 for ol_val in auto yes no ; do
2690 if test "$enableval" = "$ol_val" ; then
2694 if test "$ol_arg" = "invalid" ; then
2695 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2696 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2697 { (exit 1); exit 1; }; }
2699 ol_enable_null="$ol_arg"
2703 fi; # end --enable-null
2704 # OpenLDAP --with-null_module
2706 # Check whether --with-null_module or --without-null_module was given.
2707 if test "${with_null_module+set}" = set; then
2708 withval="$with_null_module"
2711 for ol_val in static dynamic ; do
2712 if test "$withval" = "$ol_val" ; then
2716 if test "$ol_arg" = "invalid" ; then
2717 { { echo "$as_me:$LINENO: error: bad value $withval for --with-null_module" >&5
2718 echo "$as_me: error: bad value $withval for --with-null_module" >&2;}
2719 { (exit 1); exit 1; }; }
2721 ol_with_null_module="$ol_arg"
2724 ol_with_null_module="static"
2725 fi; # end --with-null_module
2727 # OpenLDAP --enable-passwd
2728 # Check whether --enable-passwd or --disable-passwd was given.
2729 if test "${enable_passwd+set}" = set; then
2730 enableval="$enable_passwd"
2733 for ol_val in auto yes no ; do
2734 if test "$enableval" = "$ol_val" ; then
2738 if test "$ol_arg" = "invalid" ; then
2739 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2740 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2741 { (exit 1); exit 1; }; }
2743 ol_enable_passwd="$ol_arg"
2746 ol_enable_passwd="no"
2747 fi; # end --enable-passwd
2748 # OpenLDAP --with-passwd_module
2750 # Check whether --with-passwd_module or --without-passwd_module was given.
2751 if test "${with_passwd_module+set}" = set; then
2752 withval="$with_passwd_module"
2755 for ol_val in static dynamic ; do
2756 if test "$withval" = "$ol_val" ; then
2760 if test "$ol_arg" = "invalid" ; then
2761 { { echo "$as_me:$LINENO: error: bad value $withval for --with-passwd_module" >&5
2762 echo "$as_me: error: bad value $withval for --with-passwd_module" >&2;}
2763 { (exit 1); exit 1; }; }
2765 ol_with_passwd_module="$ol_arg"
2768 ol_with_passwd_module="static"
2769 fi; # end --with-passwd_module
2771 # OpenLDAP --enable-perl
2772 # Check whether --enable-perl or --disable-perl was given.
2773 if test "${enable_perl+set}" = set; then
2774 enableval="$enable_perl"
2777 for ol_val in auto yes no ; do
2778 if test "$enableval" = "$ol_val" ; then
2782 if test "$ol_arg" = "invalid" ; then
2783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2785 { (exit 1); exit 1; }; }
2787 ol_enable_perl="$ol_arg"
2791 fi; # end --enable-perl
2792 # OpenLDAP --with-perl_module
2794 # Check whether --with-perl_module or --without-perl_module was given.
2795 if test "${with_perl_module+set}" = set; then
2796 withval="$with_perl_module"
2799 for ol_val in static dynamic ; do
2800 if test "$withval" = "$ol_val" ; then
2804 if test "$ol_arg" = "invalid" ; then
2805 { { echo "$as_me:$LINENO: error: bad value $withval for --with-perl_module" >&5
2806 echo "$as_me: error: bad value $withval for --with-perl_module" >&2;}
2807 { (exit 1); exit 1; }; }
2809 ol_with_perl_module="$ol_arg"
2812 ol_with_perl_module="static"
2813 fi; # end --with-perl_module
2815 # OpenLDAP --enable-shell
2816 # Check whether --enable-shell or --disable-shell was given.
2817 if test "${enable_shell+set}" = set; then
2818 enableval="$enable_shell"
2821 for ol_val in auto yes no ; do
2822 if test "$enableval" = "$ol_val" ; then
2826 if test "$ol_arg" = "invalid" ; then
2827 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
2828 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
2829 { (exit 1); exit 1; }; }
2831 ol_enable_shell="$ol_arg"
2834 ol_enable_shell="no"
2835 fi; # end --enable-shell
2836 # OpenLDAP --with-shell_module
2838 # Check whether --with-shell_module or --without-shell_module was given.
2839 if test "${with_shell_module+set}" = set; then
2840 withval="$with_shell_module"
2843 for ol_val in static dynamic ; do
2844 if test "$withval" = "$ol_val" ; then
2848 if test "$ol_arg" = "invalid" ; then
2849 { { echo "$as_me:$LINENO: error: bad value $withval for --with-shell_module" >&5
2850 echo "$as_me: error: bad value $withval for --with-shell_module" >&2;}
2851 { (exit 1); exit 1; }; }
2853 ol_with_shell_module="$ol_arg"
2856 ol_with_shell_module="static"
2857 fi; # end --with-shell_module
2859 # OpenLDAP --enable-sql
2860 # Check whether --enable-sql or --disable-sql was given.
2861 if test "${enable_sql+set}" = set; then
2862 enableval="$enable_sql"
2865 for ol_val in auto yes no ; do
2866 if test "$enableval" = "$ol_val" ; then
2870 if test "$ol_arg" = "invalid" ; then
2871 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
2872 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
2873 { (exit 1); exit 1; }; }
2875 ol_enable_sql="$ol_arg"
2879 fi; # end --enable-sql
2880 # OpenLDAP --with-sql_module
2882 # Check whether --with-sql_module or --without-sql_module was given.
2883 if test "${with_sql_module+set}" = set; then
2884 withval="$with_sql_module"
2887 for ol_val in static dynamic ; do
2888 if test "$withval" = "$ol_val" ; then
2892 if test "$ol_arg" = "invalid" ; then
2893 { { echo "$as_me:$LINENO: error: bad value $withval for --with-sql_module" >&5
2894 echo "$as_me: error: bad value $withval for --with-sql_module" >&2;}
2895 { (exit 1); exit 1; }; }
2897 ol_with_sql_module="$ol_arg"
2900 ol_with_sql_module="static"
2901 fi; # end --with-sql_module
2903 # OpenLDAP --enable-tcl
2904 # Check whether --enable-tcl or --disable-tcl was given.
2905 if test "${enable_tcl+set}" = set; then
2906 enableval="$enable_tcl"
2909 for ol_val in auto yes no ; do
2910 if test "$enableval" = "$ol_val" ; then
2914 if test "$ol_arg" = "invalid" ; then
2915 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tcl" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-tcl" >&2;}
2917 { (exit 1); exit 1; }; }
2919 ol_enable_tcl="$ol_arg"
2923 fi; # end --enable-tcl
2924 # OpenLDAP --with-tcl_module
2926 # Check whether --with-tcl_module or --without-tcl_module was given.
2927 if test "${with_tcl_module+set}" = set; then
2928 withval="$with_tcl_module"
2931 for ol_val in static dynamic ; do
2932 if test "$withval" = "$ol_val" ; then
2936 if test "$ol_arg" = "invalid" ; then
2937 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tcl_module" >&5
2938 echo "$as_me: error: bad value $withval for --with-tcl_module" >&2;}
2939 { (exit 1); exit 1; }; }
2941 ol_with_tcl_module="$ol_arg"
2944 ol_with_tcl_module="static"
2945 fi; # end --with-tcl_module
2949 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2950 if test "${with_xxslurpdoptions+set}" = set; then
2951 withval="$with_xxslurpdoptions"
2954 # OpenLDAP --enable-slurpd
2955 # Check whether --enable-slurpd or --disable-slurpd was given.
2956 if test "${enable_slurpd+set}" = set; then
2957 enableval="$enable_slurpd"
2960 for ol_val in auto yes no ; do
2961 if test "$enableval" = "$ol_val" ; then
2965 if test "$ol_arg" = "invalid" ; then
2966 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
2967 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
2968 { (exit 1); exit 1; }; }
2970 ol_enable_slurpd="$ol_arg"
2973 ol_enable_slurpd="auto"
2974 fi; # end --enable-slurpd
2977 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2978 if test "${with_xxliboptions+set}" = set; then
2979 withval="$with_xxliboptions"
2982 # Check whether --enable-static or --disable-static was given.
2983 if test "${enable_static+set}" = set; then
2984 enableval="$enable_static"
2985 p=${PACKAGE-default}
2987 yes) enable_static=yes ;;
2988 no) enable_static=no ;;
2991 # Look at the argument we got. We use all the common list separators.
2992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2993 for pkg in $enableval; do
2994 if test "X$pkg" = "X$p"; then
3004 # Check whether --enable-shared or --disable-shared was given.
3005 if test "${enable_shared+set}" = set; then
3006 enableval="$enable_shared"
3007 p=${PACKAGE-default}
3009 yes) enable_shared=yes ;;
3010 no) enable_shared=no ;;
3013 # Look at the argument we got. We use all the common list separators.
3014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3015 for pkg in $enableval; do
3016 if test "X$pkg" = "X$p"; then
3029 if test $ol_enable_slapd = no ; then
3030 if test $ol_enable_slapi = yes ; then
3031 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3032 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3034 if test $ol_enable_bdb = yes ; then
3035 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-bdb argument" >&5
3036 echo "$as_me: WARNING: slapd disabled, ignoring --enable-bdb argument" >&2;}
3038 if test $ol_enable_dnssrv = yes ; then
3039 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dnssrv argument" >&5
3040 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dnssrv argument" >&2;}
3042 if test $ol_enable_ldap = yes ; then
3043 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldap argument" >&5
3044 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldap argument" >&2;}
3046 if test $ol_enable_ldbm = yes ; then
3047 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm argument" >&5
3048 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm argument" >&2;}
3050 if test $ol_enable_meta = yes ; then
3051 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-meta argument" >&5
3052 echo "$as_me: WARNING: slapd disabled, ignoring --enable-meta argument" >&2;}
3054 if test $ol_enable_monitor = yes ; then
3055 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-monitor argument" >&5
3056 echo "$as_me: WARNING: slapd disabled, ignoring --enable-monitor argument" >&2;}
3058 if test $ol_enable_null = yes ; then
3059 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-null argument" >&5
3060 echo "$as_me: WARNING: slapd disabled, ignoring --enable-null argument" >&2;}
3062 if test $ol_enable_passwd = yes ; then
3063 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-passwd argument" >&5
3064 echo "$as_me: WARNING: slapd disabled, ignoring --enable-passwd argument" >&2;}
3066 if test $ol_enable_perl = yes ; then
3067 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-perl argument" >&5
3068 echo "$as_me: WARNING: slapd disabled, ignoring --enable-perl argument" >&2;}
3070 if test $ol_enable_shell = yes ; then
3071 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-shell argument" >&5
3072 echo "$as_me: WARNING: slapd disabled, ignoring --enable-shell argument" >&2;}
3074 if test $ol_enable_tcl = yes ; then
3075 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-tcl argument" >&5
3076 echo "$as_me: WARNING: slapd disabled, ignoring --enable-tcl argument" >&2;}
3078 if test $ol_enable_sql = yes ; then
3079 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-sql argument" >&5
3080 echo "$as_me: WARNING: slapd disabled, ignoring --enable-sql argument" >&2;}
3082 if test $ol_enable_modules = yes ; then
3083 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3084 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3086 if test $ol_enable_multimaster = yes ; then
3087 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3088 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3090 if test $ol_enable_wrappers = yes ; then
3091 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3092 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3094 if test $ol_enable_phonetic = yes ; then
3095 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-phonetic argument" >&5
3096 echo "$as_me: WARNING: slapd disabled, ignoring --enable-phonetic argument" >&2;}
3098 if test $ol_enable_rlookups = yes ; then
3099 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3100 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3102 if test $ol_enable_aci = yes ; then
3103 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3104 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3106 if test $ol_with_ldbm_api != auto ; then
3107 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3108 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3110 if test $ol_with_ldbm_type != auto ; then
3111 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3112 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3114 if test $ol_with_bdb_module != static ; then
3115 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-bdb-module argument" >&5
3116 echo "$as_me: WARNING: slapd disabled, ignoring --with-bdb-module argument" >&2;}
3118 if test $ol_with_dnssrv_module != static ; then
3119 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-dnssrv-module argument" >&5
3120 echo "$as_me: WARNING: slapd disabled, ignoring --with-dnssrv-module argument" >&2;}
3122 if test $ol_with_ldap_module != static ; then
3123 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldap-module argument" >&5
3124 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldap-module argument" >&2;}
3126 if test $ol_with_ldbm_module != static ; then
3127 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-module argument" >&5
3128 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-module argument" >&2;}
3130 if test $ol_with_meta_module != static ; then
3131 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-meta-module argument" >&5
3132 echo "$as_me: WARNING: slapd disabled, ignoring --with-meta-module argument" >&2;}
3134 if test $ol_with_monitor_module != static ; then
3135 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-monitor-module argument" >&5
3136 echo "$as_me: WARNING: slapd disabled, ignoring --with-monitor-module argument" >&2;}
3138 if test $ol_with_null_module != static ; then
3139 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-null-module argument" >&5
3140 echo "$as_me: WARNING: slapd disabled, ignoring --with-null-module argument" >&2;}
3142 if test $ol_with_passwd_module != static ; then
3143 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-passwd-module argument" >&5
3144 echo "$as_me: WARNING: slapd disabled, ignoring --with-passwd-module argument" >&2;}
3146 if test $ol_with_perl_module != static ; then
3147 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-perl-module argument" >&5
3148 echo "$as_me: WARNING: slapd disabled, ignoring --with-perl-module argument" >&2;}
3150 if test $ol_with_shell_module != static ; then
3151 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-shell-module argument" >&5
3152 echo "$as_me: WARNING: slapd disabled, ignoring --with-shell-module argument" >&2;}
3154 if test $ol_with_tcl_module != static ; then
3155 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-tcl-module argument" >&5
3156 echo "$as_me: WARNING: slapd disabled, ignoring --with-tcl-module argument" >&2;}
3158 if test $ol_with_sql_module != static ; then
3159 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-sql-module argument" >&5
3160 echo "$as_me: WARNING: slapd disabled, ignoring --with-sql-module argument" >&2;}
3162 if test $ol_enable_slurpd = yes ; then
3163 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3164 echo "$as_me: error: slurpd requires slapd" >&2;}
3165 { (exit 1); exit 1; }; }
3167 if test $ol_enable_rewrite = yes ; then
3168 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3169 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3172 # force settings to no
3179 ol_enable_monitor=no
3187 ol_enable_modules=no
3188 ol_enable_multimaster=no
3189 ol_enable_phonetic=no
3190 ol_enable_rlookups=no
3192 ol_enable_wrappers=no
3193 ol_enable_dynamic=no
3196 ol_with_ldbm_type=no
3198 ol_with_bdb_module=static
3199 ol_with_dnssrv_module=static
3200 ol_with_ldap_module=static
3201 ol_with_ldbm_module=static
3202 ol_with_meta_module=static
3203 ol_with_monitor_module=static
3204 ol_with_null_module=static
3205 ol_with_passwd_module=static
3206 ol_with_perl_module=static
3207 ol_with_shell_module=static
3208 ol_with_tcl_module=static
3209 ol_with_sql_module=static
3213 ol_enable_rewrite=no
3215 elif test $ol_enable_ldbm = no ; then
3217 if test $ol_with_ldbm_api != auto ; then
3218 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3219 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3222 if test $ol_with_ldbm_type != auto ; then
3223 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3224 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3227 if test $ol_with_ldbm_module != static ; then
3228 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-module argument" >&5
3229 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-module argument" >&2;}
3232 if test $ol_enable_modules != yes -a \
3233 $ol_enable_bdb = no -a \
3234 $ol_enable_dnssrv = no -a \
3235 $ol_enable_ldap = no -a \
3236 $ol_enable_meta = no -a \
3237 $ol_enable_monitor = no -a \
3238 $ol_enable_null = no -a \
3239 $ol_enable_passwd = no -a \
3240 $ol_enable_perl = no -a \
3241 $ol_enable_shell = no -a \
3242 $ol_enable_sql = no -a \
3243 $ol_enable_tcl = no ; then
3245 if test $ol_enable_slapd = yes ; then
3246 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3247 echo "$as_me: error: slapd requires a backend" >&2;}
3248 { (exit 1); exit 1; }; }
3250 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3251 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3257 ol_with_ldbm_type=no
3258 ol_with_ldbm_module=static
3260 if test $ol_enable_bdb != no ; then
3261 ol_with_ldbm_api=berkeley
3265 if test $ol_with_ldbm_api = gdbm -a \
3266 $ol_with_ldbm_type = btree ; then
3267 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3268 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3269 { (exit 1); exit 1; }; }
3271 if test $ol_with_ldbm_api = mdbm -a \
3272 $ol_with_ldbm_type = btree ; then
3273 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3274 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3275 { (exit 1); exit 1; }; }
3277 if test $ol_with_ldbm_api = ndbm -a \
3278 $ol_with_ldbm_type = btree ; then
3279 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3280 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3281 { (exit 1); exit 1; }; }
3284 if test $ol_enable_bdb = yes ; then
3285 if test $ol_with_ldbm_api = auto ; then
3286 ol_with_ldbm_api=berkeley
3287 elif test $ol_with_ldbm_api != berkeley ; then
3288 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB" >&5
3289 echo "$as_me: error: LDBM API not compatible with BDB" >&2;}
3290 { (exit 1); exit 1; }; }
3293 elif test $ol_enable_bdb = auto ; then
3294 if test $ol_with_ldbm_api != berkeley \
3295 -o $ol_with_ldbm_api != auto ; then
3296 { echo "$as_me:$LINENO: WARNING: LDBM API not compatible with BDB, disabling BDB" >&5
3297 echo "$as_me: WARNING: LDBM API not compatible with BDB, disabling BDB" >&2;}
3303 if test $ol_enable_slurpd = yes ; then
3304 if test $ol_with_threads = no ; then
3305 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3306 echo "$as_me: error: slurpd requires threads" >&2;}
3307 { (exit 1); exit 1; }; }
3311 if test $ol_enable_lmpasswd = yes ; then
3312 if test $ol_with_tls = no ; then
3313 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3314 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3315 { (exit 1); exit 1; }; }
3319 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
3320 if test $ol_with_kerberos = no ; then
3321 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3322 echo "$as_me: error: options require --with-kerberos" >&2;}
3323 { (exit 1); exit 1; }; }
3324 elif test $ol_with_kerberos = auto ; then
3325 ol_with_kerberos=yes
3328 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
3329 if test $ol_with_kerberos = auto ; then
3331 elif test $ol_with_kerberos != no ; then
3332 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3333 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3338 if test $ol_enable_spasswd = yes ; then
3339 if test $ol_with_cyrus_sasl = no ; then
3340 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3341 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3342 { (exit 1); exit 1; }; }
3344 ol_with_cyrus_sasl=yes
3347 echo "$as_me:$LINENO: result: done" >&5
3348 echo "${ECHO_T}done" >&6
3380 BUILD_BDB_DYNAMIC=static
3381 BUILD_DNSSRV_DYNAMIC=static
3382 BUILD_LDAP_DYNAMIC=static
3383 BUILD_LDBM_DYNAMIC=static
3384 BUILD_META_DYNAMIC=static
3385 BUILD_MONITOR_DYNAMIC=static
3386 BUILD_NULL_DYNAMIC=static
3387 BUILD_PASSWD_DYNAMIC=static
3388 BUILD_PERL_DYNAMIC=static
3389 BUILD_SHELL_DYNAMIC=static
3390 BUILD_TCL_DYNAMIC=static
3391 BUILD_SQL_DYNAMIC=static
3393 SLAPD_MODULES_LDFLAGS=
3394 SLAPD_MODULES_CPPFLAGS=
3396 SLAPD_STATIC_BACKENDS=
3397 SLAPD_DYNAMIC_BACKENDS=
3423 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3424 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3425 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3426 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 cat >conftest.make <<\_ACEOF
3431 @echo 'ac_maketemp="$(MAKE)"'
3433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3434 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3435 if test -n "$ac_maketemp"; then
3436 eval ac_cv_prog_make_${ac_make}_set=yes
3438 eval ac_cv_prog_make_${ac_make}_set=no
3442 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3443 echo "$as_me:$LINENO: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3449 SET_MAKE="MAKE=${MAKE-make}"
3452 # Find a good install program. We prefer a C program (faster),
3453 # so one script is as good as another. But avoid the broken or
3454 # incompatible versions:
3455 # SysV /etc/install, /usr/sbin/install
3456 # SunOS /usr/etc/install
3457 # IRIX /sbin/install
3459 # AmigaOS /C/install, which installs bootblocks on floppy discs
3460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463 # ./install, which can be erroneously created by make from ./install.sh.
3464 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3465 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3466 if test -z "$INSTALL"; then
3467 if test "${ac_cv_path_install+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 # Account for people who put trailing slashes in PATH elements.
3477 ./ | .// | /cC/* | \
3478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3481 # OSF1 and SCO ODT 3.0 have their own names for install.
3482 # Don't use installbsd from OSF since it installs stuff as root
3484 for ac_prog in ginstall scoinst install; do
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3487 if test $ac_prog = install &&
3488 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3489 # AIX install. It has an incompatible calling convention.
3491 elif test $ac_prog = install &&
3492 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3493 # program-specific install script used by HP pwplus--don't use.
3496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3508 if test "${ac_cv_path_install+set}" = set; then
3509 INSTALL=$ac_cv_path_install
3511 # As a last resort, use the slow shell script. We don't cache a
3512 # path for INSTALL within a source directory, because that will
3513 # break other packages using the cache if that directory is
3514 # removed, or if the path is relative.
3515 INSTALL=$ac_install_sh
3518 echo "$as_me:$LINENO: result: $INSTALL" >&5
3519 echo "${ECHO_T}$INSTALL" >&6
3521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3522 # It thinks the first close brace ends the variable substitution.
3523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3531 cat >>confdefs.h <<\_ACEOF
3532 #define HAVE_MKVERSION 1
3540 *-*-aix*) if test -z "$CC" ; then
3541 case "$ol_with_threads" in
3542 auto | yes | posix) ol_aix_threads=yes ;;
3548 if test $ol_aix_threads = yes ; then
3549 if test -z "${CC}" ; then
3550 for ac_prog in cc_r xlc_r cc
3552 # Extract the first word of "$ac_prog", so it can be a program name with args.
3553 set dummy $ac_prog; ac_word=$2
3554 echo "$as_me:$LINENO: checking for $ac_word" >&5
3555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556 if test "${ac_cv_prog_CC+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="$ac_prog"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 echo "$as_me:$LINENO: result: $CC" >&5
3581 echo "${ECHO_T}$CC" >&6
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3587 test -n "$CC" && break
3591 if test "$CC" = cc ; then
3592 if test $ol_with_threads != auto ; then
3593 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3594 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3595 { (exit 1); exit 1; }; }
3597 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3598 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3604 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3605 ol_with_threads=posix
3606 ol_cv_pthread_create=yes
3610 if test -z "${CC}"; then
3611 for ac_prog in cc gcc
3613 # Extract the first word of "$ac_prog", so it can be a program name with args.
3614 set dummy $ac_prog; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_CC+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_CC="$ac_prog"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 if test -n "$CC"; then
3641 echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3648 test -n "$CC" && break
3650 test -n "$CC" || CC="missing"
3653 if test "${CC}" = "missing" ; then
3654 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3655 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3656 { (exit 1); exit 1; }; }
3660 if test -z "${AR}"; then
3661 for ac_prog in ar gar
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_AR+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$AR"; then
3671 ac_cv_prog_AR="$AR" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_AR="$ac_prog"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 if test -n "$AR"; then
3691 echo "$as_me:$LINENO: result: $AR" >&5
3692 echo "${ECHO_T}$AR" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 test -n "$AR" && break
3700 test -n "$AR" || AR="missing"
3703 if test "${AR}" = "missing" ; then
3704 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3705 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3706 { (exit 1); exit 1; }; }
3712 # Check whether --enable-fast-install or --disable-fast-install was given.
3713 if test "${enable_fast_install+set}" = set; then
3714 enableval="$enable_fast_install"
3715 p=${PACKAGE-default}
3717 yes) enable_fast_install=yes ;;
3718 no) enable_fast_install=no ;;
3720 enable_fast_install=no
3721 # Look at the argument we got. We use all the common list separators.
3722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3723 for pkg in $enableval; do
3724 if test "X$pkg" = "X$p"; then
3725 enable_fast_install=yes
3732 enable_fast_install=yes
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_CC+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CC"; then
3768 echo "$as_me:$LINENO: result: $CC" >&5
3769 echo "${ECHO_T}$CC" >&6
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3776 if test -z "$ac_cv_prog_CC"; then
3778 # Extract the first word of "gcc", so it can be a program name with args.
3779 set dummy gcc; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CC="gcc"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3807 echo "${ECHO_T}$ac_ct_CC" >&6
3809 echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3818 if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
3820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}cc; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_CC+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_CC="${ac_tool_prefix}cc"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 if test -n "$CC"; then
3848 echo "$as_me:$LINENO: result: $CC" >&5
3849 echo "${ECHO_T}$CC" >&6
3851 echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3856 if test -z "$ac_cv_prog_CC"; then
3858 # Extract the first word of "cc", so it can be a program name with args.
3859 set dummy cc; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test -n "$ac_ct_CC"; then
3866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_ac_ct_CC="cc"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885 if test -n "$ac_ct_CC"; then
3886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3887 echo "${ECHO_T}$ac_ct_CC" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3899 if test -z "$CC"; then
3900 # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3919 ac_prog_rejected=yes
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test $ac_prog_rejected = yes; then
3930 # We found a bogon in the path, so make sure we never use it.
3931 set dummy $ac_cv_prog_CC
3933 if test $# != 0; then
3934 # We chose a different compiler from the bogus one.
3935 # However, it has the same basename, so the bogon will be chosen
3936 # first if we set CC to just the basename; use the full file name.
3938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3944 if test -n "$CC"; then
3945 echo "$as_me:$LINENO: result: $CC" >&5
3946 echo "${ECHO_T}$CC" >&6
3948 echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3953 if test -z "$CC"; then
3954 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_CC+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$CC"; then
3965 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 if test -n "$CC"; then
3985 echo "$as_me:$LINENO: result: $CC" >&5
3986 echo "${ECHO_T}$CC" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$CC" && break
3995 if test -z "$CC"; then
3999 # Extract the first word of "$ac_prog", so it can be a program name with args.
4000 set dummy $ac_prog; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$ac_ct_CC"; then
4007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_CC="$ac_prog"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4026 if test -n "$ac_ct_CC"; then
4027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4028 echo "${ECHO_T}$ac_ct_CC" >&6
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4034 test -n "$ac_ct_CC" && break
4043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: no acceptable C compiler found in \$PATH
4046 See \`config.log' for more details." >&2;}
4047 { (exit 1); exit 1; }; }
4049 # Provide some information about the compiler.
4050 echo "$as_me:$LINENO:" \
4051 "checking for C compiler version" >&5
4052 ac_compiler=`set X $ac_compile; echo $2`
4053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4054 (eval $ac_compiler --version </dev/null >&5) 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }
4058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4059 (eval $ac_compiler -v </dev/null >&5) 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }
4063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4064 (eval $ac_compiler -V </dev/null >&5) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }
4069 cat >conftest.$ac_ext <<_ACEOF
4070 #line $LINENO "configure"
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4085 ac_clean_files_save=$ac_clean_files
4086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4087 # Try to create an executable without -o first, disregard a.out.
4088 # It will help us diagnose broken compilers, and finding out an intuition
4090 echo "$as_me:$LINENO: checking for C compiler default output" >&5
4091 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
4092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4094 (eval $ac_link_default) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 # Find the output, starting from the most likely. This scheme is
4099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4102 # Be careful to initialize this variable, since it used to be cached.
4103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4105 # b.out is created by i960 compilers.
4106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4108 test -f "$ac_file" || continue
4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4113 # This is the source file.
4116 # We found the default executable, but exeext='' is most
4120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4121 # FIXME: I believe we export ac_cv_exeext for Libtool,
4122 # but it would be cool to find out if it's true. Does anybody
4123 # maintain Libtool? --akim.
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4135 See \`config.log' for more details." >&5
4136 echo "$as_me: error: C compiler cannot create executables
4137 See \`config.log' for more details." >&2;}
4138 { (exit 77); exit 77; }; }
4141 ac_exeext=$ac_cv_exeext
4142 echo "$as_me:$LINENO: result: $ac_file" >&5
4143 echo "${ECHO_T}$ac_file" >&6
4145 # Check the compiler produces executables we can run. If not, either
4146 # the compiler is broken, or we cross compile.
4147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4150 # If not cross compiling, check that we can run a simple program.
4151 if test "$cross_compiling" != yes; then
4152 if { ac_try='./$ac_file'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4160 if test "$cross_compiling" = maybe; then
4163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4164 If you meant to cross compile, use \`--host'.
4165 See \`config.log' for more details." >&5
4166 echo "$as_me: error: cannot run C compiled programs.
4167 If you meant to cross compile, use \`--host'.
4168 See \`config.log' for more details." >&2;}
4169 { (exit 1); exit 1; }; }
4173 echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6
4176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4177 ac_clean_files=$ac_clean_files_save
4178 # Check the compiler produces executables we can run. If not, either
4179 # the compiler is broken, or we cross compile.
4180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4183 echo "${ECHO_T}$cross_compiling" >&6
4185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; then
4192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4194 # work properly (i.e., refer to `conftest.exe'), while it won't with
4196 for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4208 See \`config.log' for more details." >&5
4209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4210 See \`config.log' for more details." >&2;}
4211 { (exit 1); exit 1; }; }
4214 rm -f conftest$ac_cv_exeext
4215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4216 echo "${ECHO_T}$ac_cv_exeext" >&6
4218 rm -f conftest.$ac_ext
4219 EXEEXT=$ac_cv_exeext
4221 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4223 if test "${ac_cv_objext+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4242 rm -f conftest.o conftest.obj
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; then
4248 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4260 See \`config.log' for more details." >&5
4261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4262 See \`config.log' for more details." >&2;}
4263 { (exit 1); exit 1; }; }
4266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4269 echo "${ECHO_T}$ac_cv_objext" >&6
4270 OBJEXT=$ac_cv_objext
4272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4315 rm -f conftest.$ac_objext conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4319 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4320 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4321 GCC=`test $ac_compiler_gnu = yes && echo yes`
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4325 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4326 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4327 if test "${ac_cv_prog_cc_g+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4365 rm -f conftest.$ac_objext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4369 if test "$ac_test_CFLAGS" = set; then
4370 CFLAGS=$ac_save_CFLAGS
4371 elif test $ac_cv_prog_cc_g = yes; then
4372 if test "$GCC" = yes; then
4378 if test "$GCC" = yes; then
4384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 ac_cv_prog_cc_stdc=no
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 #include <sys/stat.h>
4402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4403 struct buf { int x; };
4404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4405 static char *e (p, i)
4411 static char *f (char * (*g) (char **, int), char **p, ...)
4416 s = g (p, va_arg (v,int));
4420 int test (int i, double x);
4421 struct s1 {int (*f) (int a);};
4422 struct s2 {int (*f) (double a);};
4423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4434 # Don't try gcc -ansi; that turns off useful extensions and
4435 # breaks some systems' header files.
4436 # AIX -qlanglvl=ansi
4437 # Ultrix and OSF/1 -std1
4438 # HP-UX 10.20 and later -Ae
4439 # HP-UX older versions -Aa -D_HPUX_SOURCE
4440 # SVR4 -Xc -D__EXTENSIONS__
4441 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4443 CC="$ac_save_CC $ac_arg"
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_prog_cc_stdc=$ac_arg
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f conftest.$ac_objext
4465 rm -f conftest.$ac_ext conftest.$ac_objext
4470 case "x$ac_cv_prog_cc_stdc" in
4472 echo "$as_me:$LINENO: result: none needed" >&5
4473 echo "${ECHO_T}none needed" >&6 ;;
4475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4477 CC="$CC $ac_cv_prog_cc_stdc" ;;
4480 # Some people use a C++ compiler to compile C. Since we use `exit',
4481 # in C++ we need to declare it. In case someone uses the same compiler
4482 # for both compiling C and C++ we need to have the C++ compiler decide
4483 # the declaration of exit, since it's the most demanding environment.
4484 cat >conftest.$ac_ext <<_ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 for ac_declaration in \
4503 '#include <stdlib.h>' \
4504 'extern "C" void std::exit (int) throw (); using std::exit;' \
4505 'extern "C" void std::exit (int); using std::exit;' \
4506 'extern "C" void exit (int) throw ();' \
4507 'extern "C" void exit (int);' \
4510 cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4546 rm -f conftest.$ac_objext conftest.$ac_ext
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4581 rm -f conftest.$ac_objext conftest.$ac_ext
4584 if test -n "$ac_declaration"; then
4585 echo '#ifdef __cplusplus' >>confdefs.h
4586 echo $ac_declaration >>confdefs.h
4587 echo '#endif' >>confdefs.h
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 # Find the correct PATH separator. Usually this is `:', but
4603 # DJGPP uses `;' like DOS.
4604 if test "X${PATH_SEPARATOR+set}" != Xset; then
4605 UNAME=${UNAME-`uname 2>/dev/null`}
4607 *-DOS) lt_cv_sys_path_separator=';' ;;
4608 *) lt_cv_sys_path_separator=':' ;;
4610 PATH_SEPARATOR=$lt_cv_sys_path_separator
4614 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4615 if test "${with_gnu_ld+set}" = set; then
4616 withval="$with_gnu_ld"
4617 test "$withval" = no || with_gnu_ld=yes
4622 if test "$GCC" = yes; then
4623 # Check if gcc -print-prog-name=ld gives a path.
4624 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4625 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4628 # gcc leaves a trailing carriage return which upsets mingw
4629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4634 # Accept absolute paths.
4635 [\\/]* | [A-Za-z]:[\\/]*)
4636 re_direlt='/[^/][^/]*/\.\./'
4637 # Canonicalize the path of ld
4638 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4639 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4640 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4642 test -z "$LD" && LD="$ac_prog"
4645 # If it fails, then pretend we aren't using GCC.
4649 # If it is relative, then search for the first ld in PATH.
4653 elif test "$with_gnu_ld" = yes; then
4654 echo "$as_me:$LINENO: checking for GNU ld" >&5
4655 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4658 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4660 if test "${lt_cv_path_LD+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -z "$LD"; then
4664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4665 for ac_dir in $PATH; do
4666 test -z "$ac_dir" && ac_dir=.
4667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4668 lt_cv_path_LD="$ac_dir/$ac_prog"
4669 # Check to see if the program is GNU ld. I'd rather use --version,
4670 # but apparently some GNU ld's only accept -v.
4671 # Break only if it was the GNU/non-GNU ld that we prefer.
4672 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4673 test "$with_gnu_ld" != no && break
4675 test "$with_gnu_ld" != yes && break
4681 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4686 if test -n "$LD"; then
4687 echo "$as_me:$LINENO: result: $LD" >&5
4688 echo "${ECHO_T}$LD" >&6
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4693 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4694 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4695 { (exit 1); exit 1; }; }
4696 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4697 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4698 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4702 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4703 lt_cv_prog_gnu_ld=yes
4705 lt_cv_prog_gnu_ld=no
4708 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4709 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4710 with_gnu_ld=$lt_cv_prog_gnu_ld
4713 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4714 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4715 if test "${lt_cv_ld_reload_flag+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 lt_cv_ld_reload_flag='-r'
4720 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4721 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4722 reload_flag=$lt_cv_ld_reload_flag
4723 test -n "$reload_flag" && reload_flag=" $reload_flag"
4725 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4726 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4727 if test "${lt_cv_path_NM+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$NM"; then
4731 # Let the user override the test.
4734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4735 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4736 test -z "$ac_dir" && ac_dir=.
4737 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4738 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4739 # Check to see if the nm accepts a BSD-compat flag.
4740 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4741 # nm: unknown option "B" ignored
4742 # Tru64's nm complains that /dev/null is an invalid object file
4743 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4744 lt_cv_path_NM="$tmp_nm -B"
4746 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4747 lt_cv_path_NM="$tmp_nm -p"
4750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4751 continue # so that we can try to find one that supports BSD flags
4756 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4761 echo "$as_me:$LINENO: result: $NM" >&5
4762 echo "${ECHO_T}$NM" >&6
4764 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4765 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4766 if test "${lt_cv_path_SED+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 # Loop through the user's path and test for sed and gsed.
4770 # Then use that list of sed's as ones to test for truncation.
4771 as_executable_p="test -f"
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_prog in sed gsed; do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4780 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4786 # Create a temporary directory, and hook for its removal unless debugging.
4789 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4790 trap '{ (exit 1); exit 1; }' 1 2 13 15
4793 # Create a (secure) tmp directory for tmp files.
4796 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4797 test -n "$tmp" && test -d "$tmp"
4800 tmp=$TMPDIR/sed$$-$RANDOM
4801 (umask 077 && mkdir $tmp)
4804 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4805 { (exit 1); exit 1; }
4809 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4810 # along with /bin/sed that truncates output.
4811 for _sed in $_sed_list /usr/xpg4/bin/sed; do
4812 test ! -f ${_sed} && break
4813 cat /dev/null > "$tmp/sed.in"
4815 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4816 # Check for GNU sed and select it if it is found.
4817 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4818 lt_cv_path_SED=${_sed}
4822 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4823 mv "$tmp/sed.tmp" "$tmp/sed.in"
4824 cp "$tmp/sed.in" "$tmp/sed.nl"
4825 echo >>"$tmp/sed.nl"
4826 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4827 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4828 # 40000 chars as input seems more than enough
4829 test $_count -gt 10 && break
4830 _count=`expr $_count + 1`
4831 if test $_count -gt $_max; then
4833 lt_cv_path_SED=$_sed
4841 if test "X$SED" != "X"; then
4846 echo "$as_me:$LINENO: result: $SED" >&5
4847 echo "${ECHO_T}$SED" >&6
4849 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4850 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4852 if test "$LN_S" = "ln -s"; then
4853 echo "$as_me:$LINENO: result: yes" >&5
4854 echo "${ECHO_T}yes" >&6
4856 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4857 echo "${ECHO_T}no, using $LN_S" >&6
4860 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4861 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4862 if test "${lt_cv_deplibs_check_method+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 lt_cv_file_magic_cmd='$MAGIC_CMD'
4866 lt_cv_file_magic_test_file=
4867 lt_cv_deplibs_check_method='unknown'
4868 # Need to set the preceding variable on all platforms that support
4869 # interlibrary dependencies.
4870 # 'none' -- dependencies not supported.
4871 # `unknown' -- same as none, but documents that we really don't know.
4872 # 'pass_all' -- all dependencies passed with no checks.
4873 # 'test_compile' -- check by making test program.
4874 # 'file_magic [[regex]]' -- check by looking for files in library path
4875 # which responds to the $file_magic_cmd with a given egrep regex.
4876 # If you have `file' or equivalent on your system and you're not sure
4877 # whether `pass_all' will *always* work, you probably want this one.
4881 lt_cv_deplibs_check_method=pass_all
4885 lt_cv_deplibs_check_method=pass_all
4889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4890 lt_cv_file_magic_cmd='/usr/bin/file -L'
4891 lt_cv_file_magic_test_file=/shlib/libc.so
4894 cygwin* | mingw* | pw32*)
4895 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4896 lt_cv_file_magic_cmd='$OBJDUMP -f'
4899 darwin* | rhapsody*)
4900 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4901 lt_cv_file_magic_cmd='/usr/bin/file -L'
4903 rhapsody* | darwin1.[012])
4904 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4907 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4913 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4916 # Not sure whether the presence of OpenBSD here was a mistake.
4917 # Let's accept both of them until this is cleared up.
4918 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4919 lt_cv_file_magic_cmd=/usr/bin/file
4920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4924 lt_cv_deplibs_check_method=pass_all
4929 lt_cv_deplibs_check_method=pass_all
4933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4934 lt_cv_file_magic_cmd=/usr/bin/file
4935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4938 irix5* | irix6* | nonstopux*)
4940 irix5* | nonstopux*)
4941 # this will be overridden with pass_all, but let us keep it just in case
4942 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4946 *-32|*"-32 ") libmagic=32-bit;;
4947 *-n32|*"-n32 ") libmagic=N32;;
4948 *-64|*"-64 ") libmagic=64-bit;;
4949 *) libmagic=never-match;;
4951 # this will be overridden with pass_all, but let us keep it just in case
4952 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4955 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4956 lt_cv_deplibs_check_method=pass_all
4959 # This must be Linux ELF.
4962 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4963 lt_cv_deplibs_check_method=pass_all ;;
4965 # glibc up to 2.1.1 does not perform some relocations on ARM
4966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4968 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4973 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4975 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4981 lt_cv_file_magic_cmd=/usr/bin/file
4982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4991 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4995 osf3* | osf4* | osf5*)
4996 # this will be overridden with pass_all, but let us keep it just in case
4997 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4998 lt_cv_file_magic_test_file=/shlib/libc.so
4999 lt_cv_deplibs_check_method=pass_all
5003 lt_cv_deplibs_check_method=pass_all
5007 lt_cv_deplibs_check_method=pass_all
5008 lt_cv_file_magic_test_file=/lib/libc.so
5011 sysv5uw[78]* | sysv4*uw2*)
5012 lt_cv_deplibs_check_method=pass_all
5015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5016 case $host_vendor in
5018 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]'
5019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5022 lt_cv_deplibs_check_method=pass_all
5025 lt_cv_file_magic_cmd='/bin/file'
5026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5029 lt_cv_file_magic_cmd='/bin/file'
5030 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5031 lt_cv_file_magic_test_file=/lib/libc.so
5034 lt_cv_deplibs_check_method=pass_all
5041 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5042 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5043 file_magic_cmd=$lt_cv_file_magic_cmd
5044 deplibs_check_method=$lt_cv_deplibs_check_method
5053 # Check for command to grab the raw symbol name followed by C symbol from nm.
5054 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5055 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5056 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 # These are sane defaults that work on at least a few old systems.
5061 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5063 # Character class describing NM global symbol codes.
5064 symcode='[BCDEGRST]'
5066 # Regexp to match symbols that can be accessed directly from C.
5067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5069 # Transform the above into a raw symbol and a C symbol.
5070 symxfrm='\1 \2\3 \3'
5072 # Transform an extracted symbol line into a proper C declaration
5073 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5075 # Transform an extracted symbol line into symbol name and symbol address
5076 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5078 # Define system-specific variables.
5083 cygwin* | mingw* | pw32*)
5084 symcode='[ABCDGISTW]'
5086 hpux*) # Its linker distinguishes data from code symbols
5087 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5088 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5091 symcode='[BCDEGRST]'
5094 symcode='[BCDEGQRST]'
5104 # Handle CRLF in mingw tool chain
5108 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5112 # If we're using GNU nm, then use its standard symbol codes.
5113 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5114 symcode='[ABCDGISTW]'
5117 # Try without a prefix undercore, then with it.
5118 for ac_symprfx in "" "_"; do
5120 # Write the raw and C identifiers.
5121 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5123 # Check to see that the pipe works correctly.
5126 cat > conftest.$ac_ext <<EOF
5131 void nm_test_func(){}
5135 int main(){nm_test_var='a';nm_test_func();return(0);}
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; then
5143 # Now try to grab the symbols.
5145 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5146 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && test -s "$nlist"; then
5150 # Try sorting and uniquifying the output.
5151 if sort "$nlist" | uniq > "$nlist"T; then
5152 mv -f "$nlist"T "$nlist"
5157 # Make sure that we snagged all the symbols we need.
5158 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5159 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5160 cat <<EOF > conftest.$ac_ext
5166 # Now generate the symbol file.
5167 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5169 cat <<EOF >> conftest.$ac_ext
5170 #if defined (__STDC__) && __STDC__
5171 # define lt_ptr void *
5173 # define lt_ptr char *
5177 /* The mapping between symbol names and symbols. */
5182 lt_preloaded_symbols[] =
5185 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5186 cat <<\EOF >> conftest.$ac_ext
5194 # Now try linking the two files.
5195 mv conftest.$ac_objext conftstm.$ac_objext
5197 save_CFLAGS="$CFLAGS"
5198 LIBS="conftstm.$ac_objext"
5199 CFLAGS="$CFLAGS$no_builtin_flag"
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && test -s conftest$ac_exeext; then
5208 CFLAGS="$save_CFLAGS"
5210 echo "cannot find nm_test_func in $nlist" >&5
5213 echo "cannot find nm_test_var in $nlist" >&5
5216 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5219 echo "$progname: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5222 rm -f conftest* conftst*
5224 # Do not use the global_symbol_pipe unless it works.
5225 if test "$pipe_works" = yes; then
5228 lt_cv_sys_global_symbol_pipe=
5234 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5235 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5236 global_symbol_to_cdecl=
5237 global_symbol_to_c_name_address=
5239 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5240 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5242 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5244 echo "$as_me:$LINENO: result: failed" >&5
5245 echo "${ECHO_T}failed" >&6
5247 echo "$as_me:$LINENO: result: ok" >&5
5248 echo "${ECHO_T}ok" >&6
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5258 # On Suns, sometimes $CPP names a directory.
5259 if test -n "$CPP" && test -d "$CPP"; then
5262 if test -z "$CPP"; then
5263 if test "${ac_cv_prog_CPP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 # Double quotes because CPP needs to be expanded
5267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5270 for ac_c_preproc_warn_flag in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 #line $LINENO "configure"
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5286 # include <limits.h>
5288 # include <assert.h>
5292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null; then
5300 if test -s conftest.err; then
5301 ac_cpp_err=$ac_c_preproc_warn_flag
5308 if test -z "$ac_cpp_err"; then
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 # Broken: fails on valid input.
5317 rm -f conftest.err conftest.$ac_ext
5319 # OK, works on sane cases. Now check whether non-existent headers
5320 # can be detected and how.
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev/null; then
5338 if test -s conftest.err; then
5339 ac_cpp_err=$ac_c_preproc_warn_flag
5346 if test -z "$ac_cpp_err"; then
5347 # Broken: success on invalid input.
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 # Passes both tests.
5357 rm -f conftest.err conftest.$ac_ext
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.err conftest.$ac_ext
5362 if $ac_preproc_ok; then
5374 echo "$as_me:$LINENO: result: $CPP" >&5
5375 echo "${ECHO_T}$CPP" >&6
5377 for ac_c_preproc_warn_flag in '' yes
5379 # Use a header file that comes with gcc, so configuring glibc
5380 # with a fresh cross-compiler works.
5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382 # <limits.h> exists even on freestanding compilers.
5383 # On the NeXT, cc -E runs the code through the compiler's parser,
5384 # not just through cpp. "Syntax error" is here to catch this case.
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5393 # include <limits.h>
5395 # include <assert.h>
5399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5415 if test -z "$ac_cpp_err"; then
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.$ac_ext
5426 # OK, works on sane cases. Now check whether non-existent headers
5427 # can be detected and how.
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5453 if test -z "$ac_cpp_err"; then
5454 # Broken: success on invalid input.
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Passes both tests.
5464 rm -f conftest.err conftest.$ac_ext
5467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5468 rm -f conftest.err conftest.$ac_ext
5469 if $ac_preproc_ok; then
5472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5475 See \`config.log' for more details." >&2;}
5476 { (exit 1); exit 1; }; }
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 echo "$as_me:$LINENO: checking for egrep" >&5
5487 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5488 if test "${ac_cv_prog_egrep+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5492 then ac_cv_prog_egrep='grep -E'
5493 else ac_cv_prog_egrep='egrep'
5496 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5497 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5498 EGREP=$ac_cv_prog_egrep
5501 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5503 if test "${ac_cv_header_stdc+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 cat >conftest.$ac_ext <<_ACEOF
5507 #line $LINENO "configure"
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_header_stdc=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_header_stdc=no
5545 rm -f conftest.$ac_objext conftest.$ac_ext
5547 if test $ac_cv_header_stdc = yes; then
5548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5549 cat >conftest.$ac_ext <<_ACEOF
5550 #line $LINENO "configure"
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "memchr" >/dev/null 2>&1; then
5563 ac_cv_header_stdc=no
5569 if test $ac_cv_header_stdc = yes; then
5570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 $EGREP "free" >/dev/null 2>&1; then
5585 ac_cv_header_stdc=no
5591 if test $ac_cv_header_stdc = yes; then
5592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5593 if test "$cross_compiling" = yes; then
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5604 #if ((' ' & 0x0FF) == 0x020)
5605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5608 # define ISLOWER(c) \
5609 (('a' <= (c) && (c) <= 'i') \
5610 || ('j' <= (c) && (c) <= 'r') \
5611 || ('s' <= (c) && (c) <= 'z'))
5612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5620 for (i = 0; i < 256; i++)
5621 if (XOR (islower (i), ISLOWER (i))
5622 || toupper (i) != TOUPPER (i))
5627 rm -f conftest$ac_exeext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5640 echo "$as_me: program exited with status $ac_status" >&5
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_cv_header_stdc=no
5647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5652 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5653 if test $ac_cv_header_stdc = yes; then
5655 cat >>confdefs.h <<\_ACEOF
5656 #define STDC_HEADERS 1
5661 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5671 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5672 inttypes.h stdint.h unistd.h
5674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5675 echo "$as_me:$LINENO: checking for $ac_header" >&5
5676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5689 #include <$ac_header>
5691 rm -f conftest.$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -s conftest.$ac_objext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 eval "$as_ac_Header=yes"
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 eval "$as_ac_Header=no"
5710 rm -f conftest.$ac_objext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5715 cat >>confdefs.h <<_ACEOF
5716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5725 for ac_header in dlfcn.h
5727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5729 echo "$as_me:$LINENO: checking for $ac_header" >&5
5730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5737 # Is the header compilable?
5738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 $ac_includes_default
5748 #include <$ac_header>
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_header_compiler=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_header_compiler=no
5769 rm -f conftest.$ac_objext conftest.$ac_ext
5770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5771 echo "${ECHO_T}$ac_header_compiler" >&6
5773 # Is the header present?
5774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #include <$ac_header>
5785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null; then
5793 if test -s conftest.err; then
5794 ac_cpp_err=$ac_c_preproc_warn_flag
5801 if test -z "$ac_cpp_err"; then
5802 ac_header_preproc=yes
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 ac_header_preproc=no
5809 rm -f conftest.err conftest.$ac_ext
5810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5811 echo "${ECHO_T}$ac_header_preproc" >&6
5813 # So? What about this header?
5814 case $ac_header_compiler:$ac_header_preproc in
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5827 sed "s/^/$as_me: WARNING: /" >&2
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5838 ## ------------------------------------ ##
5839 ## Report this to bug-autoconf@gnu.org. ##
5840 ## ------------------------------------ ##
5843 sed "s/^/$as_me: WARNING: /" >&2
5846 echo "$as_me:$LINENO: checking for $ac_header" >&5
5847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 eval "$as_ac_Header=$ac_header_preproc"
5853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5858 cat >>confdefs.h <<_ACEOF
5859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5871 # Only perform the check for file, if the check method requires it
5872 case $deplibs_check_method in
5874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5875 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5888 ac_save_MAGIC_CMD="$MAGIC_CMD"
5889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5890 ac_dummy="/usr/bin:$PATH"
5891 for ac_dir in $ac_dummy; do
5892 test -z "$ac_dir" && ac_dir=.
5893 if test -f $ac_dir/${ac_tool_prefix}file; then
5894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5895 if test -n "$file_magic_test_file"; then
5896 case $deplibs_check_method in
5898 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5901 egrep "$file_magic_regex" > /dev/null; then
5906 *** Warning: the command libtool uses to detect shared libraries,
5907 *** $file_magic_cmd, produces output that libtool cannot recognize.
5908 *** The result is that libtool may fail to recognize shared libraries
5909 *** as such. This will affect the creation of libtool libraries that
5910 *** depend on shared libraries, but programs linked with such libtool
5911 *** libraries will work regardless of this problem. Nevertheless, you
5912 *** may want to report the problem to your system manager and/or to
5913 *** bug-libtool@gnu.org
5923 MAGIC_CMD="$ac_save_MAGIC_CMD"
5928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5929 if test -n "$MAGIC_CMD"; then
5930 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5931 echo "${ECHO_T}$MAGIC_CMD" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5937 if test -z "$lt_cv_path_MAGIC_CMD"; then
5938 if test -n "$ac_tool_prefix"; then
5939 echo "$as_me:$LINENO: checking for file" >&5
5940 echo $ECHO_N "checking for file... $ECHO_C" >&6
5941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5952 ac_save_MAGIC_CMD="$MAGIC_CMD"
5953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5954 ac_dummy="/usr/bin:$PATH"
5955 for ac_dir in $ac_dummy; do
5956 test -z "$ac_dir" && ac_dir=.
5957 if test -f $ac_dir/file; then
5958 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5959 if test -n "$file_magic_test_file"; then
5960 case $deplibs_check_method in
5962 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5965 egrep "$file_magic_regex" > /dev/null; then
5970 *** Warning: the command libtool uses to detect shared libraries,
5971 *** $file_magic_cmd, produces output that libtool cannot recognize.
5972 *** The result is that libtool may fail to recognize shared libraries
5973 *** as such. This will affect the creation of libtool libraries that
5974 *** depend on shared libraries, but programs linked with such libtool
5975 *** libraries will work regardless of this problem. Nevertheless, you
5976 *** may want to report the problem to your system manager and/or to
5977 *** bug-libtool@gnu.org
5987 MAGIC_CMD="$ac_save_MAGIC_CMD"
5992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993 if test -n "$MAGIC_CMD"; then
5994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5995 echo "${ECHO_T}$MAGIC_CMD" >&6
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6013 echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015 if test "${ac_cv_prog_RANLIB+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 if test -n "$RANLIB"; then
6019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039 echo "$as_me:$LINENO: result: $RANLIB" >&5
6040 echo "${ECHO_T}$RANLIB" >&6
6042 echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6
6047 if test -z "$ac_cv_prog_RANLIB"; then
6048 ac_ct_RANLIB=$RANLIB
6049 # Extract the first word of "ranlib", so it can be a program name with args.
6050 set dummy ranlib; ac_word=$2
6051 echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 if test -n "$ac_ct_RANLIB"; then
6057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_RANLIB="ranlib"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6077 if test -n "$ac_ct_RANLIB"; then
6078 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6079 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6085 RANLIB=$ac_ct_RANLIB
6087 RANLIB="$ac_cv_prog_RANLIB"
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}strip; ac_word=$2
6093 echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6095 if test "${ac_cv_prog_STRIP+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 if test -n "$STRIP"; then
6099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 STRIP=$ac_cv_prog_STRIP
6118 if test -n "$STRIP"; then
6119 echo "$as_me:$LINENO: result: $STRIP" >&5
6120 echo "${ECHO_T}$STRIP" >&6
6122 echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6
6127 if test -z "$ac_cv_prog_STRIP"; then
6129 # Extract the first word of "strip", so it can be a program name with args.
6130 set dummy strip; ac_word=$2
6131 echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$ac_ct_STRIP"; then
6137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_STRIP="strip"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6157 if test -n "$ac_ct_STRIP"; then
6158 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6159 echo "${ECHO_T}$ac_ct_STRIP" >&6
6161 echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6
6167 STRIP="$ac_cv_prog_STRIP"
6174 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6175 if test "${enable_libtool_lock+set}" = set; then
6176 enableval="$enable_libtool_lock"
6179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6181 # Some flags need to be propagated to the compiler or linker for good
6185 # Find out which ABI we are using.
6186 echo '#line 6186 "configure"' > conftest.$ac_ext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; then
6192 case `/usr/bin/file conftest.$ac_objext` in
6208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6209 SAVE_CFLAGS="$CFLAGS"
6210 CFLAGS="$CFLAGS -belf"
6211 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6212 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6213 if test "${lt_cv_cc_needs_belf+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242 (eval $ac_link) 2>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest$ac_exeext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 lt_cv_cc_needs_belf=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 lt_cv_cc_needs_belf=no
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6268 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6269 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6270 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6271 CFLAGS="$SAVE_CFLAGS"
6278 # Sed substitution that helps us do robust quoting. It backslashifies
6279 # metacharacters that are still active within double-quoted strings.
6280 Xsed='sed -e s/^X//'
6281 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6283 # Same as above, but do not quote variable references.
6284 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6286 # Sed substitution to delay expansion of an escaped shell variable in a
6287 # double_quote_subst'ed string.
6288 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6294 default_ofile=libtool
6295 can_build_shared=yes
6297 # All known linkers require a `.a' archive for static linking (except M$VC,
6298 # which needs '.lib').
6300 ltmain="$ac_aux_dir/ltmain.sh"
6301 ofile="$default_ofile"
6302 with_gnu_ld="$lt_cv_prog_gnu_ld"
6303 need_locks="$enable_libtool_lock"
6306 old_CFLAGS="$CFLAGS"
6308 # Set sane defaults for various variables
6309 test -z "$AR" && AR=ar
6310 test -z "$AR_FLAGS" && AR_FLAGS=cru
6311 test -z "$AS" && AS=as
6312 test -z "$CC" && CC=cc
6313 test -z "$DLLTOOL" && DLLTOOL=dlltool
6314 test -z "$LD" && LD=ld
6315 test -z "$LN_S" && LN_S="ln -s"
6316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6317 test -z "$NM" && NM=nm
6318 test -z "$OBJDUMP" && OBJDUMP=objdump
6319 test -z "$RANLIB" && RANLIB=:
6320 test -z "$STRIP" && STRIP=:
6321 test -z "$ac_objext" && ac_objext=o
6323 if test x"$host" != x"$build"; then
6324 ac_tool_prefix=${host_alias}-
6329 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6332 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6337 # AIX sometimes has problems with the GCC collect2 program. For some
6338 # reason, if we set the COLLECT_NAMES environment variable, the problems
6339 # vanish in a puff of smoke.
6340 if test "X${COLLECT_NAMES+set}" != Xset; then
6342 export COLLECT_NAMES
6347 # Determine commands to create old-style static archives.
6348 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6349 old_postinstall_cmds='chmod 644 $oldlib'
6350 old_postuninstall_cmds=
6352 if test -n "$RANLIB"; then
6355 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6358 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6361 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6364 # Allow CC to be a program name with arguments.
6368 echo "$as_me:$LINENO: checking for objdir" >&5
6369 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6370 rm -f .libs 2>/dev/null
6371 mkdir .libs 2>/dev/null
6372 if test -d .libs; then
6375 # MS-DOS does not allow filenames that begin with a dot.
6378 rmdir .libs 2>/dev/null
6379 echo "$as_me:$LINENO: result: $objdir" >&5
6380 echo "${ECHO_T}$objdir" >&6
6384 # Check whether --with-pic or --without-pic was given.
6385 if test "${with_pic+set}" = set; then
6391 test -z "$pic_mode" && pic_mode=default
6393 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6394 # in isolation, and that seeing it set (from the cache) indicates that
6395 # the associated values are set (in the cache) correctly too.
6396 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6398 if test "${lt_cv_prog_cc_pic+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 lt_cv_prog_cc_shlib=
6404 lt_cv_prog_cc_static=
6405 lt_cv_prog_cc_no_builtin=
6406 lt_cv_prog_cc_can_build_shared=$can_build_shared
6408 if test "$GCC" = yes; then
6409 lt_cv_prog_cc_wl='-Wl,'
6410 lt_cv_prog_cc_static='-static'
6414 # Below there is a dirty hack to force normal static linking with -ldl
6415 # The problem is because libdl dynamically linked with both libc and
6416 # libC (AIX C++ library), which obviously doesn't included in libraries
6417 # list by gcc. This cause undefined symbols with -static flags.
6418 # This hack allows C programs to be linked with "-static -ldl", but
6419 # not sure about C++ programs.
6420 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6423 # FIXME: we need at least 68020 code to build shared libraries, but
6424 # adding the `-m68020' flag to GCC prevents building anything better,
6426 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6429 # PIC is the default for these OSes.
6431 darwin* | rhapsody*)
6432 # PIC is the default on this platform
6433 # Common symbols not allowed in MH_DYLIB files
6434 lt_cv_prog_cc_pic='-fno-common'
6436 cygwin* | mingw* | pw32* | os2*)
6437 # This hack is so that the source file can tell whether it is being
6438 # built for inclusion in a dll (and should export symbols for example).
6439 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6442 if test -d /usr/nec; then
6443 lt_cv_prog_cc_pic=-Kconform_pic
6447 lt_cv_prog_cc_pic='-fPIC'
6451 # PORTME Check for PIC flags for the system compiler.
6453 aix3* | aix4* | aix5*)
6454 lt_cv_prog_cc_wl='-Wl,'
6455 # All AIX code is PIC.
6456 if test "$host_cpu" = ia64; then
6457 # AIX 5 now supports IA64 processor
6458 lt_cv_prog_cc_static='-Bstatic'
6460 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6464 hpux9* | hpux10* | hpux11*)
6465 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6466 lt_cv_prog_cc_wl='-Wl,'
6467 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6468 lt_cv_prog_cc_pic='+Z'
6471 irix5* | irix6* | nonstopux*)
6472 lt_cv_prog_cc_wl='-Wl,'
6473 lt_cv_prog_cc_static='-non_shared'
6474 # PIC (with -KPIC) is the default.
6477 cygwin* | mingw* | pw32* | os2*)
6478 # This hack is so that the source file can tell whether it is being
6479 # built for inclusion in a dll (and should export symbols for example).
6480 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6484 lt_cv_prog_cc_pic='-KPIC'
6485 lt_cv_prog_cc_static='-Bstatic'
6488 osf3* | osf4* | osf5*)
6489 # All OSF/1 code is PIC.
6490 lt_cv_prog_cc_wl='-Wl,'
6491 lt_cv_prog_cc_static='-non_shared'
6495 lt_cv_prog_cc_pic='-Kpic'
6496 lt_cv_prog_cc_static='-dn'
6497 lt_cv_prog_cc_shlib='-belf'
6501 lt_cv_prog_cc_pic='-KPIC'
6502 lt_cv_prog_cc_static='-Bstatic'
6503 lt_cv_prog_cc_wl='-Wl,'
6507 lt_cv_prog_cc_pic='-PIC'
6508 lt_cv_prog_cc_static='-Bstatic'
6509 lt_cv_prog_cc_wl='-Qoption ld '
6512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6513 lt_cv_prog_cc_pic='-KPIC'
6514 lt_cv_prog_cc_static='-Bstatic'
6515 lt_cv_prog_cc_wl='-Wl,'
6519 lt_cv_prog_cc_pic='-pic'
6520 lt_cv_prog_cc_static='-Bstatic'
6524 if test -d /usr/nec ;then
6525 lt_cv_prog_cc_pic='-Kconform_pic'
6526 lt_cv_prog_cc_static='-Bstatic'
6531 lt_cv_prog_cc_can_build_shared=no
6538 if test -z "$lt_cv_prog_cc_pic"; then
6539 echo "$as_me:$LINENO: result: none" >&5
6540 echo "${ECHO_T}none" >&6
6542 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6543 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6545 # Check to make sure the pic_flag actually works.
6546 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6547 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6548 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 save_CFLAGS="$CFLAGS"
6552 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6582 hpux9* | hpux10* | hpux11*)
6583 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6584 # they create non-PIC objects. So, if there were any warnings, we
6585 # assume that PIC is not supported.
6586 if test -s conftest.err; then
6587 lt_cv_prog_cc_pic_works=no
6589 lt_cv_prog_cc_pic_works=yes
6593 lt_cv_prog_cc_pic_works=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 lt_cv_prog_cc_pic_works=no
6604 rm -f conftest.$ac_objext conftest.$ac_ext
6605 CFLAGS="$save_CFLAGS"
6610 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6612 lt_cv_prog_cc_can_build_shared=no
6614 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6617 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6618 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6621 # Check for any special shared library compilation flags.
6622 if test -n "$lt_cv_prog_cc_shlib"; then
6623 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6624 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6625 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6627 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6628 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6629 lt_cv_prog_cc_can_build_shared=no
6633 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6634 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6635 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 lt_cv_prog_cc_static_works=no
6639 save_LDFLAGS="$LDFLAGS"
6640 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6641 cat >conftest.$ac_ext <<_ACEOF
6642 #line $LINENO "configure"
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 lt_cv_prog_cc_static_works=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676 LDFLAGS="$save_LDFLAGS"
6681 # Belt *and* braces to stop my trousers falling down:
6682 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6684 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6686 pic_flag="$lt_cv_prog_cc_pic"
6687 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6688 wl="$lt_cv_prog_cc_wl"
6689 link_static_flag="$lt_cv_prog_cc_static"
6690 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6691 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6694 # Check to see if options -o and -c are simultaneously supported by compiler
6695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6697 if test "${lt_cv_compiler_c_o+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 $rm -r conftest 2>/dev/null
6704 echo "int some_variable = 0;" > conftest.$ac_ext
6706 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6707 # that will create temporary files in the current directory regardless of
6708 # the output directory. Thus, making CWD read-only will cause this test
6709 # to fail, enabling locking or at least warning the user not to do parallel
6712 save_CFLAGS="$CFLAGS"
6713 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6715 if { (eval echo configure:6715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6716 # The compiler can only warn and ignore the option if not recognized
6717 # So say no if there are warnings
6718 if test -s out/conftest.err; then
6719 lt_cv_compiler_c_o=no
6721 lt_cv_compiler_c_o=yes
6724 # Append any errors to the config.log.
6725 cat out/conftest.err 1>&5
6726 lt_cv_compiler_c_o=no
6728 CFLAGS="$save_CFLAGS"
6734 $rm -r conftest 2>/dev/null
6738 compiler_c_o=$lt_cv_compiler_c_o
6739 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6740 echo "${ECHO_T}$compiler_c_o" >&6
6742 if test x"$compiler_c_o" = x"yes"; then
6743 # Check to see if we can write to a .lo
6744 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6745 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6746 if test "${lt_cv_compiler_o_lo+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 lt_cv_compiler_o_lo=no
6751 save_CFLAGS="$CFLAGS"
6752 CFLAGS="$CFLAGS -c -o conftest.lo"
6753 save_objext="$ac_objext"
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6766 int some_variable = 0;
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest.$ac_objext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 # The compiler can only warn and ignore the option if not recognized
6784 # So say no if there are warnings
6785 if test -s conftest.err; then
6786 lt_cv_compiler_o_lo=no
6788 lt_cv_compiler_o_lo=yes
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6796 rm -f conftest.$ac_objext conftest.$ac_ext
6797 ac_objext="$save_objext"
6798 CFLAGS="$save_CFLAGS"
6802 compiler_o_lo=$lt_cv_compiler_o_lo
6803 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6804 echo "${ECHO_T}$compiler_o_lo" >&6
6809 # Check to see if we can do hard links to lock some files if needed
6810 hard_links="nottested"
6811 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6812 # do not overwrite the value of need_locks provided by the user
6813 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6819 ln conftest.a conftest.b 2>&5 || hard_links=no
6820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6821 echo "$as_me:$LINENO: result: $hard_links" >&5
6822 echo "${ECHO_T}$hard_links" >&6
6823 if test "$hard_links" = no; then
6824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6832 if test "$GCC" = yes; then
6833 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6834 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6835 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6836 echo "int some_variable = 0;" > conftest.$ac_ext
6837 save_CFLAGS="$CFLAGS"
6838 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6839 compiler_rtti_exceptions=no
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6851 int some_variable = 0;
6856 rm -f conftest.$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858 (eval $ac_compile) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 # The compiler can only warn and ignore the option if not recognized
6869 # So say no if there are warnings
6870 if test -s conftest.err; then
6871 compiler_rtti_exceptions=no
6873 compiler_rtti_exceptions=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6881 rm -f conftest.$ac_objext conftest.$ac_ext
6882 CFLAGS="$save_CFLAGS"
6883 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6884 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6886 if test "$compiler_rtti_exceptions" = "yes"; then
6887 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6889 no_builtin_flag=' -fno-builtin'
6893 # See if the linker supports building shared libraries.
6894 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6895 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6897 allow_undefined_flag=
6899 need_lib_prefix=unknown
6900 need_version=unknown
6901 # when you set need_version to no, make sure it does not cause -set_version
6902 # flags to be left without arguments
6904 archive_expsym_cmds=
6905 old_archive_from_new_cmds=
6906 old_archive_from_expsyms_cmds=
6907 export_dynamic_flag_spec=
6908 whole_archive_flag_spec=
6909 thread_safe_flag_spec=
6910 hardcode_into_libs=no
6911 hardcode_libdir_flag_spec=
6912 hardcode_libdir_separator=
6915 hardcode_shlibpath_var=unsupported
6917 link_all_deplibs=unknown
6918 always_export_symbols=no
6919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6920 # include_expsyms should be a list of space-separated symbols to be *always*
6921 # included in the symbol list
6923 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6926 # as well as any symbol that contains `d'.
6927 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6929 # platforms (ab)use it in PIC code, but their linkers get confused if
6930 # the symbol is explicitly referenced. Since portable code cannot
6931 # rely on this symbol name, it's probably fine to never include it in
6932 # preloaded symbol tables.
6933 extract_expsyms_cmds=
6936 cygwin* | mingw* | pw32*)
6937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6938 # When not using gcc, we currently assume that we are using
6939 # Microsoft Visual C++.
6940 if test "$GCC" != yes; then
6950 if test "$with_gnu_ld" = yes; then
6951 # If archive_cmds runs LD, not CC, wlarc should be empty
6954 # See if GNU ld supports shared libraries.
6956 aix3* | aix4* | aix5*)
6957 # On AIX, the GNU linker is very broken
6958 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6962 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6963 *** to be unable to reliably create shared libraries on AIX.
6964 *** Therefore, libtool is disabling shared libraries support. If you
6965 *** really care for shared libraries, you may want to modify your PATH
6966 *** so that a non-GNU linker is found, and then restart.
6972 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)'
6973 hardcode_libdir_flag_spec='-L$libdir'
6974 hardcode_minus_L=yes
6976 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6977 # that the semantics of dynamic libraries on AmigaOS, at least up
6978 # to version 4, is to share data among multiple programs linked
6979 # with the same dynamic library. Since this doesn't match the
6980 # behavior of shared libraries on other platforms, we can use
6986 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6987 allow_undefined_flag=unsupported
6988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6989 # support --undefined. This deserves some investigation. FIXME
6990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6996 cygwin* | mingw* | pw32*)
6997 # hardcode_libdir_flag_spec is actually meaningless, as there is
6998 # no search path for DLLs.
6999 hardcode_libdir_flag_spec='-L$libdir'
7000 allow_undefined_flag=unsupported
7001 always_export_symbols=yes
7003 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
7004 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
7005 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
7006 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
7007 else $CC -o impgen impgen.c ; fi)~
7008 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
7010 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
7012 # cygwin and mingw dlls have different entry points and sets of symbols
7014 # FIXME: what about values for MSVC?
7015 dll_entry=__cygwin_dll_entry@12
7016 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
7020 dll_entry=_DllMainCRTStartup@12
7021 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
7025 # mingw and cygwin differ, and it's simplest to just exclude the union
7026 # of the two symbol sets.
7027 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
7029 # recent cygwin and mingw systems supply a stub DllMain which the user
7030 # can override, but on older systems we have to supply one (in ltdll.c)
7031 if test "x$lt_cv_need_dllmain" = "xyes"; then
7032 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
7033 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
7034 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
7040 # Extract the symbol export list from an `--export-all' def file,
7041 # then regenerate the def file from the symbol export list, so that
7042 # the compiled dll only exports the symbol export list.
7043 # Be careful not to strip the DATA tag left be newer dlltools.
7044 export_symbols_cmds="$ltdll_cmds"'
7045 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
7046 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
7048 # If the export-symbols file already is a .def file (1st line
7049 # is EXPORTS), use it as is.
7050 # If DATA tags from a recent dlltool are present, honour them!
7051 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
7052 cp $export_symbols $output_objdir/$soname-def;
7054 echo EXPORTS > $output_objdir/$soname-def;
7056 cat $export_symbols | while read symbol; do
7059 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
7060 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
7061 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
7063 _lt_hint=`expr 1 + \$_lt_hint`;
7067 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7068 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
7069 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7070 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
7071 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
7075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7079 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7085 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
7089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7090 *** create shared libraries on Solaris systems. Therefore, libtool
7091 *** is disabling shared libraries support. We urge you to upgrade GNU
7092 *** binutils to release 2.9.1 or newer. Another option is to modify
7093 *** your PATH or compiler configuration so that the native linker is
7094 *** used, and then restart.
7097 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7106 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7109 hardcode_shlibpath_var=no
7113 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7122 if test "$ld_shlibs" = yes; then
7123 runpath_var=LD_RUN_PATH
7124 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7125 export_dynamic_flag_spec='${wl}--export-dynamic'
7127 cygwin* | mingw* | pw32*)
7128 # dlltool doesn't understand --whole-archive et. al.
7129 whole_archive_flag_spec=
7132 # ancient GNU ld didn't support --whole-archive et. al.
7133 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136 whole_archive_flag_spec=
7142 # PORTME fill in a description of your system's linker (not GNU ld)
7145 allow_undefined_flag=unsupported
7146 always_export_symbols=yes
7147 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'
7148 # Note: this linker hardcodes the directories in LIBPATH if there
7149 # are no directories specified by -L.
7150 hardcode_minus_L=yes
7151 if test "$GCC" = yes && test -z "$link_static_flag"; then
7152 # Neither direct hardcoding nor static linking is supported with a
7154 hardcode_direct=unsupported
7159 if test "$host_cpu" = ia64; then
7160 # On IA64, the linker does run time linking by default, so we don't
7161 # have to do anything special.
7162 aix_use_runtimelinking=no
7163 exp_sym_flag='-Bexport'
7166 aix_use_runtimelinking=no
7168 # Test if we are trying to use run time linking or normal
7169 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7170 # need to do runtime linking.
7171 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7172 for ld_flag in $LDFLAGS; do
7175 aix_use_runtimelinking=yes
7182 exp_sym_flag='-bexport'
7183 no_entry_flag='-bnoentry'
7186 # When large executables or shared objects are built, AIX ld can
7187 # have problems creating the table of contents. If linking a library
7188 # or program results in "error TOC overflow" add -mminimal-toc to
7189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7194 hardcode_libdir_separator=':'
7195 if test "$GCC" = yes; then
7196 case $host_os in aix4.[012]|aix4.[012].*)
7197 collect2name=`${CC} -print-prog-name=collect2`
7198 if test -f "$collect2name" && \
7199 strings "$collect2name" | grep resolve_lib_name >/dev/null
7201 # We have reworked collect2
7204 # We have old collect2
7205 hardcode_direct=unsupported
7206 # It fails to find uninstalled libraries when the uninstalled
7207 # path is not listed in the libpath. Setting hardcode_minus_L
7208 # to unsupported forces relinking
7209 hardcode_minus_L=yes
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_libdir_separator=
7215 shared_flag='-shared'
7218 if test "$host_cpu" = ia64; then
7219 shared_flag='${wl}-G'
7221 if test "$aix_use_runtimelinking" = yes; then
7222 shared_flag='${wl}-G'
7224 shared_flag='${wl}-bM:SRE'
7229 # It seems that -bexpall can do strange things, so it is better to
7230 # generate a list of symbols to export.
7231 always_export_symbols=yes
7232 if test "$aix_use_runtimelinking" = yes; then
7233 # Warning - without using the other runtime loading flags (-brtl),
7234 # -berok will link without error, but may produce a broken library.
7235 allow_undefined_flag='-berok'
7236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7237 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"
7239 if test "$host_cpu" = ia64; then
7240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7241 allow_undefined_flag="-z nodefs"
7242 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7244 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7245 # Warning - without using the other run time loading flags,
7246 # -berok will link without error, but may produce a broken library.
7247 allow_undefined_flag='${wl}-berok'
7248 # This is a bit strange, but is similar to how AIX traditionally builds
7249 # it's shared libraries.
7250 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
7256 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)'
7257 hardcode_libdir_flag_spec='-L$libdir'
7258 hardcode_minus_L=yes
7259 # see comment about different semantics on the GNU ld section
7263 cygwin* | mingw* | pw32*)
7264 # When not using gcc, we currently assume that we are using
7265 # Microsoft Visual C++.
7266 # hardcode_libdir_flag_spec is actually meaningless, as there is
7267 # no search path for DLLs.
7268 hardcode_libdir_flag_spec=' '
7269 allow_undefined_flag=unsupported
7270 # Tell ltmain to make .lib files, not .a files.
7272 # FIXME: Setting linknames here is a bad hack.
7273 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7274 # The linker will automatically build a .lib file if we build a DLL.
7275 old_archive_from_new_cmds='true'
7276 # FIXME: Should let the user specify the lib program.
7277 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7278 fix_srcfile_path='`cygpath -w "$srcfile"`'
7281 darwin* | rhapsody*)
7283 rhapsody* | darwin1.[012])
7284 allow_undefined_flag='-undefined suppress'
7287 allow_undefined_flag='-flat_namespace -undefined suppress'
7290 # FIXME: Relying on posixy $() will cause problems for
7291 # cross-compilation, but unfortunately the echo tests do not
7292 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7293 # `"' quotes if we put them in here... so don't!
7294 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
7295 # We need to add '_' to the symbols in $export_symbols first
7296 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7298 hardcode_shlibpath_var=no
7299 whole_archive_flag_spec='-all_load $convenience'
7306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7307 # support. Future versions do this automatically, but an explicit c++rt0.o
7308 # does not break anything, and helps significantly (at the cost of a little
7311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7312 hardcode_libdir_flag_spec='-R$libdir'
7314 hardcode_shlibpath_var=no
7317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7321 hardcode_minus_L=yes
7322 hardcode_shlibpath_var=no
7325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7327 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7328 hardcode_libdir_flag_spec='-R$libdir'
7330 hardcode_shlibpath_var=no
7333 hpux9* | hpux10* | hpux11*)
7335 hpux9*) 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' ;;
7336 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7339 hardcode_libdir_separator=:
7341 hardcode_minus_L=yes # Not in the search PATH, but as the default
7342 # location of the library.
7343 export_dynamic_flag_spec='${wl}-E'
7346 irix5* | irix6* | nonstopux*)
7347 if test "$GCC" = yes; then
7348 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'
7349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7351 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'
7352 hardcode_libdir_flag_spec='-rpath $libdir'
7354 hardcode_libdir_separator=:
7355 link_all_deplibs=yes
7359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7364 hardcode_libdir_flag_spec='-R$libdir'
7366 hardcode_shlibpath_var=no
7370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7373 hardcode_libdir_separator=:
7374 hardcode_shlibpath_var=no
7379 hardcode_shlibpath_var=no
7380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7383 export_dynamic_flag_spec='${wl}-E'
7386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7388 hardcode_libdir_flag_spec='-R$libdir'
7391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7399 hardcode_libdir_flag_spec='-L$libdir'
7400 hardcode_minus_L=yes
7401 allow_undefined_flag=unsupported
7402 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'
7403 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7407 if test "$GCC" = yes; then
7408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7409 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'
7411 allow_undefined_flag=' -expect_unresolved \*'
7412 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'
7414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7415 hardcode_libdir_separator=:
7418 osf4* | osf5*) # as osf3* with the addition of -msym flag
7419 if test "$GCC" = yes; then
7420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7421 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'
7422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7424 allow_undefined_flag=' -expect_unresolved \*'
7425 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'
7426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7427 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7429 #Both c and cxx compiler support -rpath directly
7430 hardcode_libdir_flag_spec='-rpath $libdir'
7432 hardcode_libdir_separator=:
7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 hardcode_shlibpath_var=no
7438 runpath_var=LD_RUN_PATH
7439 hardcode_runpath_var=yes
7440 export_dynamic_flag_spec='${wl}-Bexport'
7444 # gcc --version < 3.0 without binutils cannot create self contained
7445 # shared libraries reliably, requiring libgcc.a to resolve some of
7446 # the object symbols generated in some cases. Libraries that use
7447 # assert need libgcc.a to resolve __eprintf, for example. Linking
7448 # a copy of libgcc.a into every shared library to guarantee resolving
7449 # such symbols causes other problems: According to Tim Van Holder
7450 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7451 # (to the application) exception stack for one thing.
7452 no_undefined_flag=' -z defs'
7453 if test "$GCC" = yes; then
7454 case `$CC --version 2>/dev/null` in
7458 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7459 *** create self contained shared libraries on Solaris systems, without
7460 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7461 *** -no-undefined support, which will at least allow you to build shared
7462 *** libraries. However, you may find that when you link such libraries
7463 *** into an application without using GCC, you have to manually add
7464 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7465 *** upgrade to a newer version of GCC. Another option is to rebuild your
7466 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7473 # $CC -shared without GNU ld will not create a library from C++
7474 # object files and a static libstdc++, better avoid it by now
7475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7478 hardcode_libdir_flag_spec='-R$libdir'
7479 hardcode_shlibpath_var=no
7481 solaris2.[0-5] | solaris2.[0-5].*) ;;
7482 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7485 link_all_deplibs=yes
7489 if test "x$host_vendor" = xsequent; then
7490 # Use $CC to link under sequent, because it throws in some extra .o
7491 # files that make .init and .fini sections work.
7492 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7494 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7496 hardcode_libdir_flag_spec='-L$libdir'
7498 hardcode_minus_L=yes
7499 hardcode_shlibpath_var=no
7503 case $host_vendor in
7505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7506 hardcode_direct=yes # is this really true???
7509 ## LD is ld it makes a PLAMLIB
7510 ## CC just makes a GrossModule.
7511 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7512 reload_cmds='$CC -r -o $output$reload_objs'
7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7520 runpath_var='LD_RUN_PATH'
7521 hardcode_shlibpath_var=no
7525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526 hardcode_shlibpath_var=no
7527 export_dynamic_flag_spec='-Bexport'
7531 no_undefined_flag=' -z text'
7532 # $CC -shared without GNU ld will not create a library from C++
7533 # object files and a static libstdc++, better avoid it by now
7534 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7537 hardcode_libdir_flag_spec=
7538 hardcode_shlibpath_var=no
7539 runpath_var='LD_RUN_PATH'
7543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7544 hardcode_libdir_flag_spec='-L$libdir'
7545 hardcode_shlibpath_var=no
7549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7550 hardcode_libdir_flag_spec='-L$libdir'
7551 hardcode_shlibpath_var=no
7555 if test -d /usr/nec; then
7556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7557 hardcode_shlibpath_var=no
7558 runpath_var=LD_RUN_PATH
7559 hardcode_runpath_var=yes
7565 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7568 hardcode_shlibpath_var=no
7569 hardcode_runpath_var=yes
7570 runpath_var=LD_RUN_PATH
7573 sysv5uw7* | unixware7*)
7574 no_undefined_flag='${wl}-z ${wl}text'
7575 if test "$GCC" = yes; then
7576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7578 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7580 runpath_var='LD_RUN_PATH'
7581 hardcode_shlibpath_var=no
7589 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7590 echo "${ECHO_T}$ld_shlibs" >&6
7591 test "$ld_shlibs" = no && can_build_shared=no
7593 # Check hardcoding attributes.
7594 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7597 if test -n "$hardcode_libdir_flag_spec" || \
7598 test -n "$runpath_var"; then
7600 # We can hardcode non-existant directories.
7601 if test "$hardcode_direct" != no &&
7602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7603 # have to relink, otherwise we might link with an installed library
7604 # when we should be linking with a yet-to-be-installed one
7605 ## test "$hardcode_shlibpath_var" != no &&
7606 test "$hardcode_minus_L" != no; then
7607 # Linking always hardcodes the temporary library directory.
7608 hardcode_action=relink
7610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7611 hardcode_action=immediate
7614 # We cannot hardcode anything, or else we can only hardcode existing
7616 hardcode_action=unsupported
7618 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7619 echo "${ECHO_T}$hardcode_action" >&6
7623 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7624 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7625 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7628 echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7638 # PORTME Fill in your ld.so characteristics
7639 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7642 libname_spec='lib$name'
7649 shlibpath_overrides_runpath=unknown
7651 dynamic_linker="$host_os ld.so"
7652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7658 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7659 shlibpath_var=LIBPATH
7661 # AIX has no versioning support, so we append a major version to the name.
7662 soname_spec='${libname}${release}.so$major'
7669 hardcode_into_libs=yes
7670 if test "$host_cpu" = ia64; then
7671 # AIX 5 supports IA64
7672 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7673 shlibpath_var=LD_LIBRARY_PATH
7675 # With GCC up to 2.95.x, collect2 would create an import file
7676 # for dependence libraries. The import file would start with
7677 # the line `#! .'. This would cause the generated library to
7678 # depend on `.', always an invalid library. This was fixed in
7679 # development snapshots of GCC prior to 3.0.
7681 aix4 | aix4.[01] | aix4.[01].*)
7682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7691 # AIX (on Power*) has no versioning support, so currently we can
7692 # not hardcode correct soname into executable. Probably we can
7693 # add versioning support to collect2, so additional links can
7694 # be useful in future.
7695 if test "$aix_use_runtimelinking" = yes; then
7696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7697 # instead of lib<name>.a to let people know that these are not
7698 # typical AIX shared libraries.
7699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7701 # We preserve .a as extension for shared libraries through AIX4.2
7702 # and later when we are not doing run time linking.
7703 library_names_spec='${libname}${release}.a $libname.a'
7704 soname_spec='${libname}${release}.so$major'
7706 shlibpath_var=LIBPATH
7708 hardcode_into_libs=yes
7712 library_names_spec='$libname.ixlibrary $libname.a'
7713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7714 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'
7718 library_names_spec='${libname}.so'
7719 dynamic_linker="$host_os ld.so"
7720 shlibpath_var=LIBRARY_PATH
7726 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7727 soname_spec='${libname}${release}.so$major'
7728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7729 shlibpath_var=LD_LIBRARY_PATH
7730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7732 export_dynamic_flag_spec=-rdynamic
7733 # the default ld.so.conf also contains /usr/contrib/lib and
7734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7735 # libtool to hard-code these into programs
7738 cygwin* | mingw* | pw32*)
7739 version_type=windows
7742 case $GCC,$host_os in
7744 library_names_spec='$libname.dll.a'
7745 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7746 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7747 dldir=$destdir/`dirname \$dlpath`~
7748 test -d \$dldir || mkdir -p \$dldir~
7749 $install_prog .libs/$dlname \$dldir/$dlname'
7750 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7751 dlpath=$dir/\$dldll~
7755 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7762 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7765 dynamic_linker='Win32 ld.exe'
7766 # FIXME: first we should search . and the directory the executable is in
7770 darwin* | rhapsody*)
7771 dynamic_linker="$host_os dyld"
7775 # FIXME: Relying on posixy $() will cause problems for
7776 # cross-compilation, but unfortunately the echo tests do not
7777 # yet detect zsh echo's removal of \ escapes.
7778 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7779 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7780 shlibpath_overrides_runpath=yes
7781 shlibpath_var=DYLD_LIBRARY_PATH
7789 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7790 version_type=freebsd-$objformat
7791 case $version_type in
7793 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7798 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7802 shlibpath_var=LD_LIBRARY_PATH
7805 shlibpath_overrides_runpath=yes
7808 shlibpath_overrides_runpath=no
7809 hardcode_into_libs=yes
7818 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7819 soname_spec='${libname}${release}.so$major'
7820 shlibpath_var=LD_LIBRARY_PATH
7821 hardcode_into_libs=yes
7824 hpux9* | hpux10* | hpux11*)
7825 # Give a soname corresponding to the major version so that dld.sl refuses to
7826 # link against other versions.
7827 dynamic_linker="$host_os dld.sl"
7831 shlibpath_var=SHLIB_PATH
7832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7833 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7834 soname_spec='${libname}${release}.sl$major'
7835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7836 postinstall_cmds='chmod 555 $lib'
7839 irix5* | irix6* | nonstopux*)
7841 nonstopux*) version_type=nonstopux ;;
7842 *) version_type=irix ;;
7846 soname_spec='${libname}${release}.so$major'
7847 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7849 irix5* | nonstopux*)
7853 case $LD in # libtool.m4 will add one of these switches to LD
7854 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7855 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7856 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7857 *) libsuff= shlibsuff= libmagic=never-match;;
7861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7862 shlibpath_overrides_runpath=no
7863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7867 # No shared lib support for Linux oldld, aout, or coff.
7868 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7872 # This must be Linux ELF.
7877 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7878 soname_spec='${libname}${release}.so$major'
7879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 shlibpath_overrides_runpath=no
7882 # This implies no fast_install, which is unacceptable.
7883 # Some rework will be needed to allow for fast_install
7884 # before this can be enabled.
7885 hardcode_into_libs=yes
7887 # We used to test for /lib/ld.so.1 and disable shared libraries on
7888 # powerpc, because MkLinux only supported shared libraries with the
7889 # GNU dynamic linker. Since this was broken with cross compilers,
7890 # most powerpc-linux boxes support dynamic linking these days and
7891 # people can always --disable-shared, the test was removed, and we
7892 # assume the GNU/Linux dynamic linker is in use.
7893 dynamic_linker='GNU/Linux ld.so'
7900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7901 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7903 dynamic_linker='NetBSD (a.out) ld.so'
7905 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7906 soname_spec='${libname}${release}.so$major'
7907 dynamic_linker='NetBSD ld.elf_so'
7909 shlibpath_var=LD_LIBRARY_PATH
7910 shlibpath_overrides_runpath=yes
7911 hardcode_into_libs=yes
7916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7917 shlibpath_var=LD_LIBRARY_PATH
7918 shlibpath_overrides_runpath=yes
7925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7927 openbsd2.[89] | openbsd2.[89].*)
7928 shlibpath_overrides_runpath=no
7931 shlibpath_overrides_runpath=yes
7935 shlibpath_overrides_runpath=yes
7937 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7939 shlibpath_var=LD_LIBRARY_PATH
7943 libname_spec='$name'
7945 library_names_spec='$libname.dll $libname.a'
7946 dynamic_linker='OS/2 ld.exe'
7947 shlibpath_var=LIBPATH
7950 osf3* | osf4* | osf5*)
7953 soname_spec='${libname}${release}.so$major'
7954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7955 shlibpath_var=LD_LIBRARY_PATH
7956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7958 hardcode_into_libs=yes
7963 soname_spec='${libname}${release}.so$major'
7964 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7965 shlibpath_var=LD_LIBRARY_PATH
7972 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7973 soname_spec='${libname}${release}.so$major'
7974 shlibpath_var=LD_LIBRARY_PATH
7975 shlibpath_overrides_runpath=yes
7976 hardcode_into_libs=yes
7977 # ldd complains unless libraries are executable
7978 postinstall_cmds='chmod +x $lib'
7983 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7985 shlibpath_var=LD_LIBRARY_PATH
7986 shlibpath_overrides_runpath=yes
7987 if test "$with_gnu_ld" = yes; then
7993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7995 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7996 soname_spec='${libname}${release}.so$major'
7997 shlibpath_var=LD_LIBRARY_PATH
7998 case $host_vendor in
8000 shlibpath_overrides_runpath=no
8002 export_dynamic_flag_spec='${wl}-Blargedynsym'
8003 runpath_var=LD_RUN_PATH
8011 shlibpath_overrides_runpath=no
8012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8019 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8020 soname_spec='${libname}${release}.so$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8028 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8029 soname_spec='${libname}${release}.so$major'
8030 shlibpath_var=LD_LIBRARY_PATH
8034 if test -d /usr/nec ;then
8036 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
8037 soname_spec='$libname.so.$major'
8038 shlibpath_var=LD_LIBRARY_PATH
8046 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8047 echo "${ECHO_T}$dynamic_linker" >&6
8048 test "$dynamic_linker" = no && can_build_shared=no
8050 # Report the final consequences.
8051 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8053 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8054 echo "${ECHO_T}$can_build_shared" >&6
8056 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8058 test "$can_build_shared" = "no" && enable_shared=no
8060 # On AIX, shared libraries and static libraries use the same namespace, and
8061 # are all built from PIC.
8064 test "$enable_shared" = yes && enable_static=no
8065 if test -n "$RANLIB"; then
8066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8067 postinstall_cmds='$RANLIB $lib'
8072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8073 test "$enable_shared" = yes && enable_static=no
8077 echo "$as_me:$LINENO: result: $enable_shared" >&5
8078 echo "${ECHO_T}$enable_shared" >&6
8080 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8082 # Make sure either enable_shared or enable_static is yes.
8083 test "$enable_shared" = yes || enable_static=yes
8084 echo "$as_me:$LINENO: result: $enable_static" >&5
8085 echo "${ECHO_T}$enable_static" >&6
8087 if test "$hardcode_action" = relink; then
8088 # Fast installation is not supported
8089 enable_fast_install=no
8090 elif test "$shlibpath_overrides_runpath" = yes ||
8091 test "$enable_shared" = no; then
8092 # Fast installation is not necessary
8093 enable_fast_install=needless
8096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8097 if test "$GCC" = yes; then
8098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8101 if test "x$enable_dlopen" != xyes; then
8102 enable_dlopen=unknown
8103 enable_dlopen_self=unknown
8104 enable_dlopen_self_static=unknown
8111 lt_cv_dlopen="load_add_on"
8113 lt_cv_dlopen_self=yes
8116 cygwin* | mingw* | pw32*)
8117 lt_cv_dlopen="LoadLibrary"
8122 echo "$as_me:$LINENO: checking for shl_load" >&5
8123 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8124 if test "${ac_cv_func_shl_load+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 cat >conftest.$ac_ext <<_ACEOF
8128 #line $LINENO "configure"
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 /* System header to define __stub macros and hopefully few prototypes,
8135 which can conflict with char shl_load (); below.
8136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137 <limits.h> exists even on freestanding compilers. */
8139 # include <limits.h>
8141 # include <assert.h>
8143 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8151 /* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8157 char (*f) () = shl_load;
8166 return f != shl_load;
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 ac_cv_func_shl_load=yes
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_cv_func_shl_load=no
8190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194 if test $ac_cv_func_shl_load = yes; then
8195 lt_cv_dlopen="shl_load"
8197 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 ac_check_lib_save_LIBS=$LIBS
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8212 /* Override any gcc2 internal prototype to avoid an error. */
8216 /* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_dld_shl_load=yes
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_lib_dld_shl_load=no
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8250 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8251 if test $ac_cv_lib_dld_shl_load = yes; then
8252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8254 echo "$as_me:$LINENO: checking for dlopen" >&5
8255 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8256 if test "${ac_cv_func_dlopen+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char dlopen (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8271 # include <limits.h>
8273 # include <assert.h>
8275 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8283 /* The GNU C library defines this for functions which it implements
8284 to always fail with ENOSYS. Some functions are actually named
8285 something starting with __ and the normal name is an alias. */
8286 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8289 char (*f) () = dlopen;
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_func_dlopen=yes
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_func_dlopen=no
8322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8325 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8326 if test $ac_cv_func_dlopen = yes; then
8327 lt_cv_dlopen="dlopen"
8329 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 ac_check_lib_save_LIBS=$LIBS
8336 cat >conftest.$ac_ext <<_ACEOF
8337 #line $LINENO "configure"
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8344 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_lib_dl_dlopen=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_lib_dl_dlopen=no
8378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8383 if test $ac_cv_lib_dl_dlopen = yes; then
8384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8386 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8387 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8388 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 ac_check_lib_save_LIBS=$LIBS
8393 cat >conftest.$ac_ext <<_ACEOF
8394 #line $LINENO "configure"
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8401 /* Override any gcc2 internal prototype to avoid an error. */
8405 /* We use char because int might match the return type of a gcc2
8406 builtin and then its argument prototype would still apply. */
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_lib_svld_dlopen=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 ac_cv_lib_svld_dlopen=no
8435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8440 if test $ac_cv_lib_svld_dlopen = yes; then
8441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8443 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_check_lib_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_dld_dld_link=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_dld_dld_link=no
8492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497 if test $ac_cv_lib_dld_dld_link = yes; then
8498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8519 if test "x$lt_cv_dlopen" != xno; then
8525 case $lt_cv_dlopen in
8527 save_CPPFLAGS="$CPPFLAGS"
8528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8530 save_LDFLAGS="$LDFLAGS"
8531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8534 LIBS="$lt_cv_dlopen_libs $LIBS"
8536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538 if test "${lt_cv_dlopen_self+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 if test "$cross_compiling" = yes; then :
8542 lt_cv_dlopen_self=cross
8544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8545 lt_status=$lt_dlunknown
8546 cat > conftest.$ac_ext <<EOF
8547 #line 8547 "configure"
8548 #include "confdefs.h"
8557 # define LT_DLGLOBAL RTLD_GLOBAL
8560 # define LT_DLGLOBAL DL_GLOBAL
8562 # define LT_DLGLOBAL 0
8566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567 find out it does not work in some platform. */
8568 #ifndef LT_DLLAZY_OR_NOW
8570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8573 # define LT_DLLAZY_OR_NOW DL_LAZY
8576 # define LT_DLLAZY_OR_NOW RTLD_NOW
8579 # define LT_DLLAZY_OR_NOW DL_NOW
8581 # define LT_DLLAZY_OR_NOW 0
8589 extern "C" void exit (int);
8592 void fnord() { int i=42;}
8595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596 int status = $lt_dlunknown;
8600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602 /* dlclose (self); */
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613 (./conftest; exit; ) 2>/dev/null
8616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8621 # compilation failed
8622 lt_cv_dlopen_self=no
8629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8632 if test "x$lt_cv_dlopen_self" = xyes; then
8633 LDFLAGS="$LDFLAGS $link_static_flag"
8634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636 if test "${lt_cv_dlopen_self_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 if test "$cross_compiling" = yes; then :
8640 lt_cv_dlopen_self_static=cross
8642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8643 lt_status=$lt_dlunknown
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8655 # define LT_DLGLOBAL RTLD_GLOBAL
8658 # define LT_DLGLOBAL DL_GLOBAL
8660 # define LT_DLGLOBAL 0
8664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665 find out it does not work in some platform. */
8666 #ifndef LT_DLLAZY_OR_NOW
8668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8671 # define LT_DLLAZY_OR_NOW DL_LAZY
8674 # define LT_DLLAZY_OR_NOW RTLD_NOW
8677 # define LT_DLLAZY_OR_NOW DL_NOW
8679 # define LT_DLLAZY_OR_NOW 0
8687 extern "C" void exit (int);
8690 void fnord() { int i=42;}
8693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694 int status = $lt_dlunknown;
8698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700 /* dlclose (self); */
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711 (./conftest; exit; ) 2>/dev/null
8714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8719 # compilation failed
8720 lt_cv_dlopen_self_static=no
8727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8731 CPPFLAGS="$save_CPPFLAGS"
8732 LDFLAGS="$save_LDFLAGS"
8737 case $lt_cv_dlopen_self in
8738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739 *) enable_dlopen_self=unknown ;;
8742 case $lt_cv_dlopen_self_static in
8743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744 *) enable_dlopen_self_static=unknown ;;
8749 if test "$enable_shared" = yes && test "$GCC" = yes; then
8750 case $archive_cmds in
8752 # FIXME: we may have to deal with multi-command sequences.
8755 # Test whether the compiler implicitly links with -lc since on some
8756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8757 # to ld, don't add -lc before -lgcc.
8758 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8760 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 echo 'static int dummy;' > conftest.$ac_ext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; then
8773 libobjs=conftest.$ac_objext
8775 wl=$lt_cv_prog_cc_wl
8781 save_allow_undefined_flag=$allow_undefined_flag
8782 allow_undefined_flag=
8783 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8784 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }
8789 lt_cv_archive_cmds_need_lc=no
8791 lt_cv_archive_cmds_need_lc=yes
8793 allow_undefined_flag=$save_allow_undefined_flag
8795 cat conftest.err 1>&5
8799 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8800 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8804 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8806 # The second clause should only fire when bootstrapping the
8807 # libtool distribution, otherwise you forgot to ship ltmain.sh
8808 # with your package, and you will get complaints that there are
8809 # no rules to generate ltmain.sh.
8810 if test -f "$ltmain"; then
8813 # If there is no Makefile yet, we rely on a make rule to execute
8814 # `config.status --recheck' to rerun these tests and create the
8815 # libtool script then.
8816 test -f Makefile && make "$ltmain"
8819 if test -f "$ltmain"; then
8820 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8823 echo creating $ofile
8825 # Now quote all the things that may contain metacharacters while being
8826 # careful not to overquote the AC_SUBSTed values. We take copies of the
8827 # variables and quote the copies for generation of the libtool script.
8828 for var in echo old_CC old_CFLAGS SED \
8829 AR AR_FLAGS CC LD LN_S NM SHELL \
8830 reload_flag reload_cmds wl \
8831 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8832 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8833 library_names_spec soname_spec \
8834 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8835 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8836 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8837 old_striplib striplib file_magic_cmd export_symbols_cmds \
8838 deplibs_check_method allow_undefined_flag no_undefined_flag \
8839 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8840 global_symbol_to_c_name_address \
8841 hardcode_libdir_flag_spec hardcode_libdir_separator \
8842 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8843 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8846 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8847 old_postinstall_cmds | old_postuninstall_cmds | \
8848 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8849 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8850 postinstall_cmds | postuninstall_cmds | \
8851 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8852 # Double-quote double-evaled strings.
8853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8861 cat <<__EOF__ > "${ofile}T"
8864 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8865 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8866 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8868 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8869 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8871 # This program is free software; you can redistribute it and/or modify
8872 # it under the terms of the GNU General Public License as published by
8873 # the Free Software Foundation; either version 2 of the License, or
8874 # (at your option) any later version.
8876 # This program is distributed in the hope that it will be useful, but
8877 # WITHOUT ANY WARRANTY; without even the implied warranty of
8878 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8879 # General Public License for more details.
8881 # You should have received a copy of the GNU General Public License
8882 # along with this program; if not, write to the Free Software
8883 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8885 # As a special exception to the GNU General Public License, if you
8886 # distribute this file as part of a program that contains a
8887 # configuration script generated by Autoconf, you may include it under
8888 # the same distribution terms that you use for the rest of that program.
8890 # A sed that does not truncate output.
8893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8894 Xsed="${SED} -e s/^X//"
8896 # The HP-UX ksh and POSIX shell print the target directory to stdout
8898 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8900 # ### BEGIN LIBTOOL CONFIG
8902 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8904 # Shell to use when invoking shell scripts.
8907 # Whether or not to build shared libraries.
8908 build_libtool_libs=$enable_shared
8910 # Whether or not to build static libraries.
8911 build_old_libs=$enable_static
8913 # Whether or not to add -lc for building shared libraries.
8914 build_libtool_need_lc=$need_lc
8916 # Whether or not to optimize for fast installation.
8917 fast_install=$enable_fast_install
8920 host_alias=$host_alias
8923 # An echo program that does not interpret backslashes.
8928 AR_FLAGS=$lt_AR_FLAGS
8930 # The default C compiler.
8933 # Is the compiler the GNU C compiler?
8936 # The linker used to build libraries.
8939 # Whether we need hard or soft links.
8942 # A BSD-compatible nm program.
8945 # A symbol stripping program
8948 # Used to examine libraries when file_magic_cmd begins "file"
8949 MAGIC_CMD=$MAGIC_CMD
8951 # Used on cygwin: DLL creation program.
8954 # Used on cygwin: object dumper.
8957 # Used on cygwin: assembler.
8960 # The name of the directory that contains temporary libtool files.
8963 # How to create reloadable object files.
8964 reload_flag=$lt_reload_flag
8965 reload_cmds=$lt_reload_cmds
8967 # How to pass a linker flag through the compiler.
8970 # Object file suffix (normally "o").
8973 # Old archive suffix (normally "a").
8976 # Executable file suffix (normally "").
8979 # Additional compiler flags for building library objects.
8980 pic_flag=$lt_pic_flag
8983 # Does compiler simultaneously support -c and -o options?
8984 compiler_c_o=$lt_compiler_c_o
8986 # Can we write directly to a .lo ?
8987 compiler_o_lo=$lt_compiler_o_lo
8989 # Must we lock files when doing compilation ?
8990 need_locks=$lt_need_locks
8992 # Do we need the lib prefix for modules?
8993 need_lib_prefix=$need_lib_prefix
8995 # Do we need a version for libraries?
8996 need_version=$need_version
8998 # Whether dlopen is supported.
8999 dlopen_support=$enable_dlopen
9001 # Whether dlopen of programs is supported.
9002 dlopen_self=$enable_dlopen_self
9004 # Whether dlopen of statically linked programs is supported.
9005 dlopen_self_static=$enable_dlopen_self_static
9007 # Compiler flag to prevent dynamic linking.
9008 link_static_flag=$lt_link_static_flag
9010 # Compiler flag to turn off builtin functions.
9011 no_builtin_flag=$lt_no_builtin_flag
9013 # Compiler flag to allow reflexive dlopens.
9014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9016 # Compiler flag to generate shared objects directly from archives.
9017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9019 # Compiler flag to generate thread-safe objects.
9020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9022 # Library versioning type.
9023 version_type=$version_type
9025 # Format of library name prefix.
9026 libname_spec=$lt_libname_spec
9028 # List of archive names. First name is the real one, the rest are links.
9029 # The last name is the one that the linker finds with -lNAME.
9030 library_names_spec=$lt_library_names_spec
9032 # The coded name of the library, if different from the real name.
9033 soname_spec=$lt_soname_spec
9035 # Commands used to build and install an old-style archive.
9037 old_archive_cmds=$lt_old_archive_cmds
9038 old_postinstall_cmds=$lt_old_postinstall_cmds
9039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9041 # Create an old-style archive from a shared archive.
9042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9044 # Create a temporary old-style archive to link instead of a shared archive.
9045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9047 # Commands used to build and install a shared archive.
9048 archive_cmds=$lt_archive_cmds
9049 archive_expsym_cmds=$lt_archive_expsym_cmds
9050 postinstall_cmds=$lt_postinstall_cmds
9051 postuninstall_cmds=$lt_postuninstall_cmds
9053 # Commands to strip libraries.
9054 old_striplib=$lt_old_striplib
9055 striplib=$lt_striplib
9057 # Method to check whether dependent libraries are shared objects.
9058 deplibs_check_method=$lt_deplibs_check_method
9060 # Command to use when deplibs_check_method == file_magic.
9061 file_magic_cmd=$lt_file_magic_cmd
9063 # Flag that allows shared libraries with undefined symbols to be built.
9064 allow_undefined_flag=$lt_allow_undefined_flag
9066 # Flag that forces no undefined symbols.
9067 no_undefined_flag=$lt_no_undefined_flag
9069 # Commands used to finish a libtool library installation in a directory.
9070 finish_cmds=$lt_finish_cmds
9072 # Same as above, but a single script fragment to be evaled but not shown.
9073 finish_eval=$lt_finish_eval
9075 # Take the output of nm and produce a listing of raw symbols and C names.
9076 global_symbol_pipe=$lt_global_symbol_pipe
9078 # Transform the output of nm in a proper C declaration
9079 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9081 # Transform the output of nm in a C name address pair
9082 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9084 # This is the shared library runtime path variable.
9085 runpath_var=$runpath_var
9087 # This is the shared library path variable.
9088 shlibpath_var=$shlibpath_var
9090 # Is shlibpath searched before the hard-coded library search path?
9091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9093 # How to hardcode a shared library path into an executable.
9094 hardcode_action=$hardcode_action
9096 # Whether we should hardcode library paths into libraries.
9097 hardcode_into_libs=$hardcode_into_libs
9099 # Flag to hardcode \$libdir into a binary during linking.
9100 # This must work even if \$libdir does not exist.
9101 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9103 # Whether we need a single -rpath flag with a separated argument.
9104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9106 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9108 hardcode_direct=$hardcode_direct
9110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9112 hardcode_minus_L=$hardcode_minus_L
9114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9115 # the resulting binary.
9116 hardcode_shlibpath_var=$hardcode_shlibpath_var
9118 # Variables whose values should be saved in libtool wrapper scripts and
9119 # restored at relink time.
9120 variables_saved_for_relink="$variables_saved_for_relink"
9122 # Whether libtool must link a program against all its dependency libraries.
9123 link_all_deplibs=$link_all_deplibs
9125 # Compile-time system search path for libraries
9126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9128 # Run-time system search path for libraries
9129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9131 # Fix the shell variable \$srcfile for the compiler.
9132 fix_srcfile_path="$fix_srcfile_path"
9134 # Set to yes if exported symbols are required.
9135 always_export_symbols=$always_export_symbols
9137 # The commands to list exported symbols.
9138 export_symbols_cmds=$lt_export_symbols_cmds
9140 # The commands to extract the exported symbol list from a shared archive.
9141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9143 # Symbols that should not be listed in the preloaded symbols.
9144 exclude_expsyms=$lt_exclude_expsyms
9146 # Symbols that must always be exported.
9147 include_expsyms=$lt_include_expsyms
9149 # ### END LIBTOOL CONFIG
9155 cat <<\EOF >> "${ofile}T"
9157 # AIX sometimes has problems with the GCC collect2 program. For some
9158 # reason, if we set the COLLECT_NAMES environment variable, the problems
9159 # vanish in a puff of smoke.
9160 if test "X${COLLECT_NAMES+set}" != Xset; then
9162 export COLLECT_NAMES
9169 cygwin* | mingw* | pw32* | os2*)
9170 cat <<'EOF' >> "${ofile}T"
9171 # This is a source program that is used to create dlls on Windows
9172 # Don't remove nor modify the starting and closing comments
9173 # /* ltdll.c starts here */
9174 # #define WIN32_LEAN_AND_MEAN
9175 # #include <windows.h>
9176 # #undef WIN32_LEAN_AND_MEAN
9177 # #include <stdio.h>
9179 # #ifndef __CYGWIN__
9180 # # ifdef __CYGWIN32__
9181 # # define __CYGWIN__ __CYGWIN32__
9185 # #ifdef __cplusplus
9188 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9189 # #ifdef __cplusplus
9194 # #include <cygwin/cygwin_dll.h>
9195 # DECLARE_CYGWIN_DLL( DllMain );
9197 # HINSTANCE __hDllInstance_base;
9200 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9202 # __hDllInstance_base = hInst;
9205 # /* ltdll.c ends here */
9206 # This is a source program that is used to create import libraries
9207 # on Windows for dlls which lack them. Don't remove nor modify the
9208 # starting and closing comments
9209 # /* impgen.c starts here */
9210 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
9212 # This file is part of GNU libtool.
9214 # This program is free software; you can redistribute it and/or modify
9215 # it under the terms of the GNU General Public License as published by
9216 # the Free Software Foundation; either version 2 of the License, or
9217 # (at your option) any later version.
9219 # This program is distributed in the hope that it will be useful,
9220 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9222 # GNU General Public License for more details.
9224 # You should have received a copy of the GNU General Public License
9225 # along with this program; if not, write to the Free Software
9226 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9229 # #include <stdio.h> /* for printf() */
9230 # #include <unistd.h> /* for open(), lseek(), read() */
9231 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
9232 # #include <string.h> /* for strdup() */
9234 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
9236 # #define O_BINARY 0
9239 # static unsigned int
9240 # pe_get16 (fd, offset)
9244 # unsigned char b[2];
9245 # lseek (fd, offset, SEEK_SET);
9247 # return b[0] + (b[1]<<8);
9250 # static unsigned int
9251 # pe_get32 (fd, offset)
9255 # unsigned char b[4];
9256 # lseek (fd, offset, SEEK_SET);
9258 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9261 # static unsigned int
9265 # unsigned char *b = ptr;
9266 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9275 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9276 # unsigned long export_rva, export_size, nsections, secptr, expptr;
9277 # unsigned long name_rvas, nexp;
9278 # unsigned char *expdata, *erva;
9279 # char *filename, *dll_name;
9281 # filename = argv[1];
9283 # dll = open(filename, O_RDONLY|O_BINARY);
9287 # dll_name = filename;
9289 # for (i=0; filename[i]; i++)
9290 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9291 # dll_name = filename + i +1;
9293 # pe_header_offset = pe_get32 (dll, 0x3c);
9294 # opthdr_ofs = pe_header_offset + 4 + 20;
9295 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
9297 # if (num_entries < 1) /* no exports */
9300 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
9301 # export_size = pe_get32 (dll, opthdr_ofs + 100);
9302 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9303 # secptr = (pe_header_offset + 4 + 20 +
9304 # pe_get16 (dll, pe_header_offset + 4 + 16));
9307 # for (i = 0; i < nsections; i++)
9310 # unsigned long secptr1 = secptr + 40 * i;
9311 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9312 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9313 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9314 # lseek(dll, secptr1, SEEK_SET);
9315 # read(dll, sname, 8);
9316 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
9318 # expptr = fptr + (export_rva - vaddr);
9319 # if (export_rva + export_size > vaddr + vsize)
9320 # export_size = vsize - (export_rva - vaddr);
9325 # expdata = (unsigned char*)malloc(export_size);
9326 # lseek (dll, expptr, SEEK_SET);
9327 # read (dll, expdata, export_size);
9328 # erva = expdata - export_rva;
9330 # nexp = pe_as32 (expdata+24);
9331 # name_rvas = pe_as32 (expdata+32);
9333 # printf ("EXPORTS\n");
9334 # for (i = 0; i<nexp; i++)
9336 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9337 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9342 # /* impgen.c ends here */
9348 # We use sed instead of cat because bash on DJGPP gets confused if
9349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9350 # text mode, it properly converts lines to CR/LF. This bash problem
9351 # is reportedly fixed, but why not run on old versions too?
9352 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9354 mv -f "${ofile}T" "$ofile" || \
9355 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9363 # This can be used to rebuild libtool when needed
9364 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9366 # Always use our own libtool.
9367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9369 # Prevent multiple expansion
9373 # test for ln hardlink support
9374 echo "$as_me:$LINENO: checking whether ln works" >&5
9375 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
9376 if test "${ol_cv_prog_LN_H+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 rm -f conftest.src conftest.dst
9380 echo "conftest" > conftest.src
9381 if ln conftest.src conftest.dst 2>/dev/null
9383 ol_cv_prog_LN_H="ln"
9385 ol_cv_prog_LN_H="cp"
9387 rm -f conftest.src conftest.dst
9390 LN_H="$ol_cv_prog_LN_H"
9391 if test "$ol_cv_prog_LN_H" = "ln"; then
9392 echo "$as_me:$LINENO: result: yes" >&5
9393 echo "${ECHO_T}yes" >&6
9395 echo "$as_me:$LINENO: result: no" >&5
9396 echo "${ECHO_T}no" >&6
9399 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9400 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9402 if test "$LN_S" = "ln -s"; then
9403 echo "$as_me:$LINENO: result: yes" >&5
9404 echo "${ECHO_T}yes" >&6
9406 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9407 echo "${ECHO_T}no, using $LN_S" >&6
9412 if test $ol_enable_perl != no ; then
9413 # Extract the first word of "perl", so it can be a program name with args.
9414 set dummy perl; ac_word=$2
9415 echo "$as_me:$LINENO: checking for $ac_word" >&5
9416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9417 if test "${ac_cv_path_PERLBIN+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 test -z "$as_dir" && as_dir=.
9430 for ac_exec_ext in '' $ac_executable_extensions; do
9431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9432 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
9433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
9443 PERLBIN=$ac_cv_path_PERLBIN
9445 if test -n "$PERLBIN"; then
9446 echo "$as_me:$LINENO: result: $PERLBIN" >&5
9447 echo "${ECHO_T}$PERLBIN" >&6
9449 echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6
9454 if test "no$PERLBIN" = "no" ; then
9455 if test $ol_enable_perl = yes ; then
9456 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
9457 echo "$as_me: error: could not locate perl" >&2;}
9458 { (exit 1); exit 1; }; }
9462 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
9463 if test x"$ol_with_perl_module" = "xstatic" ; then
9464 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
9466 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
9473 ac_cpp='$CPP $CPPFLAGS'
9474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9477 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9478 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9479 # On Suns, sometimes $CPP names a directory.
9480 if test -n "$CPP" && test -d "$CPP"; then
9483 if test -z "$CPP"; then
9484 if test "${ac_cv_prog_CPP+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 # Double quotes because CPP needs to be expanded
9488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9491 for ac_c_preproc_warn_flag in '' yes
9493 # Use a header file that comes with gcc, so configuring glibc
9494 # with a fresh cross-compiler works.
9495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496 # <limits.h> exists even on freestanding compilers.
9497 # On the NeXT, cc -E runs the code through the compiler's parser,
9498 # not just through cpp. "Syntax error" is here to catch this case.
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 # include <limits.h>
9509 # include <assert.h>
9513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } >/dev/null; then
9521 if test -s conftest.err; then
9522 ac_cpp_err=$ac_c_preproc_warn_flag
9529 if test -z "$ac_cpp_err"; then
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 # Broken: fails on valid input.
9538 rm -f conftest.err conftest.$ac_ext
9540 # OK, works on sane cases. Now check whether non-existent headers
9541 # can be detected and how.
9542 cat >conftest.$ac_ext <<_ACEOF
9543 #line $LINENO "configure"
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 #include <ac_nonexistent.h>
9551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } >/dev/null; then
9559 if test -s conftest.err; then
9560 ac_cpp_err=$ac_c_preproc_warn_flag
9567 if test -z "$ac_cpp_err"; then
9568 # Broken: success on invalid input.
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 # Passes both tests.
9578 rm -f conftest.err conftest.$ac_ext
9581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9582 rm -f conftest.err conftest.$ac_ext
9583 if $ac_preproc_ok; then
9595 echo "$as_me:$LINENO: result: $CPP" >&5
9596 echo "${ECHO_T}$CPP" >&6
9598 for ac_c_preproc_warn_flag in '' yes
9600 # Use a header file that comes with gcc, so configuring glibc
9601 # with a fresh cross-compiler works.
9602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9603 # <limits.h> exists even on freestanding compilers.
9604 # On the NeXT, cc -E runs the code through the compiler's parser,
9605 # not just through cpp. "Syntax error" is here to catch this case.
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 # include <limits.h>
9616 # include <assert.h>
9620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } >/dev/null; then
9628 if test -s conftest.err; then
9629 ac_cpp_err=$ac_c_preproc_warn_flag
9636 if test -z "$ac_cpp_err"; then
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 # Broken: fails on valid input.
9645 rm -f conftest.err conftest.$ac_ext
9647 # OK, works on sane cases. Now check whether non-existent headers
9648 # can be detected and how.
9649 cat >conftest.$ac_ext <<_ACEOF
9650 #line $LINENO "configure"
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <ac_nonexistent.h>
9658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } >/dev/null; then
9666 if test -s conftest.err; then
9667 ac_cpp_err=$ac_c_preproc_warn_flag
9674 if test -z "$ac_cpp_err"; then
9675 # Broken: success on invalid input.
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 # Passes both tests.
9685 rm -f conftest.err conftest.$ac_ext
9688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9689 rm -f conftest.err conftest.$ac_ext
9690 if $ac_preproc_ok; then
9693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9694 See \`config.log' for more details." >&5
9695 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9696 See \`config.log' for more details." >&2;}
9697 { (exit 1); exit 1; }; }
9701 ac_cpp='$CPP $CPPFLAGS'
9702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9707 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
9708 { echo "$as_me:$LINENO: WARNING: cross compiling.... some functionality will be removed." >&5
9709 echo "$as_me: WARNING: cross compiling.... some functionality will be removed." >&2;}
9711 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
9712 { echo "$as_me:$LINENO: WARNING: programs compiled here do run here..." >&5
9713 echo "$as_me: WARNING: programs compiled here do run here..." >&2;}
9714 { { echo "$as_me:$LINENO: error: if not cross compiling, use --disable-x-compile." >&5
9715 echo "$as_me: error: if not cross compiling, use --disable-x-compile." >&2;}
9716 { (exit 1); exit 1; }; }
9718 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
9719 { echo "$as_me:$LINENO: WARNING: programs compiled here do not run here..." >&5
9720 echo "$as_me: WARNING: programs compiled here do not run here..." >&2;}
9721 { { echo "$as_me:$LINENO: error: if cross compiling, add --enable-x-compile." >&5
9722 echo "$as_me: error: if cross compiling, add --enable-x-compile." >&2;}
9723 { (exit 1); exit 1; }; }
9729 *cygwin* ) CYGWIN=yes;;
9735 *mingw32* ) MINGW32=yes;;
9743 cat >>confdefs.h <<_ACEOF
9744 #define EXEEXT "${EXEEXT}"
9748 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
9749 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
9750 if test "${ac_cv_lib_be_be_app+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-lbe -lroot -lnet $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9763 /* Override any gcc2 internal prototype to avoid an error. */
9767 /* We use char because int might match the return type of a gcc2
9768 builtin and then its argument prototype would still apply. */
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_lib_be_be_app=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_cv_lib_be_be_app=no
9797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
9801 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
9802 if test $ac_cv_lib_be_be_app = yes; then
9803 LIBS="$LIBS -lbe -lroot -lnet"
9812 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
9813 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
9814 if test "${am_cv_prog_cc_stdc+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 am_cv_prog_cc_stdc=no
9819 # Don't try gcc -ansi; that turns off useful extensions and
9820 # breaks some systems' header files.
9821 # AIX -qlanglvl=ansi
9822 # Ultrix and OSF/1 -std1
9823 # HP-UX 10.20 and later -Ae
9824 # HP-UX older versions -Aa -D_HPUX_SOURCE
9825 # SVR4 -Xc -D__EXTENSIONS__
9826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9828 CC="$ac_save_CC $ac_arg"
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9838 #include <sys/types.h>
9839 #include <sys/stat.h>
9840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9841 struct buf { int x; };
9842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9843 static char *e (p, i)
9849 static char *f (char * (*g) (char **, int), char **p, ...)
9854 s = g (p, va_arg (v,int));
9858 int test (int i, double x);
9859 struct s1 {int (*f) (int a);};
9860 struct s2 {int (*f) (double a);};
9861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -s conftest.$ac_objext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 am_cv_prog_cc_stdc="$ac_arg"; break
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9899 if test -z "$am_cv_prog_cc_stdc"; then
9900 echo "$as_me:$LINENO: result: none needed" >&5
9901 echo "${ECHO_T}none needed" >&6
9903 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
9904 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
9906 case "x$am_cv_prog_cc_stdc" in
9908 *) CC="$CC $am_cv_prog_cc_stdc" ;;
9911 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
9912 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
9913 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
9914 { (exit 1); exit 1; }; }
9917 # test for make depend flag
9920 if test -z "${MKDEP}"; then
9922 if test -z "${MKDEP_FLAGS}"; then
9923 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
9924 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
9925 if test "${ol_cv_mkdep+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 for flag in "-M" "-xM"; do
9931 cat > conftest.c <<EOF
9934 if { ac_try='$OL_MKDEP $flag conftest.c'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } \
9940 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
9942 if test ! -f conftest."${ac_object}" ; then
9944 OL_MKDEP_FLAGS="$flag"
9952 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
9953 echo "${ECHO_T}$ol_cv_mkdep" >&6
9956 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
9961 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
9966 if test "${ol_cv_mkdep}" = no ; then
9967 # this will soon become an error
9968 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
9969 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
9972 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
9973 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
9974 if test "${ac_cv_lib_s_afopen+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS=$LIBS
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_s_afopen=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_cv_lib_s_afopen=no
10021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
10025 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
10026 if test $ac_cv_lib_s_afopen = yes; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_AIX_SECURITY 1
10040 ac_cv_func_getopt=no
10042 cat >>confdefs.h <<\_ACEOF
10043 #define BOTH_STRINGS_H 1
10050 if test $ol_enable_modules != no ; then
10052 for ac_header in ltdl.h
10054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056 echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10064 # Is the header compilable?
10065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10067 cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 #include <$ac_header>
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_header_compiler=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_header_compiler=no
10096 rm -f conftest.$ac_objext conftest.$ac_ext
10097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10098 echo "${ECHO_T}$ac_header_compiler" >&6
10100 # Is the header present?
10101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 #include <$ac_header>
10112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } >/dev/null; then
10120 if test -s conftest.err; then
10121 ac_cpp_err=$ac_c_preproc_warn_flag
10128 if test -z "$ac_cpp_err"; then
10129 ac_header_preproc=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_header_preproc=no
10136 rm -f conftest.err conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10138 echo "${ECHO_T}$ac_header_preproc" >&6
10140 # So? What about this header?
10141 case $ac_header_compiler:$ac_header_preproc in
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10149 ## ------------------------------------ ##
10150 ## Report this to bug-autoconf@gnu.org. ##
10151 ## ------------------------------------ ##
10154 sed "s/^/$as_me: WARNING: /" >&2
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10165 ## ------------------------------------ ##
10166 ## Report this to bug-autoconf@gnu.org. ##
10167 ## ------------------------------------ ##
10170 sed "s/^/$as_me: WARNING: /" >&2
10173 echo "$as_me:$LINENO: checking for $ac_header" >&5
10174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 eval "$as_ac_Header=$ac_header_preproc"
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10185 cat >>confdefs.h <<_ACEOF
10186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194 if test $ac_cv_header_ltdl_h = no ; then
10195 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
10196 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
10197 { (exit 1); exit 1; }; }
10200 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
10201 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
10202 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lltdl $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest$ac_exeext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_cv_lib_ltdl_lt_dlinit=yes
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ac_cv_lib_ltdl_lt_dlinit=no
10249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
10253 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
10254 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
10256 MODULES_LIBS=-lltdl
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HAVE_LIBLTDL 1
10266 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
10267 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
10268 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
10269 { (exit 1); exit 1; }; }
10271 ol_link_modules=yes
10273 ol_with_bdb_module=static
10274 ol_with_dnssrv_module=static
10275 ol_with_ldap_module=static
10276 ol_with_ldbm_module=static
10277 ol_with_meta_module=static
10278 ol_with_monitor_module=static
10279 ol_with_null_module=static
10280 ol_with_passwd_module=static
10281 ol_with_perl_module=static
10282 ol_with_shell_module=static
10283 ol_with_tcl_module=static
10284 ol_with_sql_module=static
10288 echo "$as_me:$LINENO: checking for EBCDIC" >&5
10289 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
10290 if test "${ol_cv_cpp_ebcdic+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10303 #include <__ASCII__/generate_error.h>
10307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev/null; then
10315 if test -s conftest.err; then
10316 ac_cpp_err=$ac_c_preproc_warn_flag
10323 if test -z "$ac_cpp_err"; then
10324 ol_cv_cpp_ebcdic=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ol_cv_cpp_ebcdic=no
10331 rm -f conftest.err conftest.$ac_ext
10333 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
10334 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
10335 if test $ol_cv_cpp_ebcdic = yes ; then
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_EBCDIC 1
10343 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10345 if test "${ol_cv_header_stdc+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 cat >conftest.$ac_ext <<_ACEOF
10349 #line $LINENO "configure"
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <stdlib.h>
10356 #include <stdarg.h>
10357 #include <string.h>
10360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } >/dev/null; then
10368 if test -s conftest.err; then
10369 ac_cpp_err=$ac_c_preproc_warn_flag
10376 if test -z "$ac_cpp_err"; then
10377 ol_cv_header_stdc=yes
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ol_cv_header_stdc=no
10384 rm -f conftest.err conftest.$ac_ext
10386 if test $ol_cv_header_stdc = yes; then
10387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <string.h>
10398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10399 $EGREP "memchr" >/dev/null 2>&1; then
10402 ol_cv_header_stdc=no
10408 if test $ol_cv_header_stdc = yes; then
10409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10410 cat >conftest.$ac_ext <<_ACEOF
10411 #line $LINENO "configure"
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 #include <stdlib.h>
10420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10421 $EGREP "free" >/dev/null 2>&1; then
10424 ol_cv_header_stdc=no
10430 if test $ol_cv_header_stdc = yes; then
10431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10432 if test "$cross_compiling" = yes; then
10435 cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10443 #ifndef HAVE_EBCDIC
10444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10447 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10448 || ('j' <= (c) && (c) <= 'r') \
10449 || ('s' <= (c) && (c) <= 'z'))
10450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10453 int main () { int i; for (i = 0; i < 256; i++)
10454 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10458 rm -f conftest$ac_exeext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10471 echo "$as_me: program exited with status $ac_status" >&5
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ( exit $ac_status )
10476 ol_cv_header_stdc=no
10478 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
10483 echo "${ECHO_T}$ol_cv_header_stdc" >&6
10484 if test $ol_cv_header_stdc = yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define STDC_HEADERS 1
10490 ac_cv_header_stdc=disable
10493 if test $ol_cv_header_stdc != yes; then
10494 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
10495 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
10503 ac_header_dirent=no
10504 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10505 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10506 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10507 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 cat >conftest.$ac_ext <<_ACEOF
10512 #line $LINENO "configure"
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <sys/types.h>
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -s conftest.$ac_objext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 eval "$as_ac_Header=yes"
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 eval "$as_ac_Header=no"
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10558 ac_header_dirent=$ac_hdr; break
10562 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10563 if test $ac_header_dirent = dirent.h; then
10564 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10565 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10566 if test "${ac_cv_search_opendir+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_func_search_save_LIBS=$LIBS
10570 ac_cv_search_opendir=no
10571 cat >conftest.$ac_ext <<_ACEOF
10572 #line $LINENO "configure"
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10579 /* Override any gcc2 internal prototype to avoid an error. */
10583 /* We use char because int might match the return type of a gcc2
10584 builtin and then its argument prototype would still apply. */
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -s conftest$ac_exeext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_search_opendir="none required"
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10613 if test "$ac_cv_search_opendir" = no; then
10614 for ac_lib in dir; do
10615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10624 /* Override any gcc2 internal prototype to avoid an error. */
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_search_opendir="-l$ac_lib"
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_func_search_save_LIBS
10663 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10664 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10665 if test "$ac_cv_search_opendir" != no; then
10666 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10671 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10672 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10673 if test "${ac_cv_search_opendir+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 ac_func_search_save_LIBS=$LIBS
10677 ac_cv_search_opendir=no
10678 cat >conftest.$ac_ext <<_ACEOF
10679 #line $LINENO "configure"
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10686 /* Override any gcc2 internal prototype to avoid an error. */
10690 /* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -s conftest$ac_exeext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_search_opendir="none required"
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10720 if test "$ac_cv_search_opendir" = no; then
10721 for ac_lib in x; do
10722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10731 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748 (eval $ac_link) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_search_opendir="-l$ac_lib"
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10768 LIBS=$ac_func_search_save_LIBS
10770 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10771 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10772 if test "$ac_cv_search_opendir" != no; then
10773 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10779 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10780 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10781 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <sys/types.h>
10792 #include <sys/wait.h>
10793 #ifndef WEXITSTATUS
10794 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10797 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10805 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_header_sys_wait_h=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_header_sys_wait_h=no
10829 rm -f conftest.$ac_objext conftest.$ac_ext
10831 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10832 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10833 if test $ac_cv_header_sys_wait_h = yes; then
10835 cat >>confdefs.h <<\_ACEOF
10836 #define HAVE_SYS_WAIT_H 1
10841 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
10842 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
10843 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <sys/types.h>
10854 #include <termios.h>
10860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10861 $EGREP "yes" >/dev/null 2>&1; then
10862 ac_cv_sys_tiocgwinsz_in_termios_h=yes
10864 ac_cv_sys_tiocgwinsz_in_termios_h=no
10869 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
10870 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
10872 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
10873 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
10874 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
10875 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <sys/types.h>
10886 #include <sys/ioctl.h>
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "yes" >/dev/null 2>&1; then
10894 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
10896 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
10901 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
10902 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
10904 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define GWINSZ_IN_SYS_IOCTL 1
10913 if test $am_cv_sys_posix_termios = yes ; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_POSIX_TERMIOS 1
11014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11016 echo "$as_me:$LINENO: checking for $ac_header" >&5
11017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11024 # Is the header compilable?
11025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11035 #include <$ac_header>
11037 rm -f conftest.$ac_objext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_header_compiler=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_header_compiler=no
11056 rm -f conftest.$ac_objext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058 echo "${ECHO_T}$ac_header_compiler" >&6
11060 # Is the header present?
11061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <$ac_header>
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11088 if test -z "$ac_cpp_err"; then
11089 ac_header_preproc=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_header_preproc=no
11096 rm -f conftest.err conftest.$ac_ext
11097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11098 echo "${ECHO_T}$ac_header_preproc" >&6
11100 # So? What about this header?
11101 case $ac_header_compiler:$ac_header_preproc in
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109 ## ------------------------------------ ##
11110 ## Report this to bug-autoconf@gnu.org. ##
11111 ## ------------------------------------ ##
11114 sed "s/^/$as_me: WARNING: /" >&2
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11125 ## ------------------------------------ ##
11126 ## Report this to bug-autoconf@gnu.org. ##
11127 ## ------------------------------------ ##
11130 sed "s/^/$as_me: WARNING: /" >&2
11133 echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 eval "$as_ac_Header=$ac_header_preproc"
11140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11155 for ac_header in sys/ucred.h
11157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158 echo "$as_me:$LINENO: checking for $ac_header" >&5
11159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11164 #line $LINENO "configure"
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 #include <sys/types.h>
11172 #include <$ac_header>
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 eval "$as_ac_Header=yes"
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 eval "$as_ac_Header=no"
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 for ac_header in resolv.h
11209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 echo "$as_me:$LINENO: checking for $ac_header" >&5
11211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11223 #include <sys/types.h>
11224 #include <netinet/in.h>
11225 #include <arpa/nameser.h>
11228 #include <$ac_header>
11230 rm -f conftest.$ac_objext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11232 (eval $ac_compile) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 eval "$as_ac_Header=yes"
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 eval "$as_ac_Header=no"
11249 rm -f conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11264 echo "$as_me:$LINENO: checking for dlopen" >&5
11265 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11266 if test "${ac_cv_func_dlopen+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 /* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char dlopen (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
11281 # include <limits.h>
11283 # include <assert.h>
11285 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11293 /* The GNU C library defines this for functions which it implements
11294 to always fail with ENOSYS. Some functions are actually named
11295 something starting with __ and the normal name is an alias. */
11296 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11299 char (*f) () = dlopen;
11308 return f != dlopen;
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11315 (eval $ac_link) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -s conftest$ac_exeext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_cv_func_dlopen=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_cv_func_dlopen=no
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11335 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11336 if test $ac_cv_func_dlopen = yes; then
11340 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11341 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11342 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_check_lib_save_LIBS=$LIBS
11347 cat >conftest.$ac_ext <<_ACEOF
11348 #line $LINENO "configure"
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11355 /* Override any gcc2 internal prototype to avoid an error. */
11359 /* We use char because int might match the return type of a gcc2
11360 builtin and then its argument prototype would still apply. */
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_lib_dl_dlopen=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_cv_lib_dl_dlopen=no
11389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11392 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11393 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11394 if test $ac_cv_lib_dl_dlopen = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define HAVE_LIBDL 1
11407 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
11408 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
11409 if test "${ac_cv_lib_V3_sigset+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 ac_check_lib_save_LIBS=$LIBS
11414 cat >conftest.$ac_ext <<_ACEOF
11415 #line $LINENO "configure"
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 /* Override any gcc2 internal prototype to avoid an error. */
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -s conftest$ac_exeext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_lib_V3_sigset=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_lib_V3_sigset=no
11456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11459 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
11460 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
11461 if test $ac_cv_lib_V3_sigset = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_LIBV3 1
11471 echo "$as_me:$LINENO: checking for winsock" >&5
11472 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
11474 for curlib in ws2_32 wsock32; do
11475 LIBS="$LIBS -l$curlib"
11476 cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11486 char closesocket@4();
11487 char gethostname@8();
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11523 if test $have_winsock = yes; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_WINSOCK 1
11529 ac_cv_func_socket=yes
11530 ac_cv_func_select=yes
11531 ac_cv_func_closesocket=yes
11532 ac_cv_func_gethostname=yes
11533 if test $curlib = ws2_32; then
11534 have_winsock=winsock2
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_WINSOCK2 1
11545 echo "$as_me:$LINENO: result: $have_winsock" >&5
11546 echo "${ECHO_T}$have_winsock" >&6
11549 echo "$as_me:$LINENO: checking for socket" >&5
11550 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11551 if test "${ac_cv_func_socket+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 #line $LINENO "configure"
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 /* System header to define __stub macros and hopefully few prototypes,
11562 which can conflict with char socket (); below.
11563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11564 <limits.h> exists even on freestanding compilers. */
11566 # include <limits.h>
11568 # include <assert.h>
11570 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_socket) || defined (__stub___socket)
11584 char (*f) () = socket;
11593 return f != socket;
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_func_socket=yes
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_func_socket=no
11617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11620 echo "${ECHO_T}$ac_cv_func_socket" >&6
11621 if test $ac_cv_func_socket = yes; then
11626 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11627 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11628 if test "${ac_cv_lib_socket_main+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lsocket $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 #line $LINENO "configure"
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11652 (eval $ac_link) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_lib_socket_main=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_lib_socket_main=no
11669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11673 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11674 if test $ac_cv_lib_socket_main = yes; then
11675 cat >>confdefs.h <<_ACEOF
11676 #define HAVE_LIBSOCKET 1
11679 LIBS="-lsocket $LIBS"
11684 echo "$as_me:$LINENO: checking for main in -lnet" >&5
11685 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
11686 if test "${ac_cv_lib_net_main+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 ac_check_lib_save_LIBS=$LIBS
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11708 rm -f conftest.$ac_objext conftest$ac_exeext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710 (eval $ac_link) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_net_main=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_lib_net_main=no
11727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
11731 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
11732 if test $ac_cv_lib_net_main = yes; then
11733 cat >>confdefs.h <<_ACEOF
11734 #define HAVE_LIBNET 1
11742 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
11743 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
11744 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lnsl_s $LIBS"
11749 cat >conftest.$ac_ext <<_ACEOF
11750 #line $LINENO "configure"
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_lib_nsl_s_main=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_lib_nsl_s_main=no
11785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11788 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
11789 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
11790 if test $ac_cv_lib_nsl_s_main = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_LIBNSL_S 1
11795 LIBS="-lnsl_s $LIBS"
11800 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11801 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11802 if test "${ac_cv_lib_nsl_main+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_check_lib_save_LIBS=$LIBS
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826 (eval $ac_link) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_cv_lib_nsl_main=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_cv_lib_nsl_main=no
11843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11846 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
11847 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
11848 if test $ac_cv_lib_nsl_main = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define HAVE_LIBNSL 1
11858 echo "$as_me:$LINENO: checking for socket in -linet" >&5
11859 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
11860 if test "${ac_cv_lib_inet_socket+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-linet $LIBS"
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #line $LINENO "configure"
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any gcc2 internal prototype to avoid an error. */
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_inet_socket=yes
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_lib_inet_socket=no
11907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11910 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
11911 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
11912 if test $ac_cv_lib_inet_socket = yes; then
11913 cat >>confdefs.h <<_ACEOF
11914 #define HAVE_LIBINET 1
11917 LIBS="-linet $LIBS"
11922 echo "$as_me:$LINENO: checking for main in -lgen" >&5
11923 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
11924 if test "${ac_cv_lib_gen_main+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_check_lib_save_LIBS=$LIBS
11929 cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948 (eval $ac_link) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -s conftest$ac_exeext'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_cv_lib_gen_main=yes
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_lib_gen_main=no
11965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
11969 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
11970 if test $ac_cv_lib_gen_main = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define HAVE_LIBGEN 1
11983 echo "$as_me:$LINENO: checking for select" >&5
11984 echo $ECHO_N "checking for select... $ECHO_C" >&6
11985 if test "${ac_cv_func_select+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char select (); below.
11997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11998 <limits.h> exists even on freestanding compilers. */
12000 # include <limits.h>
12002 # include <assert.h>
12004 /* Override any gcc2 internal prototype to avoid an error. */
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12012 /* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015 #if defined (__stub_select) || defined (__stub___select)
12018 char (*f) () = select;
12027 return f != select;
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_func_select=yes
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_cv_func_select=no
12051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
12054 echo "${ECHO_T}$ac_cv_func_select" >&6
12055 if test $ac_cv_func_select = yes; then
12058 { { echo "$as_me:$LINENO: error: select() required." >&5
12059 echo "$as_me: error: select() required." >&2;}
12060 { (exit 1); exit 1; }; }
12064 if test "${ac_cv_header_winsock_h}" != yes; then
12067 for ac_header in sys/select.h sys/socket.h
12069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12071 echo "$as_me:$LINENO: checking for $ac_header" >&5
12072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12079 # Is the header compilable?
12080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12090 #include <$ac_header>
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_header_compiler=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_compiler=no
12111 rm -f conftest.$ac_objext conftest.$ac_ext
12112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113 echo "${ECHO_T}$ac_header_compiler" >&6
12115 # Is the header present?
12116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <$ac_header>
12127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } >/dev/null; then
12135 if test -s conftest.err; then
12136 ac_cpp_err=$ac_c_preproc_warn_flag
12143 if test -z "$ac_cpp_err"; then
12144 ac_header_preproc=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_header_preproc=no
12151 rm -f conftest.err conftest.$ac_ext
12152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12153 echo "${ECHO_T}$ac_header_preproc" >&6
12155 # So? What about this header?
12156 case $ac_header_compiler:$ac_header_preproc in
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12164 ## ------------------------------------ ##
12165 ## Report this to bug-autoconf@gnu.org. ##
12166 ## ------------------------------------ ##
12169 sed "s/^/$as_me: WARNING: /" >&2
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12180 ## ------------------------------------ ##
12181 ## Report this to bug-autoconf@gnu.org. ##
12182 ## ------------------------------------ ##
12185 sed "s/^/$as_me: WARNING: /" >&2
12188 echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 eval "$as_ac_Header=$ac_header_preproc"
12195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12209 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12210 if test "${ac_cv_func_select_args+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12214 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12215 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12216 cat >conftest.$ac_ext <<_ACEOF
12217 #line $LINENO "configure"
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12224 #if HAVE_SYS_SELECT_H
12225 # include <sys/select.h>
12227 #if HAVE_SYS_SOCKET_H
12228 # include <sys/socket.h>
12234 extern int select ($ac_arg1,
12235 $ac_arg234, $ac_arg234, $ac_arg234,
12241 rm -f conftest.$ac_objext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12259 rm -f conftest.$ac_objext conftest.$ac_ext
12263 # Provide a safe default value.
12264 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12267 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12268 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12269 ac_save_IFS=$IFS; IFS=','
12270 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12274 cat >>confdefs.h <<_ACEOF
12275 #define SELECT_TYPE_ARG1 $1
12279 cat >>confdefs.h <<_ACEOF
12280 #define SELECT_TYPE_ARG234 ($2)
12284 cat >>confdefs.h <<_ACEOF
12285 #define SELECT_TYPE_ARG5 ($3)
12294 for ac_header in regex.h
12296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12298 echo "$as_me:$LINENO: checking for $ac_header" >&5
12299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12306 # Is the header compilable?
12307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12317 #include <$ac_header>
12319 rm -f conftest.$ac_objext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12321 (eval $ac_compile) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_header_compiler=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12338 rm -f conftest.$ac_objext conftest.$ac_ext
12339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12340 echo "${ECHO_T}$ac_header_compiler" >&6
12342 # Is the header present?
12343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12345 cat >conftest.$ac_ext <<_ACEOF
12346 #line $LINENO "configure"
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null; then
12362 if test -s conftest.err; then
12363 ac_cpp_err=$ac_c_preproc_warn_flag
12370 if test -z "$ac_cpp_err"; then
12371 ac_header_preproc=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_header_preproc=no
12378 rm -f conftest.err conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12380 echo "${ECHO_T}$ac_header_preproc" >&6
12382 # So? What about this header?
12383 case $ac_header_compiler:$ac_header_preproc in
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12391 ## ------------------------------------ ##
12392 ## Report this to bug-autoconf@gnu.org. ##
12393 ## ------------------------------------ ##
12396 sed "s/^/$as_me: WARNING: /" >&2
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12407 ## ------------------------------------ ##
12408 ## Report this to bug-autoconf@gnu.org. ##
12409 ## ------------------------------------ ##
12412 sed "s/^/$as_me: WARNING: /" >&2
12415 echo "$as_me:$LINENO: checking for $ac_header" >&5
12416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 eval "$as_ac_Header=$ac_header_preproc"
12422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12435 if test "$ac_cv_header_regex_h" != yes ; then
12436 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
12437 echo "$as_me: error: POSIX regex.h required." >&2;}
12438 { (exit 1); exit 1; }; }
12440 echo "$as_me:$LINENO: checking for library containing regfree" >&5
12441 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
12442 if test "${ac_cv_search_regfree+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 ac_func_search_save_LIBS=$LIBS
12446 ac_cv_search_regfree=no
12447 cat >conftest.$ac_ext <<_ACEOF
12448 #line $LINENO "configure"
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12455 /* Override any gcc2 internal prototype to avoid an error. */
12459 /* We use char because int might match the return type of a gcc2
12460 builtin and then its argument prototype would still apply. */
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12472 (eval $ac_link) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_search_regfree="none required"
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12489 if test "$ac_cv_search_regfree" = no; then
12490 for ac_lib in regex gnuregex; do
12491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12500 /* Override any gcc2 internal prototype to avoid an error. */
12504 /* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -s conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_search_regfree="-l$ac_lib"
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_func_search_save_LIBS
12539 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
12540 echo "${ECHO_T}$ac_cv_search_regfree" >&6
12541 if test "$ac_cv_search_regfree" != no; then
12542 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
12545 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
12546 echo "$as_me: error: POSIX regex required." >&2;}
12547 { (exit 1); exit 1; }; }
12552 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
12553 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
12554 if test "${ol_cv_c_posix_regex+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 if test "$cross_compiling" = yes; then
12559 ol_cv_c_posix_regex=cross
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12569 #include <sys/types.h>
12571 static char *pattern, *string;
12579 if(regcomp(&re, pattern, 0)) {
12583 string = "ALL MATCH";
12585 rc = regexec(&re, string, 0, (void*)0, 0);
12592 rm -f conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ol_cv_c_posix_regex=yes
12605 echo "$as_me: program exited with status $ac_status" >&5
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12609 ( exit $ac_status )
12610 ol_cv_c_posix_regex=no
12612 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12615 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
12616 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
12618 if test "$ol_cv_c_posix_regex" = no ; then
12619 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
12620 echo "$as_me: error: broken POSIX regex!" >&2;}
12621 { (exit 1); exit 1; }; }
12627 for ac_header in sys/uuid.h
12629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12631 echo "$as_me:$LINENO: checking for $ac_header" >&5
12632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12639 # Is the header compilable?
12640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12642 cat >conftest.$ac_ext <<_ACEOF
12643 #line $LINENO "configure"
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 $ac_includes_default
12650 #include <$ac_header>
12652 rm -f conftest.$ac_objext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_header_compiler=yes
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 ac_header_compiler=no
12671 rm -f conftest.$ac_objext conftest.$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673 echo "${ECHO_T}$ac_header_compiler" >&6
12675 # Is the header present?
12676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12678 cat >conftest.$ac_ext <<_ACEOF
12679 #line $LINENO "configure"
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 #include <$ac_header>
12687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null; then
12695 if test -s conftest.err; then
12696 ac_cpp_err=$ac_c_preproc_warn_flag
12703 if test -z "$ac_cpp_err"; then
12704 ac_header_preproc=yes
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 ac_header_preproc=no
12711 rm -f conftest.err conftest.$ac_ext
12712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713 echo "${ECHO_T}$ac_header_preproc" >&6
12715 # So? What about this header?
12716 case $ac_header_compiler:$ac_header_preproc in
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12724 ## ------------------------------------ ##
12725 ## Report this to bug-autoconf@gnu.org. ##
12726 ## ------------------------------------ ##
12729 sed "s/^/$as_me: WARNING: /" >&2
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12740 ## ------------------------------------ ##
12741 ## Report this to bug-autoconf@gnu.org. ##
12742 ## ------------------------------------ ##
12745 sed "s/^/$as_me: WARNING: /" >&2
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 eval "$as_ac_Header=$ac_header_preproc"
12755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12760 cat >>confdefs.h <<_ACEOF
12761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768 if test $ac_cv_header_sys_uuid_h = yes ; then
12770 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
12771 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
12772 if test "${ac_cv_search_uuid_to_str+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_func_search_save_LIBS=$LIBS
12776 ac_cv_search_uuid_to_str=no
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char uuid_to_str ();
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } &&
12806 { ac_try='test -s conftest$ac_exeext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_uuid_to_str="none required"
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12819 if test "$ac_cv_search_uuid_to_str" = no; then
12820 for ac_lib in uuid; do
12821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12822 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12830 /* Override any gcc2 internal prototype to avoid an error. */
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836 char uuid_to_str ();
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_search_uuid_to_str="-l$ac_lib"
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_func_search_save_LIBS
12869 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
12870 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
12871 if test "$ac_cv_search_uuid_to_str" != no; then
12872 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
12880 if test have_uuid = yes ; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define HAVE_UUID_TO_STR 1
12887 test "$ac_cv_search_uuid_to_str" = "none required" || \
12888 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
12892 if test $have_uuid = no ; then
12893 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
12894 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
12896 LIBS="$LIBS -lrpcrt4"
12897 cat >conftest.$ac_ext <<_ACEOF
12898 #line $LINENO "configure"
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 char UuidCreate@4();
12906 char UuidToStringA@8();
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921 (eval $ac_link) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -s conftest$ac_exeext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12939 if test $need_rpcrt = yes; then
12940 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
12943 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
12944 echo "${ECHO_T}$need_rpcrt" >&6
12948 echo "$as_me:$LINENO: checking for res_query" >&5
12949 echo $ECHO_N "checking for res_query... $ECHO_C" >&6
12950 if test "${ac_cv_func_res_query+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 cat >conftest.$ac_ext <<_ACEOF
12954 #line $LINENO "configure"
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 /* System header to define __stub macros and hopefully few prototypes,
12961 which can conflict with char res_query (); below.
12962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12963 <limits.h> exists even on freestanding compilers. */
12965 # include <limits.h>
12967 # include <assert.h>
12969 /* Override any gcc2 internal prototype to avoid an error. */
12974 /* We use char because int might match the return type of a gcc2
12975 builtin and then its argument prototype would still apply. */
12977 /* The GNU C library defines this for functions which it implements
12978 to always fail with ENOSYS. Some functions are actually named
12979 something starting with __ and the normal name is an alias. */
12980 #if defined (__stub_res_query) || defined (__stub___res_query)
12983 char (*f) () = res_query;
12992 return f != res_query;
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_func_res_query=yes
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 ac_cv_func_res_query=no
13016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13018 echo "$as_me:$LINENO: result: $ac_cv_func_res_query" >&5
13019 echo "${ECHO_T}$ac_cv_func_res_query" >&6
13020 if test $ac_cv_func_res_query = yes; then
13024 if test $ac_cv_func_res_query = no ; then
13025 echo "$as_me:$LINENO: checking for __res_query" >&5
13026 echo $ECHO_N "checking for __res_query... $ECHO_C" >&6
13027 if test "${ac_cv_func___res_query+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line $LINENO "configure"
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char __res_query (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13042 # include <limits.h>
13044 # include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error. */
13051 /* We use char because int might match the return type of a gcc2
13052 builtin and then its argument prototype would still apply. */
13053 char __res_query ();
13054 /* The GNU C library defines this for functions which it implements
13055 to always fail with ENOSYS. Some functions are actually named
13056 something starting with __ and the normal name is an alias. */
13057 #if defined (__stub___res_query) || defined (__stub_____res_query)
13060 char (*f) () = __res_query;
13069 return f != __res_query;
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_func___res_query=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_func___res_query=no
13093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_cv_func___res_query" >&5
13096 echo "${ECHO_T}$ac_cv_func___res_query" >&6
13097 if test $ac_cv_func___res_query = yes; then
13101 ac_cv_func_res_query=$ac_cv_func___res_query
13104 if test $ac_cv_func_res_query = no ; then
13106 echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
13107 echo $ECHO_N "checking for res_query in -lbind... $ECHO_C" >&6
13108 if test "${ac_cv_lib_bind_res_query+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 ac_check_lib_save_LIBS=$LIBS
13112 LIBS="-lbind $LIBS"
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13121 /* Override any gcc2 internal prototype to avoid an error. */
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_lib_bind_res_query=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_cv_lib_bind_res_query=no
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
13159 echo "${ECHO_T}$ac_cv_lib_bind_res_query" >&6
13160 if test $ac_cv_lib_bind_res_query = yes; then
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_LIBBIND 1
13165 LIBS="-lbind $LIBS"
13169 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
13172 if test $ac_cv_func_res_query = no ; then
13174 echo "$as_me:$LINENO: checking for __res_query in -lbind" >&5
13175 echo $ECHO_N "checking for __res_query in -lbind... $ECHO_C" >&6
13176 if test "${ac_cv_lib_bind___res_query+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-lbind $LIBS"
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h. */
13189 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char __res_query ();
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13206 (eval $ac_link) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_lib_bind___res_query=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_lib_bind___res_query=no
13223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13226 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_query" >&5
13227 echo "${ECHO_T}$ac_cv_lib_bind___res_query" >&6
13228 if test $ac_cv_lib_bind___res_query = yes; then
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_LIBBIND 1
13233 LIBS="-lbind $LIBS"
13237 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
13240 if test $ac_cv_func_res_query = no ; then
13242 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
13243 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
13244 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lresolv $LIBS"
13249 cat >conftest.$ac_ext <<_ACEOF
13250 #line $LINENO "configure"
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13257 /* Override any gcc2 internal prototype to avoid an error. */
13261 /* We use char because int might match the return type of a gcc2
13262 builtin and then its argument prototype would still apply. */
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_resolv_res_query=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_resolv_res_query=no
13291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13294 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
13295 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
13296 if test $ac_cv_lib_resolv_res_query = yes; then
13297 cat >>confdefs.h <<_ACEOF
13298 #define HAVE_LIBRESOLV 1
13301 LIBS="-lresolv $LIBS"
13305 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
13308 if test $ac_cv_func_res_query = no ; then
13310 echo "$as_me:$LINENO: checking for __res_query in -lresolv" >&5
13311 echo $ECHO_N "checking for __res_query in -lresolv... $ECHO_C" >&6
13312 if test "${ac_cv_lib_resolv___res_query+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-lresolv $LIBS"
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13325 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13331 char __res_query ();
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_lib_resolv___res_query=yes
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_cv_lib_resolv___res_query=no
13359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13362 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_query" >&5
13363 echo "${ECHO_T}$ac_cv_lib_resolv___res_query" >&6
13364 if test $ac_cv_lib_resolv___res_query = yes; then
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_LIBRESOLV 1
13369 LIBS="-lresolv $LIBS"
13373 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
13376 if test "$ac_cv_func_res_query" = yes ; then
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_RES_QUERY 1
13383 if test $ol_enable_dnssrv != no ; then
13388 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
13389 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
13390 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
13391 { (exit 1); exit 1; }; }
13398 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
13400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_func" >&5
13402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_var+set}\" = set"; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 /* System header to define __stub macros and hopefully few prototypes,
13414 which can conflict with char $ac_func (); below.
13415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13416 <limits.h> exists even on freestanding compilers. */
13418 # include <limits.h>
13420 # include <assert.h>
13422 /* Override any gcc2 internal prototype to avoid an error. */
13427 /* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13430 /* The GNU C library defines this for functions which it implements
13431 to always fail with ENOSYS. Some functions are actually named
13432 something starting with __ and the normal name is an alias. */
13433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13436 char (*f) () = $ac_func;
13445 return f != $ac_func;
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452 (eval $ac_link) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 eval "$as_ac_var=yes"
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 eval "$as_ac_var=no"
13469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13473 if test `eval echo '${'$as_ac_var'}'` = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
13484 if test $ol_enable_ipv6 = yes ; then
13485 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
13486 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
13487 { (exit 1); exit 1; }; }
13489 elif test $ol_enable_ipv6 != no ; then
13490 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
13491 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
13492 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13504 # include <netinet/in.h>
13505 # ifdef INET6_ADDRSTRLEN
13506 __has_inet6_addrstrlen__;
13510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13511 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
13512 ol_cv_inet6_addrstrlen=yes
13514 ol_cv_inet6_addrstrlen=no
13519 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
13520 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
13523 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
13524 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
13525 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 #include <sys/types.h>
13538 #include <sys/socket.h>
13544 struct sockaddr_storage ss;
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ol_cv_struct_sockaddr_storage=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ol_cv_struct_sockaddr_storage=no
13569 rm -f conftest.$ac_objext conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
13572 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
13574 if test $ol_cv_inet6_addrstrlen = yes \
13575 -a $ol_cv_struct_sockaddr_storage = yes ; then
13577 elif test $ol_enable_ipv6 = yes \
13578 -a $ol_cv_inet6_addrstrlen = no ; then
13579 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
13580 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
13581 { (exit 1); exit 1; }; }
13582 elif test $ol_enable_ipv6 = yes \
13583 -a $ol_cv_struct_sockaddr_storage = no ; then
13584 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
13585 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
13586 { (exit 1); exit 1; }; }
13590 if test $ol_enable_local != no ; then
13592 for ac_header in sys/un.h
13594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo "$as_me:$LINENO: checking for $ac_header" >&5
13597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13604 # Is the header compilable?
13605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13607 cat >conftest.$ac_ext <<_ACEOF
13608 #line $LINENO "configure"
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13615 #include <$ac_header>
13617 rm -f conftest.$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_header_compiler=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_header_compiler=no
13636 rm -f conftest.$ac_objext conftest.$ac_ext
13637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 echo "${ECHO_T}$ac_header_compiler" >&6
13640 # Is the header present?
13641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13643 cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <$ac_header>
13652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } >/dev/null; then
13660 if test -s conftest.err; then
13661 ac_cpp_err=$ac_c_preproc_warn_flag
13668 if test -z "$ac_cpp_err"; then
13669 ac_header_preproc=yes
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_header_preproc=no
13676 rm -f conftest.err conftest.$ac_ext
13677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678 echo "${ECHO_T}$ac_header_preproc" >&6
13680 # So? What about this header?
13681 case $ac_header_compiler:$ac_header_preproc in
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13689 ## ------------------------------------ ##
13690 ## Report this to bug-autoconf@gnu.org. ##
13691 ## ------------------------------------ ##
13694 sed "s/^/$as_me: WARNING: /" >&2
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 ## ------------------------------------ ##
13706 ## Report this to bug-autoconf@gnu.org. ##
13707 ## ------------------------------------ ##
13710 sed "s/^/$as_me: WARNING: /" >&2
13713 echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 eval "$as_ac_Header=$ac_header_preproc"
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13725 cat >>confdefs.h <<_ACEOF
13726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13734 if test $ol_enable_local = auto ; then
13735 ol_enable_local=$ac_cv_header_sys_un_h
13736 elif test $ac_cv_header_sys_un_h = no ; then
13737 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
13738 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
13739 { (exit 1); exit 1; }; }
13748 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
13749 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
13750 -o $ol_with_kerberos = k425 ; then
13753 for ac_header in krb5.h
13755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13757 echo "$as_me:$LINENO: checking for $ac_header" >&5
13758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13765 # Is the header compilable?
13766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13768 cat >conftest.$ac_ext <<_ACEOF
13769 #line $LINENO "configure"
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 #include <$ac_header>
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_header_compiler=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_header_compiler=no
13797 rm -f conftest.$ac_objext conftest.$ac_ext
13798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13799 echo "${ECHO_T}$ac_header_compiler" >&6
13801 # Is the header present?
13802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13804 cat >conftest.$ac_ext <<_ACEOF
13805 #line $LINENO "configure"
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811 #include <$ac_header>
13813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } >/dev/null; then
13821 if test -s conftest.err; then
13822 ac_cpp_err=$ac_c_preproc_warn_flag
13829 if test -z "$ac_cpp_err"; then
13830 ac_header_preproc=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_header_preproc=no
13837 rm -f conftest.err conftest.$ac_ext
13838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6
13841 # So? What about this header?
13842 case $ac_header_compiler:$ac_header_preproc in
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13850 ## ------------------------------------ ##
13851 ## Report this to bug-autoconf@gnu.org. ##
13852 ## ------------------------------------ ##
13855 sed "s/^/$as_me: WARNING: /" >&2
13858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13866 ## ------------------------------------ ##
13867 ## Report this to bug-autoconf@gnu.org. ##
13868 ## ------------------------------------ ##
13871 sed "s/^/$as_me: WARNING: /" >&2
13874 echo "$as_me:$LINENO: checking for $ac_header" >&5
13875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 eval "$as_ac_Header=$ac_header_preproc"
13881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886 cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 if test $ac_cv_header_krb5_h = yes ; then
13897 for ac_header in heim_err.h
13899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13901 echo "$as_me:$LINENO: checking for $ac_header" >&5
13902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13909 # Is the header compilable?
13910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13920 #include <$ac_header>
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_header_compiler=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_header_compiler=no
13941 rm -f conftest.$ac_objext conftest.$ac_ext
13942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13943 echo "${ECHO_T}$ac_header_compiler" >&6
13945 # Is the header present?
13946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line $LINENO "configure"
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <$ac_header>
13957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } >/dev/null; then
13965 if test -s conftest.err; then
13966 ac_cpp_err=$ac_c_preproc_warn_flag
13973 if test -z "$ac_cpp_err"; then
13974 ac_header_preproc=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_preproc=no
13981 rm -f conftest.err conftest.$ac_ext
13982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13983 echo "${ECHO_T}$ac_header_preproc" >&6
13985 # So? What about this header?
13986 case $ac_header_compiler:$ac_header_preproc in
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13994 ## ------------------------------------ ##
13995 ## Report this to bug-autoconf@gnu.org. ##
13996 ## ------------------------------------ ##
13999 sed "s/^/$as_me: WARNING: /" >&2
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14010 ## ------------------------------------ ##
14011 ## Report this to bug-autoconf@gnu.org. ##
14012 ## ------------------------------------ ##
14015 sed "s/^/$as_me: WARNING: /" >&2
14018 echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 eval "$as_ac_Header=$ac_header_preproc"
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14030 cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14038 if test $ac_cv_header_heim_err_h = yes ; then
14044 if test $krb5_impl = mit; then
14045 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
14046 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
14047 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lk5crypto $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14071 (eval $ac_link) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_cv_lib_k5crypto_main=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_cv_lib_k5crypto_main=no
14088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
14092 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
14093 if test $ac_cv_lib_k5crypto_main = yes; then
14094 krb5crypto=k5crypto
14100 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
14101 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
14102 if test "${ac_cv_lib_krb5_main+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
14107 cat >conftest.$ac_ext <<_ACEOF
14108 #line $LINENO "configure"
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14126 (eval $ac_link) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_lib_krb5_main=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_cv_lib_krb5_main=no
14143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14146 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
14147 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
14148 if test $ac_cv_lib_krb5_main = yes; then
14150 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
14156 elif test $krb5_impl = heimdal; then
14157 echo "$as_me:$LINENO: checking for main in -ldes" >&5
14158 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
14159 if test "${ac_cv_lib_des_main+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 ac_check_lib_save_LIBS=$LIBS
14164 cat >conftest.$ac_ext <<_ACEOF
14165 #line $LINENO "configure"
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_lib_des_main=yes
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 ac_cv_lib_des_main=no
14200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14203 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
14204 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
14205 if test $ac_cv_lib_des_main = yes; then
14212 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
14213 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
14214 if test "${ac_cv_lib_krb5_main+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -s conftest$ac_exeext'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_lib_krb5_main=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_cv_lib_krb5_main=no
14255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14256 LIBS=$ac_check_lib_save_LIBS
14258 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
14259 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
14260 if test $ac_cv_lib_krb5_main = yes; then
14262 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
14269 cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_HEIMDAL_KERBEROS 1
14276 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
14277 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
14280 if test $have_krb5 = yes ; then
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_KRB5 1
14289 if test $ol_enable_kpasswd != no ; then
14290 ol_link_kpasswd=yes;
14293 if test $ol_with_kerberos = k5only ; then
14294 ol_with_kerberos=found
14297 elif test $ol_with_kerberos != auto ; then
14298 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
14299 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
14300 { (exit 1); exit 1; }; }
14306 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
14307 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
14311 for ac_header in kerberosIV/krb.h kerberosIV/des.h
14313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14315 echo "$as_me:$LINENO: checking for $ac_header" >&5
14316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14323 # Is the header compilable?
14324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 $ac_includes_default
14334 #include <$ac_header>
14336 rm -f conftest.$ac_objext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338 (eval $ac_compile) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_header_compiler=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_header_compiler=no
14355 rm -f conftest.$ac_objext conftest.$ac_ext
14356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14357 echo "${ECHO_T}$ac_header_compiler" >&6
14359 # Is the header present?
14360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 #include <$ac_header>
14371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null; then
14379 if test -s conftest.err; then
14380 ac_cpp_err=$ac_c_preproc_warn_flag
14387 if test -z "$ac_cpp_err"; then
14388 ac_header_preproc=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_header_preproc=no
14395 rm -f conftest.err conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14397 echo "${ECHO_T}$ac_header_preproc" >&6
14399 # So? What about this header?
14400 case $ac_header_compiler:$ac_header_preproc in
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14408 ## ------------------------------------ ##
14409 ## Report this to bug-autoconf@gnu.org. ##
14410 ## ------------------------------------ ##
14413 sed "s/^/$as_me: WARNING: /" >&2
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14424 ## ------------------------------------ ##
14425 ## Report this to bug-autoconf@gnu.org. ##
14426 ## ------------------------------------ ##
14429 sed "s/^/$as_me: WARNING: /" >&2
14432 echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 eval "$as_ac_Header=$ac_header_preproc"
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14444 cat >>confdefs.h <<_ACEOF
14445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14453 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
14454 if test $krb5_impl = mit; then
14455 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14456 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14457 if test "${ac_cv_lib_krb4_main+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 ac_check_lib_save_LIBS=$LIBS
14461 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
14462 cat >conftest.$ac_ext <<_ACEOF
14463 #line $LINENO "configure"
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481 (eval $ac_link) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest$ac_exeext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_cv_lib_krb4_main=yes
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_cv_lib_krb4_main=no
14498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14502 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14503 if test $ac_cv_lib_krb4_main = yes; then
14505 KRB4_LIBS="-lkrb4 -ldes425"
14511 elif test $krb5_impl = heimdal; then
14512 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14513 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14514 if test "${ac_cv_lib_krb4_main+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 ac_check_lib_save_LIBS=$LIBS
14518 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
14519 cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14538 (eval $ac_link) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_krb4_main=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_cv_lib_krb4_main=no
14555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14558 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14559 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14560 if test $ac_cv_lib_krb4_main = yes; then
14570 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
14571 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
14574 if test $have_k425 = yes ; then
14575 ol_with_kerberos=found
14579 cat >>confdefs.h <<\_ACEOF
14580 #define HAVE_KRB425 1
14584 cat >>confdefs.h <<\_ACEOF
14585 #define HAVE_KRB4 1
14589 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
14590 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
14591 if test "${ol_cv_var_des_debug+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
14597 cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14605 #include <kerberosIV/krb.h>
14606 #include <kerberosIV/des.h>
14607 extern int des_debug;
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14621 (eval $ac_link) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -s conftest$ac_exeext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ol_cv_var_des_debug=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ol_cv_var_des_debug=no
14638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14642 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
14643 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
14645 if test $ol_cv_var_des_debug = yes ; then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_DES_DEBUG 1
14658 if test $ol_link_krb5 = yes ; then
14659 ol_with_kerberos=found
14662 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
14663 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
14668 for ac_header in krb.h des.h krb-archaeology.h
14670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672 echo "$as_me:$LINENO: checking for $ac_header" >&5
14673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14680 # Is the header compilable?
14681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14683 cat >conftest.$ac_ext <<_ACEOF
14684 #line $LINENO "configure"
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <$ac_header>
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_header_compiler=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_header_compiler=no
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6
14716 # Is the header present?
14717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <$ac_header>
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null; then
14736 if test -s conftest.err; then
14737 ac_cpp_err=$ac_c_preproc_warn_flag
14744 if test -z "$ac_cpp_err"; then
14745 ac_header_preproc=yes
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_header_preproc=no
14752 rm -f conftest.err conftest.$ac_ext
14753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 echo "${ECHO_T}$ac_header_preproc" >&6
14756 # So? What about this header?
14757 case $ac_header_compiler:$ac_header_preproc in
14759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14765 ## ------------------------------------ ##
14766 ## Report this to bug-autoconf@gnu.org. ##
14767 ## ------------------------------------ ##
14770 sed "s/^/$as_me: WARNING: /" >&2
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14781 ## ------------------------------------ ##
14782 ## Report this to bug-autoconf@gnu.org. ##
14783 ## ------------------------------------ ##
14786 sed "s/^/$as_me: WARNING: /" >&2
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 eval "$as_ac_Header=$ac_header_preproc"
14796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14810 if test $ac_cv_header_krb_h = yes ; then
14811 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14812 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14813 if test "${ac_cv_lib_krb_main+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lkrb -ldes $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837 (eval $ac_link) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -s conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_lib_krb_main=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_cv_lib_krb_main=no
14854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14855 LIBS=$ac_check_lib_save_LIBS
14857 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
14858 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
14859 if test $ac_cv_lib_krb_main = yes; then
14866 if test $have_k4 = yes ; then
14867 ol_with_kerberos=found
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_KRB4 1
14876 KRB4_LIBS="-lkrb -ldes"
14878 if test $ac_cv_header_krb_archaeology_h = yes ; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_KTH_KERBEROS 1
14889 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
14890 ol_link_kpasswd=yes
14893 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
14896 elif test $ol_enable_kbind = yes ; then
14897 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
14898 echo "$as_me: error: Kerberos IV detection failed" >&2;}
14899 { (exit 1); exit 1; }; }
14902 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_KERBEROS 1
14909 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
14910 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
14911 echo "$as_me: error: Kerberos detection failed" >&2;}
14912 { (exit 1); exit 1; }; }
14916 if test $ol_with_tls != no ; then
14919 for ac_header in openssl/ssl.h ssl.h
14921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14923 echo "$as_me:$LINENO: checking for $ac_header" >&5
14924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931 # Is the header compilable?
14932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14935 #line $LINENO "configure"
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 $ac_includes_default
14942 #include <$ac_header>
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_header_compiler=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_header_compiler=no
14963 rm -f conftest.$ac_objext conftest.$ac_ext
14964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14965 echo "${ECHO_T}$ac_header_compiler" >&6
14967 # Is the header present?
14968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14970 cat >conftest.$ac_ext <<_ACEOF
14971 #line $LINENO "configure"
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #include <$ac_header>
14979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } >/dev/null; then
14987 if test -s conftest.err; then
14988 ac_cpp_err=$ac_c_preproc_warn_flag
14995 if test -z "$ac_cpp_err"; then
14996 ac_header_preproc=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_header_preproc=no
15003 rm -f conftest.err conftest.$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15005 echo "${ECHO_T}$ac_header_preproc" >&6
15007 # So? What about this header?
15008 case $ac_header_compiler:$ac_header_preproc in
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15016 ## ------------------------------------ ##
15017 ## Report this to bug-autoconf@gnu.org. ##
15018 ## ------------------------------------ ##
15021 sed "s/^/$as_me: WARNING: /" >&2
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15032 ## ------------------------------------ ##
15033 ## Report this to bug-autoconf@gnu.org. ##
15034 ## ------------------------------------ ##
15037 sed "s/^/$as_me: WARNING: /" >&2
15040 echo "$as_me:$LINENO: checking for $ac_header" >&5
15041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 eval "$as_ac_Header=$ac_header_preproc"
15047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15052 cat >>confdefs.h <<_ACEOF
15053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15061 if test $ac_cv_header_openssl_ssl_h = yes \
15062 -o $ac_cv_header_ssl_h = yes ; then
15063 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
15064 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
15065 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 ac_check_lib_save_LIBS=$LIBS
15069 LIBS="-lssl -lcrypto $LIBS"
15070 cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15078 /* Override any gcc2 internal prototype to avoid an error. */
15082 /* We use char because int might match the return type of a gcc2
15083 builtin and then its argument prototype would still apply. */
15084 char SSLeay_add_ssl_algorithms ();
15088 SSLeay_add_ssl_algorithms ();
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
15112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_check_lib_save_LIBS
15115 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
15116 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
15117 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
15125 if test $have_ssleay = no ; then
15126 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
15127 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
15128 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lssl -lcrypto $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15141 /* Override any gcc2 internal prototype to avoid an error. */
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15147 char SSL_library_init ();
15151 SSL_library_init ();
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15158 (eval $ac_link) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -s conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_lib_ssl_SSL_library_init=yes
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_cv_lib_ssl_SSL_library_init=no
15175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15176 LIBS=$ac_check_lib_save_LIBS
15178 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15179 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
15180 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
15189 if test $have_ssleay = no ; then
15190 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
15191 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
15192 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 ac_check_lib_save_LIBS=$LIBS
15196 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15197 cat >conftest.$ac_ext <<_ACEOF
15198 #line $LINENO "configure"
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any gcc2 internal prototype to avoid an error. */
15209 /* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211 char ssl3_accept ();
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222 (eval $ac_link) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -s conftest$ac_exeext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_lib_ssl_ssl3_accept=yes
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_cv_lib_ssl_ssl3_accept=no
15239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15240 LIBS=$ac_check_lib_save_LIBS
15242 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15243 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
15244 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
15253 if test $have_ssleay = yes ; then
15258 cat >>confdefs.h <<\_ACEOF
15259 #define HAVE_SSLEAY 1
15263 if test $need_rsaref = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_RSAREF 1
15270 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15272 TLS_LIBS="-lssl -lcrypto"
15278 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
15279 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15282 if test $ol_link_tls = yes ; then
15284 cat >>confdefs.h <<\_ACEOF
15289 elif test $ol_with_tls = auto ; then
15290 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
15291 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
15293 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15295 elif test $ol_with_tls != no ; then
15296 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
15297 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
15298 { (exit 1); exit 1; }; }
15301 if test $ol_enable_lmpasswd != no; then
15302 if test $ol_link_tls != yes ; then
15303 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
15304 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
15305 { (exit 1); exit 1; }; }
15309 cat >>confdefs.h <<\_ACEOF
15310 #define SLAPD_LMHASH 1
15317 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15318 -o $ol_with_threads = nt ; then
15321 echo "$as_me:$LINENO: checking for _beginthread" >&5
15322 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
15323 if test "${ac_cv_func__beginthread+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 cat >conftest.$ac_ext <<_ACEOF
15327 #line $LINENO "configure"
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char _beginthread (); below.
15335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15336 <limits.h> exists even on freestanding compilers. */
15338 # include <limits.h>
15340 # include <assert.h>
15342 /* Override any gcc2 internal prototype to avoid an error. */
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15349 char _beginthread ();
15350 /* The GNU C library defines this for functions which it implements
15351 to always fail with ENOSYS. Some functions are actually named
15352 something starting with __ and the normal name is an alias. */
15353 #if defined (__stub__beginthread) || defined (__stub____beginthread)
15356 char (*f) () = _beginthread;
15365 return f != _beginthread;
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372 (eval $ac_link) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -s conftest$ac_exeext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_func__beginthread=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_cv_func__beginthread=no
15389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
15392 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
15395 if test $ac_cv_func__beginthread = yes ; then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_NT_THREADS 1
15401 ol_cv_nt_threads=yes
15405 if test "$ol_cv_nt_threads" = yes ; then
15407 ol_with_threads=found
15408 ol_with_yielding_select=yes
15411 cat >>confdefs.h <<\_ACEOF
15412 #define HAVE_NT_SERVICE_MANAGER 1
15416 cat >>confdefs.h <<\_ACEOF
15417 #define HAVE_NT_EVENT_LOG 1
15422 if test $ol_with_threads = nt ; then
15423 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
15424 echo "$as_me: error: could not locate NT Threads" >&2;}
15425 { (exit 1); exit 1; }; }
15429 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15430 -o $ol_with_threads = posix ; then
15433 for ac_header in pthread.h
15435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo "$as_me:$LINENO: checking for $ac_header" >&5
15438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15445 # Is the header compilable?
15446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 $ac_includes_default
15456 #include <$ac_header>
15458 rm -f conftest.$ac_objext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15460 (eval $ac_compile) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 ac_header_compiler=yes
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_header_compiler=no
15477 rm -f conftest.$ac_objext conftest.$ac_ext
15478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15479 echo "${ECHO_T}$ac_header_compiler" >&6
15481 # Is the header present?
15482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15484 cat >conftest.$ac_ext <<_ACEOF
15485 #line $LINENO "configure"
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 #include <$ac_header>
15493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } >/dev/null; then
15501 if test -s conftest.err; then
15502 ac_cpp_err=$ac_c_preproc_warn_flag
15509 if test -z "$ac_cpp_err"; then
15510 ac_header_preproc=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_header_preproc=no
15517 rm -f conftest.err conftest.$ac_ext
15518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15519 echo "${ECHO_T}$ac_header_preproc" >&6
15521 # So? What about this header?
15522 case $ac_header_compiler:$ac_header_preproc in
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15530 ## ------------------------------------ ##
15531 ## Report this to bug-autoconf@gnu.org. ##
15532 ## ------------------------------------ ##
15535 sed "s/^/$as_me: WARNING: /" >&2
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15546 ## ------------------------------------ ##
15547 ## Report this to bug-autoconf@gnu.org. ##
15548 ## ------------------------------------ ##
15551 sed "s/^/$as_me: WARNING: /" >&2
15554 echo "$as_me:$LINENO: checking for $ac_header" >&5
15555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 eval "$as_ac_Header=$ac_header_preproc"
15561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15566 cat >>confdefs.h <<_ACEOF
15567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15575 if test $ac_cv_header_pthread_h = yes ; then
15576 echo "$as_me:$LINENO: checking POSIX thread version" >&5
15577 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
15578 if test "${ol_cv_pthread_version+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15590 # include <pthread.h>
15596 int i = PTHREAD_CREATE_JOINABLE;
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15615 cat >conftest.$ac_ext <<_ACEOF
15616 #line $LINENO "configure"
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 #include <pthread.h>
15625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15626 $EGREP "pthread_detach" >/dev/null 2>&1; then
15627 ol_cv_pthread_version=10
15629 ol_cv_pthread_version=8
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15646 # include <pthread.h>
15647 # ifdef PTHREAD_CREATE_UNDETACHED
15652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15653 $EGREP "draft7" >/dev/null 2>&1; then
15654 ol_cv_pthread_version=7
15657 cat >conftest.$ac_ext <<_ACEOF
15658 #line $LINENO "configure"
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <pthread.h>
15667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15668 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
15669 ol_cv_pthread_version=6
15672 cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15680 # include <pthread.h>
15681 #ifdef PTHREAD_MUTEX_INITIALIZER
15686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15687 $EGREP "draft5" >/dev/null 2>&1; then
15688 ol_cv_pthread_version=5
15690 ol_cv_pthread_version=4
15701 rm -f conftest.$ac_objext conftest.$ac_ext
15704 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
15705 echo "${ECHO_T}$ol_cv_pthread_version" >&6
15708 if test $ol_cv_pthread_version != 0 ; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define HAVE_PTHREADS $ol_cv_pthread_version
15715 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
15716 echo "$as_me: error: unknown pthread version" >&2;}
15717 { (exit 1); exit 1; }; }
15720 # consider threads found
15721 ol_with_threads=found
15724 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
15725 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
15726 if test "${ol_cv_header_linux_threads+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 #include <pthread.h>
15738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15739 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15740 ol_cv_header_linux_threads=yes
15742 ol_cv_header_linux_threads=no
15748 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
15749 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
15750 if test $ol_cv_header_linux_threads = yes; then
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_LINUX_THREADS 1
15759 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
15760 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
15761 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 cat >conftest.$ac_ext <<_ACEOF
15765 #line $LINENO "configure"
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <pthread.h>
15772 #ifdef _POSIX_THREAD_IS_GNU_PTH
15777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15778 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
15779 ol_cv_header_gnu_pth_pthread_h=yes
15781 ol_cv_header_gnu_pth_pthread_h=no
15787 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
15788 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
15791 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
15793 for ac_header in sched.h
15795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15797 echo "$as_me:$LINENO: checking for $ac_header" >&5
15798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15805 # Is the header compilable?
15806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15808 cat >conftest.$ac_ext <<_ACEOF
15809 #line $LINENO "configure"
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15816 #include <$ac_header>
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 ac_header_compiler=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_compiler=no
15837 rm -f conftest.$ac_objext conftest.$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839 echo "${ECHO_T}$ac_header_compiler" >&6
15841 # Is the header present?
15842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15844 cat >conftest.$ac_ext <<_ACEOF
15845 #line $LINENO "configure"
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <$ac_header>
15853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15856 grep -v '^ *+' conftest.er1 >conftest.err
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } >/dev/null; then
15861 if test -s conftest.err; then
15862 ac_cpp_err=$ac_c_preproc_warn_flag
15869 if test -z "$ac_cpp_err"; then
15870 ac_header_preproc=yes
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_header_preproc=no
15877 rm -f conftest.err conftest.$ac_ext
15878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879 echo "${ECHO_T}$ac_header_preproc" >&6
15881 # So? What about this header?
15882 case $ac_header_compiler:$ac_header_preproc in
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890 ## ------------------------------------ ##
15891 ## Report this to bug-autoconf@gnu.org. ##
15892 ## ------------------------------------ ##
15895 sed "s/^/$as_me: WARNING: /" >&2
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15906 ## ------------------------------------ ##
15907 ## Report this to bug-autoconf@gnu.org. ##
15908 ## ------------------------------------ ##
15911 sed "s/^/$as_me: WARNING: /" >&2
15914 echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 eval "$as_ac_Header=$ac_header_preproc"
15921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15926 cat >>confdefs.h <<_ACEOF
15927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15937 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
15938 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
15939 if test "${ol_cv_pthread_create+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 if test "$cross_compiling" = yes; then
15944 cat >conftest.$ac_ext <<_ACEOF
15945 #line $LINENO "configure"
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 /* pthread test headers */
15952 #include <pthread.h>
15953 #if HAVE_PTHREADS < 7
15957 #define NULL (void*)0
15960 static void *task(p)
15963 return (void *) (p == NULL);
15970 /* pthread test function */
15971 #ifndef PTHREAD_CREATE_DETACHED
15972 #define PTHREAD_CREATE_DETACHED 1
15976 int detach = PTHREAD_CREATE_DETACHED;
15978 #if HAVE_PTHREADS > 4
15979 /* Final pthreads */
15980 pthread_attr_t attr;
15982 status = pthread_attr_init(&attr);
15983 if( status ) return status;
15985 #if HAVE_PTHREADS < 7
15986 status = pthread_attr_setdetachstate(&attr, &detach);
15987 if( status < 0 ) status = errno;
15989 status = pthread_attr_setdetachstate(&attr, detach);
15991 if( status ) return status;
15992 status = pthread_create( &t, &attr, task, NULL );
15993 #if HAVE_PTHREADS < 7
15994 if( status < 0 ) status = errno;
15996 if( status ) return status;
15998 /* Draft 4 pthreads */
15999 status = pthread_create( &t, pthread_attr_default, task, NULL );
16000 if( status ) return errno;
16002 /* give thread a chance to complete */
16003 /* it should remain joinable and hence detachable */
16006 status = pthread_detach( &t );
16007 if( status ) return errno;
16010 #ifdef HAVE_LINUX_THREADS
16011 pthread_kill_other_threads_np();
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022 (eval $ac_link) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16032 ol_cv_pthread_create=yes
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ol_cv_pthread_create=no
16039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 cat >conftest.$ac_ext <<_ACEOF
16042 #line $LINENO "configure"
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 /* pthread test headers */
16049 #include <pthread.h>
16050 #if HAVE_PTHREADS < 7
16054 #define NULL (void*)0
16057 static void *task(p)
16060 return (void *) (p == NULL);
16064 int main(argc, argv)
16069 /* pthread test function */
16070 #ifndef PTHREAD_CREATE_DETACHED
16071 #define PTHREAD_CREATE_DETACHED 1
16075 int detach = PTHREAD_CREATE_DETACHED;
16077 #if HAVE_PTHREADS > 4
16078 /* Final pthreads */
16079 pthread_attr_t attr;
16081 status = pthread_attr_init(&attr);
16082 if( status ) return status;
16084 #if HAVE_PTHREADS < 7
16085 status = pthread_attr_setdetachstate(&attr, &detach);
16086 if( status < 0 ) status = errno;
16088 status = pthread_attr_setdetachstate(&attr, detach);
16090 if( status ) return status;
16091 status = pthread_create( &t, &attr, task, NULL );
16092 #if HAVE_PTHREADS < 7
16093 if( status < 0 ) status = errno;
16095 if( status ) return status;
16097 /* Draft 4 pthreads */
16098 status = pthread_create( &t, pthread_attr_default, task, NULL );
16099 if( status ) return errno;
16101 /* give thread a chance to complete */
16102 /* it should remain joinable and hence detachable */
16105 status = pthread_detach( &t );
16106 if( status ) return errno;
16109 #ifdef HAVE_LINUX_THREADS
16110 pthread_kill_other_threads_np();
16118 rm -f conftest$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ol_cv_pthread_create=yes
16131 echo "$as_me: program exited with status $ac_status" >&5
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ( exit $ac_status )
16136 ol_cv_pthread_create=no
16138 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16141 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
16142 echo "${ECHO_T}$ol_cv_pthread_create" >&6
16144 if test $ol_cv_pthread_create != no ; then
16145 ol_link_threads=posix
16146 ol_link_pthreads=""
16149 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16150 if test "$ol_link_threads" = no ; then
16152 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
16153 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
16154 if test "${ol_cv_pthread_kthread+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 LIBS="-kthread $LIBS"
16162 if test "$cross_compiling" = yes; then
16163 cat >conftest.$ac_ext <<_ACEOF
16164 #line $LINENO "configure"
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 /* pthread test headers */
16171 #include <pthread.h>
16172 #if HAVE_PTHREADS < 7
16176 #define NULL (void*)0
16179 static void *task(p)
16182 return (void *) (p == NULL);
16189 /* pthread test function */
16190 #ifndef PTHREAD_CREATE_DETACHED
16191 #define PTHREAD_CREATE_DETACHED 1
16195 int detach = PTHREAD_CREATE_DETACHED;
16197 #if HAVE_PTHREADS > 4
16198 /* Final pthreads */
16199 pthread_attr_t attr;
16201 status = pthread_attr_init(&attr);
16202 if( status ) return status;
16204 #if HAVE_PTHREADS < 7
16205 status = pthread_attr_setdetachstate(&attr, &detach);
16206 if( status < 0 ) status = errno;
16208 status = pthread_attr_setdetachstate(&attr, detach);
16210 if( status ) return status;
16211 status = pthread_create( &t, &attr, task, NULL );
16212 #if HAVE_PTHREADS < 7
16213 if( status < 0 ) status = errno;
16215 if( status ) return status;
16217 /* Draft 4 pthreads */
16218 status = pthread_create( &t, pthread_attr_default, task, NULL );
16219 if( status ) return errno;
16221 /* give thread a chance to complete */
16222 /* it should remain joinable and hence detachable */
16225 status = pthread_detach( &t );
16226 if( status ) return errno;
16229 #ifdef HAVE_LINUX_THREADS
16230 pthread_kill_other_threads_np();
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -s conftest$ac_exeext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ol_cv_pthread_kthread=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ol_cv_pthread_kthread=no
16258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16260 cat >conftest.$ac_ext <<_ACEOF
16261 #line $LINENO "configure"
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 /* pthread test headers */
16268 #include <pthread.h>
16269 #if HAVE_PTHREADS < 7
16273 #define NULL (void*)0
16276 static void *task(p)
16279 return (void *) (p == NULL);
16283 int main(argc, argv)
16288 /* pthread test function */
16289 #ifndef PTHREAD_CREATE_DETACHED
16290 #define PTHREAD_CREATE_DETACHED 1
16294 int detach = PTHREAD_CREATE_DETACHED;
16296 #if HAVE_PTHREADS > 4
16297 /* Final pthreads */
16298 pthread_attr_t attr;
16300 status = pthread_attr_init(&attr);
16301 if( status ) return status;
16303 #if HAVE_PTHREADS < 7
16304 status = pthread_attr_setdetachstate(&attr, &detach);
16305 if( status < 0 ) status = errno;
16307 status = pthread_attr_setdetachstate(&attr, detach);
16309 if( status ) return status;
16310 status = pthread_create( &t, &attr, task, NULL );
16311 #if HAVE_PTHREADS < 7
16312 if( status < 0 ) status = errno;
16314 if( status ) return status;
16316 /* Draft 4 pthreads */
16317 status = pthread_create( &t, pthread_attr_default, task, NULL );
16318 if( status ) return errno;
16320 /* give thread a chance to complete */
16321 /* it should remain joinable and hence detachable */
16324 status = pthread_detach( &t );
16325 if( status ) return errno;
16328 #ifdef HAVE_LINUX_THREADS
16329 pthread_kill_other_threads_np();
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ol_cv_pthread_kthread=yes
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ( exit $ac_status )
16355 ol_cv_pthread_kthread=no
16357 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16364 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
16365 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
16367 if test $ol_cv_pthread_kthread = yes ; then
16368 ol_link_pthreads="-kthread"
16369 ol_link_threads=posix
16373 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16374 if test "$ol_link_threads" = no ; then
16376 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
16377 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
16378 if test "${ol_cv_pthread_pthread+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 LIBS="-pthread $LIBS"
16386 if test "$cross_compiling" = yes; then
16387 cat >conftest.$ac_ext <<_ACEOF
16388 #line $LINENO "configure"
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 /* pthread test headers */
16395 #include <pthread.h>
16396 #if HAVE_PTHREADS < 7
16400 #define NULL (void*)0
16403 static void *task(p)
16406 return (void *) (p == NULL);
16413 /* pthread test function */
16414 #ifndef PTHREAD_CREATE_DETACHED
16415 #define PTHREAD_CREATE_DETACHED 1
16419 int detach = PTHREAD_CREATE_DETACHED;
16421 #if HAVE_PTHREADS > 4
16422 /* Final pthreads */
16423 pthread_attr_t attr;
16425 status = pthread_attr_init(&attr);
16426 if( status ) return status;
16428 #if HAVE_PTHREADS < 7
16429 status = pthread_attr_setdetachstate(&attr, &detach);
16430 if( status < 0 ) status = errno;
16432 status = pthread_attr_setdetachstate(&attr, detach);
16434 if( status ) return status;
16435 status = pthread_create( &t, &attr, task, NULL );
16436 #if HAVE_PTHREADS < 7
16437 if( status < 0 ) status = errno;
16439 if( status ) return status;
16441 /* Draft 4 pthreads */
16442 status = pthread_create( &t, pthread_attr_default, task, NULL );
16443 if( status ) return errno;
16445 /* give thread a chance to complete */
16446 /* it should remain joinable and hence detachable */
16449 status = pthread_detach( &t );
16450 if( status ) return errno;
16453 #ifdef HAVE_LINUX_THREADS
16454 pthread_kill_other_threads_np();
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -s conftest$ac_exeext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ol_cv_pthread_pthread=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ol_cv_pthread_pthread=no
16482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16484 cat >conftest.$ac_ext <<_ACEOF
16485 #line $LINENO "configure"
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 /* pthread test headers */
16492 #include <pthread.h>
16493 #if HAVE_PTHREADS < 7
16497 #define NULL (void*)0
16500 static void *task(p)
16503 return (void *) (p == NULL);
16507 int main(argc, argv)
16512 /* pthread test function */
16513 #ifndef PTHREAD_CREATE_DETACHED
16514 #define PTHREAD_CREATE_DETACHED 1
16518 int detach = PTHREAD_CREATE_DETACHED;
16520 #if HAVE_PTHREADS > 4
16521 /* Final pthreads */
16522 pthread_attr_t attr;
16524 status = pthread_attr_init(&attr);
16525 if( status ) return status;
16527 #if HAVE_PTHREADS < 7
16528 status = pthread_attr_setdetachstate(&attr, &detach);
16529 if( status < 0 ) status = errno;
16531 status = pthread_attr_setdetachstate(&attr, detach);
16533 if( status ) return status;
16534 status = pthread_create( &t, &attr, task, NULL );
16535 #if HAVE_PTHREADS < 7
16536 if( status < 0 ) status = errno;
16538 if( status ) return status;
16540 /* Draft 4 pthreads */
16541 status = pthread_create( &t, pthread_attr_default, task, NULL );
16542 if( status ) return errno;
16544 /* give thread a chance to complete */
16545 /* it should remain joinable and hence detachable */
16548 status = pthread_detach( &t );
16549 if( status ) return errno;
16552 #ifdef HAVE_LINUX_THREADS
16553 pthread_kill_other_threads_np();
16561 rm -f conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ol_cv_pthread_pthread=yes
16574 echo "$as_me: program exited with status $ac_status" >&5
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ( exit $ac_status )
16579 ol_cv_pthread_pthread=no
16581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16588 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
16589 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
16591 if test $ol_cv_pthread_pthread = yes ; then
16592 ol_link_pthreads="-pthread"
16593 ol_link_threads=posix
16597 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16598 if test "$ol_link_threads" = no ; then
16600 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
16601 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
16602 if test "${ol_cv_pthread_pthreads+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 LIBS="-pthreads $LIBS"
16610 if test "$cross_compiling" = yes; then
16611 cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 /* pthread test headers */
16619 #include <pthread.h>
16620 #if HAVE_PTHREADS < 7
16624 #define NULL (void*)0
16627 static void *task(p)
16630 return (void *) (p == NULL);
16637 /* pthread test function */
16638 #ifndef PTHREAD_CREATE_DETACHED
16639 #define PTHREAD_CREATE_DETACHED 1
16643 int detach = PTHREAD_CREATE_DETACHED;
16645 #if HAVE_PTHREADS > 4
16646 /* Final pthreads */
16647 pthread_attr_t attr;
16649 status = pthread_attr_init(&attr);
16650 if( status ) return status;
16652 #if HAVE_PTHREADS < 7
16653 status = pthread_attr_setdetachstate(&attr, &detach);
16654 if( status < 0 ) status = errno;
16656 status = pthread_attr_setdetachstate(&attr, detach);
16658 if( status ) return status;
16659 status = pthread_create( &t, &attr, task, NULL );
16660 #if HAVE_PTHREADS < 7
16661 if( status < 0 ) status = errno;
16663 if( status ) return status;
16665 /* Draft 4 pthreads */
16666 status = pthread_create( &t, pthread_attr_default, task, NULL );
16667 if( status ) return errno;
16669 /* give thread a chance to complete */
16670 /* it should remain joinable and hence detachable */
16673 status = pthread_detach( &t );
16674 if( status ) return errno;
16677 #ifdef HAVE_LINUX_THREADS
16678 pthread_kill_other_threads_np();
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16689 (eval $ac_link) 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -s conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ol_cv_pthread_pthreads=yes
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ol_cv_pthread_pthreads=no
16706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 /* pthread test headers */
16716 #include <pthread.h>
16717 #if HAVE_PTHREADS < 7
16721 #define NULL (void*)0
16724 static void *task(p)
16727 return (void *) (p == NULL);
16731 int main(argc, argv)
16736 /* pthread test function */
16737 #ifndef PTHREAD_CREATE_DETACHED
16738 #define PTHREAD_CREATE_DETACHED 1
16742 int detach = PTHREAD_CREATE_DETACHED;
16744 #if HAVE_PTHREADS > 4
16745 /* Final pthreads */
16746 pthread_attr_t attr;
16748 status = pthread_attr_init(&attr);
16749 if( status ) return status;
16751 #if HAVE_PTHREADS < 7
16752 status = pthread_attr_setdetachstate(&attr, &detach);
16753 if( status < 0 ) status = errno;
16755 status = pthread_attr_setdetachstate(&attr, detach);
16757 if( status ) return status;
16758 status = pthread_create( &t, &attr, task, NULL );
16759 #if HAVE_PTHREADS < 7
16760 if( status < 0 ) status = errno;
16762 if( status ) return status;
16764 /* Draft 4 pthreads */
16765 status = pthread_create( &t, pthread_attr_default, task, NULL );
16766 if( status ) return errno;
16768 /* give thread a chance to complete */
16769 /* it should remain joinable and hence detachable */
16772 status = pthread_detach( &t );
16773 if( status ) return errno;
16776 #ifdef HAVE_LINUX_THREADS
16777 pthread_kill_other_threads_np();
16785 rm -f conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787 (eval $ac_link) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ol_cv_pthread_pthreads=yes
16798 echo "$as_me: program exited with status $ac_status" >&5
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16802 ( exit $ac_status )
16803 ol_cv_pthread_pthreads=no
16805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16812 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
16813 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
16815 if test $ol_cv_pthread_pthreads = yes ; then
16816 ol_link_pthreads="-pthreads"
16817 ol_link_threads=posix
16821 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16822 if test "$ol_link_threads" = no ; then
16824 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
16825 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
16826 if test "${ol_cv_pthread_mthreads+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 LIBS="-mthreads $LIBS"
16834 if test "$cross_compiling" = yes; then
16835 cat >conftest.$ac_ext <<_ACEOF
16836 #line $LINENO "configure"
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 /* pthread test headers */
16843 #include <pthread.h>
16844 #if HAVE_PTHREADS < 7
16848 #define NULL (void*)0
16851 static void *task(p)
16854 return (void *) (p == NULL);
16861 /* pthread test function */
16862 #ifndef PTHREAD_CREATE_DETACHED
16863 #define PTHREAD_CREATE_DETACHED 1
16867 int detach = PTHREAD_CREATE_DETACHED;
16869 #if HAVE_PTHREADS > 4
16870 /* Final pthreads */
16871 pthread_attr_t attr;
16873 status = pthread_attr_init(&attr);
16874 if( status ) return status;
16876 #if HAVE_PTHREADS < 7
16877 status = pthread_attr_setdetachstate(&attr, &detach);
16878 if( status < 0 ) status = errno;
16880 status = pthread_attr_setdetachstate(&attr, detach);
16882 if( status ) return status;
16883 status = pthread_create( &t, &attr, task, NULL );
16884 #if HAVE_PTHREADS < 7
16885 if( status < 0 ) status = errno;
16887 if( status ) return status;
16889 /* Draft 4 pthreads */
16890 status = pthread_create( &t, pthread_attr_default, task, NULL );
16891 if( status ) return errno;
16893 /* give thread a chance to complete */
16894 /* it should remain joinable and hence detachable */
16897 status = pthread_detach( &t );
16898 if( status ) return errno;
16901 #ifdef HAVE_LINUX_THREADS
16902 pthread_kill_other_threads_np();
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ol_cv_pthread_mthreads=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ol_cv_pthread_mthreads=no
16930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16932 cat >conftest.$ac_ext <<_ACEOF
16933 #line $LINENO "configure"
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16939 /* pthread test headers */
16940 #include <pthread.h>
16941 #if HAVE_PTHREADS < 7
16945 #define NULL (void*)0
16948 static void *task(p)
16951 return (void *) (p == NULL);
16955 int main(argc, argv)
16960 /* pthread test function */
16961 #ifndef PTHREAD_CREATE_DETACHED
16962 #define PTHREAD_CREATE_DETACHED 1
16966 int detach = PTHREAD_CREATE_DETACHED;
16968 #if HAVE_PTHREADS > 4
16969 /* Final pthreads */
16970 pthread_attr_t attr;
16972 status = pthread_attr_init(&attr);
16973 if( status ) return status;
16975 #if HAVE_PTHREADS < 7
16976 status = pthread_attr_setdetachstate(&attr, &detach);
16977 if( status < 0 ) status = errno;
16979 status = pthread_attr_setdetachstate(&attr, detach);
16981 if( status ) return status;
16982 status = pthread_create( &t, &attr, task, NULL );
16983 #if HAVE_PTHREADS < 7
16984 if( status < 0 ) status = errno;
16986 if( status ) return status;
16988 /* Draft 4 pthreads */
16989 status = pthread_create( &t, pthread_attr_default, task, NULL );
16990 if( status ) return errno;
16992 /* give thread a chance to complete */
16993 /* it should remain joinable and hence detachable */
16996 status = pthread_detach( &t );
16997 if( status ) return errno;
17000 #ifdef HAVE_LINUX_THREADS
17001 pthread_kill_other_threads_np();
17009 rm -f conftest$ac_exeext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17020 ol_cv_pthread_mthreads=yes
17022 echo "$as_me: program exited with status $ac_status" >&5
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ( exit $ac_status )
17027 ol_cv_pthread_mthreads=no
17029 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17036 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
17037 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
17039 if test $ol_cv_pthread_mthreads = yes ; then
17040 ol_link_pthreads="-mthreads"
17041 ol_link_threads=posix
17045 # Pthread try link: -thread (ol_cv_pthread_thread)
17046 if test "$ol_link_threads" = no ; then
17048 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
17049 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
17050 if test "${ol_cv_pthread_thread+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 LIBS="-thread $LIBS"
17058 if test "$cross_compiling" = yes; then
17059 cat >conftest.$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 /* pthread test headers */
17067 #include <pthread.h>
17068 #if HAVE_PTHREADS < 7
17072 #define NULL (void*)0
17075 static void *task(p)
17078 return (void *) (p == NULL);
17085 /* pthread test function */
17086 #ifndef PTHREAD_CREATE_DETACHED
17087 #define PTHREAD_CREATE_DETACHED 1
17091 int detach = PTHREAD_CREATE_DETACHED;
17093 #if HAVE_PTHREADS > 4
17094 /* Final pthreads */
17095 pthread_attr_t attr;
17097 status = pthread_attr_init(&attr);
17098 if( status ) return status;
17100 #if HAVE_PTHREADS < 7
17101 status = pthread_attr_setdetachstate(&attr, &detach);
17102 if( status < 0 ) status = errno;
17104 status = pthread_attr_setdetachstate(&attr, detach);
17106 if( status ) return status;
17107 status = pthread_create( &t, &attr, task, NULL );
17108 #if HAVE_PTHREADS < 7
17109 if( status < 0 ) status = errno;
17111 if( status ) return status;
17113 /* Draft 4 pthreads */
17114 status = pthread_create( &t, pthread_attr_default, task, NULL );
17115 if( status ) return errno;
17117 /* give thread a chance to complete */
17118 /* it should remain joinable and hence detachable */
17121 status = pthread_detach( &t );
17122 if( status ) return errno;
17125 #ifdef HAVE_LINUX_THREADS
17126 pthread_kill_other_threads_np();
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ol_cv_pthread_thread=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ol_cv_pthread_thread=no
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 cat >conftest.$ac_ext <<_ACEOF
17157 #line $LINENO "configure"
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 /* pthread test headers */
17164 #include <pthread.h>
17165 #if HAVE_PTHREADS < 7
17169 #define NULL (void*)0
17172 static void *task(p)
17175 return (void *) (p == NULL);
17179 int main(argc, argv)
17184 /* pthread test function */
17185 #ifndef PTHREAD_CREATE_DETACHED
17186 #define PTHREAD_CREATE_DETACHED 1
17190 int detach = PTHREAD_CREATE_DETACHED;
17192 #if HAVE_PTHREADS > 4
17193 /* Final pthreads */
17194 pthread_attr_t attr;
17196 status = pthread_attr_init(&attr);
17197 if( status ) return status;
17199 #if HAVE_PTHREADS < 7
17200 status = pthread_attr_setdetachstate(&attr, &detach);
17201 if( status < 0 ) status = errno;
17203 status = pthread_attr_setdetachstate(&attr, detach);
17205 if( status ) return status;
17206 status = pthread_create( &t, &attr, task, NULL );
17207 #if HAVE_PTHREADS < 7
17208 if( status < 0 ) status = errno;
17210 if( status ) return status;
17212 /* Draft 4 pthreads */
17213 status = pthread_create( &t, pthread_attr_default, task, NULL );
17214 if( status ) return errno;
17216 /* give thread a chance to complete */
17217 /* it should remain joinable and hence detachable */
17220 status = pthread_detach( &t );
17221 if( status ) return errno;
17224 #ifdef HAVE_LINUX_THREADS
17225 pthread_kill_other_threads_np();
17233 rm -f conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ol_cv_pthread_thread=yes
17246 echo "$as_me: program exited with status $ac_status" >&5
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ( exit $ac_status )
17251 ol_cv_pthread_thread=no
17253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17260 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
17261 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
17263 if test $ol_cv_pthread_thread = yes ; then
17264 ol_link_pthreads="-thread"
17265 ol_link_threads=posix
17270 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17271 if test "$ol_link_threads" = no ; then
17272 # try -lpthread -lmach -lexc -lc_r
17273 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17274 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
17275 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17283 if test "$cross_compiling" = yes; then
17284 cat >conftest.$ac_ext <<_ACEOF
17285 #line $LINENO "configure"
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 /* pthread test headers */
17292 #include <pthread.h>
17293 #if HAVE_PTHREADS < 7
17297 #define NULL (void*)0
17300 static void *task(p)
17303 return (void *) (p == NULL);
17310 /* pthread test function */
17311 #ifndef PTHREAD_CREATE_DETACHED
17312 #define PTHREAD_CREATE_DETACHED 1
17316 int detach = PTHREAD_CREATE_DETACHED;
17318 #if HAVE_PTHREADS > 4
17319 /* Final pthreads */
17320 pthread_attr_t attr;
17322 status = pthread_attr_init(&attr);
17323 if( status ) return status;
17325 #if HAVE_PTHREADS < 7
17326 status = pthread_attr_setdetachstate(&attr, &detach);
17327 if( status < 0 ) status = errno;
17329 status = pthread_attr_setdetachstate(&attr, detach);
17331 if( status ) return status;
17332 status = pthread_create( &t, &attr, task, NULL );
17333 #if HAVE_PTHREADS < 7
17334 if( status < 0 ) status = errno;
17336 if( status ) return status;
17338 /* Draft 4 pthreads */
17339 status = pthread_create( &t, pthread_attr_default, task, NULL );
17340 if( status ) return errno;
17342 /* give thread a chance to complete */
17343 /* it should remain joinable and hence detachable */
17346 status = pthread_detach( &t );
17347 if( status ) return errno;
17350 #ifdef HAVE_LINUX_THREADS
17351 pthread_kill_other_threads_np();
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17362 (eval $ac_link) 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -s conftest$ac_exeext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17381 cat >conftest.$ac_ext <<_ACEOF
17382 #line $LINENO "configure"
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 /* pthread test headers */
17389 #include <pthread.h>
17390 #if HAVE_PTHREADS < 7
17394 #define NULL (void*)0
17397 static void *task(p)
17400 return (void *) (p == NULL);
17404 int main(argc, argv)
17409 /* pthread test function */
17410 #ifndef PTHREAD_CREATE_DETACHED
17411 #define PTHREAD_CREATE_DETACHED 1
17415 int detach = PTHREAD_CREATE_DETACHED;
17417 #if HAVE_PTHREADS > 4
17418 /* Final pthreads */
17419 pthread_attr_t attr;
17421 status = pthread_attr_init(&attr);
17422 if( status ) return status;
17424 #if HAVE_PTHREADS < 7
17425 status = pthread_attr_setdetachstate(&attr, &detach);
17426 if( status < 0 ) status = errno;
17428 status = pthread_attr_setdetachstate(&attr, detach);
17430 if( status ) return status;
17431 status = pthread_create( &t, &attr, task, NULL );
17432 #if HAVE_PTHREADS < 7
17433 if( status < 0 ) status = errno;
17435 if( status ) return status;
17437 /* Draft 4 pthreads */
17438 status = pthread_create( &t, pthread_attr_default, task, NULL );
17439 if( status ) return errno;
17441 /* give thread a chance to complete */
17442 /* it should remain joinable and hence detachable */
17445 status = pthread_detach( &t );
17446 if( status ) return errno;
17449 #ifdef HAVE_LINUX_THREADS
17450 pthread_kill_other_threads_np();
17458 rm -f conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17471 echo "$as_me: program exited with status $ac_status" >&5
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ( exit $ac_status )
17476 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17478 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17485 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17486 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
17488 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17489 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17490 ol_link_threads=posix
17494 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17495 if test "$ol_link_threads" = no ; then
17496 # try -lpthread -lmach -lexc
17497 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
17498 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
17499 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 LIBS="-lpthread -lmach -lexc $LIBS"
17507 if test "$cross_compiling" = yes; then
17508 cat >conftest.$ac_ext <<_ACEOF
17509 #line $LINENO "configure"
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 /* pthread test headers */
17516 #include <pthread.h>
17517 #if HAVE_PTHREADS < 7
17521 #define NULL (void*)0
17524 static void *task(p)
17527 return (void *) (p == NULL);
17534 /* pthread test function */
17535 #ifndef PTHREAD_CREATE_DETACHED
17536 #define PTHREAD_CREATE_DETACHED 1
17540 int detach = PTHREAD_CREATE_DETACHED;
17542 #if HAVE_PTHREADS > 4
17543 /* Final pthreads */
17544 pthread_attr_t attr;
17546 status = pthread_attr_init(&attr);
17547 if( status ) return status;
17549 #if HAVE_PTHREADS < 7
17550 status = pthread_attr_setdetachstate(&attr, &detach);
17551 if( status < 0 ) status = errno;
17553 status = pthread_attr_setdetachstate(&attr, detach);
17555 if( status ) return status;
17556 status = pthread_create( &t, &attr, task, NULL );
17557 #if HAVE_PTHREADS < 7
17558 if( status < 0 ) status = errno;
17560 if( status ) return status;
17562 /* Draft 4 pthreads */
17563 status = pthread_create( &t, pthread_attr_default, task, NULL );
17564 if( status ) return errno;
17566 /* give thread a chance to complete */
17567 /* it should remain joinable and hence detachable */
17570 status = pthread_detach( &t );
17571 if( status ) return errno;
17574 #ifdef HAVE_LINUX_THREADS
17575 pthread_kill_other_threads_np();
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ol_cv_pthread_lpthread_lmach_lexc=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ol_cv_pthread_lpthread_lmach_lexc=no
17603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17605 cat >conftest.$ac_ext <<_ACEOF
17606 #line $LINENO "configure"
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 /* pthread test headers */
17613 #include <pthread.h>
17614 #if HAVE_PTHREADS < 7
17618 #define NULL (void*)0
17621 static void *task(p)
17624 return (void *) (p == NULL);
17628 int main(argc, argv)
17633 /* pthread test function */
17634 #ifndef PTHREAD_CREATE_DETACHED
17635 #define PTHREAD_CREATE_DETACHED 1
17639 int detach = PTHREAD_CREATE_DETACHED;
17641 #if HAVE_PTHREADS > 4
17642 /* Final pthreads */
17643 pthread_attr_t attr;
17645 status = pthread_attr_init(&attr);
17646 if( status ) return status;
17648 #if HAVE_PTHREADS < 7
17649 status = pthread_attr_setdetachstate(&attr, &detach);
17650 if( status < 0 ) status = errno;
17652 status = pthread_attr_setdetachstate(&attr, detach);
17654 if( status ) return status;
17655 status = pthread_create( &t, &attr, task, NULL );
17656 #if HAVE_PTHREADS < 7
17657 if( status < 0 ) status = errno;
17659 if( status ) return status;
17661 /* Draft 4 pthreads */
17662 status = pthread_create( &t, pthread_attr_default, task, NULL );
17663 if( status ) return errno;
17665 /* give thread a chance to complete */
17666 /* it should remain joinable and hence detachable */
17669 status = pthread_detach( &t );
17670 if( status ) return errno;
17673 #ifdef HAVE_LINUX_THREADS
17674 pthread_kill_other_threads_np();
17682 rm -f conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ol_cv_pthread_lpthread_lmach_lexc=yes
17695 echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ( exit $ac_status )
17700 ol_cv_pthread_lpthread_lmach_lexc=no
17702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17710 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
17712 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17713 ol_link_pthreads="-lpthread -lmach -lexc"
17714 ol_link_threads=posix
17719 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17720 if test "$ol_link_threads" = no ; then
17721 # try -lpthread -Wl,-woff,85
17722 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17723 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
17724 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17732 if test "$cross_compiling" = yes; then
17733 cat >conftest.$ac_ext <<_ACEOF
17734 #line $LINENO "configure"
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 /* pthread test headers */
17741 #include <pthread.h>
17742 #if HAVE_PTHREADS < 7
17746 #define NULL (void*)0
17749 static void *task(p)
17752 return (void *) (p == NULL);
17759 /* pthread test function */
17760 #ifndef PTHREAD_CREATE_DETACHED
17761 #define PTHREAD_CREATE_DETACHED 1
17765 int detach = PTHREAD_CREATE_DETACHED;
17767 #if HAVE_PTHREADS > 4
17768 /* Final pthreads */
17769 pthread_attr_t attr;
17771 status = pthread_attr_init(&attr);
17772 if( status ) return status;
17774 #if HAVE_PTHREADS < 7
17775 status = pthread_attr_setdetachstate(&attr, &detach);
17776 if( status < 0 ) status = errno;
17778 status = pthread_attr_setdetachstate(&attr, detach);
17780 if( status ) return status;
17781 status = pthread_create( &t, &attr, task, NULL );
17782 #if HAVE_PTHREADS < 7
17783 if( status < 0 ) status = errno;
17785 if( status ) return status;
17787 /* Draft 4 pthreads */
17788 status = pthread_create( &t, pthread_attr_default, task, NULL );
17789 if( status ) return errno;
17791 /* give thread a chance to complete */
17792 /* it should remain joinable and hence detachable */
17795 status = pthread_detach( &t );
17796 if( status ) return errno;
17799 #ifdef HAVE_LINUX_THREADS
17800 pthread_kill_other_threads_np();
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ol_cv_pthread_lib_lpthread_woff=yes
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ol_cv_pthread_lib_lpthread_woff=no
17828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17830 cat >conftest.$ac_ext <<_ACEOF
17831 #line $LINENO "configure"
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 /* pthread test headers */
17838 #include <pthread.h>
17839 #if HAVE_PTHREADS < 7
17843 #define NULL (void*)0
17846 static void *task(p)
17849 return (void *) (p == NULL);
17853 int main(argc, argv)
17858 /* pthread test function */
17859 #ifndef PTHREAD_CREATE_DETACHED
17860 #define PTHREAD_CREATE_DETACHED 1
17864 int detach = PTHREAD_CREATE_DETACHED;
17866 #if HAVE_PTHREADS > 4
17867 /* Final pthreads */
17868 pthread_attr_t attr;
17870 status = pthread_attr_init(&attr);
17871 if( status ) return status;
17873 #if HAVE_PTHREADS < 7
17874 status = pthread_attr_setdetachstate(&attr, &detach);
17875 if( status < 0 ) status = errno;
17877 status = pthread_attr_setdetachstate(&attr, detach);
17879 if( status ) return status;
17880 status = pthread_create( &t, &attr, task, NULL );
17881 #if HAVE_PTHREADS < 7
17882 if( status < 0 ) status = errno;
17884 if( status ) return status;
17886 /* Draft 4 pthreads */
17887 status = pthread_create( &t, pthread_attr_default, task, NULL );
17888 if( status ) return errno;
17890 /* give thread a chance to complete */
17891 /* it should remain joinable and hence detachable */
17894 status = pthread_detach( &t );
17895 if( status ) return errno;
17898 #ifdef HAVE_LINUX_THREADS
17899 pthread_kill_other_threads_np();
17907 rm -f conftest$ac_exeext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17909 (eval $ac_link) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ol_cv_pthread_lib_lpthread_woff=yes
17920 echo "$as_me: program exited with status $ac_status" >&5
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 ( exit $ac_status )
17925 ol_cv_pthread_lib_lpthread_woff=no
17927 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17934 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17935 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
17937 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17938 ol_link_pthreads="-lpthread -Wl,-woff,85"
17939 ol_link_threads=posix
17944 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17945 if test "$ol_link_threads" = no ; then
17947 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
17948 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
17949 if test "${ol_cv_pthread_lpthread+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 LIBS="-lpthread $LIBS"
17957 if test "$cross_compiling" = yes; then
17958 cat >conftest.$ac_ext <<_ACEOF
17959 #line $LINENO "configure"
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 /* pthread test headers */
17966 #include <pthread.h>
17967 #if HAVE_PTHREADS < 7
17971 #define NULL (void*)0
17974 static void *task(p)
17977 return (void *) (p == NULL);
17984 /* pthread test function */
17985 #ifndef PTHREAD_CREATE_DETACHED
17986 #define PTHREAD_CREATE_DETACHED 1
17990 int detach = PTHREAD_CREATE_DETACHED;
17992 #if HAVE_PTHREADS > 4
17993 /* Final pthreads */
17994 pthread_attr_t attr;
17996 status = pthread_attr_init(&attr);
17997 if( status ) return status;
17999 #if HAVE_PTHREADS < 7
18000 status = pthread_attr_setdetachstate(&attr, &detach);
18001 if( status < 0 ) status = errno;
18003 status = pthread_attr_setdetachstate(&attr, detach);
18005 if( status ) return status;
18006 status = pthread_create( &t, &attr, task, NULL );
18007 #if HAVE_PTHREADS < 7
18008 if( status < 0 ) status = errno;
18010 if( status ) return status;
18012 /* Draft 4 pthreads */
18013 status = pthread_create( &t, pthread_attr_default, task, NULL );
18014 if( status ) return errno;
18016 /* give thread a chance to complete */
18017 /* it should remain joinable and hence detachable */
18020 status = pthread_detach( &t );
18021 if( status ) return errno;
18024 #ifdef HAVE_LINUX_THREADS
18025 pthread_kill_other_threads_np();
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ol_cv_pthread_lpthread=yes
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ol_cv_pthread_lpthread=no
18053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18055 cat >conftest.$ac_ext <<_ACEOF
18056 #line $LINENO "configure"
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* pthread test headers */
18063 #include <pthread.h>
18064 #if HAVE_PTHREADS < 7
18068 #define NULL (void*)0
18071 static void *task(p)
18074 return (void *) (p == NULL);
18078 int main(argc, argv)
18083 /* pthread test function */
18084 #ifndef PTHREAD_CREATE_DETACHED
18085 #define PTHREAD_CREATE_DETACHED 1
18089 int detach = PTHREAD_CREATE_DETACHED;
18091 #if HAVE_PTHREADS > 4
18092 /* Final pthreads */
18093 pthread_attr_t attr;
18095 status = pthread_attr_init(&attr);
18096 if( status ) return status;
18098 #if HAVE_PTHREADS < 7
18099 status = pthread_attr_setdetachstate(&attr, &detach);
18100 if( status < 0 ) status = errno;
18102 status = pthread_attr_setdetachstate(&attr, detach);
18104 if( status ) return status;
18105 status = pthread_create( &t, &attr, task, NULL );
18106 #if HAVE_PTHREADS < 7
18107 if( status < 0 ) status = errno;
18109 if( status ) return status;
18111 /* Draft 4 pthreads */
18112 status = pthread_create( &t, pthread_attr_default, task, NULL );
18113 if( status ) return errno;
18115 /* give thread a chance to complete */
18116 /* it should remain joinable and hence detachable */
18119 status = pthread_detach( &t );
18120 if( status ) return errno;
18123 #ifdef HAVE_LINUX_THREADS
18124 pthread_kill_other_threads_np();
18132 rm -f conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ol_cv_pthread_lpthread=yes
18145 echo "$as_me: program exited with status $ac_status" >&5
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ( exit $ac_status )
18150 ol_cv_pthread_lpthread=no
18152 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18159 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
18160 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
18162 if test $ol_cv_pthread_lpthread = yes ; then
18163 ol_link_pthreads="-lpthread"
18164 ol_link_threads=posix
18168 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
18169 if test "$ol_link_threads" = no ; then
18171 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
18172 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
18173 if test "${ol_cv_pthread_lc_r+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 if test "$cross_compiling" = yes; then
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* pthread test headers */
18190 #include <pthread.h>
18191 #if HAVE_PTHREADS < 7
18195 #define NULL (void*)0
18198 static void *task(p)
18201 return (void *) (p == NULL);
18208 /* pthread test function */
18209 #ifndef PTHREAD_CREATE_DETACHED
18210 #define PTHREAD_CREATE_DETACHED 1
18214 int detach = PTHREAD_CREATE_DETACHED;
18216 #if HAVE_PTHREADS > 4
18217 /* Final pthreads */
18218 pthread_attr_t attr;
18220 status = pthread_attr_init(&attr);
18221 if( status ) return status;
18223 #if HAVE_PTHREADS < 7
18224 status = pthread_attr_setdetachstate(&attr, &detach);
18225 if( status < 0 ) status = errno;
18227 status = pthread_attr_setdetachstate(&attr, detach);
18229 if( status ) return status;
18230 status = pthread_create( &t, &attr, task, NULL );
18231 #if HAVE_PTHREADS < 7
18232 if( status < 0 ) status = errno;
18234 if( status ) return status;
18236 /* Draft 4 pthreads */
18237 status = pthread_create( &t, pthread_attr_default, task, NULL );
18238 if( status ) return errno;
18240 /* give thread a chance to complete */
18241 /* it should remain joinable and hence detachable */
18244 status = pthread_detach( &t );
18245 if( status ) return errno;
18248 #ifdef HAVE_LINUX_THREADS
18249 pthread_kill_other_threads_np();
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18260 (eval $ac_link) 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -s conftest$ac_exeext'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ol_cv_pthread_lc_r=yes
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ol_cv_pthread_lc_r=no
18277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18279 cat >conftest.$ac_ext <<_ACEOF
18280 #line $LINENO "configure"
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18286 /* pthread test headers */
18287 #include <pthread.h>
18288 #if HAVE_PTHREADS < 7
18292 #define NULL (void*)0
18295 static void *task(p)
18298 return (void *) (p == NULL);
18302 int main(argc, argv)
18307 /* pthread test function */
18308 #ifndef PTHREAD_CREATE_DETACHED
18309 #define PTHREAD_CREATE_DETACHED 1
18313 int detach = PTHREAD_CREATE_DETACHED;
18315 #if HAVE_PTHREADS > 4
18316 /* Final pthreads */
18317 pthread_attr_t attr;
18319 status = pthread_attr_init(&attr);
18320 if( status ) return status;
18322 #if HAVE_PTHREADS < 7
18323 status = pthread_attr_setdetachstate(&attr, &detach);
18324 if( status < 0 ) status = errno;
18326 status = pthread_attr_setdetachstate(&attr, detach);
18328 if( status ) return status;
18329 status = pthread_create( &t, &attr, task, NULL );
18330 #if HAVE_PTHREADS < 7
18331 if( status < 0 ) status = errno;
18333 if( status ) return status;
18335 /* Draft 4 pthreads */
18336 status = pthread_create( &t, pthread_attr_default, task, NULL );
18337 if( status ) return errno;
18339 /* give thread a chance to complete */
18340 /* it should remain joinable and hence detachable */
18343 status = pthread_detach( &t );
18344 if( status ) return errno;
18347 #ifdef HAVE_LINUX_THREADS
18348 pthread_kill_other_threads_np();
18356 rm -f conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358 (eval $ac_link) 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 ol_cv_pthread_lc_r=yes
18369 echo "$as_me: program exited with status $ac_status" >&5
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 ( exit $ac_status )
18374 ol_cv_pthread_lc_r=no
18376 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18383 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
18384 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
18386 if test $ol_cv_pthread_lc_r = yes ; then
18387 ol_link_pthreads="-lc_r"
18388 ol_link_threads=posix
18393 # Pthread try link: -threads (ol_cv_pthread_threads)
18394 if test "$ol_link_threads" = no ; then
18396 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
18397 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
18398 if test "${ol_cv_pthread_threads+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 LIBS="-threads $LIBS"
18406 if test "$cross_compiling" = yes; then
18407 cat >conftest.$ac_ext <<_ACEOF
18408 #line $LINENO "configure"
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 /* pthread test headers */
18415 #include <pthread.h>
18416 #if HAVE_PTHREADS < 7
18420 #define NULL (void*)0
18423 static void *task(p)
18426 return (void *) (p == NULL);
18433 /* pthread test function */
18434 #ifndef PTHREAD_CREATE_DETACHED
18435 #define PTHREAD_CREATE_DETACHED 1
18439 int detach = PTHREAD_CREATE_DETACHED;
18441 #if HAVE_PTHREADS > 4
18442 /* Final pthreads */
18443 pthread_attr_t attr;
18445 status = pthread_attr_init(&attr);
18446 if( status ) return status;
18448 #if HAVE_PTHREADS < 7
18449 status = pthread_attr_setdetachstate(&attr, &detach);
18450 if( status < 0 ) status = errno;
18452 status = pthread_attr_setdetachstate(&attr, detach);
18454 if( status ) return status;
18455 status = pthread_create( &t, &attr, task, NULL );
18456 #if HAVE_PTHREADS < 7
18457 if( status < 0 ) status = errno;
18459 if( status ) return status;
18461 /* Draft 4 pthreads */
18462 status = pthread_create( &t, pthread_attr_default, task, NULL );
18463 if( status ) return errno;
18465 /* give thread a chance to complete */
18466 /* it should remain joinable and hence detachable */
18469 status = pthread_detach( &t );
18470 if( status ) return errno;
18473 #ifdef HAVE_LINUX_THREADS
18474 pthread_kill_other_threads_np();
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485 (eval $ac_link) 2>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -s conftest$ac_exeext'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
18495 ol_cv_pthread_threads=yes
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ol_cv_pthread_threads=no
18502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18504 cat >conftest.$ac_ext <<_ACEOF
18505 #line $LINENO "configure"
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 /* pthread test headers */
18512 #include <pthread.h>
18513 #if HAVE_PTHREADS < 7
18517 #define NULL (void*)0
18520 static void *task(p)
18523 return (void *) (p == NULL);
18527 int main(argc, argv)
18532 /* pthread test function */
18533 #ifndef PTHREAD_CREATE_DETACHED
18534 #define PTHREAD_CREATE_DETACHED 1
18538 int detach = PTHREAD_CREATE_DETACHED;
18540 #if HAVE_PTHREADS > 4
18541 /* Final pthreads */
18542 pthread_attr_t attr;
18544 status = pthread_attr_init(&attr);
18545 if( status ) return status;
18547 #if HAVE_PTHREADS < 7
18548 status = pthread_attr_setdetachstate(&attr, &detach);
18549 if( status < 0 ) status = errno;
18551 status = pthread_attr_setdetachstate(&attr, detach);
18553 if( status ) return status;
18554 status = pthread_create( &t, &attr, task, NULL );
18555 #if HAVE_PTHREADS < 7
18556 if( status < 0 ) status = errno;
18558 if( status ) return status;
18560 /* Draft 4 pthreads */
18561 status = pthread_create( &t, pthread_attr_default, task, NULL );
18562 if( status ) return errno;
18564 /* give thread a chance to complete */
18565 /* it should remain joinable and hence detachable */
18568 status = pthread_detach( &t );
18569 if( status ) return errno;
18572 #ifdef HAVE_LINUX_THREADS
18573 pthread_kill_other_threads_np();
18581 rm -f conftest$ac_exeext
18582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18583 (eval $ac_link) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ol_cv_pthread_threads=yes
18594 echo "$as_me: program exited with status $ac_status" >&5
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ( exit $ac_status )
18599 ol_cv_pthread_threads=no
18601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18608 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
18609 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
18611 if test $ol_cv_pthread_threads = yes ; then
18612 ol_link_pthreads="-threads"
18613 ol_link_threads=posix
18618 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18619 if test "$ol_link_threads" = no ; then
18620 # try -lpthreads -lmach -lexc -lc_r
18621 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18622 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
18623 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18631 if test "$cross_compiling" = yes; then
18632 cat >conftest.$ac_ext <<_ACEOF
18633 #line $LINENO "configure"
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 /* pthread test headers */
18640 #include <pthread.h>
18641 #if HAVE_PTHREADS < 7
18645 #define NULL (void*)0
18648 static void *task(p)
18651 return (void *) (p == NULL);
18658 /* pthread test function */
18659 #ifndef PTHREAD_CREATE_DETACHED
18660 #define PTHREAD_CREATE_DETACHED 1
18664 int detach = PTHREAD_CREATE_DETACHED;
18666 #if HAVE_PTHREADS > 4
18667 /* Final pthreads */
18668 pthread_attr_t attr;
18670 status = pthread_attr_init(&attr);
18671 if( status ) return status;
18673 #if HAVE_PTHREADS < 7
18674 status = pthread_attr_setdetachstate(&attr, &detach);
18675 if( status < 0 ) status = errno;
18677 status = pthread_attr_setdetachstate(&attr, detach);
18679 if( status ) return status;
18680 status = pthread_create( &t, &attr, task, NULL );
18681 #if HAVE_PTHREADS < 7
18682 if( status < 0 ) status = errno;
18684 if( status ) return status;
18686 /* Draft 4 pthreads */
18687 status = pthread_create( &t, pthread_attr_default, task, NULL );
18688 if( status ) return errno;
18690 /* give thread a chance to complete */
18691 /* it should remain joinable and hence detachable */
18694 status = pthread_detach( &t );
18695 if( status ) return errno;
18698 #ifdef HAVE_LINUX_THREADS
18699 pthread_kill_other_threads_np();
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710 (eval $ac_link) 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18729 cat >conftest.$ac_ext <<_ACEOF
18730 #line $LINENO "configure"
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 /* pthread test headers */
18737 #include <pthread.h>
18738 #if HAVE_PTHREADS < 7
18742 #define NULL (void*)0
18745 static void *task(p)
18748 return (void *) (p == NULL);
18752 int main(argc, argv)
18757 /* pthread test function */
18758 #ifndef PTHREAD_CREATE_DETACHED
18759 #define PTHREAD_CREATE_DETACHED 1
18763 int detach = PTHREAD_CREATE_DETACHED;
18765 #if HAVE_PTHREADS > 4
18766 /* Final pthreads */
18767 pthread_attr_t attr;
18769 status = pthread_attr_init(&attr);
18770 if( status ) return status;
18772 #if HAVE_PTHREADS < 7
18773 status = pthread_attr_setdetachstate(&attr, &detach);
18774 if( status < 0 ) status = errno;
18776 status = pthread_attr_setdetachstate(&attr, detach);
18778 if( status ) return status;
18779 status = pthread_create( &t, &attr, task, NULL );
18780 #if HAVE_PTHREADS < 7
18781 if( status < 0 ) status = errno;
18783 if( status ) return status;
18785 /* Draft 4 pthreads */
18786 status = pthread_create( &t, pthread_attr_default, task, NULL );
18787 if( status ) return errno;
18789 /* give thread a chance to complete */
18790 /* it should remain joinable and hence detachable */
18793 status = pthread_detach( &t );
18794 if( status ) return errno;
18797 #ifdef HAVE_LINUX_THREADS
18798 pthread_kill_other_threads_np();
18806 rm -f conftest$ac_exeext
18807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18808 (eval $ac_link) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18819 echo "$as_me: program exited with status $ac_status" >&5
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ( exit $ac_status )
18824 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18826 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18833 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18834 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
18836 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18837 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18838 ol_link_threads=posix
18842 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18843 if test "$ol_link_threads" = no ; then
18844 # try -lpthreads -lmach -lexc
18845 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
18846 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
18847 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 LIBS="-lpthreads -lmach -lexc $LIBS"
18855 if test "$cross_compiling" = yes; then
18856 cat >conftest.$ac_ext <<_ACEOF
18857 #line $LINENO "configure"
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 /* pthread test headers */
18864 #include <pthread.h>
18865 #if HAVE_PTHREADS < 7
18869 #define NULL (void*)0
18872 static void *task(p)
18875 return (void *) (p == NULL);
18882 /* pthread test function */
18883 #ifndef PTHREAD_CREATE_DETACHED
18884 #define PTHREAD_CREATE_DETACHED 1
18888 int detach = PTHREAD_CREATE_DETACHED;
18890 #if HAVE_PTHREADS > 4
18891 /* Final pthreads */
18892 pthread_attr_t attr;
18894 status = pthread_attr_init(&attr);
18895 if( status ) return status;
18897 #if HAVE_PTHREADS < 7
18898 status = pthread_attr_setdetachstate(&attr, &detach);
18899 if( status < 0 ) status = errno;
18901 status = pthread_attr_setdetachstate(&attr, detach);
18903 if( status ) return status;
18904 status = pthread_create( &t, &attr, task, NULL );
18905 #if HAVE_PTHREADS < 7
18906 if( status < 0 ) status = errno;
18908 if( status ) return status;
18910 /* Draft 4 pthreads */
18911 status = pthread_create( &t, pthread_attr_default, task, NULL );
18912 if( status ) return errno;
18914 /* give thread a chance to complete */
18915 /* it should remain joinable and hence detachable */
18918 status = pthread_detach( &t );
18919 if( status ) return errno;
18922 #ifdef HAVE_LINUX_THREADS
18923 pthread_kill_other_threads_np();
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18934 (eval $ac_link) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -s conftest$ac_exeext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ol_cv_pthread_lpthreads_lmach_lexc=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ol_cv_pthread_lpthreads_lmach_lexc=no
18951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18953 cat >conftest.$ac_ext <<_ACEOF
18954 #line $LINENO "configure"
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 /* pthread test headers */
18961 #include <pthread.h>
18962 #if HAVE_PTHREADS < 7
18966 #define NULL (void*)0
18969 static void *task(p)
18972 return (void *) (p == NULL);
18976 int main(argc, argv)
18981 /* pthread test function */
18982 #ifndef PTHREAD_CREATE_DETACHED
18983 #define PTHREAD_CREATE_DETACHED 1
18987 int detach = PTHREAD_CREATE_DETACHED;
18989 #if HAVE_PTHREADS > 4
18990 /* Final pthreads */
18991 pthread_attr_t attr;
18993 status = pthread_attr_init(&attr);
18994 if( status ) return status;
18996 #if HAVE_PTHREADS < 7
18997 status = pthread_attr_setdetachstate(&attr, &detach);
18998 if( status < 0 ) status = errno;
19000 status = pthread_attr_setdetachstate(&attr, detach);
19002 if( status ) return status;
19003 status = pthread_create( &t, &attr, task, NULL );
19004 #if HAVE_PTHREADS < 7
19005 if( status < 0 ) status = errno;
19007 if( status ) return status;
19009 /* Draft 4 pthreads */
19010 status = pthread_create( &t, pthread_attr_default, task, NULL );
19011 if( status ) return errno;
19013 /* give thread a chance to complete */
19014 /* it should remain joinable and hence detachable */
19017 status = pthread_detach( &t );
19018 if( status ) return errno;
19021 #ifdef HAVE_LINUX_THREADS
19022 pthread_kill_other_threads_np();
19030 rm -f conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032 (eval $ac_link) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ol_cv_pthread_lpthreads_lmach_lexc=yes
19043 echo "$as_me: program exited with status $ac_status" >&5
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ( exit $ac_status )
19048 ol_cv_pthread_lpthreads_lmach_lexc=no
19050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19057 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
19058 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
19060 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
19061 ol_link_pthreads="-lpthreads -lmach -lexc"
19062 ol_link_threads=posix
19066 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
19067 if test "$ol_link_threads" = no ; then
19068 # try -lpthreads -lexc
19069 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
19070 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
19071 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 LIBS="-lpthreads -lexc $LIBS"
19079 if test "$cross_compiling" = yes; then
19080 cat >conftest.$ac_ext <<_ACEOF
19081 #line $LINENO "configure"
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 /* pthread test headers */
19088 #include <pthread.h>
19089 #if HAVE_PTHREADS < 7
19093 #define NULL (void*)0
19096 static void *task(p)
19099 return (void *) (p == NULL);
19106 /* pthread test function */
19107 #ifndef PTHREAD_CREATE_DETACHED
19108 #define PTHREAD_CREATE_DETACHED 1
19112 int detach = PTHREAD_CREATE_DETACHED;
19114 #if HAVE_PTHREADS > 4
19115 /* Final pthreads */
19116 pthread_attr_t attr;
19118 status = pthread_attr_init(&attr);
19119 if( status ) return status;
19121 #if HAVE_PTHREADS < 7
19122 status = pthread_attr_setdetachstate(&attr, &detach);
19123 if( status < 0 ) status = errno;
19125 status = pthread_attr_setdetachstate(&attr, detach);
19127 if( status ) return status;
19128 status = pthread_create( &t, &attr, task, NULL );
19129 #if HAVE_PTHREADS < 7
19130 if( status < 0 ) status = errno;
19132 if( status ) return status;
19134 /* Draft 4 pthreads */
19135 status = pthread_create( &t, pthread_attr_default, task, NULL );
19136 if( status ) return errno;
19138 /* give thread a chance to complete */
19139 /* it should remain joinable and hence detachable */
19142 status = pthread_detach( &t );
19143 if( status ) return errno;
19146 #ifdef HAVE_LINUX_THREADS
19147 pthread_kill_other_threads_np();
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19158 (eval $ac_link) 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -s conftest$ac_exeext'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 ol_cv_pthread_lpthreads_lexc=yes
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 ol_cv_pthread_lpthreads_lexc=no
19175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19177 cat >conftest.$ac_ext <<_ACEOF
19178 #line $LINENO "configure"
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 /* pthread test headers */
19185 #include <pthread.h>
19186 #if HAVE_PTHREADS < 7
19190 #define NULL (void*)0
19193 static void *task(p)
19196 return (void *) (p == NULL);
19200 int main(argc, argv)
19205 /* pthread test function */
19206 #ifndef PTHREAD_CREATE_DETACHED
19207 #define PTHREAD_CREATE_DETACHED 1
19211 int detach = PTHREAD_CREATE_DETACHED;
19213 #if HAVE_PTHREADS > 4
19214 /* Final pthreads */
19215 pthread_attr_t attr;
19217 status = pthread_attr_init(&attr);
19218 if( status ) return status;
19220 #if HAVE_PTHREADS < 7
19221 status = pthread_attr_setdetachstate(&attr, &detach);
19222 if( status < 0 ) status = errno;
19224 status = pthread_attr_setdetachstate(&attr, detach);
19226 if( status ) return status;
19227 status = pthread_create( &t, &attr, task, NULL );
19228 #if HAVE_PTHREADS < 7
19229 if( status < 0 ) status = errno;
19231 if( status ) return status;
19233 /* Draft 4 pthreads */
19234 status = pthread_create( &t, pthread_attr_default, task, NULL );
19235 if( status ) return errno;
19237 /* give thread a chance to complete */
19238 /* it should remain joinable and hence detachable */
19241 status = pthread_detach( &t );
19242 if( status ) return errno;
19245 #ifdef HAVE_LINUX_THREADS
19246 pthread_kill_other_threads_np();
19254 rm -f conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ol_cv_pthread_lpthreads_lexc=yes
19267 echo "$as_me: program exited with status $ac_status" >&5
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ( exit $ac_status )
19272 ol_cv_pthread_lpthreads_lexc=no
19274 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19281 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
19282 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
19284 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
19285 ol_link_pthreads="-lpthreads -lexc"
19286 ol_link_threads=posix
19291 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
19292 if test "$ol_link_threads" = no ; then
19294 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
19295 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
19296 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 LIBS="-lpthreads $LIBS"
19304 if test "$cross_compiling" = yes; then
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 /* pthread test headers */
19313 #include <pthread.h>
19314 #if HAVE_PTHREADS < 7
19318 #define NULL (void*)0
19321 static void *task(p)
19324 return (void *) (p == NULL);
19331 /* pthread test function */
19332 #ifndef PTHREAD_CREATE_DETACHED
19333 #define PTHREAD_CREATE_DETACHED 1
19337 int detach = PTHREAD_CREATE_DETACHED;
19339 #if HAVE_PTHREADS > 4
19340 /* Final pthreads */
19341 pthread_attr_t attr;
19343 status = pthread_attr_init(&attr);
19344 if( status ) return status;
19346 #if HAVE_PTHREADS < 7
19347 status = pthread_attr_setdetachstate(&attr, &detach);
19348 if( status < 0 ) status = errno;
19350 status = pthread_attr_setdetachstate(&attr, detach);
19352 if( status ) return status;
19353 status = pthread_create( &t, &attr, task, NULL );
19354 #if HAVE_PTHREADS < 7
19355 if( status < 0 ) status = errno;
19357 if( status ) return status;
19359 /* Draft 4 pthreads */
19360 status = pthread_create( &t, pthread_attr_default, task, NULL );
19361 if( status ) return errno;
19363 /* give thread a chance to complete */
19364 /* it should remain joinable and hence detachable */
19367 status = pthread_detach( &t );
19368 if( status ) return errno;
19371 #ifdef HAVE_LINUX_THREADS
19372 pthread_kill_other_threads_np();
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19383 (eval $ac_link) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ol_cv_pthread_lib_lpthreads=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ol_cv_pthread_lib_lpthreads=no
19400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19402 cat >conftest.$ac_ext <<_ACEOF
19403 #line $LINENO "configure"
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 /* pthread test headers */
19410 #include <pthread.h>
19411 #if HAVE_PTHREADS < 7
19415 #define NULL (void*)0
19418 static void *task(p)
19421 return (void *) (p == NULL);
19425 int main(argc, argv)
19430 /* pthread test function */
19431 #ifndef PTHREAD_CREATE_DETACHED
19432 #define PTHREAD_CREATE_DETACHED 1
19436 int detach = PTHREAD_CREATE_DETACHED;
19438 #if HAVE_PTHREADS > 4
19439 /* Final pthreads */
19440 pthread_attr_t attr;
19442 status = pthread_attr_init(&attr);
19443 if( status ) return status;
19445 #if HAVE_PTHREADS < 7
19446 status = pthread_attr_setdetachstate(&attr, &detach);
19447 if( status < 0 ) status = errno;
19449 status = pthread_attr_setdetachstate(&attr, detach);
19451 if( status ) return status;
19452 status = pthread_create( &t, &attr, task, NULL );
19453 #if HAVE_PTHREADS < 7
19454 if( status < 0 ) status = errno;
19456 if( status ) return status;
19458 /* Draft 4 pthreads */
19459 status = pthread_create( &t, pthread_attr_default, task, NULL );
19460 if( status ) return errno;
19462 /* give thread a chance to complete */
19463 /* it should remain joinable and hence detachable */
19466 status = pthread_detach( &t );
19467 if( status ) return errno;
19470 #ifdef HAVE_LINUX_THREADS
19471 pthread_kill_other_threads_np();
19479 rm -f conftest$ac_exeext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481 (eval $ac_link) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ol_cv_pthread_lib_lpthreads=yes
19492 echo "$as_me: program exited with status $ac_status" >&5
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 ( exit $ac_status )
19497 ol_cv_pthread_lib_lpthreads=no
19499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
19507 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
19509 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19510 ol_link_pthreads="-lpthreads"
19511 ol_link_threads=posix
19516 if test $ol_link_threads != no ; then
19517 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19519 save_CPPFLAGS="$CPPFLAGS"
19521 LIBS="$LTHREAD_LIBS $LIBS"
19526 for ac_func in sched_yield pthread_yield thr_yield
19528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19529 echo "$as_me:$LINENO: checking for $ac_func" >&5
19530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19531 if eval "test \"\${$as_ac_var+set}\" = set"; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19535 #line $LINENO "configure"
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 /* System header to define __stub macros and hopefully few prototypes,
19542 which can conflict with char $ac_func (); below.
19543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19544 <limits.h> exists even on freestanding compilers. */
19546 # include <limits.h>
19548 # include <assert.h>
19550 /* Override any gcc2 internal prototype to avoid an error. */
19555 /* We use char because int might match the return type of a gcc2
19556 builtin and then its argument prototype would still apply. */
19558 /* The GNU C library defines this for functions which it implements
19559 to always fail with ENOSYS. Some functions are actually named
19560 something starting with __ and the normal name is an alias. */
19561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19564 char (*f) () = $ac_func;
19573 return f != $ac_func;
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -s conftest$ac_exeext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 eval "$as_ac_var=yes"
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 eval "$as_ac_var=no"
19597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19601 if test `eval echo '${'$as_ac_var'}'` = yes; then
19602 cat >>confdefs.h <<_ACEOF
19603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19610 if test $ac_cv_func_sched_yield = no -a \
19611 $ac_cv_func_pthread_yield = no -a \
19612 $ac_cv_func_thr_yield = no ; then
19613 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
19614 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
19615 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 ac_check_lib_save_LIBS=$LIBS
19620 cat >conftest.$ac_ext <<_ACEOF
19621 #line $LINENO "configure"
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 /* Override any gcc2 internal prototype to avoid an error. */
19632 /* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19634 char sched_yield ();
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645 (eval $ac_link) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
19649 { ac_try='test -s conftest$ac_exeext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_lib_rt_sched_yield=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_lib_rt_sched_yield=no
19662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
19666 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
19667 if test $ac_cv_lib_rt_sched_yield = yes; then
19668 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_SCHED_YIELD 1
19674 ac_cv_func_sched_yield=yes
19676 ac_cv_func_sched_yield=no
19680 if test $ac_cv_func_sched_yield = no -a \
19681 $ac_cv_func_pthread_yield = no -a \
19682 "$ac_cv_func_thr_yield" = no ; then
19683 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19684 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19689 for ac_func in pthread_kill pthread_rwlock_destroy
19691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19692 echo "$as_me:$LINENO: checking for $ac_func" >&5
19693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_var+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 cat >conftest.$ac_ext <<_ACEOF
19698 #line $LINENO "configure"
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 /* System header to define __stub macros and hopefully few prototypes,
19705 which can conflict with char $ac_func (); below.
19706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19707 <limits.h> exists even on freestanding compilers. */
19709 # include <limits.h>
19711 # include <assert.h>
19713 /* Override any gcc2 internal prototype to avoid an error. */
19718 /* We use char because int might match the return type of a gcc2
19719 builtin and then its argument prototype would still apply. */
19721 /* The GNU C library defines this for functions which it implements
19722 to always fail with ENOSYS. Some functions are actually named
19723 something starting with __ and the normal name is an alias. */
19724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19727 char (*f) () = $ac_func;
19736 return f != $ac_func;
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19743 (eval $ac_link) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 eval "$as_ac_var=yes"
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 eval "$as_ac_var=no"
19760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19764 if test `eval echo '${'$as_ac_var'}'` = yes; then
19765 cat >>confdefs.h <<_ACEOF
19766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19773 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
19774 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
19775 if test "${ol_cv_func_pthread_detach+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 #line $LINENO "configure"
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19787 #include <pthread.h>
19789 #define NULL (void*)0
19795 pthread_detach(NULL);
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -s conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ol_cv_func_pthread_detach=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ol_cv_func_pthread_detach=no
19819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19822 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
19823 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
19825 if test $ol_cv_func_pthread_detach = no ; then
19826 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
19827 echo "$as_me: error: could not locate pthread_detach()" >&2;}
19828 { (exit 1); exit 1; }; }
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_PTHREAD_DETACH 1
19842 pthread_setconcurrency \
19843 pthread_getconcurrency \
19844 thr_setconcurrency \
19845 thr_getconcurrency \
19848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19849 echo "$as_me:$LINENO: checking for $ac_func" >&5
19850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19851 if eval "test \"\${$as_ac_var+set}\" = set"; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19855 #line $LINENO "configure"
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* System header to define __stub macros and hopefully few prototypes,
19862 which can conflict with char $ac_func (); below.
19863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19864 <limits.h> exists even on freestanding compilers. */
19866 # include <limits.h>
19868 # include <assert.h>
19870 /* Override any gcc2 internal prototype to avoid an error. */
19875 /* We use char because int might match the return type of a gcc2
19876 builtin and then its argument prototype would still apply. */
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19884 char (*f) () = $ac_func;
19893 return f != $ac_func;
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 eval "$as_ac_var=yes"
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 eval "$as_ac_var=no"
19917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19921 if test `eval echo '${'$as_ac_var'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19932 for ac_func in pthread_kill_other_threads_np
19934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19935 echo "$as_me:$LINENO: checking for $ac_func" >&5
19936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_var+set}\" = set"; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 /* System header to define __stub macros and hopefully few prototypes,
19948 which can conflict with char $ac_func (); below.
19949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950 <limits.h> exists even on freestanding compilers. */
19952 # include <limits.h>
19954 # include <assert.h>
19956 /* Override any gcc2 internal prototype to avoid an error. */
19961 /* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
19964 /* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19970 char (*f) () = $ac_func;
19979 return f != $ac_func;
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -s conftest$ac_exeext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 eval "$as_ac_var=yes"
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 eval "$as_ac_var=no"
20003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20007 if test `eval echo '${'$as_ac_var'}'` = yes; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20015 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
20016 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
20017 if test "${ol_cv_sys_linux_threads+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
20022 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
20023 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
20028 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
20029 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
20030 if test "${ol_cv_linux_threads+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 if test $ol_cv_header_linux_threads = yes -a \
20035 $ol_cv_sys_linux_threads = yes; then
20036 ol_cv_linux_threads=yes
20037 elif test $ol_cv_header_linux_threads = no -a \
20038 $ol_cv_sys_linux_threads = no; then
20039 ol_cv_linux_threads=no
20041 ol_cv_linux_threads=error
20045 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
20046 echo "${ECHO_T}$ol_cv_linux_threads" >&6
20049 if test $ol_cv_linux_threads = error; then
20050 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
20051 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
20052 { (exit 1); exit 1; }; };
20055 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
20056 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
20057 if test "${ol_cv_pthread_create_works+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 if test "$cross_compiling" = yes; then
20062 ol_cv_pthread_create_works=yes
20064 cat >conftest.$ac_ext <<_ACEOF
20065 #line $LINENO "configure"
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 /* pthread test headers */
20072 #include <pthread.h>
20073 #if HAVE_PTHREADS < 7
20077 #define NULL (void*)0
20080 static void *task(p)
20083 return (void *) (p == NULL);
20087 int main(argc, argv)
20092 /* pthread test function */
20093 #ifndef PTHREAD_CREATE_DETACHED
20094 #define PTHREAD_CREATE_DETACHED 1
20098 int detach = PTHREAD_CREATE_DETACHED;
20100 #if HAVE_PTHREADS > 4
20101 /* Final pthreads */
20102 pthread_attr_t attr;
20104 status = pthread_attr_init(&attr);
20105 if( status ) return status;
20107 #if HAVE_PTHREADS < 7
20108 status = pthread_attr_setdetachstate(&attr, &detach);
20109 if( status < 0 ) status = errno;
20111 status = pthread_attr_setdetachstate(&attr, detach);
20113 if( status ) return status;
20114 status = pthread_create( &t, &attr, task, NULL );
20115 #if HAVE_PTHREADS < 7
20116 if( status < 0 ) status = errno;
20118 if( status ) return status;
20120 /* Draft 4 pthreads */
20121 status = pthread_create( &t, pthread_attr_default, task, NULL );
20122 if( status ) return errno;
20124 /* give thread a chance to complete */
20125 /* it should remain joinable and hence detachable */
20128 status = pthread_detach( &t );
20129 if( status ) return errno;
20132 #ifdef HAVE_LINUX_THREADS
20133 pthread_kill_other_threads_np();
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ol_cv_pthread_create_works=yes
20154 echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ( exit $ac_status )
20159 ol_cv_pthread_create_works=no
20161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
20165 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
20167 if test $ol_cv_pthread_create_works = no ; then
20168 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
20169 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
20170 { (exit 1); exit 1; }; }
20173 if test $ol_with_yielding_select = auto ; then
20174 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
20175 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
20176 if test "${ol_cv_pthread_select_yields+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 if test "$cross_compiling" = yes; then
20181 ol_cv_pthread_select_yields=cross
20183 cat >conftest.$ac_ext <<_ACEOF
20184 #line $LINENO "configure"
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 #include <sys/types.h>
20192 #include <sys/time.h>
20193 #include <unistd.h>
20194 #include <pthread.h>
20196 #define NULL (void*) 0
20199 static int fildes[2];
20201 static void *task(p)
20213 FD_SET(fildes[0], &rfds);
20215 /* we're not interested in any fds */
20216 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
20223 exit(0); /* if we exit here, the select blocked the whole process */
20226 int main(argc, argv)
20232 /* create a pipe to select */
20233 if(pipe(&fildes[0])) {
20238 #ifdef HAVE_PTHREAD_SETCONCURRENCY
20239 (void) pthread_setconcurrency(2);
20241 #ifdef HAVE_THR_SETCONCURRENCY
20242 /* Set Solaris LWP concurrency to 2 */
20243 thr_setconcurrency(2);
20247 #if HAVE_PTHREADS < 6
20248 pthread_create(&t, pthread_attr_default, task, NULL);
20250 pthread_create(&t, NULL, task, NULL);
20253 /* make sure task runs first */
20256 #elif defined( HAVE_SCHED_YIELD )
20258 #elif defined( HAVE_PTHREAD_YIELD )
20265 rm -f conftest$ac_exeext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267 (eval $ac_link) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ol_cv_pthread_select_yields=no
20278 echo "$as_me: program exited with status $ac_status" >&5
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ( exit $ac_status )
20283 ol_cv_pthread_select_yields=yes
20285 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20288 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
20289 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
20291 if test $ol_cv_pthread_select_yields = cross ; then
20292 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
20293 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
20294 { (exit 1); exit 1; }; }
20297 if test $ol_cv_pthread_select_yields = yes ; then
20298 ol_with_yielding_select=yes
20302 CPPFLAGS="$save_CPPFLAGS"
20305 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
20306 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
20307 { (exit 1); exit 1; }; }
20311 if test $ol_with_threads = posix ; then
20312 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
20313 echo "$as_me: error: could not locate POSIX Threads" >&2;}
20314 { (exit 1); exit 1; }; }
20318 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20319 -o $ol_with_threads = mach ; then
20323 for ac_header in mach/cthreads.h cthreads.h
20325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20327 echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20335 # Is the header compilable?
20336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20338 cat >conftest.$ac_ext <<_ACEOF
20339 #line $LINENO "configure"
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 $ac_includes_default
20346 #include <$ac_header>
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350 (eval $ac_compile) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -s conftest.$ac_objext'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_header_compiler=yes
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_compiler=no
20367 rm -f conftest.$ac_objext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20369 echo "${ECHO_T}$ac_header_compiler" >&6
20371 # Is the header present?
20372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20375 #line $LINENO "configure"
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <$ac_header>
20383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20386 grep -v '^ *+' conftest.er1 >conftest.err
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } >/dev/null; then
20391 if test -s conftest.err; then
20392 ac_cpp_err=$ac_c_preproc_warn_flag
20399 if test -z "$ac_cpp_err"; then
20400 ac_header_preproc=yes
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_header_preproc=no
20407 rm -f conftest.err conftest.$ac_ext
20408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20409 echo "${ECHO_T}$ac_header_preproc" >&6
20411 # So? What about this header?
20412 case $ac_header_compiler:$ac_header_preproc in
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20420 ## ------------------------------------ ##
20421 ## Report this to bug-autoconf@gnu.org. ##
20422 ## ------------------------------------ ##
20425 sed "s/^/$as_me: WARNING: /" >&2
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20436 ## ------------------------------------ ##
20437 ## Report this to bug-autoconf@gnu.org. ##
20438 ## ------------------------------------ ##
20441 sed "s/^/$as_me: WARNING: /" >&2
20444 echo "$as_me:$LINENO: checking for $ac_header" >&5
20445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 eval "$as_ac_Header=$ac_header_preproc"
20451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20456 cat >>confdefs.h <<_ACEOF
20457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20464 if test $ac_cv_header_mach_cthreads_h = yes ; then
20465 ol_with_threads=found
20467 echo "$as_me:$LINENO: checking for cthread_fork" >&5
20468 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
20469 if test "${ac_cv_func_cthread_fork+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20473 #line $LINENO "configure"
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 /* System header to define __stub macros and hopefully few prototypes,
20480 which can conflict with char cthread_fork (); below.
20481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20482 <limits.h> exists even on freestanding compilers. */
20484 # include <limits.h>
20486 # include <assert.h>
20488 /* Override any gcc2 internal prototype to avoid an error. */
20493 /* We use char because int might match the return type of a gcc2
20494 builtin and then its argument prototype would still apply. */
20495 char cthread_fork ();
20496 /* The GNU C library defines this for functions which it implements
20497 to always fail with ENOSYS. Some functions are actually named
20498 something starting with __ and the normal name is an alias. */
20499 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
20502 char (*f) () = cthread_fork;
20511 return f != cthread_fork;
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518 (eval $ac_link) 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -s conftest$ac_exeext'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_cv_func_cthread_fork=yes
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_cv_func_cthread_fork=no
20535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20537 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
20538 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
20539 if test $ac_cv_func_cthread_fork = yes; then
20540 ol_link_threads=yes
20544 if test $ol_link_threads = no ; then
20545 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
20546 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
20547 if test "${ol_cv_cthread_all_load+set}" = set; then
20548 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 LIBS="-all_load $LIBS"
20553 cat >conftest.$ac_ext <<_ACEOF
20554 #line $LINENO "configure"
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 #include <mach/cthreads.h>
20565 cthread_fork((void *)0, (void *)0);
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20573 (eval $ac_link) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try='test -s conftest$ac_exeext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ol_cv_cthread_all_load=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ol_cv_cthread_all_load=no
20590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20594 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
20595 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
20597 if test $ol_cv_cthread_all_load = yes ; then
20598 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
20599 ol_link_threads=mach
20600 ol_with_threads=found
20604 elif test $ac_cv_header_cthreads_h = yes ; then
20606 ol_with_threads=found
20609 LIBS="$LIBS -lthreads"
20610 echo "$as_me:$LINENO: checking for cthread_fork" >&5
20611 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
20612 if test "${ac_cv_func_cthread_fork+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 cat >conftest.$ac_ext <<_ACEOF
20616 #line $LINENO "configure"
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 /* System header to define __stub macros and hopefully few prototypes,
20623 which can conflict with char cthread_fork (); below.
20624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20625 <limits.h> exists even on freestanding compilers. */
20627 # include <limits.h>
20629 # include <assert.h>
20631 /* Override any gcc2 internal prototype to avoid an error. */
20636 /* We use char because int might match the return type of a gcc2
20637 builtin and then its argument prototype would still apply. */
20638 char cthread_fork ();
20639 /* The GNU C library defines this for functions which it implements
20640 to always fail with ENOSYS. Some functions are actually named
20641 something starting with __ and the normal name is an alias. */
20642 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
20645 char (*f) () = cthread_fork;
20654 return f != cthread_fork;
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20661 (eval $ac_link) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -s conftest$ac_exeext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_func_cthread_fork=yes
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_cv_func_cthread_fork=no
20678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20680 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
20681 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
20682 if test $ac_cv_func_cthread_fork = yes; then
20683 ol_link_threads=yes
20688 if test $ol_link_threads = yes ; then
20689 LTHREAD_LIBS="-lthreads"
20690 ol_link_threads=mach
20691 ol_with_threads=found
20693 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
20694 echo "$as_me: error: could not link with Mach CThreads" >&2;}
20695 { (exit 1); exit 1; }; }
20698 elif test $ol_with_threads = mach ; then
20699 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
20700 echo "$as_me: error: could not locate Mach CThreads" >&2;}
20701 { (exit 1); exit 1; }; }
20704 if test $ol_link_threads = mach ; then
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_MACH_CTHREADS 1
20710 elif test $ol_with_threads = found ; then
20711 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
20712 echo "$as_me: error: could not link with Mach CThreads" >&2;}
20713 { (exit 1); exit 1; }; }
20717 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20718 -o $ol_with_threads = pth ; then
20721 for ac_header in pth.h
20723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20725 echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20733 # Is the header compilable?
20734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20736 cat >conftest.$ac_ext <<_ACEOF
20737 #line $LINENO "configure"
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20744 #include <$ac_header>
20746 rm -f conftest.$ac_objext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748 (eval $ac_compile) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -s conftest.$ac_objext'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 ac_header_compiler=yes
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_header_compiler=no
20765 rm -f conftest.$ac_objext conftest.$ac_ext
20766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20767 echo "${ECHO_T}$ac_header_compiler" >&6
20769 # Is the header present?
20770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20772 cat >conftest.$ac_ext <<_ACEOF
20773 #line $LINENO "configure"
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 #include <$ac_header>
20781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } >/dev/null; then
20789 if test -s conftest.err; then
20790 ac_cpp_err=$ac_c_preproc_warn_flag
20797 if test -z "$ac_cpp_err"; then
20798 ac_header_preproc=yes
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_header_preproc=no
20805 rm -f conftest.err conftest.$ac_ext
20806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20807 echo "${ECHO_T}$ac_header_preproc" >&6
20809 # So? What about this header?
20810 case $ac_header_compiler:$ac_header_preproc in
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20818 ## ------------------------------------ ##
20819 ## Report this to bug-autoconf@gnu.org. ##
20820 ## ------------------------------------ ##
20823 sed "s/^/$as_me: WARNING: /" >&2
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20834 ## ------------------------------------ ##
20835 ## Report this to bug-autoconf@gnu.org. ##
20836 ## ------------------------------------ ##
20839 sed "s/^/$as_me: WARNING: /" >&2
20842 echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 eval "$as_ac_Header=$ac_header_preproc"
20849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20863 if test $ac_cv_header_pth_h = yes ; then
20864 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
20865 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
20866 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 ac_check_lib_save_LIBS=$LIBS
20871 cat >conftest.$ac_ext <<_ACEOF
20872 #line $LINENO "configure"
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20879 /* Override any gcc2 internal prototype to avoid an error. */
20883 /* We use char because int might match the return type of a gcc2
20884 builtin and then its argument prototype would still apply. */
20885 char pth_version ();
20894 rm -f conftest.$ac_objext conftest$ac_exeext
20895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896 (eval $ac_link) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -s conftest$ac_exeext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_lib_pth_pth_version=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_cv_lib_pth_pth_version=no
20913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20914 LIBS=$ac_check_lib_save_LIBS
20916 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
20917 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
20918 if test $ac_cv_lib_pth_pth_version = yes; then
20925 if test $have_pth = yes ; then
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_GNU_PTH 1
20931 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
20932 ol_link_threads=pth
20933 ol_with_threads=found
20935 if test $ol_with_yielding_select = auto ; then
20936 ol_with_yielding_select=yes
20942 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20943 -o $ol_with_threads = lwp ; then
20947 for ac_header in thread.h synch.h
20949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20951 echo "$as_me:$LINENO: checking for $ac_header" >&5
20952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20959 # Is the header compilable?
20960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20962 cat >conftest.$ac_ext <<_ACEOF
20963 #line $LINENO "configure"
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20970 #include <$ac_header>
20972 rm -f conftest.$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_header_compiler=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_header_compiler=no
20991 rm -f conftest.$ac_objext conftest.$ac_ext
20992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20993 echo "${ECHO_T}$ac_header_compiler" >&6
20995 # Is the header present?
20996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20998 cat >conftest.$ac_ext <<_ACEOF
20999 #line $LINENO "configure"
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <$ac_header>
21007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } >/dev/null; then
21015 if test -s conftest.err; then
21016 ac_cpp_err=$ac_c_preproc_warn_flag
21023 if test -z "$ac_cpp_err"; then
21024 ac_header_preproc=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_header_preproc=no
21031 rm -f conftest.err conftest.$ac_ext
21032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21033 echo "${ECHO_T}$ac_header_preproc" >&6
21035 # So? What about this header?
21036 case $ac_header_compiler:$ac_header_preproc in
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21044 ## ------------------------------------ ##
21045 ## Report this to bug-autoconf@gnu.org. ##
21046 ## ------------------------------------ ##
21049 sed "s/^/$as_me: WARNING: /" >&2
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21060 ## ------------------------------------ ##
21061 ## Report this to bug-autoconf@gnu.org. ##
21062 ## ------------------------------------ ##
21065 sed "s/^/$as_me: WARNING: /" >&2
21068 echo "$as_me:$LINENO: checking for $ac_header" >&5
21069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 eval "$as_ac_Header=$ac_header_preproc"
21075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21080 cat >>confdefs.h <<_ACEOF
21081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21088 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
21089 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
21090 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
21091 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-lthread $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21104 /* Override any gcc2 internal prototype to avoid an error. */
21108 /* We use char because int might match the return type of a gcc2
21109 builtin and then its argument prototype would still apply. */
21110 char thr_create ();
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
21125 { ac_try='test -s conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_lib_thread_thr_create=yes
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_cv_lib_thread_thr_create=no
21138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21139 LIBS=$ac_check_lib_save_LIBS
21141 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
21142 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
21143 if test $ac_cv_lib_thread_thr_create = yes; then
21150 if test $have_thr = yes ; then
21152 cat >>confdefs.h <<\_ACEOF
21156 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
21157 ol_link_threads=thr
21159 if test $ol_with_yielding_select = auto ; then
21160 ol_with_yielding_select=yes
21166 thr_setconcurrency \
21167 thr_getconcurrency \
21170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21173 if eval "test \"\${$as_ac_var+set}\" = set"; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21177 #line $LINENO "configure"
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char $ac_func (); below.
21185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186 <limits.h> exists even on freestanding compilers. */
21188 # include <limits.h>
21190 # include <assert.h>
21192 /* Override any gcc2 internal prototype to avoid an error. */
21197 /* We use char because int might match the return type of a gcc2
21198 builtin and then its argument prototype would still apply. */
21200 /* The GNU C library defines this for functions which it implements
21201 to always fail with ENOSYS. Some functions are actually named
21202 something starting with __ and the normal name is an alias. */
21203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21206 char (*f) () = $ac_func;
21215 return f != $ac_func;
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21222 (eval $ac_link) 2>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } &&
21226 { ac_try='test -s conftest$ac_exeext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 eval "$as_ac_var=yes"
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 eval "$as_ac_var=no"
21239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21255 for ac_header in lwp/lwp.h
21257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21259 echo "$as_me:$LINENO: checking for $ac_header" >&5
21260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21267 # Is the header compilable?
21268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21271 #line $LINENO "configure"
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 $ac_includes_default
21278 #include <$ac_header>
21280 rm -f conftest.$ac_objext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21282 (eval $ac_compile) 2>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
21286 { ac_try='test -s conftest.$ac_objext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_header_compiler=yes
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_header_compiler=no
21299 rm -f conftest.$ac_objext conftest.$ac_ext
21300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21301 echo "${ECHO_T}$ac_header_compiler" >&6
21303 # Is the header present?
21304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21306 cat >conftest.$ac_ext <<_ACEOF
21307 #line $LINENO "configure"
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <$ac_header>
21315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } >/dev/null; then
21323 if test -s conftest.err; then
21324 ac_cpp_err=$ac_c_preproc_warn_flag
21331 if test -z "$ac_cpp_err"; then
21332 ac_header_preproc=yes
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_header_preproc=no
21339 rm -f conftest.err conftest.$ac_ext
21340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21341 echo "${ECHO_T}$ac_header_preproc" >&6
21343 # So? What about this header?
21344 case $ac_header_compiler:$ac_header_preproc in
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21352 ## ------------------------------------ ##
21353 ## Report this to bug-autoconf@gnu.org. ##
21354 ## ------------------------------------ ##
21357 sed "s/^/$as_me: WARNING: /" >&2
21360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21368 ## ------------------------------------ ##
21369 ## Report this to bug-autoconf@gnu.org. ##
21370 ## ------------------------------------ ##
21373 sed "s/^/$as_me: WARNING: /" >&2
21376 echo "$as_me:$LINENO: checking for $ac_header" >&5
21377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 eval "$as_ac_Header=$ac_header_preproc"
21383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21388 cat >>confdefs.h <<_ACEOF
21389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21396 if test $ac_cv_header_lwp_lwp_h = yes ; then
21397 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
21398 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
21399 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 ac_check_lib_save_LIBS=$LIBS
21404 cat >conftest.$ac_ext <<_ACEOF
21405 #line $LINENO "configure"
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 /* Override any gcc2 internal prototype to avoid an error. */
21416 /* We use char because int might match the return type of a gcc2
21417 builtin and then its argument prototype would still apply. */
21418 char lwp_create ();
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -s conftest$ac_exeext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_lib_lwp_lwp_create=yes
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_cv_lib_lwp_lwp_create=no
21446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21447 LIBS=$ac_check_lib_save_LIBS
21449 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
21450 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
21451 if test $ac_cv_lib_lwp_lwp_create = yes; then
21458 if test $have_lwp = yes ; then
21460 cat >>confdefs.h <<\_ACEOF
21464 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
21465 ol_link_threads=lwp
21467 if test $ol_with_yielding_select = auto ; then
21468 ol_with_yielding_select=no
21474 if test $ol_with_yielding_select = yes ; then
21476 cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_YIELDING_SELECT 1
21482 if test $ol_with_threads = manual ; then
21483 ol_link_threads=yes
21485 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
21486 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
21490 for ac_header in pthread.h sched.h
21492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21494 echo "$as_me:$LINENO: checking for $ac_header" >&5
21495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21502 # Is the header compilable?
21503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21506 #line $LINENO "configure"
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 $ac_includes_default
21513 #include <$ac_header>
21515 rm -f conftest.$ac_objext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21517 (eval $ac_compile) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -s conftest.$ac_objext'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; }; then
21527 ac_header_compiler=yes
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ac_header_compiler=no
21534 rm -f conftest.$ac_objext conftest.$ac_ext
21535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21536 echo "${ECHO_T}$ac_header_compiler" >&6
21538 # Is the header present?
21539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21541 cat >conftest.$ac_ext <<_ACEOF
21542 #line $LINENO "configure"
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <$ac_header>
21550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } >/dev/null; then
21558 if test -s conftest.err; then
21559 ac_cpp_err=$ac_c_preproc_warn_flag
21566 if test -z "$ac_cpp_err"; then
21567 ac_header_preproc=yes
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_header_preproc=no
21574 rm -f conftest.err conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21576 echo "${ECHO_T}$ac_header_preproc" >&6
21578 # So? What about this header?
21579 case $ac_header_compiler:$ac_header_preproc in
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21587 ## ------------------------------------ ##
21588 ## Report this to bug-autoconf@gnu.org. ##
21589 ## ------------------------------------ ##
21592 sed "s/^/$as_me: WARNING: /" >&2
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21603 ## ------------------------------------ ##
21604 ## Report this to bug-autoconf@gnu.org. ##
21605 ## ------------------------------------ ##
21608 sed "s/^/$as_me: WARNING: /" >&2
21611 echo "$as_me:$LINENO: checking for $ac_header" >&5
21612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 eval "$as_ac_Header=$ac_header_preproc"
21618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21623 cat >>confdefs.h <<_ACEOF
21624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21633 for ac_func in sched_yield pthread_yield
21635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636 echo "$as_me:$LINENO: checking for $ac_func" >&5
21637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21638 if eval "test \"\${$as_ac_var+set}\" = set"; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21641 cat >conftest.$ac_ext <<_ACEOF
21642 #line $LINENO "configure"
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 /* System header to define __stub macros and hopefully few prototypes,
21649 which can conflict with char $ac_func (); below.
21650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21651 <limits.h> exists even on freestanding compilers. */
21653 # include <limits.h>
21655 # include <assert.h>
21657 /* Override any gcc2 internal prototype to avoid an error. */
21662 /* We use char because int might match the return type of a gcc2
21663 builtin and then its argument prototype would still apply. */
21665 /* The GNU C library defines this for functions which it implements
21666 to always fail with ENOSYS. Some functions are actually named
21667 something starting with __ and the normal name is an alias. */
21668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21671 char (*f) () = $ac_func;
21680 return f != $ac_func;
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687 (eval $ac_link) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try='test -s conftest$ac_exeext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 eval "$as_ac_var=yes"
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 eval "$as_ac_var=no"
21704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21708 if test `eval echo '${'$as_ac_var'}'` = yes; then
21709 cat >>confdefs.h <<_ACEOF
21710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
21718 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
21719 if test "${ol_cv_header_linux_threads+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21722 cat >conftest.$ac_ext <<_ACEOF
21723 #line $LINENO "configure"
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 #include <pthread.h>
21731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21732 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
21733 ol_cv_header_linux_threads=yes
21735 ol_cv_header_linux_threads=no
21741 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
21742 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
21743 if test $ol_cv_header_linux_threads = yes; then
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_LINUX_THREADS 1
21753 for ac_header in mach/cthreads.h
21755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21757 echo "$as_me:$LINENO: checking for $ac_header" >&5
21758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21765 # Is the header compilable?
21766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21768 cat >conftest.$ac_ext <<_ACEOF
21769 #line $LINENO "configure"
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 $ac_includes_default
21776 #include <$ac_header>
21778 rm -f conftest.$ac_objext
21779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21780 (eval $ac_compile) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_header_compiler=yes
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_header_compiler=no
21797 rm -f conftest.$ac_objext conftest.$ac_ext
21798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21799 echo "${ECHO_T}$ac_header_compiler" >&6
21801 # Is the header present?
21802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 #include <$ac_header>
21813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1 >conftest.err
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } >/dev/null; then
21821 if test -s conftest.err; then
21822 ac_cpp_err=$ac_c_preproc_warn_flag
21829 if test -z "$ac_cpp_err"; then
21830 ac_header_preproc=yes
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_header_preproc=no
21837 rm -f conftest.err conftest.$ac_ext
21838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21839 echo "${ECHO_T}$ac_header_preproc" >&6
21841 # So? What about this header?
21842 case $ac_header_compiler:$ac_header_preproc in
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21850 ## ------------------------------------ ##
21851 ## Report this to bug-autoconf@gnu.org. ##
21852 ## ------------------------------------ ##
21855 sed "s/^/$as_me: WARNING: /" >&2
21858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21866 ## ------------------------------------ ##
21867 ## Report this to bug-autoconf@gnu.org. ##
21868 ## ------------------------------------ ##
21871 sed "s/^/$as_me: WARNING: /" >&2
21874 echo "$as_me:$LINENO: checking for $ac_header" >&5
21875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 eval "$as_ac_Header=$ac_header_preproc"
21881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21895 for ac_header in lwp/lwp.h
21897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21899 echo "$as_me:$LINENO: checking for $ac_header" >&5
21900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21907 # Is the header compilable?
21908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21910 cat >conftest.$ac_ext <<_ACEOF
21911 #line $LINENO "configure"
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 $ac_includes_default
21918 #include <$ac_header>
21920 rm -f conftest.$ac_objext
21921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21922 (eval $ac_compile) 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try='test -s conftest.$ac_objext'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_header_compiler=yes
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21937 ac_header_compiler=no
21939 rm -f conftest.$ac_objext conftest.$ac_ext
21940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21941 echo "${ECHO_T}$ac_header_compiler" >&6
21943 # Is the header present?
21944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21947 #line $LINENO "configure"
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <$ac_header>
21955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } >/dev/null; then
21963 if test -s conftest.err; then
21964 ac_cpp_err=$ac_c_preproc_warn_flag
21971 if test -z "$ac_cpp_err"; then
21972 ac_header_preproc=yes
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 ac_header_preproc=no
21979 rm -f conftest.err conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21981 echo "${ECHO_T}$ac_header_preproc" >&6
21983 # So? What about this header?
21984 case $ac_header_compiler:$ac_header_preproc in
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21992 ## ------------------------------------ ##
21993 ## Report this to bug-autoconf@gnu.org. ##
21994 ## ------------------------------------ ##
21997 sed "s/^/$as_me: WARNING: /" >&2
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22008 ## ------------------------------------ ##
22009 ## Report this to bug-autoconf@gnu.org. ##
22010 ## ------------------------------------ ##
22013 sed "s/^/$as_me: WARNING: /" >&2
22016 echo "$as_me:$LINENO: checking for $ac_header" >&5
22017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 eval "$as_ac_Header=$ac_header_preproc"
22023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22038 for ac_header in thread.h synch.h
22040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22042 echo "$as_me:$LINENO: checking for $ac_header" >&5
22043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22050 # Is the header compilable?
22051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22053 cat >conftest.$ac_ext <<_ACEOF
22054 #line $LINENO "configure"
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 $ac_includes_default
22061 #include <$ac_header>
22063 rm -f conftest.$ac_objext
22064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22065 (eval $ac_compile) 2>&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -s conftest.$ac_objext'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ac_header_compiler=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_header_compiler=no
22082 rm -f conftest.$ac_objext conftest.$ac_ext
22083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22084 echo "${ECHO_T}$ac_header_compiler" >&6
22086 # Is the header present?
22087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22089 cat >conftest.$ac_ext <<_ACEOF
22090 #line $LINENO "configure"
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <$ac_header>
22098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } >/dev/null; then
22106 if test -s conftest.err; then
22107 ac_cpp_err=$ac_c_preproc_warn_flag
22114 if test -z "$ac_cpp_err"; then
22115 ac_header_preproc=yes
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_header_preproc=no
22122 rm -f conftest.err conftest.$ac_ext
22123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22124 echo "${ECHO_T}$ac_header_preproc" >&6
22126 # So? What about this header?
22127 case $ac_header_compiler:$ac_header_preproc in
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22135 ## ------------------------------------ ##
22136 ## Report this to bug-autoconf@gnu.org. ##
22137 ## ------------------------------------ ##
22140 sed "s/^/$as_me: WARNING: /" >&2
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22151 ## ------------------------------------ ##
22152 ## Report this to bug-autoconf@gnu.org. ##
22153 ## ------------------------------------ ##
22156 sed "s/^/$as_me: WARNING: /" >&2
22159 echo "$as_me:$LINENO: checking for $ac_header" >&5
22160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 eval "$as_ac_Header=$ac_header_preproc"
22166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22171 cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22181 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
22182 cat >>confdefs.h <<\_ACEOF
22183 #define REENTRANT 1
22186 cat >>confdefs.h <<\_ACEOF
22187 #define _REENTRANT 1
22190 cat >>confdefs.h <<\_ACEOF
22191 #define THREAD_SAFE 1
22194 cat >>confdefs.h <<\_ACEOF
22195 #define _THREAD_SAFE 1
22198 cat >>confdefs.h <<\_ACEOF
22199 #define THREADSAFE 1
22202 cat >>confdefs.h <<\_ACEOF
22203 #define _THREADSAFE 1
22206 cat >>confdefs.h <<\_ACEOF
22207 #define _SGI_MP_SOURCE 1
22211 echo "$as_me:$LINENO: checking for thread specific errno" >&5
22212 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
22213 if test "${ol_cv_errno_thread_specific+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 cat >conftest.$ac_ext <<_ACEOF
22218 #line $LINENO "configure"
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22235 (eval $ac_link) 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } &&
22239 { ac_try='test -s conftest$ac_exeext'
22240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241 (eval $ac_try) 2>&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; }; then
22245 ol_cv_errno_thread_specific=yes
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ol_cv_errno_thread_specific=no
22252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
22256 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
22258 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
22259 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
22260 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 cat >conftest.$ac_ext <<_ACEOF
22265 #line $LINENO "configure"
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22282 (eval $ac_link) 2>&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -s conftest$ac_exeext'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ol_cv_h_errno_thread_specific=yes
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ol_cv_h_errno_thread_specific=no
22299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22302 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
22303 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
22305 if test $ol_cv_errno_thread_specific != yes \
22306 -o $ol_cv_h_errno_thread_specific != yes ; then
22307 LIBS="$LTHREAD_LIBS $LIBS"
22313 if test $ol_link_threads = no ; then
22314 if test $ol_with_threads = yes ; then
22315 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
22316 echo "$as_me: error: no suitable thread support" >&2;}
22317 { (exit 1); exit 1; }; }
22320 if test $ol_with_threads = auto ; then
22321 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
22322 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
22327 cat >>confdefs.h <<\_ACEOF
22328 #define NO_THREADS 1
22334 if test $ol_link_threads != no ; then
22335 cat >>confdefs.h <<\_ACEOF
22336 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
22346 gethostbyname_r gethostbyaddr_r \
22349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22350 echo "$as_me:$LINENO: checking for $ac_func" >&5
22351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22352 if eval "test \"\${$as_ac_var+set}\" = set"; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 cat >conftest.$ac_ext <<_ACEOF
22356 #line $LINENO "configure"
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 /* System header to define __stub macros and hopefully few prototypes,
22363 which can conflict with char $ac_func (); below.
22364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365 <limits.h> exists even on freestanding compilers. */
22367 # include <limits.h>
22369 # include <assert.h>
22371 /* Override any gcc2 internal prototype to avoid an error. */
22376 /* We use char because int might match the return type of a gcc2
22377 builtin and then its argument prototype would still apply. */
22379 /* The GNU C library defines this for functions which it implements
22380 to always fail with ENOSYS. Some functions are actually named
22381 something starting with __ and the normal name is an alias. */
22382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22385 char (*f) () = $ac_func;
22394 return f != $ac_func;
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401 (eval $ac_link) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -s conftest$ac_exeext'
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 eval "$as_ac_var=yes"
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 eval "$as_ac_var=no"
22418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22422 if test `eval echo '${'$as_ac_var'}'` = yes; then
22423 cat >>confdefs.h <<_ACEOF
22424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 if test "$ac_cv_func_ctime_r" = no ; then
22432 ol_cv_func_ctime_r_nargs=0
22434 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
22435 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
22436 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22440 #line $LINENO "configure"
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22450 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
22455 rm -f conftest.$ac_objext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22457 (eval $ac_compile) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
22461 { ac_try='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ol_cv_func_ctime_r_nargs3=yes
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22472 ol_cv_func_ctime_r_nargs3=no
22474 rm -f conftest.$ac_objext conftest.$ac_ext
22476 cat >conftest.$ac_ext <<_ACEOF
22477 #line $LINENO "configure"
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22487 time_t ti; char *buffer; ctime_r(&ti,buffer);
22492 rm -f conftest.$ac_objext
22493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22494 (eval $ac_compile) 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
22498 { ac_try='test -s conftest.$ac_objext'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 ol_cv_func_ctime_r_nargs2=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ol_cv_func_ctime_r_nargs2=no
22511 rm -f conftest.$ac_objext conftest.$ac_ext
22513 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
22514 $ol_cv_func_ctime_r_nargs2 = no ; then
22516 ol_cv_func_ctime_r_nargs=3
22518 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
22519 $ol_cv_func_ctime_r_nargs2 = yes ; then
22521 ol_cv_func_ctime_r_nargs=2
22524 ol_cv_func_ctime_r_nargs=0
22528 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
22529 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
22531 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
22541 if test "$ac_cv_func_gethostbyname_r" = yes ; then
22542 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
22543 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
22544 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22547 cat >conftest.$ac_ext <<_ACEOF
22548 #line $LINENO "configure"
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 #include <sys/types.h>
22555 #include <sys/socket.h>
22556 #include <netinet/in.h>
22558 #define BUFSIZE (sizeof(struct hostent)+10)
22562 struct hostent hent; char buffer[BUFSIZE];
22563 int bufsize=BUFSIZE;int h_errno;
22564 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
22565 buffer, bufsize, &h_errno);
22570 rm -f conftest.$ac_objext
22571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22572 (eval $ac_compile) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
22576 { ac_try='test -s conftest.$ac_objext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22582 ol_cv_func_gethostbyname_r_nargs5=yes
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 ol_cv_func_gethostbyname_r_nargs5=no
22589 rm -f conftest.$ac_objext conftest.$ac_ext
22591 cat >conftest.$ac_ext <<_ACEOF
22592 #line $LINENO "configure"
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 #include <sys/types.h>
22599 #include <sys/socket.h>
22600 #include <netinet/in.h>
22602 #define BUFSIZE (sizeof(struct hostent)+10)
22606 struct hostent hent;struct hostent *rhent;
22607 char buffer[BUFSIZE];
22608 int bufsize=BUFSIZE;int h_errno;
22609 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
22615 rm -f conftest.$ac_objext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617 (eval $ac_compile) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -s conftest.$ac_objext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ol_cv_func_gethostbyname_r_nargs6=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ol_cv_func_gethostbyname_r_nargs6=no
22634 rm -f conftest.$ac_objext conftest.$ac_ext
22636 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
22637 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
22639 ol_cv_func_gethostbyname_r_nargs=5
22641 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
22642 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
22644 ol_cv_func_gethostbyname_r_nargs=6
22647 ol_cv_func_gethostbyname_r_nargs=0
22651 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
22652 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
22653 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
22655 cat >>confdefs.h <<_ACEOF
22656 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
22662 ol_cv_func_gethostbyname_r_nargs=0
22665 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
22666 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
22667 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
22668 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #line $LINENO "configure"
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22678 #include <sys/types.h>
22679 #include <sys/socket.h>
22680 #include <netinet/in.h>
22682 #define BUFSIZE (sizeof(struct hostent)+10)
22686 struct hostent hent; char buffer[BUFSIZE];
22687 struct in_addr add;
22688 size_t alen=sizeof(struct in_addr);
22689 int bufsize=BUFSIZE;int h_errno;
22690 (void)gethostbyaddr_r( (void *)&(add.s_addr),
22691 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
22696 rm -f conftest.$ac_objext
22697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22698 (eval $ac_compile) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } &&
22702 { ac_try='test -s conftest.$ac_objext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 ol_cv_func_gethostbyaddr_r_nargs7=yes
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22713 ol_cv_func_gethostbyaddr_r_nargs7=no
22715 rm -f conftest.$ac_objext conftest.$ac_ext
22717 cat >conftest.$ac_ext <<_ACEOF
22718 #line $LINENO "configure"
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <sys/types.h>
22725 #include <sys/socket.h>
22726 #include <netinet/in.h>
22728 #define BUFSIZE (sizeof(struct hostent)+10)
22732 struct hostent hent;
22733 struct hostent *rhent; char buffer[BUFSIZE];
22734 struct in_addr add;
22735 size_t alen=sizeof(struct in_addr);
22736 int bufsize=BUFSIZE;int h_errno;
22737 (void)gethostbyaddr_r( (void *)&(add.s_addr),
22738 alen, AF_INET, &hent, buffer, bufsize,
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -s conftest.$ac_objext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ol_cv_func_gethostbyaddr_r_nargs8=yes
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ol_cv_func_gethostbyaddr_r_nargs8=no
22763 rm -f conftest.$ac_objext conftest.$ac_ext
22765 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
22766 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
22768 ol_cv_func_gethostbyaddr_r_nargs=7
22770 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
22771 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
22773 ol_cv_func_gethostbyaddr_r_nargs=8
22776 ol_cv_func_gethostbyaddr_r_nargs=0
22780 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
22781 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
22782 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
22784 cat >>confdefs.h <<_ACEOF
22785 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
22791 ol_cv_func_gethostbyaddr_r_nargs=0
22796 if test $ol_with_ldbm_api = auto \
22797 -o $ol_with_ldbm_api = berkeley \
22798 -o $ol_with_ldbm_api = bcompat ; then
22800 if test $ol_with_ldbm_api = bcompat; then \
22803 for ac_header in db_185.h db.h
22805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22807 echo "$as_me:$LINENO: checking for $ac_header" >&5
22808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22815 # Is the header compilable?
22816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22818 cat >conftest.$ac_ext <<_ACEOF
22819 #line $LINENO "configure"
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 $ac_includes_default
22826 #include <$ac_header>
22828 rm -f conftest.$ac_objext
22829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22830 (eval $ac_compile) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } &&
22834 { ac_try='test -s conftest.$ac_objext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ac_header_compiler=yes
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_header_compiler=no
22847 rm -f conftest.$ac_objext conftest.$ac_ext
22848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22849 echo "${ECHO_T}$ac_header_compiler" >&6
22851 # Is the header present?
22852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22854 cat >conftest.$ac_ext <<_ACEOF
22855 #line $LINENO "configure"
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <$ac_header>
22863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22866 grep -v '^ *+' conftest.er1 >conftest.err
22868 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } >/dev/null; then
22871 if test -s conftest.err; then
22872 ac_cpp_err=$ac_c_preproc_warn_flag
22879 if test -z "$ac_cpp_err"; then
22880 ac_header_preproc=yes
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ac_header_preproc=no
22887 rm -f conftest.err conftest.$ac_ext
22888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22889 echo "${ECHO_T}$ac_header_preproc" >&6
22891 # So? What about this header?
22892 case $ac_header_compiler:$ac_header_preproc in
22894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22900 ## ------------------------------------ ##
22901 ## Report this to bug-autoconf@gnu.org. ##
22902 ## ------------------------------------ ##
22905 sed "s/^/$as_me: WARNING: /" >&2
22908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22916 ## ------------------------------------ ##
22917 ## Report this to bug-autoconf@gnu.org. ##
22918 ## ------------------------------------ ##
22921 sed "s/^/$as_me: WARNING: /" >&2
22924 echo "$as_me:$LINENO: checking for $ac_header" >&5
22925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 eval "$as_ac_Header=$ac_header_preproc"
22931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22936 cat >>confdefs.h <<_ACEOF
22937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22944 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
22945 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
22946 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
22947 if test "${ol_cv_header_db1+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 cat >conftest.$ac_ext <<_ACEOF
22952 #line $LINENO "configure"
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22960 # include <db_185.h>
22965 /* this check could be improved */
22966 #ifndef DB_VERSION_MAJOR
22967 # define DB_VERSION_MAJOR 1
22970 #if DB_VERSION_MAJOR == 1
22975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22976 $EGREP "__db_version_1" >/dev/null 2>&1; then
22977 ol_cv_header_db1=yes
22979 ol_cv_header_db1=no
22984 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
22985 echo "${ECHO_T}$ol_cv_header_db1" >&6
22987 if test $ol_cv_header_db1 = yes ; then
22989 if test $ol_cv_lib_db = no ; then
22990 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
22991 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
22992 if test "${ol_cv_db_none+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23000 cat >conftest.$ac_ext <<_ACEOF
23001 #line $LINENO "configure"
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23008 #ifdef HAVE_DB_185_H
23009 # include <db_185.h>
23014 #ifndef DB_VERSION_MAJOR
23015 # define DB_VERSION_MAJOR 1
23019 #define NULL ((void*)0)
23026 #if DB_VERSION_MAJOR > 1
23029 int major, minor, patch;
23031 version = db_version( &major, &minor, &patch );
23033 if( major != DB_VERSION_MAJOR ||
23034 minor < DB_VERSION_MINOR )
23036 printf("Berkeley DB version mismatch\n"
23037 "\texpected: %s\n\tgot: %s\n",
23038 DB_VERSION_STRING, version);
23044 #if DB_VERSION_MAJOR > 2
23045 db_env_create( NULL, 0 );
23046 #elif DB_VERSION_MAJOR > 1
23047 db_appexit( NULL );
23049 (void) dbopen( NULL, 0, 0, 0, NULL);
23056 rm -f conftest.$ac_objext conftest$ac_exeext
23057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23058 (eval $ac_link) 2>&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } &&
23062 { ac_try='test -s conftest$ac_exeext'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; }; then
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23080 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
23081 echo "${ECHO_T}$ol_cv_db_none" >&6
23083 if test $ol_cv_db_none = yes ; then
23088 if test $ol_cv_lib_db = no ; then
23089 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
23090 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
23091 if test "${ol_cv_db_db41+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23099 cat >conftest.$ac_ext <<_ACEOF
23100 #line $LINENO "configure"
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23107 #ifdef HAVE_DB_185_H
23108 # include <db_185.h>
23113 #ifndef DB_VERSION_MAJOR
23114 # define DB_VERSION_MAJOR 1
23118 #define NULL ((void*)0)
23125 #if DB_VERSION_MAJOR > 1
23128 int major, minor, patch;
23130 version = db_version( &major, &minor, &patch );
23132 if( major != DB_VERSION_MAJOR ||
23133 minor < DB_VERSION_MINOR )
23135 printf("Berkeley DB version mismatch\n"
23136 "\texpected: %s\n\tgot: %s\n",
23137 DB_VERSION_STRING, version);
23143 #if DB_VERSION_MAJOR > 2
23144 db_env_create( NULL, 0 );
23145 #elif DB_VERSION_MAJOR > 1
23146 db_appexit( NULL );
23148 (void) dbopen( NULL, 0, 0, 0, NULL);
23155 rm -f conftest.$ac_objext conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157 (eval $ac_link) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } &&
23161 { ac_try='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23179 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
23180 echo "${ECHO_T}$ol_cv_db_db41" >&6
23182 if test $ol_cv_db_db41 = yes ; then
23183 ol_cv_lib_db=-ldb41
23187 if test $ol_cv_lib_db = no ; then
23188 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
23189 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
23190 if test "${ol_cv_db_db_41+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23198 cat >conftest.$ac_ext <<_ACEOF
23199 #line $LINENO "configure"
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23206 #ifdef HAVE_DB_185_H
23207 # include <db_185.h>
23212 #ifndef DB_VERSION_MAJOR
23213 # define DB_VERSION_MAJOR 1
23217 #define NULL ((void*)0)
23224 #if DB_VERSION_MAJOR > 1
23227 int major, minor, patch;
23229 version = db_version( &major, &minor, &patch );
23231 if( major != DB_VERSION_MAJOR ||
23232 minor < DB_VERSION_MINOR )
23234 printf("Berkeley DB version mismatch\n"
23235 "\texpected: %s\n\tgot: %s\n",
23236 DB_VERSION_STRING, version);
23242 #if DB_VERSION_MAJOR > 2
23243 db_env_create( NULL, 0 );
23244 #elif DB_VERSION_MAJOR > 1
23245 db_appexit( NULL );
23247 (void) dbopen( NULL, 0, 0, 0, NULL);
23254 rm -f conftest.$ac_objext conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256 (eval $ac_link) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } &&
23260 { ac_try='test -s conftest$ac_exeext'
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23278 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
23279 echo "${ECHO_T}$ol_cv_db_db_41" >&6
23281 if test $ol_cv_db_db_41 = yes ; then
23282 ol_cv_lib_db=-ldb-41
23286 if test $ol_cv_lib_db = no ; then
23287 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
23288 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
23289 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
23290 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23297 cat >conftest.$ac_ext <<_ACEOF
23298 #line $LINENO "configure"
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23305 #ifdef HAVE_DB_185_H
23306 # include <db_185.h>
23311 #ifndef DB_VERSION_MAJOR
23312 # define DB_VERSION_MAJOR 1
23316 #define NULL ((void*)0)
23323 #if DB_VERSION_MAJOR > 1
23326 int major, minor, patch;
23328 version = db_version( &major, &minor, &patch );
23330 if( major != DB_VERSION_MAJOR ||
23331 minor < DB_VERSION_MINOR )
23333 printf("Berkeley DB version mismatch\n"
23334 "\texpected: %s\n\tgot: %s\n",
23335 DB_VERSION_STRING, version);
23341 #if DB_VERSION_MAJOR > 2
23342 db_env_create( NULL, 0 );
23343 #elif DB_VERSION_MAJOR > 1
23344 db_appexit( NULL );
23346 (void) dbopen( NULL, 0, 0, 0, NULL);
23353 rm -f conftest.$ac_objext conftest$ac_exeext
23354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23355 (eval $ac_link) 2>&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } &&
23359 { ac_try='test -s conftest$ac_exeext'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; }; then
23365 ol_cv_db_db_4_dot_1=yes
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 ol_cv_db_db_4_dot_1=no
23372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23377 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
23378 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
23380 if test $ol_cv_db_db_4_dot_1 = yes ; then
23381 ol_cv_lib_db=-ldb-4.1
23385 if test $ol_cv_lib_db = no ; then
23386 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
23387 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
23388 if test "${ol_cv_db_db_4_1+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23394 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23396 cat >conftest.$ac_ext <<_ACEOF
23397 #line $LINENO "configure"
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23404 #ifdef HAVE_DB_185_H
23405 # include <db_185.h>
23410 #ifndef DB_VERSION_MAJOR
23411 # define DB_VERSION_MAJOR 1
23415 #define NULL ((void*)0)
23422 #if DB_VERSION_MAJOR > 1
23425 int major, minor, patch;
23427 version = db_version( &major, &minor, &patch );
23429 if( major != DB_VERSION_MAJOR ||
23430 minor < DB_VERSION_MINOR )
23432 printf("Berkeley DB version mismatch\n"
23433 "\texpected: %s\n\tgot: %s\n",
23434 DB_VERSION_STRING, version);
23440 #if DB_VERSION_MAJOR > 2
23441 db_env_create( NULL, 0 );
23442 #elif DB_VERSION_MAJOR > 1
23443 db_appexit( NULL );
23445 (void) dbopen( NULL, 0, 0, 0, NULL);
23452 rm -f conftest.$ac_objext conftest$ac_exeext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
23458 { ac_try='test -s conftest$ac_exeext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ol_cv_db_db_4_1=yes
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
23477 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
23479 if test $ol_cv_db_db_4_1 = yes ; then
23480 ol_cv_lib_db=-ldb-4-1
23484 if test $ol_cv_lib_db = no ; then
23485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
23486 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
23487 if test "${ol_cv_db_db_4+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23495 cat >conftest.$ac_ext <<_ACEOF
23496 #line $LINENO "configure"
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23503 #ifdef HAVE_DB_185_H
23504 # include <db_185.h>
23509 #ifndef DB_VERSION_MAJOR
23510 # define DB_VERSION_MAJOR 1
23514 #define NULL ((void*)0)
23521 #if DB_VERSION_MAJOR > 1
23524 int major, minor, patch;
23526 version = db_version( &major, &minor, &patch );
23528 if( major != DB_VERSION_MAJOR ||
23529 minor < DB_VERSION_MINOR )
23531 printf("Berkeley DB version mismatch\n"
23532 "\texpected: %s\n\tgot: %s\n",
23533 DB_VERSION_STRING, version);
23539 #if DB_VERSION_MAJOR > 2
23540 db_env_create( NULL, 0 );
23541 #elif DB_VERSION_MAJOR > 1
23542 db_appexit( NULL );
23544 (void) dbopen( NULL, 0, 0, 0, NULL);
23551 rm -f conftest.$ac_objext conftest$ac_exeext
23552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23553 (eval $ac_link) 2>&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
23557 { ac_try='test -s conftest$ac_exeext'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23575 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
23576 echo "${ECHO_T}$ol_cv_db_db_4" >&6
23578 if test $ol_cv_db_db_4 = yes ; then
23579 ol_cv_lib_db=-ldb-4
23583 if test $ol_cv_lib_db = no ; then
23584 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
23585 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
23586 if test "${ol_cv_db_db4+set}" = set; then
23587 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23594 cat >conftest.$ac_ext <<_ACEOF
23595 #line $LINENO "configure"
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23602 #ifdef HAVE_DB_185_H
23603 # include <db_185.h>
23608 #ifndef DB_VERSION_MAJOR
23609 # define DB_VERSION_MAJOR 1
23613 #define NULL ((void*)0)
23620 #if DB_VERSION_MAJOR > 1
23623 int major, minor, patch;
23625 version = db_version( &major, &minor, &patch );
23627 if( major != DB_VERSION_MAJOR ||
23628 minor < DB_VERSION_MINOR )
23630 printf("Berkeley DB version mismatch\n"
23631 "\texpected: %s\n\tgot: %s\n",
23632 DB_VERSION_STRING, version);
23638 #if DB_VERSION_MAJOR > 2
23639 db_env_create( NULL, 0 );
23640 #elif DB_VERSION_MAJOR > 1
23641 db_appexit( NULL );
23643 (void) dbopen( NULL, 0, 0, 0, NULL);
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -s conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23674 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
23675 echo "${ECHO_T}$ol_cv_db_db4" >&6
23677 if test $ol_cv_db_db4 = yes ; then
23682 if test $ol_cv_lib_db = no ; then
23683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
23684 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
23685 if test "${ol_cv_db_db+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23693 cat >conftest.$ac_ext <<_ACEOF
23694 #line $LINENO "configure"
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h. */
23701 #ifdef HAVE_DB_185_H
23702 # include <db_185.h>
23707 #ifndef DB_VERSION_MAJOR
23708 # define DB_VERSION_MAJOR 1
23712 #define NULL ((void*)0)
23719 #if DB_VERSION_MAJOR > 1
23722 int major, minor, patch;
23724 version = db_version( &major, &minor, &patch );
23726 if( major != DB_VERSION_MAJOR ||
23727 minor < DB_VERSION_MINOR )
23729 printf("Berkeley DB version mismatch\n"
23730 "\texpected: %s\n\tgot: %s\n",
23731 DB_VERSION_STRING, version);
23737 #if DB_VERSION_MAJOR > 2
23738 db_env_create( NULL, 0 );
23739 #elif DB_VERSION_MAJOR > 1
23740 db_appexit( NULL );
23742 (void) dbopen( NULL, 0, 0, 0, NULL);
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
23755 { ac_try='test -s conftest$ac_exeext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23773 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
23774 echo "${ECHO_T}$ol_cv_db_db" >&6
23776 if test $ol_cv_db_db = yes ; then
23781 if test $ol_cv_lib_db = no ; then
23782 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
23783 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
23784 if test "${ol_cv_db_db3+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23792 cat >conftest.$ac_ext <<_ACEOF
23793 #line $LINENO "configure"
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23800 #ifdef HAVE_DB_185_H
23801 # include <db_185.h>
23806 #ifndef DB_VERSION_MAJOR
23807 # define DB_VERSION_MAJOR 1
23811 #define NULL ((void*)0)
23818 #if DB_VERSION_MAJOR > 1
23821 int major, minor, patch;
23823 version = db_version( &major, &minor, &patch );
23825 if( major != DB_VERSION_MAJOR ||
23826 minor < DB_VERSION_MINOR )
23828 printf("Berkeley DB version mismatch\n"
23829 "\texpected: %s\n\tgot: %s\n",
23830 DB_VERSION_STRING, version);
23836 #if DB_VERSION_MAJOR > 2
23837 db_env_create( NULL, 0 );
23838 #elif DB_VERSION_MAJOR > 1
23839 db_appexit( NULL );
23841 (void) dbopen( NULL, 0, 0, 0, NULL);
23848 rm -f conftest.$ac_objext conftest$ac_exeext
23849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23850 (eval $ac_link) 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -s conftest$ac_exeext'
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; }; then
23862 echo "$as_me: failed program was:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23872 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
23873 echo "${ECHO_T}$ol_cv_db_db3" >&6
23875 if test $ol_cv_db_db3 = yes ; then
23880 if test $ol_cv_lib_db = no ; then
23881 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
23882 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
23883 if test "${ol_cv_db_db_3+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23889 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23891 cat >conftest.$ac_ext <<_ACEOF
23892 #line $LINENO "configure"
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23899 #ifdef HAVE_DB_185_H
23900 # include <db_185.h>
23905 #ifndef DB_VERSION_MAJOR
23906 # define DB_VERSION_MAJOR 1
23910 #define NULL ((void*)0)
23917 #if DB_VERSION_MAJOR > 1
23920 int major, minor, patch;
23922 version = db_version( &major, &minor, &patch );
23924 if( major != DB_VERSION_MAJOR ||
23925 minor < DB_VERSION_MINOR )
23927 printf("Berkeley DB version mismatch\n"
23928 "\texpected: %s\n\tgot: %s\n",
23929 DB_VERSION_STRING, version);
23935 #if DB_VERSION_MAJOR > 2
23936 db_env_create( NULL, 0 );
23937 #elif DB_VERSION_MAJOR > 1
23938 db_appexit( NULL );
23940 (void) dbopen( NULL, 0, 0, 0, NULL);
23947 rm -f conftest.$ac_objext conftest$ac_exeext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23949 (eval $ac_link) 2>&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } &&
23953 { ac_try='test -s conftest$ac_exeext'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23971 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
23972 echo "${ECHO_T}$ol_cv_db_db_3" >&6
23974 if test $ol_cv_db_db_3 = yes ; then
23975 ol_cv_lib_db=-ldb-3
23979 if test $ol_cv_lib_db = no ; then
23980 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
23981 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
23982 if test "${ol_cv_db_db2+set}" = set; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23990 cat >conftest.$ac_ext <<_ACEOF
23991 #line $LINENO "configure"
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23998 #ifdef HAVE_DB_185_H
23999 # include <db_185.h>
24004 #ifndef DB_VERSION_MAJOR
24005 # define DB_VERSION_MAJOR 1
24009 #define NULL ((void*)0)
24016 #if DB_VERSION_MAJOR > 1
24019 int major, minor, patch;
24021 version = db_version( &major, &minor, &patch );
24023 if( major != DB_VERSION_MAJOR ||
24024 minor < DB_VERSION_MINOR )
24026 printf("Berkeley DB version mismatch\n"
24027 "\texpected: %s\n\tgot: %s\n",
24028 DB_VERSION_STRING, version);
24034 #if DB_VERSION_MAJOR > 2
24035 db_env_create( NULL, 0 );
24036 #elif DB_VERSION_MAJOR > 1
24037 db_appexit( NULL );
24039 (void) dbopen( NULL, 0, 0, 0, NULL);
24046 rm -f conftest.$ac_objext conftest$ac_exeext
24047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24048 (eval $ac_link) 2>&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -s conftest$ac_exeext'
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24070 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
24071 echo "${ECHO_T}$ol_cv_db_db2" >&6
24073 if test $ol_cv_db_db2 = yes ; then
24078 if test $ol_cv_lib_db = no ; then
24079 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
24080 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
24081 if test "${ol_cv_db_db_2+set}" = set; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24089 cat >conftest.$ac_ext <<_ACEOF
24090 #line $LINENO "configure"
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24097 #ifdef HAVE_DB_185_H
24098 # include <db_185.h>
24103 #ifndef DB_VERSION_MAJOR
24104 # define DB_VERSION_MAJOR 1
24108 #define NULL ((void*)0)
24115 #if DB_VERSION_MAJOR > 1
24118 int major, minor, patch;
24120 version = db_version( &major, &minor, &patch );
24122 if( major != DB_VERSION_MAJOR ||
24123 minor < DB_VERSION_MINOR )
24125 printf("Berkeley DB version mismatch\n"
24126 "\texpected: %s\n\tgot: %s\n",
24127 DB_VERSION_STRING, version);
24133 #if DB_VERSION_MAJOR > 2
24134 db_env_create( NULL, 0 );
24135 #elif DB_VERSION_MAJOR > 1
24136 db_appexit( NULL );
24138 (void) dbopen( NULL, 0, 0, 0, NULL);
24145 rm -f conftest.$ac_objext conftest$ac_exeext
24146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24147 (eval $ac_link) 2>&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
24151 { ac_try='test -s conftest$ac_exeext'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24159 echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24169 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
24170 echo "${ECHO_T}$ol_cv_db_db_2" >&6
24172 if test $ol_cv_db_db_2 = yes ; then
24173 ol_cv_lib_db=-ldb-2
24177 if test $ol_cv_lib_db = no ; then
24178 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
24179 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
24180 if test "${ol_cv_db_db1+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24186 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24188 cat >conftest.$ac_ext <<_ACEOF
24189 #line $LINENO "configure"
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24196 #ifdef HAVE_DB_185_H
24197 # include <db_185.h>
24202 #ifndef DB_VERSION_MAJOR
24203 # define DB_VERSION_MAJOR 1
24207 #define NULL ((void*)0)
24214 #if DB_VERSION_MAJOR > 1
24217 int major, minor, patch;
24219 version = db_version( &major, &minor, &patch );
24221 if( major != DB_VERSION_MAJOR ||
24222 minor < DB_VERSION_MINOR )
24224 printf("Berkeley DB version mismatch\n"
24225 "\texpected: %s\n\tgot: %s\n",
24226 DB_VERSION_STRING, version);
24232 #if DB_VERSION_MAJOR > 2
24233 db_env_create( NULL, 0 );
24234 #elif DB_VERSION_MAJOR > 1
24235 db_appexit( NULL );
24237 (void) dbopen( NULL, 0, 0, 0, NULL);
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246 (eval $ac_link) 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } &&
24250 { ac_try='test -s conftest$ac_exeext'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24268 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
24269 echo "${ECHO_T}$ol_cv_db_db1" >&6
24271 if test $ol_cv_db_db1 = yes ; then
24276 if test $ol_cv_lib_db = no ; then
24277 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
24278 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
24279 if test "${ol_cv_db_db_1+set}" = set; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24287 cat >conftest.$ac_ext <<_ACEOF
24288 #line $LINENO "configure"
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 #ifdef HAVE_DB_185_H
24296 # include <db_185.h>
24301 #ifndef DB_VERSION_MAJOR
24302 # define DB_VERSION_MAJOR 1
24306 #define NULL ((void*)0)
24313 #if DB_VERSION_MAJOR > 1
24316 int major, minor, patch;
24318 version = db_version( &major, &minor, &patch );
24320 if( major != DB_VERSION_MAJOR ||
24321 minor < DB_VERSION_MINOR )
24323 printf("Berkeley DB version mismatch\n"
24324 "\texpected: %s\n\tgot: %s\n",
24325 DB_VERSION_STRING, version);
24331 #if DB_VERSION_MAJOR > 2
24332 db_env_create( NULL, 0 );
24333 #elif DB_VERSION_MAJOR > 1
24334 db_appexit( NULL );
24336 (void) dbopen( NULL, 0, 0, 0, NULL);
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24345 (eval $ac_link) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
24349 { ac_try='test -s conftest$ac_exeext'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; }; then
24357 echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24367 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
24368 echo "${ECHO_T}$ol_cv_db_db_1" >&6
24370 if test $ol_cv_db_db_1 = yes ; then
24371 ol_cv_lib_db=-ldb-1
24376 if test "$ol_cv_lib_db" != no ; then
24377 ol_cv_berkeley_db=yes
24383 ol_cv_berkeley_db=no
24385 for ac_header in db.h
24387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24389 echo "$as_me:$LINENO: checking for $ac_header" >&5
24390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24397 # Is the header compilable?
24398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24400 cat >conftest.$ac_ext <<_ACEOF
24401 #line $LINENO "configure"
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24408 #include <$ac_header>
24410 rm -f conftest.$ac_objext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24412 (eval $ac_compile) 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } &&
24416 { ac_try='test -s conftest.$ac_objext'
24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418 (eval $ac_try) 2>&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; }; then
24422 ac_header_compiler=yes
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24427 ac_header_compiler=no
24429 rm -f conftest.$ac_objext conftest.$ac_ext
24430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24431 echo "${ECHO_T}$ac_header_compiler" >&6
24433 # Is the header present?
24434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24436 cat >conftest.$ac_ext <<_ACEOF
24437 #line $LINENO "configure"
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 #include <$ac_header>
24445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } >/dev/null; then
24453 if test -s conftest.err; then
24454 ac_cpp_err=$ac_c_preproc_warn_flag
24461 if test -z "$ac_cpp_err"; then
24462 ac_header_preproc=yes
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24467 ac_header_preproc=no
24469 rm -f conftest.err conftest.$ac_ext
24470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24471 echo "${ECHO_T}$ac_header_preproc" >&6
24473 # So? What about this header?
24474 case $ac_header_compiler:$ac_header_preproc in
24476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24482 ## ------------------------------------ ##
24483 ## Report this to bug-autoconf@gnu.org. ##
24484 ## ------------------------------------ ##
24487 sed "s/^/$as_me: WARNING: /" >&2
24490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24498 ## ------------------------------------ ##
24499 ## Report this to bug-autoconf@gnu.org. ##
24500 ## ------------------------------------ ##
24503 sed "s/^/$as_me: WARNING: /" >&2
24506 echo "$as_me:$LINENO: checking for $ac_header" >&5
24507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 eval "$as_ac_Header=$ac_header_preproc"
24513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24518 cat >>confdefs.h <<_ACEOF
24519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24526 if test $ac_cv_header_db_h = yes; then
24528 if test $ol_cv_lib_db = no ; then
24529 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
24530 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
24531 if test "${ol_cv_db_none+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24539 cat >conftest.$ac_ext <<_ACEOF
24540 #line $LINENO "configure"
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24547 #ifdef HAVE_DB_185_H
24548 # include <db_185.h>
24553 #ifndef DB_VERSION_MAJOR
24554 # define DB_VERSION_MAJOR 1
24558 #define NULL ((void*)0)
24565 #if DB_VERSION_MAJOR > 1
24568 int major, minor, patch;
24570 version = db_version( &major, &minor, &patch );
24572 if( major != DB_VERSION_MAJOR ||
24573 minor < DB_VERSION_MINOR )
24575 printf("Berkeley DB version mismatch\n"
24576 "\texpected: %s\n\tgot: %s\n",
24577 DB_VERSION_STRING, version);
24583 #if DB_VERSION_MAJOR > 2
24584 db_env_create( NULL, 0 );
24585 #elif DB_VERSION_MAJOR > 1
24586 db_appexit( NULL );
24588 (void) dbopen( NULL, 0, 0, 0, NULL);
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24597 (eval $ac_link) 2>&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } &&
24601 { ac_try='test -s conftest$ac_exeext'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; }; then
24609 echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24619 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
24620 echo "${ECHO_T}$ol_cv_db_none" >&6
24622 if test $ol_cv_db_none = yes ; then
24627 if test $ol_cv_lib_db = no ; then
24628 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
24629 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
24630 if test "${ol_cv_db_db41+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24638 cat >conftest.$ac_ext <<_ACEOF
24639 #line $LINENO "configure"
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24646 #ifdef HAVE_DB_185_H
24647 # include <db_185.h>
24652 #ifndef DB_VERSION_MAJOR
24653 # define DB_VERSION_MAJOR 1
24657 #define NULL ((void*)0)
24664 #if DB_VERSION_MAJOR > 1
24667 int major, minor, patch;
24669 version = db_version( &major, &minor, &patch );
24671 if( major != DB_VERSION_MAJOR ||
24672 minor < DB_VERSION_MINOR )
24674 printf("Berkeley DB version mismatch\n"
24675 "\texpected: %s\n\tgot: %s\n",
24676 DB_VERSION_STRING, version);
24682 #if DB_VERSION_MAJOR > 2
24683 db_env_create( NULL, 0 );
24684 #elif DB_VERSION_MAJOR > 1
24685 db_appexit( NULL );
24687 (void) dbopen( NULL, 0, 0, 0, NULL);
24694 rm -f conftest.$ac_objext conftest$ac_exeext
24695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24696 (eval $ac_link) 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } &&
24700 { ac_try='test -s conftest$ac_exeext'
24701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702 (eval $ac_try) 2>&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; }; then
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24718 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
24719 echo "${ECHO_T}$ol_cv_db_db41" >&6
24721 if test $ol_cv_db_db41 = yes ; then
24722 ol_cv_lib_db=-ldb41
24726 if test $ol_cv_lib_db = no ; then
24727 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
24728 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
24729 if test "${ol_cv_db_db_41+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24737 cat >conftest.$ac_ext <<_ACEOF
24738 #line $LINENO "configure"
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24745 #ifdef HAVE_DB_185_H
24746 # include <db_185.h>
24751 #ifndef DB_VERSION_MAJOR
24752 # define DB_VERSION_MAJOR 1
24756 #define NULL ((void*)0)
24763 #if DB_VERSION_MAJOR > 1
24766 int major, minor, patch;
24768 version = db_version( &major, &minor, &patch );
24770 if( major != DB_VERSION_MAJOR ||
24771 minor < DB_VERSION_MINOR )
24773 printf("Berkeley DB version mismatch\n"
24774 "\texpected: %s\n\tgot: %s\n",
24775 DB_VERSION_STRING, version);
24781 #if DB_VERSION_MAJOR > 2
24782 db_env_create( NULL, 0 );
24783 #elif DB_VERSION_MAJOR > 1
24784 db_appexit( NULL );
24786 (void) dbopen( NULL, 0, 0, 0, NULL);
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24795 (eval $ac_link) 2>&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } &&
24799 { ac_try='test -s conftest$ac_exeext'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24817 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
24818 echo "${ECHO_T}$ol_cv_db_db_41" >&6
24820 if test $ol_cv_db_db_41 = yes ; then
24821 ol_cv_lib_db=-ldb-41
24825 if test $ol_cv_lib_db = no ; then
24826 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
24827 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
24828 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24836 cat >conftest.$ac_ext <<_ACEOF
24837 #line $LINENO "configure"
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24844 #ifdef HAVE_DB_185_H
24845 # include <db_185.h>
24850 #ifndef DB_VERSION_MAJOR
24851 # define DB_VERSION_MAJOR 1
24855 #define NULL ((void*)0)
24862 #if DB_VERSION_MAJOR > 1
24865 int major, minor, patch;
24867 version = db_version( &major, &minor, &patch );
24869 if( major != DB_VERSION_MAJOR ||
24870 minor < DB_VERSION_MINOR )
24872 printf("Berkeley DB version mismatch\n"
24873 "\texpected: %s\n\tgot: %s\n",
24874 DB_VERSION_STRING, version);
24880 #if DB_VERSION_MAJOR > 2
24881 db_env_create( NULL, 0 );
24882 #elif DB_VERSION_MAJOR > 1
24883 db_appexit( NULL );
24885 (void) dbopen( NULL, 0, 0, 0, NULL);
24892 rm -f conftest.$ac_objext conftest$ac_exeext
24893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24894 (eval $ac_link) 2>&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } &&
24898 { ac_try='test -s conftest$ac_exeext'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 ol_cv_db_db_4_dot_1=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ol_cv_db_db_4_dot_1=no
24911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24916 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
24917 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
24919 if test $ol_cv_db_db_4_dot_1 = yes ; then
24920 ol_cv_lib_db=-ldb-4.1
24924 if test $ol_cv_lib_db = no ; then
24925 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
24926 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
24927 if test "${ol_cv_db_db_4_1+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24933 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24935 cat >conftest.$ac_ext <<_ACEOF
24936 #line $LINENO "configure"
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24943 #ifdef HAVE_DB_185_H
24944 # include <db_185.h>
24949 #ifndef DB_VERSION_MAJOR
24950 # define DB_VERSION_MAJOR 1
24954 #define NULL ((void*)0)
24961 #if DB_VERSION_MAJOR > 1
24964 int major, minor, patch;
24966 version = db_version( &major, &minor, &patch );
24968 if( major != DB_VERSION_MAJOR ||
24969 minor < DB_VERSION_MINOR )
24971 printf("Berkeley DB version mismatch\n"
24972 "\texpected: %s\n\tgot: %s\n",
24973 DB_VERSION_STRING, version);
24979 #if DB_VERSION_MAJOR > 2
24980 db_env_create( NULL, 0 );
24981 #elif DB_VERSION_MAJOR > 1
24982 db_appexit( NULL );
24984 (void) dbopen( NULL, 0, 0, 0, NULL);
24991 rm -f conftest.$ac_objext conftest$ac_exeext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24993 (eval $ac_link) 2>&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
24997 { ac_try='test -s conftest$ac_exeext'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 ol_cv_db_db_4_1=yes
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25015 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
25016 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
25018 if test $ol_cv_db_db_4_1 = yes ; then
25019 ol_cv_lib_db=-ldb-4-1
25023 if test $ol_cv_lib_db = no ; then
25024 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
25025 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
25026 if test "${ol_cv_db_db_4+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25032 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25034 cat >conftest.$ac_ext <<_ACEOF
25035 #line $LINENO "configure"
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25042 #ifdef HAVE_DB_185_H
25043 # include <db_185.h>
25048 #ifndef DB_VERSION_MAJOR
25049 # define DB_VERSION_MAJOR 1
25053 #define NULL ((void*)0)
25060 #if DB_VERSION_MAJOR > 1
25063 int major, minor, patch;
25065 version = db_version( &major, &minor, &patch );
25067 if( major != DB_VERSION_MAJOR ||
25068 minor < DB_VERSION_MINOR )
25070 printf("Berkeley DB version mismatch\n"
25071 "\texpected: %s\n\tgot: %s\n",
25072 DB_VERSION_STRING, version);
25078 #if DB_VERSION_MAJOR > 2
25079 db_env_create( NULL, 0 );
25080 #elif DB_VERSION_MAJOR > 1
25081 db_appexit( NULL );
25083 (void) dbopen( NULL, 0, 0, 0, NULL);
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25092 (eval $ac_link) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25114 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
25115 echo "${ECHO_T}$ol_cv_db_db_4" >&6
25117 if test $ol_cv_db_db_4 = yes ; then
25118 ol_cv_lib_db=-ldb-4
25122 if test $ol_cv_lib_db = no ; then
25123 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
25124 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
25125 if test "${ol_cv_db_db4+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25131 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25133 cat >conftest.$ac_ext <<_ACEOF
25134 #line $LINENO "configure"
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25141 #ifdef HAVE_DB_185_H
25142 # include <db_185.h>
25147 #ifndef DB_VERSION_MAJOR
25148 # define DB_VERSION_MAJOR 1
25152 #define NULL ((void*)0)
25159 #if DB_VERSION_MAJOR > 1
25162 int major, minor, patch;
25164 version = db_version( &major, &minor, &patch );
25166 if( major != DB_VERSION_MAJOR ||
25167 minor < DB_VERSION_MINOR )
25169 printf("Berkeley DB version mismatch\n"
25170 "\texpected: %s\n\tgot: %s\n",
25171 DB_VERSION_STRING, version);
25177 #if DB_VERSION_MAJOR > 2
25178 db_env_create( NULL, 0 );
25179 #elif DB_VERSION_MAJOR > 1
25180 db_appexit( NULL );
25182 (void) dbopen( NULL, 0, 0, 0, NULL);
25189 rm -f conftest.$ac_objext conftest$ac_exeext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25191 (eval $ac_link) 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
25195 { ac_try='test -s conftest$ac_exeext'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25213 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
25214 echo "${ECHO_T}$ol_cv_db_db4" >&6
25216 if test $ol_cv_db_db4 = yes ; then
25221 if test $ol_cv_lib_db = no ; then
25222 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
25223 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
25224 if test "${ol_cv_db_db+set}" = set; then
25225 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25232 cat >conftest.$ac_ext <<_ACEOF
25233 #line $LINENO "configure"
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25240 #ifdef HAVE_DB_185_H
25241 # include <db_185.h>
25246 #ifndef DB_VERSION_MAJOR
25247 # define DB_VERSION_MAJOR 1
25251 #define NULL ((void*)0)
25258 #if DB_VERSION_MAJOR > 1
25261 int major, minor, patch;
25263 version = db_version( &major, &minor, &patch );
25265 if( major != DB_VERSION_MAJOR ||
25266 minor < DB_VERSION_MINOR )
25268 printf("Berkeley DB version mismatch\n"
25269 "\texpected: %s\n\tgot: %s\n",
25270 DB_VERSION_STRING, version);
25276 #if DB_VERSION_MAJOR > 2
25277 db_env_create( NULL, 0 );
25278 #elif DB_VERSION_MAJOR > 1
25279 db_appexit( NULL );
25281 (void) dbopen( NULL, 0, 0, 0, NULL);
25288 rm -f conftest.$ac_objext conftest$ac_exeext
25289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25290 (eval $ac_link) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
25294 { ac_try='test -s conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25312 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
25313 echo "${ECHO_T}$ol_cv_db_db" >&6
25315 if test $ol_cv_db_db = yes ; then
25320 if test $ol_cv_lib_db = no ; then
25321 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
25322 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
25323 if test "${ol_cv_db_db3+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25331 cat >conftest.$ac_ext <<_ACEOF
25332 #line $LINENO "configure"
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25339 #ifdef HAVE_DB_185_H
25340 # include <db_185.h>
25345 #ifndef DB_VERSION_MAJOR
25346 # define DB_VERSION_MAJOR 1
25350 #define NULL ((void*)0)
25357 #if DB_VERSION_MAJOR > 1
25360 int major, minor, patch;
25362 version = db_version( &major, &minor, &patch );
25364 if( major != DB_VERSION_MAJOR ||
25365 minor < DB_VERSION_MINOR )
25367 printf("Berkeley DB version mismatch\n"
25368 "\texpected: %s\n\tgot: %s\n",
25369 DB_VERSION_STRING, version);
25375 #if DB_VERSION_MAJOR > 2
25376 db_env_create( NULL, 0 );
25377 #elif DB_VERSION_MAJOR > 1
25378 db_appexit( NULL );
25380 (void) dbopen( NULL, 0, 0, 0, NULL);
25387 rm -f conftest.$ac_objext conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } &&
25393 { ac_try='test -s conftest$ac_exeext'
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; }; then
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25411 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
25412 echo "${ECHO_T}$ol_cv_db_db3" >&6
25414 if test $ol_cv_db_db3 = yes ; then
25419 if test $ol_cv_lib_db = no ; then
25420 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
25421 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
25422 if test "${ol_cv_db_db_3+set}" = set; then
25423 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25430 cat >conftest.$ac_ext <<_ACEOF
25431 #line $LINENO "configure"
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 #ifdef HAVE_DB_185_H
25439 # include <db_185.h>
25444 #ifndef DB_VERSION_MAJOR
25445 # define DB_VERSION_MAJOR 1
25449 #define NULL ((void*)0)
25456 #if DB_VERSION_MAJOR > 1
25459 int major, minor, patch;
25461 version = db_version( &major, &minor, &patch );
25463 if( major != DB_VERSION_MAJOR ||
25464 minor < DB_VERSION_MINOR )
25466 printf("Berkeley DB version mismatch\n"
25467 "\texpected: %s\n\tgot: %s\n",
25468 DB_VERSION_STRING, version);
25474 #if DB_VERSION_MAJOR > 2
25475 db_env_create( NULL, 0 );
25476 #elif DB_VERSION_MAJOR > 1
25477 db_appexit( NULL );
25479 (void) dbopen( NULL, 0, 0, 0, NULL);
25486 rm -f conftest.$ac_objext conftest$ac_exeext
25487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488 (eval $ac_link) 2>&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } &&
25492 { ac_try='test -s conftest$ac_exeext'
25493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494 (eval $ac_try) 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25510 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
25511 echo "${ECHO_T}$ol_cv_db_db_3" >&6
25513 if test $ol_cv_db_db_3 = yes ; then
25514 ol_cv_lib_db=-ldb-3
25518 if test $ol_cv_lib_db = no ; then
25519 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
25520 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
25521 if test "${ol_cv_db_db2+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25527 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25529 cat >conftest.$ac_ext <<_ACEOF
25530 #line $LINENO "configure"
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25537 #ifdef HAVE_DB_185_H
25538 # include <db_185.h>
25543 #ifndef DB_VERSION_MAJOR
25544 # define DB_VERSION_MAJOR 1
25548 #define NULL ((void*)0)
25555 #if DB_VERSION_MAJOR > 1
25558 int major, minor, patch;
25560 version = db_version( &major, &minor, &patch );
25562 if( major != DB_VERSION_MAJOR ||
25563 minor < DB_VERSION_MINOR )
25565 printf("Berkeley DB version mismatch\n"
25566 "\texpected: %s\n\tgot: %s\n",
25567 DB_VERSION_STRING, version);
25573 #if DB_VERSION_MAJOR > 2
25574 db_env_create( NULL, 0 );
25575 #elif DB_VERSION_MAJOR > 1
25576 db_appexit( NULL );
25578 (void) dbopen( NULL, 0, 0, 0, NULL);
25585 rm -f conftest.$ac_objext conftest$ac_exeext
25586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25587 (eval $ac_link) 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -s conftest$ac_exeext'
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25609 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
25610 echo "${ECHO_T}$ol_cv_db_db2" >&6
25612 if test $ol_cv_db_db2 = yes ; then
25617 if test $ol_cv_lib_db = no ; then
25618 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
25619 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
25620 if test "${ol_cv_db_db_2+set}" = set; then
25621 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25628 cat >conftest.$ac_ext <<_ACEOF
25629 #line $LINENO "configure"
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25636 #ifdef HAVE_DB_185_H
25637 # include <db_185.h>
25642 #ifndef DB_VERSION_MAJOR
25643 # define DB_VERSION_MAJOR 1
25647 #define NULL ((void*)0)
25654 #if DB_VERSION_MAJOR > 1
25657 int major, minor, patch;
25659 version = db_version( &major, &minor, &patch );
25661 if( major != DB_VERSION_MAJOR ||
25662 minor < DB_VERSION_MINOR )
25664 printf("Berkeley DB version mismatch\n"
25665 "\texpected: %s\n\tgot: %s\n",
25666 DB_VERSION_STRING, version);
25672 #if DB_VERSION_MAJOR > 2
25673 db_env_create( NULL, 0 );
25674 #elif DB_VERSION_MAJOR > 1
25675 db_appexit( NULL );
25677 (void) dbopen( NULL, 0, 0, 0, NULL);
25684 rm -f conftest.$ac_objext conftest$ac_exeext
25685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25686 (eval $ac_link) 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } &&
25690 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25698 echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25708 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
25709 echo "${ECHO_T}$ol_cv_db_db_2" >&6
25711 if test $ol_cv_db_db_2 = yes ; then
25712 ol_cv_lib_db=-ldb-2
25716 if test $ol_cv_lib_db = no ; then
25717 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
25718 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
25719 if test "${ol_cv_db_db1+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25727 cat >conftest.$ac_ext <<_ACEOF
25728 #line $LINENO "configure"
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25735 #ifdef HAVE_DB_185_H
25736 # include <db_185.h>
25741 #ifndef DB_VERSION_MAJOR
25742 # define DB_VERSION_MAJOR 1
25746 #define NULL ((void*)0)
25753 #if DB_VERSION_MAJOR > 1
25756 int major, minor, patch;
25758 version = db_version( &major, &minor, &patch );
25760 if( major != DB_VERSION_MAJOR ||
25761 minor < DB_VERSION_MINOR )
25763 printf("Berkeley DB version mismatch\n"
25764 "\texpected: %s\n\tgot: %s\n",
25765 DB_VERSION_STRING, version);
25771 #if DB_VERSION_MAJOR > 2
25772 db_env_create( NULL, 0 );
25773 #elif DB_VERSION_MAJOR > 1
25774 db_appexit( NULL );
25776 (void) dbopen( NULL, 0, 0, 0, NULL);
25783 rm -f conftest.$ac_objext conftest$ac_exeext
25784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25785 (eval $ac_link) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } &&
25789 { ac_try='test -s conftest$ac_exeext'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25807 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
25808 echo "${ECHO_T}$ol_cv_db_db1" >&6
25810 if test $ol_cv_db_db1 = yes ; then
25815 if test $ol_cv_lib_db = no ; then
25816 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
25817 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
25818 if test "${ol_cv_db_db_1+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25824 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25826 cat >conftest.$ac_ext <<_ACEOF
25827 #line $LINENO "configure"
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 #ifdef HAVE_DB_185_H
25835 # include <db_185.h>
25840 #ifndef DB_VERSION_MAJOR
25841 # define DB_VERSION_MAJOR 1
25845 #define NULL ((void*)0)
25852 #if DB_VERSION_MAJOR > 1
25855 int major, minor, patch;
25857 version = db_version( &major, &minor, &patch );
25859 if( major != DB_VERSION_MAJOR ||
25860 minor < DB_VERSION_MINOR )
25862 printf("Berkeley DB version mismatch\n"
25863 "\texpected: %s\n\tgot: %s\n",
25864 DB_VERSION_STRING, version);
25870 #if DB_VERSION_MAJOR > 2
25871 db_env_create( NULL, 0 );
25872 #elif DB_VERSION_MAJOR > 1
25873 db_appexit( NULL );
25875 (void) dbopen( NULL, 0, 0, 0, NULL);
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884 (eval $ac_link) 2>&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
25888 { ac_try='test -s conftest$ac_exeext'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; }; then
25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25906 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
25907 echo "${ECHO_T}$ol_cv_db_db_1" >&6
25909 if test $ol_cv_db_db_1 = yes ; then
25910 ol_cv_lib_db=-ldb-1
25915 if test "$ol_cv_lib_db" != no ; then
25916 ol_cv_berkeley_db=yes
25917 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
25918 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
25919 if test "${ol_cv_berkeley_db_thread+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 LIBS="$LTHREAD_LIBS $LIBS"
25925 if test $ol_cv_lib_db != yes ; then
25926 LIBS="$ol_cv_lib_db $LIBS"
25929 if test "$cross_compiling" = yes; then
25930 ol_cv_berkeley_db_thread=cross
25932 cat >conftest.$ac_ext <<_ACEOF
25933 #line $LINENO "configure"
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25940 #ifdef HAVE_DB_185_H
25946 #define NULL ((void *)0)
25951 u_int32_t flags = DB_CREATE |
25957 #if DB_VERSION_MAJOR > 2
25958 DB_ENV *env = NULL;
25960 rc = db_env_create( &env, 0 );
25962 flags |= DB_INIT_MPOOL;
25963 #ifdef DB_MPOOL_PRIVATE
25964 flags |= DB_MPOOL_PRIVATE;
25968 printf("BerkeleyDB: %s\n", db_strerror(rc) );
25972 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
25973 rc = env->open( env, NULL, flags, 0 );
25975 rc = env->open( env, NULL, NULL, flags, 0 );
25979 rc = env->close( env, 0 );
25983 printf("BerkeleyDB: %s\n", db_strerror(rc) );
25989 memset( &env, '\0', sizeof(env) );
25991 rc = db_appinit( NULL, NULL, &env, flags );
25994 db_appexit( &env );
25997 unlink("__db_mpool.share");
25998 unlink("__db_lock.share");
26004 rm -f conftest$ac_exeext
26005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26006 (eval $ac_link) 2>&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; }; then
26015 ol_cv_berkeley_db_thread=yes
26017 echo "$as_me: program exited with status $ac_status" >&5
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ( exit $ac_status )
26022 ol_cv_berkeley_db_thread=no
26024 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26030 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
26031 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
26033 if test $ol_cv_berkeley_db_thread != no ; then
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_BERKELEY_DB_THREAD 1
26046 if test $ol_cv_berkeley_db != no ; then
26048 cat >>confdefs.h <<\_ACEOF
26049 #define HAVE_BERKELEY_DB 1
26053 ol_link_ldbm=berkeley
26054 ol_with_ldbm_api=berkeley
26056 if test $ol_with_ldbm_type = hash ; then
26058 cat >>confdefs.h <<\_ACEOF
26059 #define LDBM_USE_DBHASH 1
26064 cat >>confdefs.h <<\_ACEOF
26065 #define LDBM_USE_DBBTREE 1
26070 if test $ol_cv_lib_db != yes ; then
26071 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
26076 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
26077 { { echo "$as_me:$LINENO: error: BDB: BerkeleyDB not available" >&5
26078 echo "$as_me: error: BDB: BerkeleyDB not available" >&2;}
26079 { (exit 1); exit 1; }; }
26080 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
26081 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
26082 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
26083 if test "${ol_cv_bdb_compat+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26088 #line $LINENO "configure"
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26097 /* this check could be improved */
26098 #ifndef DB_VERSION_MAJOR
26099 # define DB_VERSION_MAJOR 1
26101 #ifndef DB_VERSION_MINOR
26102 # define DB_VERSION_MINOR 0
26105 /* require 4.1 or later */
26106 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
26107 __db_version_compat
26111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26112 $EGREP "__db_version_compat" >/dev/null 2>&1; then
26113 ol_cv_bdb_compat=yes
26115 ol_cv_bdb_compat=no
26120 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
26121 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
26124 if test $ol_cv_bdb_compat = yes ; then
26126 elif test $ol_enable_bdb = yes ; then
26127 { { echo "$as_me:$LINENO: error: BDB: BerkeleyDB version incompatible" >&5
26128 echo "$as_me: error: BDB: BerkeleyDB version incompatible" >&2;}
26129 { (exit 1); exit 1; }; }
26135 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
26136 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
26137 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
26138 ol_with_ldbm_api=none
26141 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
26142 echo "$as_me:$LINENO: checking for MDBM library" >&5
26143 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
26144 if test "${ol_cv_lib_mdbm+set}" = set; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
26149 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
26150 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
26151 echo $ECHO_N "(cached) $ECHO_C" >&6
26153 cat >conftest.$ac_ext <<_ACEOF
26154 #line $LINENO "configure"
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 /* System header to define __stub macros and hopefully few prototypes,
26161 which can conflict with char mdbm_set_chain (); below.
26162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26163 <limits.h> exists even on freestanding compilers. */
26165 # include <limits.h>
26167 # include <assert.h>
26169 /* Override any gcc2 internal prototype to avoid an error. */
26174 /* We use char because int might match the return type of a gcc2
26175 builtin and then its argument prototype would still apply. */
26176 char mdbm_set_chain ();
26177 /* The GNU C library defines this for functions which it implements
26178 to always fail with ENOSYS. Some functions are actually named
26179 something starting with __ and the normal name is an alias. */
26180 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
26183 char (*f) () = mdbm_set_chain;
26192 return f != mdbm_set_chain;
26197 rm -f conftest.$ac_objext conftest$ac_exeext
26198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26199 (eval $ac_link) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); } &&
26203 { ac_try='test -s conftest$ac_exeext'
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26209 ac_cv_func_mdbm_set_chain=yes
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 ac_cv_func_mdbm_set_chain=no
26216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26218 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
26219 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
26220 if test $ac_cv_func_mdbm_set_chain = yes; then
26224 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
26225 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
26226 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26229 ac_check_lib_save_LIBS=$LIBS
26230 LIBS="-lmdbm $LIBS"
26231 cat >conftest.$ac_ext <<_ACEOF
26232 #line $LINENO "configure"
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26239 /* Override any gcc2 internal prototype to avoid an error. */
26243 /* We use char because int might match the return type of a gcc2
26244 builtin and then its argument prototype would still apply. */
26245 char mdbm_set_chain ();
26254 rm -f conftest.$ac_objext conftest$ac_exeext
26255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26256 (eval $ac_link) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } &&
26260 { ac_try='test -s conftest$ac_exeext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 ac_cv_lib_mdbm_mdbm_set_chain=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_cv_lib_mdbm_mdbm_set_chain=no
26273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26274 LIBS=$ac_check_lib_save_LIBS
26276 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
26277 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
26278 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
26279 ol_cv_lib_mdbm=-lmdbm
26290 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
26291 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
26295 for ac_header in mdbm.h
26297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26299 echo "$as_me:$LINENO: checking for $ac_header" >&5
26300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26307 # Is the header compilable?
26308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26310 cat >conftest.$ac_ext <<_ACEOF
26311 #line $LINENO "configure"
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26317 $ac_includes_default
26318 #include <$ac_header>
26320 rm -f conftest.$ac_objext
26321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26322 (eval $ac_compile) 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); } &&
26326 { ac_try='test -s conftest.$ac_objext'
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; }; then
26332 ac_header_compiler=yes
26334 echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26337 ac_header_compiler=no
26339 rm -f conftest.$ac_objext conftest.$ac_ext
26340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26341 echo "${ECHO_T}$ac_header_compiler" >&6
26343 # Is the header present?
26344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26346 cat >conftest.$ac_ext <<_ACEOF
26347 #line $LINENO "configure"
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 #include <$ac_header>
26355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } >/dev/null; then
26363 if test -s conftest.err; then
26364 ac_cpp_err=$ac_c_preproc_warn_flag
26371 if test -z "$ac_cpp_err"; then
26372 ac_header_preproc=yes
26374 echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26377 ac_header_preproc=no
26379 rm -f conftest.err conftest.$ac_ext
26380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26381 echo "${ECHO_T}$ac_header_preproc" >&6
26383 # So? What about this header?
26384 case $ac_header_compiler:$ac_header_preproc in
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26392 ## ------------------------------------ ##
26393 ## Report this to bug-autoconf@gnu.org. ##
26394 ## ------------------------------------ ##
26397 sed "s/^/$as_me: WARNING: /" >&2
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26408 ## ------------------------------------ ##
26409 ## Report this to bug-autoconf@gnu.org. ##
26410 ## ------------------------------------ ##
26413 sed "s/^/$as_me: WARNING: /" >&2
26416 echo "$as_me:$LINENO: checking for $ac_header" >&5
26417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 eval "$as_ac_Header=$ac_header_preproc"
26423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26428 cat >>confdefs.h <<_ACEOF
26429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26436 echo "$as_me:$LINENO: checking for db" >&5
26437 echo $ECHO_N "checking for db... $ECHO_C" >&6
26438 if test "${ol_cv_mdbm+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26442 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
26449 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
26450 echo "${ECHO_T}$ol_cv_mdbm" >&6
26451 if test $ol_cv_mdbm = yes ; then
26453 cat >>confdefs.h <<\_ACEOF
26454 #define HAVE_MDBM 1
26460 if test $ol_cv_mdbm = yes ; then
26462 ol_with_ldbm_api=mdbm
26463 if test $ol_cv_lib_mdbm != yes ; then
26464 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
26469 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
26470 echo "$as_me:$LINENO: checking for GDBM library" >&5
26471 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
26472 if test "${ol_cv_lib_gdbm+set}" = set; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 echo "$as_me:$LINENO: checking for gdbm_open" >&5
26477 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
26478 if test "${ac_cv_func_gdbm_open+set}" = set; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 cat >conftest.$ac_ext <<_ACEOF
26482 #line $LINENO "configure"
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 /* System header to define __stub macros and hopefully few prototypes,
26489 which can conflict with char gdbm_open (); below.
26490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26491 <limits.h> exists even on freestanding compilers. */
26493 # include <limits.h>
26495 # include <assert.h>
26497 /* Override any gcc2 internal prototype to avoid an error. */
26502 /* We use char because int might match the return type of a gcc2
26503 builtin and then its argument prototype would still apply. */
26505 /* The GNU C library defines this for functions which it implements
26506 to always fail with ENOSYS. Some functions are actually named
26507 something starting with __ and the normal name is an alias. */
26508 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
26511 char (*f) () = gdbm_open;
26520 return f != gdbm_open;
26525 rm -f conftest.$ac_objext conftest$ac_exeext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26527 (eval $ac_link) 2>&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } &&
26531 { ac_try='test -s conftest$ac_exeext'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
26537 ac_cv_func_gdbm_open=yes
26539 echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26542 ac_cv_func_gdbm_open=no
26544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
26547 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
26548 if test $ac_cv_func_gdbm_open = yes; then
26552 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
26553 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
26554 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 ac_check_lib_save_LIBS=$LIBS
26558 LIBS="-lgdbm $LIBS"
26559 cat >conftest.$ac_ext <<_ACEOF
26560 #line $LINENO "configure"
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26567 /* Override any gcc2 internal prototype to avoid an error. */
26571 /* We use char because int might match the return type of a gcc2
26572 builtin and then its argument prototype would still apply. */
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26584 (eval $ac_link) 2>&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } &&
26588 { ac_try='test -s conftest$ac_exeext'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
26594 ac_cv_lib_gdbm_gdbm_open=yes
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 ac_cv_lib_gdbm_gdbm_open=no
26601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26602 LIBS=$ac_check_lib_save_LIBS
26604 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
26605 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
26606 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
26607 ol_cv_lib_gdbm=-lgdbm
26618 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
26619 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
26623 for ac_header in gdbm.h
26625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26627 echo "$as_me:$LINENO: checking for $ac_header" >&5
26628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26635 # Is the header compilable?
26636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26638 cat >conftest.$ac_ext <<_ACEOF
26639 #line $LINENO "configure"
26642 cat confdefs.h >>conftest.$ac_ext
26643 cat >>conftest.$ac_ext <<_ACEOF
26644 /* end confdefs.h. */
26645 $ac_includes_default
26646 #include <$ac_header>
26648 rm -f conftest.$ac_objext
26649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26650 (eval $ac_compile) 2>&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } &&
26654 { ac_try='test -s conftest.$ac_objext'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; }; then
26660 ac_header_compiler=yes
26662 echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26665 ac_header_compiler=no
26667 rm -f conftest.$ac_objext conftest.$ac_ext
26668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26669 echo "${ECHO_T}$ac_header_compiler" >&6
26671 # Is the header present?
26672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26674 cat >conftest.$ac_ext <<_ACEOF
26675 #line $LINENO "configure"
26678 cat confdefs.h >>conftest.$ac_ext
26679 cat >>conftest.$ac_ext <<_ACEOF
26680 /* end confdefs.h. */
26681 #include <$ac_header>
26683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26686 grep -v '^ *+' conftest.er1 >conftest.err
26688 cat conftest.err >&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } >/dev/null; then
26691 if test -s conftest.err; then
26692 ac_cpp_err=$ac_c_preproc_warn_flag
26699 if test -z "$ac_cpp_err"; then
26700 ac_header_preproc=yes
26702 echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26705 ac_header_preproc=no
26707 rm -f conftest.err conftest.$ac_ext
26708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26709 echo "${ECHO_T}$ac_header_preproc" >&6
26711 # So? What about this header?
26712 case $ac_header_compiler:$ac_header_preproc in
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26720 ## ------------------------------------ ##
26721 ## Report this to bug-autoconf@gnu.org. ##
26722 ## ------------------------------------ ##
26725 sed "s/^/$as_me: WARNING: /" >&2
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26736 ## ------------------------------------ ##
26737 ## Report this to bug-autoconf@gnu.org. ##
26738 ## ------------------------------------ ##
26741 sed "s/^/$as_me: WARNING: /" >&2
26744 echo "$as_me:$LINENO: checking for $ac_header" >&5
26745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26747 echo $ECHO_N "(cached) $ECHO_C" >&6
26749 eval "$as_ac_Header=$ac_header_preproc"
26751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26756 cat >>confdefs.h <<_ACEOF
26757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26764 echo "$as_me:$LINENO: checking for db" >&5
26765 echo $ECHO_N "checking for db... $ECHO_C" >&6
26766 if test "${ol_cv_gdbm+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26770 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
26777 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
26778 echo "${ECHO_T}$ol_cv_gdbm" >&6
26779 if test $ol_cv_gdbm = yes ; then
26781 cat >>confdefs.h <<\_ACEOF
26782 #define HAVE_GDBM 1
26788 if test $ol_cv_gdbm = yes ; then
26790 ol_with_ldbm_api=gdbm
26792 if test $ol_cv_lib_gdbm != yes ; then
26793 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
26798 if test $ol_with_ldbm_api = ndbm ; then
26799 echo "$as_me:$LINENO: checking for NDBM library" >&5
26800 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
26801 if test "${ol_cv_lib_ndbm+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26805 echo "$as_me:$LINENO: checking for dbm_open" >&5
26806 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
26807 if test "${ac_cv_func_dbm_open+set}" = set; then
26808 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 cat >conftest.$ac_ext <<_ACEOF
26811 #line $LINENO "configure"
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 /* System header to define __stub macros and hopefully few prototypes,
26818 which can conflict with char dbm_open (); below.
26819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26820 <limits.h> exists even on freestanding compilers. */
26822 # include <limits.h>
26824 # include <assert.h>
26826 /* Override any gcc2 internal prototype to avoid an error. */
26831 /* We use char because int might match the return type of a gcc2
26832 builtin and then its argument prototype would still apply. */
26834 /* The GNU C library defines this for functions which it implements
26835 to always fail with ENOSYS. Some functions are actually named
26836 something starting with __ and the normal name is an alias. */
26837 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
26840 char (*f) () = dbm_open;
26849 return f != dbm_open;
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26856 (eval $ac_link) 2>&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } &&
26860 { ac_try='test -s conftest$ac_exeext'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
26866 ac_cv_func_dbm_open=yes
26868 echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 ac_cv_func_dbm_open=no
26873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26875 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
26876 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
26877 if test $ac_cv_func_dbm_open = yes; then
26881 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
26882 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
26883 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 ac_check_lib_save_LIBS=$LIBS
26887 LIBS="-lndbm $LIBS"
26888 cat >conftest.$ac_ext <<_ACEOF
26889 #line $LINENO "configure"
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26896 /* Override any gcc2 internal prototype to avoid an error. */
26900 /* We use char because int might match the return type of a gcc2
26901 builtin and then its argument prototype would still apply. */
26911 rm -f conftest.$ac_objext conftest$ac_exeext
26912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26913 (eval $ac_link) 2>&5
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); } &&
26917 { ac_try='test -s conftest$ac_exeext'
26918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919 (eval $ac_try) 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; }; then
26923 ac_cv_lib_ndbm_dbm_open=yes
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_cv_lib_ndbm_dbm_open=no
26930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26931 LIBS=$ac_check_lib_save_LIBS
26933 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
26934 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
26935 if test $ac_cv_lib_ndbm_dbm_open = yes; then
26936 ol_cv_lib_ndbm=-lndbm
26939 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
26940 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
26941 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 ac_check_lib_save_LIBS=$LIBS
26946 cat >conftest.$ac_ext <<_ACEOF
26947 #line $LINENO "configure"
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26954 /* Override any gcc2 internal prototype to avoid an error. */
26958 /* We use char because int might match the return type of a gcc2
26959 builtin and then its argument prototype would still apply. */
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26971 (eval $ac_link) 2>&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } &&
26975 { ac_try='test -s conftest$ac_exeext'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26981 ac_cv_lib_dbm_dbm_open=yes
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_cv_lib_dbm_dbm_open=no
26988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26989 LIBS=$ac_check_lib_save_LIBS
26991 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
26992 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
26993 if test $ac_cv_lib_dbm_dbm_open = yes; then
26994 ol_cv_lib_ndbm=-ldbm
27007 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
27008 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
27012 for ac_header in ndbm.h
27014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27016 echo "$as_me:$LINENO: checking for $ac_header" >&5
27017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27024 # Is the header compilable?
27025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27027 cat >conftest.$ac_ext <<_ACEOF
27028 #line $LINENO "configure"
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27034 $ac_includes_default
27035 #include <$ac_header>
27037 rm -f conftest.$ac_objext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27039 (eval $ac_compile) 2>&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -s conftest.$ac_objext'
27044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 (eval $ac_try) 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
27049 ac_header_compiler=yes
27051 echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27054 ac_header_compiler=no
27056 rm -f conftest.$ac_objext conftest.$ac_ext
27057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27058 echo "${ECHO_T}$ac_header_compiler" >&6
27060 # Is the header present?
27061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27063 cat >conftest.$ac_ext <<_ACEOF
27064 #line $LINENO "configure"
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h. */
27070 #include <$ac_header>
27072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27075 grep -v '^ *+' conftest.er1 >conftest.err
27077 cat conftest.err >&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } >/dev/null; then
27080 if test -s conftest.err; then
27081 ac_cpp_err=$ac_c_preproc_warn_flag
27088 if test -z "$ac_cpp_err"; then
27089 ac_header_preproc=yes
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_header_preproc=no
27096 rm -f conftest.err conftest.$ac_ext
27097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27098 echo "${ECHO_T}$ac_header_preproc" >&6
27100 # So? What about this header?
27101 case $ac_header_compiler:$ac_header_preproc in
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27109 ## ------------------------------------ ##
27110 ## Report this to bug-autoconf@gnu.org. ##
27111 ## ------------------------------------ ##
27114 sed "s/^/$as_me: WARNING: /" >&2
27117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27125 ## ------------------------------------ ##
27126 ## Report this to bug-autoconf@gnu.org. ##
27127 ## ------------------------------------ ##
27130 sed "s/^/$as_me: WARNING: /" >&2
27133 echo "$as_me:$LINENO: checking for $ac_header" >&5
27134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27136 echo $ECHO_N "(cached) $ECHO_C" >&6
27138 eval "$as_ac_Header=$ac_header_preproc"
27140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27145 cat >>confdefs.h <<_ACEOF
27146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27153 echo "$as_me:$LINENO: checking for db" >&5
27154 echo $ECHO_N "checking for db... $ECHO_C" >&6
27155 if test "${ol_cv_ndbm+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
27166 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
27167 echo "${ECHO_T}$ol_cv_ndbm" >&6
27168 if test $ol_cv_ndbm = yes ; then
27170 cat >>confdefs.h <<\_ACEOF
27171 #define HAVE_NDBM 1
27177 if test $ol_cv_ndbm = yes ; then
27179 ol_with_ldbm_api=ndbm
27181 if test $ol_cv_lib_ndbm != yes ; then
27182 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
27187 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
27188 { echo "$as_me:$LINENO: WARNING: could not find suitable LDBM backend" >&5
27189 echo "$as_me: WARNING: could not find suitable LDBM backend" >&2;}
27190 if test $ol_enable_ldbm = yes ; then
27191 { { echo "$as_me:$LINENO: error: select appropriate LDBM options or disable" >&5
27192 echo "$as_me: error: select appropriate LDBM options or disable" >&2;}
27193 { (exit 1); exit 1; }; }
27196 { echo "$as_me:$LINENO: WARNING: disabling LDBM" >&5
27197 echo "$as_me: WARNING: disabling LDBM" >&2;}
27202 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
27203 BUILD_LIBS_DYNAMIC=shared
27205 cat >>confdefs.h <<\_ACEOF
27206 #define LDAP_LIBS_DYNAMIC 1
27211 BUILD_LIBS_DYNAMIC=static
27215 if test $ol_enable_wrappers != no ; then
27217 for ac_header in tcpd.h
27219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27221 echo "$as_me:$LINENO: checking for $ac_header" >&5
27222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27229 # Is the header compilable?
27230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27232 cat >conftest.$ac_ext <<_ACEOF
27233 #line $LINENO "configure"
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h. */
27239 $ac_includes_default
27240 #include <$ac_header>
27242 rm -f conftest.$ac_objext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27244 (eval $ac_compile) 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } &&
27248 { ac_try='test -s conftest.$ac_objext'
27249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250 (eval $ac_try) 2>&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); }; }; then
27254 ac_header_compiler=yes
27256 echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27259 ac_header_compiler=no
27261 rm -f conftest.$ac_objext conftest.$ac_ext
27262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27263 echo "${ECHO_T}$ac_header_compiler" >&6
27265 # Is the header present?
27266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27268 cat >conftest.$ac_ext <<_ACEOF
27269 #line $LINENO "configure"
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h. */
27275 #include <$ac_header>
27277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27280 grep -v '^ *+' conftest.er1 >conftest.err
27282 cat conftest.err >&5
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); } >/dev/null; then
27285 if test -s conftest.err; then
27286 ac_cpp_err=$ac_c_preproc_warn_flag
27293 if test -z "$ac_cpp_err"; then
27294 ac_header_preproc=yes
27296 echo "$as_me: failed program was:" >&5
27297 sed 's/^/| /' conftest.$ac_ext >&5
27299 ac_header_preproc=no
27301 rm -f conftest.err conftest.$ac_ext
27302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27303 echo "${ECHO_T}$ac_header_preproc" >&6
27305 # So? What about this header?
27306 case $ac_header_compiler:$ac_header_preproc in
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314 ## ------------------------------------ ##
27315 ## Report this to bug-autoconf@gnu.org. ##
27316 ## ------------------------------------ ##
27319 sed "s/^/$as_me: WARNING: /" >&2
27322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27330 ## ------------------------------------ ##
27331 ## Report this to bug-autoconf@gnu.org. ##
27332 ## ------------------------------------ ##
27335 sed "s/^/$as_me: WARNING: /" >&2
27338 echo "$as_me:$LINENO: checking for $ac_header" >&5
27339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 eval "$as_ac_Header=$ac_header_preproc"
27345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27350 cat >>confdefs.h <<_ACEOF
27351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27354 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
27355 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
27357 LIBS="$LIBS -lwrap"
27358 cat >conftest.$ac_ext <<_ACEOF
27359 #line $LINENO "configure"
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27367 int allow_severity = 0;
27368 int deny_severity = 0;
27370 struct request_info *req;
27382 rm -f conftest.$ac_objext conftest$ac_exeext
27383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27384 (eval $ac_link) 2>&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -s conftest$ac_exeext'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 echo "$as_me:$LINENO: result: -lwrap" >&5
27395 echo "${ECHO_T}-lwrap" >&6
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27404 cat >conftest.$ac_ext <<_ACEOF
27405 #line $LINENO "configure"
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h. */
27413 int allow_severity = 0;
27414 int deny_severity = 0;
27416 struct request_info *req;
27428 rm -f conftest.$ac_objext conftest$ac_exeext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27430 (eval $ac_link) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -s conftest$ac_exeext'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
27440 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
27441 echo "${ECHO_T}-lwrap -lnsl" >&6
27443 LIBS="$save_LIBS -lnsl"
27445 echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27449 echo "$as_me:$LINENO: result: no" >&5
27450 echo "${ECHO_T}no" >&6
27454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27464 if test $have_wrappers = yes ; then
27466 cat >>confdefs.h <<\_ACEOF
27467 #define HAVE_TCPD 1
27471 elif test $ol_enable_wrappers = yes ; then
27472 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options ore disable" >&5
27473 echo "$as_me: error: could not find TCP wrappers, select apppropriate options ore disable" >&2;}
27474 { (exit 1); exit 1; }; }
27476 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
27477 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
27482 if test $ol_enable_syslog != no ; then
27483 echo "$as_me:$LINENO: checking for openlog" >&5
27484 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
27485 if test "${ac_cv_func_openlog+set}" = set; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27488 cat >conftest.$ac_ext <<_ACEOF
27489 #line $LINENO "configure"
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27495 /* System header to define __stub macros and hopefully few prototypes,
27496 which can conflict with char openlog (); below.
27497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27498 <limits.h> exists even on freestanding compilers. */
27500 # include <limits.h>
27502 # include <assert.h>
27504 /* Override any gcc2 internal prototype to avoid an error. */
27509 /* We use char because int might match the return type of a gcc2
27510 builtin and then its argument prototype would still apply. */
27512 /* The GNU C library defines this for functions which it implements
27513 to always fail with ENOSYS. Some functions are actually named
27514 something starting with __ and the normal name is an alias. */
27515 #if defined (__stub_openlog) || defined (__stub___openlog)
27518 char (*f) () = openlog;
27527 return f != openlog;
27532 rm -f conftest.$ac_objext conftest$ac_exeext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27534 (eval $ac_link) 2>&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } &&
27538 { ac_try='test -s conftest$ac_exeext'
27539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27540 (eval $ac_try) 2>&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; }; then
27544 ac_cv_func_openlog=yes
27546 echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27549 ac_cv_func_openlog=no
27551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27553 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
27554 echo "${ECHO_T}$ac_cv_func_openlog" >&6
27556 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
27557 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
27558 echo "$as_me: error: could not find syslog" >&2;}
27559 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
27561 ol_enable_syslog=$ac_cv_func_openlog
27566 if test $ol_enable_sql != no ; then
27569 for ac_header in sql.h sqlext.h
27571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27573 echo "$as_me:$LINENO: checking for $ac_header" >&5
27574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27581 # Is the header compilable?
27582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27584 cat >conftest.$ac_ext <<_ACEOF
27585 #line $LINENO "configure"
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 $ac_includes_default
27592 #include <$ac_header>
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596 (eval $ac_compile) 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } &&
27600 { ac_try='test -s conftest.$ac_objext'
27601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602 (eval $ac_try) 2>&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 ac_header_compiler=yes
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 ac_header_compiler=no
27613 rm -f conftest.$ac_objext conftest.$ac_ext
27614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27615 echo "${ECHO_T}$ac_header_compiler" >&6
27617 # Is the header present?
27618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27620 cat >conftest.$ac_ext <<_ACEOF
27621 #line $LINENO "configure"
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 #include <$ac_header>
27629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27632 grep -v '^ *+' conftest.er1 >conftest.err
27634 cat conftest.err >&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } >/dev/null; then
27637 if test -s conftest.err; then
27638 ac_cpp_err=$ac_c_preproc_warn_flag
27645 if test -z "$ac_cpp_err"; then
27646 ac_header_preproc=yes
27648 echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27651 ac_header_preproc=no
27653 rm -f conftest.err conftest.$ac_ext
27654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27655 echo "${ECHO_T}$ac_header_preproc" >&6
27657 # So? What about this header?
27658 case $ac_header_compiler:$ac_header_preproc in
27660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27666 ## ------------------------------------ ##
27667 ## Report this to bug-autoconf@gnu.org. ##
27668 ## ------------------------------------ ##
27671 sed "s/^/$as_me: WARNING: /" >&2
27674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27682 ## ------------------------------------ ##
27683 ## Report this to bug-autoconf@gnu.org. ##
27684 ## ------------------------------------ ##
27687 sed "s/^/$as_me: WARNING: /" >&2
27690 echo "$as_me:$LINENO: checking for $ac_header" >&5
27691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 eval "$as_ac_Header=$ac_header_preproc"
27697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27702 cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27708 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
27709 echo "$as_me: error: could not locate SQL headers" >&2;}
27710 { (exit 1); exit 1; }; }
27717 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
27718 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
27719 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 ac_check_lib_save_LIBS=$LIBS
27723 LIBS="-liodbc $LIBS"
27724 cat >conftest.$ac_ext <<_ACEOF
27725 #line $LINENO "configure"
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27732 /* Override any gcc2 internal prototype to avoid an error. */
27736 /* We use char because int might match the return type of a gcc2
27737 builtin and then its argument prototype would still apply. */
27738 char SQLDriverConnect ();
27742 SQLDriverConnect ();
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27749 (eval $ac_link) 2>&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
27753 { ac_try='test -s conftest$ac_exeext'
27754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; }; then
27759 ac_cv_lib_iodbc_SQLDriverConnect=yes
27761 echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27764 ac_cv_lib_iodbc_SQLDriverConnect=no
27766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27767 LIBS=$ac_check_lib_save_LIBS
27769 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
27770 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
27771 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
27777 if test $have_iodbc = yes ; then
27778 ol_link_sql="-liodbc"
27780 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
27781 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
27782 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27785 ac_check_lib_save_LIBS=$LIBS
27786 LIBS="-lodbc $LIBS"
27787 cat >conftest.$ac_ext <<_ACEOF
27788 #line $LINENO "configure"
27791 cat confdefs.h >>conftest.$ac_ext
27792 cat >>conftest.$ac_ext <<_ACEOF
27793 /* end confdefs.h. */
27795 /* Override any gcc2 internal prototype to avoid an error. */
27799 /* We use char because int might match the return type of a gcc2
27800 builtin and then its argument prototype would still apply. */
27801 char SQLDriverConnect ();
27805 SQLDriverConnect ();
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27812 (eval $ac_link) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } &&
27816 { ac_try='test -s conftest$ac_exeext'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 ac_cv_lib_odbc_SQLDriverConnect=yes
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 ac_cv_lib_odbc_SQLDriverConnect=no
27829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27830 LIBS=$ac_check_lib_save_LIBS
27832 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
27833 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
27834 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
27840 if test $have_odbc = yes ; then
27841 ol_link_sql="-lodbc"
27845 if test $ol_link_sql != no ; then
27846 SLAPD_SQL_LIBS="$ol_link_sql"
27848 elif test $ol_enable_sql != auto ; then
27849 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
27850 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
27851 { (exit 1); exit 1; }; }
27855 if test $ol_enable_tcl != no ; then
27857 for ac_header in tcl.h
27859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27861 echo "$as_me:$LINENO: checking for $ac_header" >&5
27862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27869 # Is the header compilable?
27870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27872 cat >conftest.$ac_ext <<_ACEOF
27873 #line $LINENO "configure"
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h. */
27879 $ac_includes_default
27880 #include <$ac_header>
27882 rm -f conftest.$ac_objext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27884 (eval $ac_compile) 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } &&
27888 { ac_try='test -s conftest.$ac_objext'
27889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890 (eval $ac_try) 2>&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; }; then
27894 ac_header_compiler=yes
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 ac_header_compiler=no
27901 rm -f conftest.$ac_objext conftest.$ac_ext
27902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27903 echo "${ECHO_T}$ac_header_compiler" >&6
27905 # Is the header present?
27906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27908 cat >conftest.$ac_ext <<_ACEOF
27909 #line $LINENO "configure"
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27915 #include <$ac_header>
27917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27920 grep -v '^ *+' conftest.er1 >conftest.err
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } >/dev/null; then
27925 if test -s conftest.err; then
27926 ac_cpp_err=$ac_c_preproc_warn_flag
27933 if test -z "$ac_cpp_err"; then
27934 ac_header_preproc=yes
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27939 ac_header_preproc=no
27941 rm -f conftest.err conftest.$ac_ext
27942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27943 echo "${ECHO_T}$ac_header_preproc" >&6
27945 # So? What about this header?
27946 case $ac_header_compiler:$ac_header_preproc in
27948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27954 ## ------------------------------------ ##
27955 ## Report this to bug-autoconf@gnu.org. ##
27956 ## ------------------------------------ ##
27959 sed "s/^/$as_me: WARNING: /" >&2
27962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27970 ## ------------------------------------ ##
27971 ## Report this to bug-autoconf@gnu.org. ##
27972 ## ------------------------------------ ##
27975 sed "s/^/$as_me: WARNING: /" >&2
27978 echo "$as_me:$LINENO: checking for $ac_header" >&5
27979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27983 eval "$as_ac_Header=$ac_header_preproc"
27985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27990 cat >>confdefs.h <<_ACEOF
27991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27999 if test $ac_cv_header_tcl_h != yes ; then
28002 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
28003 as_ac_Lib=`echo "ac_cv_lib_$lib''_main" | $as_tr_sh`
28004 echo "$as_me:$LINENO: checking for main in -l$lib" >&5
28005 echo $ECHO_N "checking for main in -l$lib... $ECHO_C" >&6
28006 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
28009 ac_check_lib_save_LIBS=$LIBS
28010 LIBS="-l$lib $LIBS"
28011 cat >conftest.$ac_ext <<_ACEOF
28012 #line $LINENO "configure"
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28030 (eval $ac_link) 2>&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
28034 { ac_try='test -s conftest$ac_exeext'
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040 eval "$as_ac_Lib=yes"
28042 echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28045 eval "$as_ac_Lib=no"
28047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28051 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28054 if test x"$ol_with_tcl_module" = "xstatic" ; then
28055 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
28057 MOD_TCL_LIB="-l${lib}"
28066 if test $have_tcl != yes ; then
28067 { echo "$as_me:$LINENO: WARNING: could not find -ltcl" >&5
28068 echo "$as_me: WARNING: could not find -ltcl" >&2;}
28069 if test $ol_enable_tcl = yes ; then
28070 { { echo "$as_me:$LINENO: error: could not find tcl, select appropriate options or disable" >&5
28071 echo "$as_me: error: could not find tcl, select appropriate options or disable" >&2;}
28072 { (exit 1); exit 1; }; }
28082 for ac_header in termcap.h ncurses.h
28084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28086 echo "$as_me:$LINENO: checking for $ac_header" >&5
28087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28094 # Is the header compilable?
28095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28097 cat >conftest.$ac_ext <<_ACEOF
28098 #line $LINENO "configure"
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h. */
28104 $ac_includes_default
28105 #include <$ac_header>
28107 rm -f conftest.$ac_objext
28108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28109 (eval $ac_compile) 2>&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -s conftest.$ac_objext'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
28119 ac_header_compiler=yes
28121 echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28124 ac_header_compiler=no
28126 rm -f conftest.$ac_objext conftest.$ac_ext
28127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128 echo "${ECHO_T}$ac_header_compiler" >&6
28130 # Is the header present?
28131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28133 cat >conftest.$ac_ext <<_ACEOF
28134 #line $LINENO "configure"
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 #include <$ac_header>
28142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28145 grep -v '^ *+' conftest.er1 >conftest.err
28147 cat conftest.err >&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } >/dev/null; then
28150 if test -s conftest.err; then
28151 ac_cpp_err=$ac_c_preproc_warn_flag
28158 if test -z "$ac_cpp_err"; then
28159 ac_header_preproc=yes
28161 echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28164 ac_header_preproc=no
28166 rm -f conftest.err conftest.$ac_ext
28167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28168 echo "${ECHO_T}$ac_header_preproc" >&6
28170 # So? What about this header?
28171 case $ac_header_compiler:$ac_header_preproc in
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28179 ## ------------------------------------ ##
28180 ## Report this to bug-autoconf@gnu.org. ##
28181 ## ------------------------------------ ##
28184 sed "s/^/$as_me: WARNING: /" >&2
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28195 ## ------------------------------------ ##
28196 ## Report this to bug-autoconf@gnu.org. ##
28197 ## ------------------------------------ ##
28200 sed "s/^/$as_me: WARNING: /" >&2
28203 echo "$as_me:$LINENO: checking for $ac_header" >&5
28204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28208 eval "$as_ac_Header=$ac_header_preproc"
28210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28215 cat >>confdefs.h <<_ACEOF
28216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28224 if test $ol_link_termcap = no ; then
28225 echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
28226 echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6
28227 if test "${ac_cv_lib_termcap_tputs+set}" = set; then
28228 echo $ECHO_N "(cached) $ECHO_C" >&6
28230 ac_check_lib_save_LIBS=$LIBS
28231 LIBS="-ltermcap $LIBS"
28232 cat >conftest.$ac_ext <<_ACEOF
28233 #line $LINENO "configure"
28236 cat confdefs.h >>conftest.$ac_ext
28237 cat >>conftest.$ac_ext <<_ACEOF
28238 /* end confdefs.h. */
28240 /* Override any gcc2 internal prototype to avoid an error. */
28244 /* We use char because int might match the return type of a gcc2
28245 builtin and then its argument prototype would still apply. */
28255 rm -f conftest.$ac_objext conftest$ac_exeext
28256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28257 (eval $ac_link) 2>&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -s conftest$ac_exeext'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
28267 ac_cv_lib_termcap_tputs=yes
28269 echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28272 ac_cv_lib_termcap_tputs=no
28274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28275 LIBS=$ac_check_lib_save_LIBS
28277 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
28278 echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6
28279 if test $ac_cv_lib_termcap_tputs = yes; then
28285 if test $have_termcap = yes ; then
28287 cat >>confdefs.h <<\_ACEOF
28288 #define HAVE_TERMCAP 1
28291 ol_link_termcap=yes
28292 TERMCAP_LIBS=-ltermcap
28296 if test $ol_link_termcap = no ; then
28297 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
28298 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
28299 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28302 ac_check_lib_save_LIBS=$LIBS
28303 LIBS="-lncurses $LIBS"
28304 cat >conftest.$ac_ext <<_ACEOF
28305 #line $LINENO "configure"
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28312 /* Override any gcc2 internal prototype to avoid an error. */
28316 /* We use char because int might match the return type of a gcc2
28317 builtin and then its argument prototype would still apply. */
28327 rm -f conftest.$ac_objext conftest$ac_exeext
28328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28329 (eval $ac_link) 2>&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
28333 { ac_try='test -s conftest$ac_exeext'
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
28339 ac_cv_lib_ncurses_initscr=yes
28341 echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28344 ac_cv_lib_ncurses_initscr=no
28346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28347 LIBS=$ac_check_lib_save_LIBS
28349 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
28350 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
28351 if test $ac_cv_lib_ncurses_initscr = yes; then
28357 if test $have_ncurses = yes ; then
28359 cat >>confdefs.h <<\_ACEOF
28360 #define HAVE_NCURSES 1
28363 ol_link_termcap=yes
28364 TERMCAP_LIBS=-lncurses
28368 if test $ol_link_termcap = no ; then
28370 cat >>confdefs.h <<\_ACEOF
28371 #define NO_TERMCAP 1
28379 if test $ol_with_cyrus_sasl != no ; then
28382 for ac_header in sasl/sasl.h sasl.h
28384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28386 echo "$as_me:$LINENO: checking for $ac_header" >&5
28387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28394 # Is the header compilable?
28395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28397 cat >conftest.$ac_ext <<_ACEOF
28398 #line $LINENO "configure"
28401 cat confdefs.h >>conftest.$ac_ext
28402 cat >>conftest.$ac_ext <<_ACEOF
28403 /* end confdefs.h. */
28404 $ac_includes_default
28405 #include <$ac_header>
28407 rm -f conftest.$ac_objext
28408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28409 (eval $ac_compile) 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } &&
28413 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28419 ac_header_compiler=yes
28421 echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28424 ac_header_compiler=no
28426 rm -f conftest.$ac_objext conftest.$ac_ext
28427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28428 echo "${ECHO_T}$ac_header_compiler" >&6
28430 # Is the header present?
28431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28433 cat >conftest.$ac_ext <<_ACEOF
28434 #line $LINENO "configure"
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28440 #include <$ac_header>
28442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28445 grep -v '^ *+' conftest.er1 >conftest.err
28447 cat conftest.err >&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } >/dev/null; then
28450 if test -s conftest.err; then
28451 ac_cpp_err=$ac_c_preproc_warn_flag
28458 if test -z "$ac_cpp_err"; then
28459 ac_header_preproc=yes
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28464 ac_header_preproc=no
28466 rm -f conftest.err conftest.$ac_ext
28467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28468 echo "${ECHO_T}$ac_header_preproc" >&6
28470 # So? What about this header?
28471 case $ac_header_compiler:$ac_header_preproc in
28473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28479 ## ------------------------------------ ##
28480 ## Report this to bug-autoconf@gnu.org. ##
28481 ## ------------------------------------ ##
28484 sed "s/^/$as_me: WARNING: /" >&2
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28495 ## ------------------------------------ ##
28496 ## Report this to bug-autoconf@gnu.org. ##
28497 ## ------------------------------------ ##
28500 sed "s/^/$as_me: WARNING: /" >&2
28503 echo "$as_me:$LINENO: checking for $ac_header" >&5
28504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28506 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 eval "$as_ac_Header=$ac_header_preproc"
28510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28515 cat >>confdefs.h <<_ACEOF
28516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28524 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
28525 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
28526 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
28527 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 ac_check_lib_save_LIBS=$LIBS
28531 LIBS="-lsasl2 $LIBS"
28532 cat >conftest.$ac_ext <<_ACEOF
28533 #line $LINENO "configure"
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h. */
28540 /* Override any gcc2 internal prototype to avoid an error. */
28544 /* We use char because int might match the return type of a gcc2
28545 builtin and then its argument prototype would still apply. */
28546 char sasl_client_init ();
28550 sasl_client_init ();
28555 rm -f conftest.$ac_objext conftest$ac_exeext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28557 (eval $ac_link) 2>&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); } &&
28561 { ac_try='test -s conftest$ac_exeext'
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; }; then
28567 ac_cv_lib_sasl2_sasl_client_init=yes
28569 echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28572 ac_cv_lib_sasl2_sasl_client_init=no
28574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28575 LIBS=$ac_check_lib_save_LIBS
28577 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
28578 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
28579 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
28580 ol_link_sasl="-lsasl2"
28582 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
28583 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
28584 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
28585 echo $ECHO_N "(cached) $ECHO_C" >&6
28587 ac_check_lib_save_LIBS=$LIBS
28588 LIBS="-lsasl $LIBS"
28589 cat >conftest.$ac_ext <<_ACEOF
28590 #line $LINENO "configure"
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h. */
28597 /* Override any gcc2 internal prototype to avoid an error. */
28601 /* We use char because int might match the return type of a gcc2
28602 builtin and then its argument prototype would still apply. */
28603 char sasl_client_init ();
28607 sasl_client_init ();
28612 rm -f conftest.$ac_objext conftest$ac_exeext
28613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28614 (eval $ac_link) 2>&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } &&
28618 { ac_try='test -s conftest$ac_exeext'
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 ac_cv_lib_sasl_sasl_client_init=yes
28626 echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28629 ac_cv_lib_sasl_sasl_client_init=no
28631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28632 LIBS=$ac_check_lib_save_LIBS
28634 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
28635 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
28636 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
28637 ol_link_sasl="-lsasl"
28644 if test $ol_link_sasl = no ; then
28645 if test $ol_with_cyrus_sasl != auto ; then
28646 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
28647 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
28648 { (exit 1); exit 1; }; }
28650 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
28651 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
28653 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
28654 if test $ol_link_tls = no ; then
28655 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
28656 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
28660 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
28661 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
28662 if test "${ol_cv_sasl_compat+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28666 cat >conftest.$ac_ext <<_ACEOF
28667 #line $LINENO "configure"
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28674 #ifdef HAVE_SASL_SASL_H
28675 #include <sasl/sasl.h>
28680 /* require 2.1.3 or later */
28681 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
28682 char *__sasl_compat = "1.5.x okay";
28683 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
28684 __sasl_compat "2.2+ or better okay (we guess)";
28685 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
28686 && SASL_VERSION_STEP >=3
28687 __sasl_compat = "2.1.3+ or better okay";
28691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28692 $EGREP "__sasl_compat" >/dev/null 2>&1; then
28693 ol_cv_sasl_compat=yes
28695 ol_cv_sasl_compat=no
28700 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
28701 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
28703 if test $ol_cv_sasl_compat = no ; then
28705 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but incompatible" >&5
28706 echo "$as_me: error: Cyrus SASL library located but incompatible" >&2;}
28707 { (exit 1); exit 1; }; }
28711 cat >>confdefs.h <<\_ACEOF
28712 #define HAVE_CYRUS_SASL 1
28715 SASL_LIBS="$ol_link_sasl"
28716 if test $ol_enable_spasswd != no ; then
28717 ol_link_spasswd=yes
28720 ac_save_LIBS="$LIBS"
28721 LIBS="$LIBS $ol_link_sasl"
28722 echo "$as_me:$LINENO: checking for sasl_version" >&5
28723 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
28724 if test "${ac_cv_func_sasl_version+set}" = set; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
28727 cat >conftest.$ac_ext <<_ACEOF
28728 #line $LINENO "configure"
28731 cat confdefs.h >>conftest.$ac_ext
28732 cat >>conftest.$ac_ext <<_ACEOF
28733 /* end confdefs.h. */
28734 /* System header to define __stub macros and hopefully few prototypes,
28735 which can conflict with char sasl_version (); below.
28736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28737 <limits.h> exists even on freestanding compilers. */
28739 # include <limits.h>
28741 # include <assert.h>
28743 /* Override any gcc2 internal prototype to avoid an error. */
28748 /* We use char because int might match the return type of a gcc2
28749 builtin and then its argument prototype would still apply. */
28750 char sasl_version ();
28751 /* The GNU C library defines this for functions which it implements
28752 to always fail with ENOSYS. Some functions are actually named
28753 something starting with __ and the normal name is an alias. */
28754 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
28757 char (*f) () = sasl_version;
28766 return f != sasl_version;
28771 rm -f conftest.$ac_objext conftest$ac_exeext
28772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28773 (eval $ac_link) 2>&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } &&
28777 { ac_try='test -s conftest$ac_exeext'
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_cv_func_sasl_version=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_cv_func_sasl_version=no
28790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28792 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
28793 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
28794 if test $ac_cv_func_sasl_version = yes; then
28796 cat >>confdefs.h <<\_ACEOF
28797 #define HAVE_SASL_VERSION 1
28802 LIBS="$ac_save_LIBS"
28806 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
28807 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
28808 if test $ol_link_tls = no ; then
28809 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
28810 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
28814 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
28816 if test -r /dev/urandom ; then
28817 dev="/dev/urandom";
28818 elif test -r /idev/urandom ; then
28819 dev="/idev/urandom";
28820 elif test -r /dev/srandom ; then
28821 dev="/dev/srandom";
28822 elif test -r /dev/random ; then
28824 elif test -r /idev/random ; then
28825 dev="/idev/random";
28828 if test $dev != no ; then
28830 cat >>confdefs.h <<_ACEOF
28831 #define URANDOM_DEVICE "$dev"
28838 if test $ol_with_fetch != no ; then
28840 LIBS="-lfetch -lcom_err $LIBS"
28841 echo "$as_me:$LINENO: checking fetch(3) library" >&5
28842 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
28843 if test "${ol_cv_lib_fetch+set}" = set; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 cat >conftest.$ac_ext <<_ACEOF
28848 #line $LINENO "configure"
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h. */
28855 #include <sys/param.h>
28861 struct url *u = fetchParseURL("file:///");
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868 (eval $ac_link) 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; }; then
28878 ol_cv_lib_fetch=yes
28880 echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28887 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
28888 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
28890 if test $ol_cv_lib_fetch != no ; then
28891 ol_link_fetch="-lfetch -lcom_err"
28893 cat >>confdefs.h <<\_ACEOF
28894 #define HAVE_FETCH 1
28900 if test $ol_cv_lib_fetch != no ; then
28901 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
28902 ol_link_fetch=freebsd
28904 elif test $ol_with_fetch != auto ; then
28905 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
28906 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
28907 { (exit 1); exit 1; }; }
28911 ol_link_readline=no
28912 if test $ol_with_readline != no ; then
28915 for ac_header in readline/readline.h readline/history.h
28917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28919 echo "$as_me:$LINENO: checking for $ac_header" >&5
28920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28927 # Is the header compilable?
28928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28930 cat >conftest.$ac_ext <<_ACEOF
28931 #line $LINENO "configure"
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28937 $ac_includes_default
28938 #include <$ac_header>
28940 rm -f conftest.$ac_objext
28941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28942 (eval $ac_compile) 2>&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
28946 { ac_try='test -s conftest.$ac_objext'
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 ac_header_compiler=yes
28954 echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28957 ac_header_compiler=no
28959 rm -f conftest.$ac_objext conftest.$ac_ext
28960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28961 echo "${ECHO_T}$ac_header_compiler" >&6
28963 # Is the header present?
28964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28966 cat >conftest.$ac_ext <<_ACEOF
28967 #line $LINENO "configure"
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h. */
28973 #include <$ac_header>
28975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28978 grep -v '^ *+' conftest.er1 >conftest.err
28980 cat conftest.err >&5
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); } >/dev/null; then
28983 if test -s conftest.err; then
28984 ac_cpp_err=$ac_c_preproc_warn_flag
28991 if test -z "$ac_cpp_err"; then
28992 ac_header_preproc=yes
28994 echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28997 ac_header_preproc=no
28999 rm -f conftest.err conftest.$ac_ext
29000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29001 echo "${ECHO_T}$ac_header_preproc" >&6
29003 # So? What about this header?
29004 case $ac_header_compiler:$ac_header_preproc in
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29012 ## ------------------------------------ ##
29013 ## Report this to bug-autoconf@gnu.org. ##
29014 ## ------------------------------------ ##
29017 sed "s/^/$as_me: WARNING: /" >&2
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29028 ## ------------------------------------ ##
29029 ## Report this to bug-autoconf@gnu.org. ##
29030 ## ------------------------------------ ##
29033 sed "s/^/$as_me: WARNING: /" >&2
29036 echo "$as_me:$LINENO: checking for $ac_header" >&5
29037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29039 echo $ECHO_N "(cached) $ECHO_C" >&6
29041 eval "$as_ac_Header=$ac_header_preproc"
29043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29048 cat >>confdefs.h <<_ACEOF
29049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29057 if test $ac_cv_header_readline_readline_h = yes ; then
29059 LIBS="$TERMCAP_LIBS $LIBS"
29060 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29061 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29062 if test "${ac_cv_lib_readline_readline+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 ac_check_lib_save_LIBS=$LIBS
29066 LIBS="-lreadline $LIBS"
29067 cat >conftest.$ac_ext <<_ACEOF
29068 #line $LINENO "configure"
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29075 /* Override any gcc2 internal prototype to avoid an error. */
29079 /* We use char because int might match the return type of a gcc2
29080 builtin and then its argument prototype would still apply. */
29090 rm -f conftest.$ac_objext conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092 (eval $ac_link) 2>&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -s conftest$ac_exeext'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ac_cv_lib_readline_readline=yes
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29107 ac_cv_lib_readline_readline=no
29109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29112 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29113 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29114 if test $ac_cv_lib_readline_readline = yes; then
29122 if test $have_readline = yes ; then
29123 ol_with_readline=found
29124 ol_link_readline=yes
29126 READLINE_LIBS="-lreadline"
29131 if test $ol_link_readline = yes ; then
29133 cat >>confdefs.h <<\_ACEOF
29134 #define HAVE_READLINE 1
29140 if test $ol_enable_crypt != no ; then
29142 LIBS="$TLS_LIBS $LIBS"
29144 echo "$as_me:$LINENO: checking for crypt" >&5
29145 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
29146 if test "${ac_cv_func_crypt+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 cat >conftest.$ac_ext <<_ACEOF
29150 #line $LINENO "configure"
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 /* System header to define __stub macros and hopefully few prototypes,
29157 which can conflict with char crypt (); below.
29158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29159 <limits.h> exists even on freestanding compilers. */
29161 # include <limits.h>
29163 # include <assert.h>
29165 /* Override any gcc2 internal prototype to avoid an error. */
29170 /* We use char because int might match the return type of a gcc2
29171 builtin and then its argument prototype would still apply. */
29173 /* The GNU C library defines this for functions which it implements
29174 to always fail with ENOSYS. Some functions are actually named
29175 something starting with __ and the normal name is an alias. */
29176 #if defined (__stub_crypt) || defined (__stub___crypt)
29179 char (*f) () = crypt;
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29195 (eval $ac_link) 2>&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -s conftest$ac_exeext'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_func_crypt=yes
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 ac_cv_func_crypt=no
29212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29214 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
29215 echo "${ECHO_T}$ac_cv_func_crypt" >&6
29216 if test $ac_cv_func_crypt = yes; then
29221 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
29222 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
29223 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 ac_check_lib_save_LIBS=$LIBS
29227 LIBS="-lcrypt $LIBS"
29228 cat >conftest.$ac_ext <<_ACEOF
29229 #line $LINENO "configure"
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29236 /* Override any gcc2 internal prototype to avoid an error. */
29240 /* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29253 (eval $ac_link) 2>&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } &&
29257 { ac_try='test -s conftest$ac_exeext'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; }; then
29263 ac_cv_lib_crypt_crypt=yes
29265 echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29268 ac_cv_lib_crypt_crypt=no
29270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29271 LIBS=$ac_check_lib_save_LIBS
29273 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
29274 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
29275 if test $ac_cv_lib_crypt_crypt = yes; then
29276 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
29287 if test $have_crypt = yes ; then
29289 cat >>confdefs.h <<\_ACEOF
29290 #define HAVE_CRYPT 1
29294 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
29295 echo "$as_me: WARNING: could not find crypt" >&2;}
29296 if test $ol_enable_crypt = yes ; then
29297 { { echo "$as_me:$LINENO: error: could not find crypt" >&5
29298 echo "$as_me: error: could not find crypt" >&2;}
29299 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29302 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
29303 echo "$as_me: WARNING: disabling crypt support" >&2;}
29308 if test $ol_enable_proctitle != no ; then
29309 echo "$as_me:$LINENO: checking for setproctitle" >&5
29310 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
29311 if test "${ac_cv_func_setproctitle+set}" = set; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29314 cat >conftest.$ac_ext <<_ACEOF
29315 #line $LINENO "configure"
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h. */
29321 /* System header to define __stub macros and hopefully few prototypes,
29322 which can conflict with char setproctitle (); below.
29323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29324 <limits.h> exists even on freestanding compilers. */
29326 # include <limits.h>
29328 # include <assert.h>
29330 /* Override any gcc2 internal prototype to avoid an error. */
29335 /* We use char because int might match the return type of a gcc2
29336 builtin and then its argument prototype would still apply. */
29337 char setproctitle ();
29338 /* The GNU C library defines this for functions which it implements
29339 to always fail with ENOSYS. Some functions are actually named
29340 something starting with __ and the normal name is an alias. */
29341 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
29344 char (*f) () = setproctitle;
29353 return f != setproctitle;
29358 rm -f conftest.$ac_objext conftest$ac_exeext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29360 (eval $ac_link) 2>&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -s conftest$ac_exeext'
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29370 ac_cv_func_setproctitle=yes
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 ac_cv_func_setproctitle=no
29377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29379 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
29380 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
29381 if test $ac_cv_func_setproctitle = yes; then
29382 have_setproctitle=yes
29385 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
29386 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
29387 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 ac_check_lib_save_LIBS=$LIBS
29391 LIBS="-lutil $LIBS"
29392 cat >conftest.$ac_ext <<_ACEOF
29393 #line $LINENO "configure"
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29400 /* Override any gcc2 internal prototype to avoid an error. */
29404 /* We use char because int might match the return type of a gcc2
29405 builtin and then its argument prototype would still apply. */
29406 char setproctitle ();
29415 rm -f conftest.$ac_objext conftest$ac_exeext
29416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29417 (eval $ac_link) 2>&5
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); } &&
29421 { ac_try='test -s conftest$ac_exeext'
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; }; then
29427 ac_cv_lib_util_setproctitle=yes
29429 echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29432 ac_cv_lib_util_setproctitle=no
29434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29435 LIBS=$ac_check_lib_save_LIBS
29437 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
29438 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
29439 if test $ac_cv_lib_util_setproctitle = yes; then
29440 have_setproctitle=yes
29441 LUTIL_LIBS="$LUTIL_LIBS -lutil"
29443 have_setproctitle=no
29444 LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
29445 LIBSRCS="$LIBSRCS setproctitle.c"
29451 if test $have_setproctitle = yes ; then
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_SETPROCTITLE 1
29460 if test $ol_enable_slp != no ; then
29462 for ac_header in slp.h
29464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29466 echo "$as_me:$LINENO: checking for $ac_header" >&5
29467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29469 echo $ECHO_N "(cached) $ECHO_C" >&6
29471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29474 # Is the header compilable?
29475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29478 #line $LINENO "configure"
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h. */
29484 $ac_includes_default
29485 #include <$ac_header>
29487 rm -f conftest.$ac_objext
29488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29489 (eval $ac_compile) 2>&5
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); } &&
29493 { ac_try='test -s conftest.$ac_objext'
29494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495 (eval $ac_try) 2>&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 ac_header_compiler=yes
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 ac_header_compiler=no
29506 rm -f conftest.$ac_objext conftest.$ac_ext
29507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29508 echo "${ECHO_T}$ac_header_compiler" >&6
29510 # Is the header present?
29511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29513 cat >conftest.$ac_ext <<_ACEOF
29514 #line $LINENO "configure"
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29520 #include <$ac_header>
29522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29525 grep -v '^ *+' conftest.er1 >conftest.err
29527 cat conftest.err >&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } >/dev/null; then
29530 if test -s conftest.err; then
29531 ac_cpp_err=$ac_c_preproc_warn_flag
29538 if test -z "$ac_cpp_err"; then
29539 ac_header_preproc=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_header_preproc=no
29546 rm -f conftest.err conftest.$ac_ext
29547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29548 echo "${ECHO_T}$ac_header_preproc" >&6
29550 # So? What about this header?
29551 case $ac_header_compiler:$ac_header_preproc in
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559 ## ------------------------------------ ##
29560 ## Report this to bug-autoconf@gnu.org. ##
29561 ## ------------------------------------ ##
29564 sed "s/^/$as_me: WARNING: /" >&2
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29575 ## ------------------------------------ ##
29576 ## Report this to bug-autoconf@gnu.org. ##
29577 ## ------------------------------------ ##
29580 sed "s/^/$as_me: WARNING: /" >&2
29583 echo "$as_me:$LINENO: checking for $ac_header" >&5
29584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 eval "$as_ac_Header=$ac_header_preproc"
29590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29595 cat >>confdefs.h <<_ACEOF
29596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29604 if test $ac_cv_header_slp_h = yes ; then
29605 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
29606 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
29607 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
29608 echo $ECHO_N "(cached) $ECHO_C" >&6
29610 ac_check_lib_save_LIBS=$LIBS
29612 cat >conftest.$ac_ext <<_ACEOF
29613 #line $LINENO "configure"
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h. */
29620 /* Override any gcc2 internal prototype to avoid an error. */
29624 /* We use char because int might match the return type of a gcc2
29625 builtin and then its argument prototype would still apply. */
29635 rm -f conftest.$ac_objext conftest$ac_exeext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29637 (eval $ac_link) 2>&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } &&
29641 { ac_try='test -s conftest$ac_exeext'
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; }; then
29647 ac_cv_lib_slp_SLPOpen=yes
29649 echo "$as_me: failed program was:" >&5
29650 sed 's/^/| /' conftest.$ac_ext >&5
29652 ac_cv_lib_slp_SLPOpen=no
29654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29655 LIBS=$ac_check_lib_save_LIBS
29657 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
29658 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
29659 if test $ac_cv_lib_slp_SLPOpen = yes; then
29665 if test $have_slp = yes ; then
29667 cat >>confdefs.h <<\_ACEOF
29671 SLAPD_SLP_LIBS=-lslp
29674 elif test $ol_enable_slp = yes ; then
29675 { { echo "$as_me:$LINENO: error: SLP not found" >&5
29676 echo "$as_me: error: SLP not found" >&2;}
29677 { (exit 1); exit 1; }; }
29681 echo "$as_me:$LINENO: checking for mode_t" >&5
29682 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29683 if test "${ac_cv_type_mode_t+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
29686 cat >conftest.$ac_ext <<_ACEOF
29687 #line $LINENO "configure"
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 $ac_includes_default
29699 if (sizeof (mode_t))
29705 rm -f conftest.$ac_objext
29706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29707 (eval $ac_compile) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); } &&
29711 { ac_try='test -s conftest.$ac_objext'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 ac_cv_type_mode_t=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_cv_type_mode_t=no
29724 rm -f conftest.$ac_objext conftest.$ac_ext
29726 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29727 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29728 if test $ac_cv_type_mode_t = yes; then
29732 cat >>confdefs.h <<_ACEOF
29738 echo "$as_me:$LINENO: checking for off_t" >&5
29739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29740 if test "${ac_cv_type_off_t+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 cat >conftest.$ac_ext <<_ACEOF
29744 #line $LINENO "configure"
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29750 $ac_includes_default
29756 if (sizeof (off_t))
29762 rm -f conftest.$ac_objext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29764 (eval $ac_compile) 2>&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
29768 { ac_try='test -s conftest.$ac_objext'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_type_off_t=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_cv_type_off_t=no
29781 rm -f conftest.$ac_objext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29784 echo "${ECHO_T}$ac_cv_type_off_t" >&6
29785 if test $ac_cv_type_off_t = yes; then
29789 cat >>confdefs.h <<_ACEOF
29795 echo "$as_me:$LINENO: checking for pid_t" >&5
29796 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29797 if test "${ac_cv_type_pid_t+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29800 cat >conftest.$ac_ext <<_ACEOF
29801 #line $LINENO "configure"
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h. */
29807 $ac_includes_default
29813 if (sizeof (pid_t))
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821 (eval $ac_compile) 2>&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -s conftest.$ac_objext'
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
29831 ac_cv_type_pid_t=yes
29833 echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29836 ac_cv_type_pid_t=no
29838 rm -f conftest.$ac_objext conftest.$ac_ext
29840 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29841 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29842 if test $ac_cv_type_pid_t = yes; then
29846 cat >>confdefs.h <<_ACEOF
29852 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
29853 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
29854 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 cat >conftest.$ac_ext <<_ACEOF
29858 #line $LINENO "configure"
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 $ac_includes_default
29868 if ((ptrdiff_t *) 0)
29870 if (sizeof (ptrdiff_t))
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878 (eval $ac_compile) 2>&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } &&
29882 { ac_try='test -s conftest.$ac_objext'
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
29888 ac_cv_type_ptrdiff_t=yes
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29893 ac_cv_type_ptrdiff_t=no
29895 rm -f conftest.$ac_objext conftest.$ac_ext
29897 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29898 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
29899 if test $ac_cv_type_ptrdiff_t = yes; then
29901 cat >>confdefs.h <<_ACEOF
29902 #define HAVE_PTRDIFF_T 1
29907 echo "$as_me:$LINENO: checking for uintmax_t" >&5
29908 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
29909 if test "${ac_cv_type_uintmax_t+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 cat >conftest.$ac_ext <<_ACEOF
29913 #line $LINENO "configure"
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h. */
29919 $ac_includes_default
29923 if ((uintmax_t *) 0)
29925 if (sizeof (uintmax_t))
29931 rm -f conftest.$ac_objext
29932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29933 (eval $ac_compile) 2>&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -s conftest.$ac_objext'
29938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; }; then
29943 ac_cv_type_uintmax_t=yes
29945 echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29948 ac_cv_type_uintmax_t=no
29950 rm -f conftest.$ac_objext conftest.$ac_ext
29952 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
29953 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
29954 if test $ac_cv_type_uintmax_t = yes; then
29956 cat >>confdefs.h <<_ACEOF
29957 #define HAVE_UINTMAX_T 1
29963 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29964 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29965 if test "${ac_cv_type_signal+set}" = set; then
29966 echo $ECHO_N "(cached) $ECHO_C" >&6
29968 cat >conftest.$ac_ext <<_ACEOF
29969 #line $LINENO "configure"
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29975 #include <sys/types.h>
29976 #include <signal.h>
29981 extern "C" void (*signal (int, void (*)(int)))(int);
29983 void (*signal ()) ();
29994 rm -f conftest.$ac_objext
29995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996 (eval $ac_compile) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006 ac_cv_type_signal=void
30008 echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30011 ac_cv_type_signal=int
30013 rm -f conftest.$ac_objext conftest.$ac_ext
30015 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30016 echo "${ECHO_T}$ac_cv_type_signal" >&6
30018 cat >>confdefs.h <<_ACEOF
30019 #define RETSIGTYPE $ac_cv_type_signal
30023 echo "$as_me:$LINENO: checking for size_t" >&5
30024 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30025 if test "${ac_cv_type_size_t+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30028 cat >conftest.$ac_ext <<_ACEOF
30029 #line $LINENO "configure"
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30035 $ac_includes_default
30041 if (sizeof (size_t))
30047 rm -f conftest.$ac_objext
30048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30049 (eval $ac_compile) 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
30053 { ac_try='test -s conftest.$ac_objext'
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; }; then
30059 ac_cv_type_size_t=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_cv_type_size_t=no
30066 rm -f conftest.$ac_objext conftest.$ac_ext
30068 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30069 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30070 if test $ac_cv_type_size_t = yes; then
30074 cat >>confdefs.h <<_ACEOF
30075 #define size_t unsigned
30081 echo "$as_me:$LINENO: checking for ssize_t" >&5
30082 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30083 if test "${ac_cv_type_ssize_t+set}" = set; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30086 cat >conftest.$ac_ext <<_ACEOF
30087 #line $LINENO "configure"
30090 cat confdefs.h >>conftest.$ac_ext
30091 cat >>conftest.$ac_ext <<_ACEOF
30092 /* end confdefs.h. */
30093 $ac_includes_default
30099 if (sizeof (ssize_t))
30105 rm -f conftest.$ac_objext
30106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30107 (eval $ac_compile) 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
30111 { ac_try='test -s conftest.$ac_objext'
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117 ac_cv_type_ssize_t=yes
30119 echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30122 ac_cv_type_ssize_t=no
30124 rm -f conftest.$ac_objext conftest.$ac_ext
30126 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30127 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30128 if test $ac_cv_type_ssize_t = yes; then
30130 cat >>confdefs.h <<_ACEOF
30131 #define HAVE_SSIZE_T 1
30136 echo "$as_me:$LINENO: checking for signed int" >&5
30137 echo $ECHO_N "checking for signed int... $ECHO_C" >&6
30138 if test "${ac_cv_type_signed_int+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30141 cat >conftest.$ac_ext <<_ACEOF
30142 #line $LINENO "configure"
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h. */
30148 $ac_includes_default
30152 if ((signed int *) 0)
30154 if (sizeof (signed int))
30160 rm -f conftest.$ac_objext
30161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30162 (eval $ac_compile) 2>&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } &&
30166 { ac_try='test -s conftest.$ac_objext'
30167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168 (eval $ac_try) 2>&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; }; then
30172 ac_cv_type_signed_int=yes
30174 echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30177 ac_cv_type_signed_int=no
30179 rm -f conftest.$ac_objext conftest.$ac_ext
30181 echo "$as_me:$LINENO: result: $ac_cv_type_signed_int" >&5
30182 echo "${ECHO_T}$ac_cv_type_signed_int" >&6
30183 if test $ac_cv_type_signed_int = yes; then
30185 cat >>confdefs.h <<_ACEOF
30186 #define HAVE_SIGNED_INT 1
30192 echo "$as_me:$LINENO: checking for caddr_t" >&5
30193 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
30194 if test "${ac_cv_type_caddr_t+set}" = set; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30197 cat >conftest.$ac_ext <<_ACEOF
30198 #line $LINENO "configure"
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 $ac_includes_default
30210 if (sizeof (caddr_t))
30216 rm -f conftest.$ac_objext
30217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30218 (eval $ac_compile) 2>&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); } &&
30222 { ac_try='test -s conftest.$ac_objext'
30223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30224 (eval $ac_try) 2>&5
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; }; then
30228 ac_cv_type_caddr_t=yes
30230 echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30233 ac_cv_type_caddr_t=no
30235 rm -f conftest.$ac_objext conftest.$ac_ext
30237 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
30238 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
30239 if test $ac_cv_type_caddr_t = yes; then
30241 cat >>confdefs.h <<_ACEOF
30242 #define HAVE_CADDR_T 1
30247 echo "$as_me:$LINENO: checking for char *" >&5
30248 echo $ECHO_N "checking for char *... $ECHO_C" >&6
30249 if test "${ac_cv_type_char_p+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30252 cat >conftest.$ac_ext <<_ACEOF
30253 #line $LINENO "configure"
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 $ac_includes_default
30265 if (sizeof (char *))
30271 rm -f conftest.$ac_objext
30272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30273 (eval $ac_compile) 2>&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -s conftest.$ac_objext'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; }; then
30283 ac_cv_type_char_p=yes
30285 echo "$as_me: failed program was:" >&5
30286 sed 's/^/| /' conftest.$ac_ext >&5
30288 ac_cv_type_char_p=no
30290 rm -f conftest.$ac_objext conftest.$ac_ext
30292 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
30293 echo "${ECHO_T}$ac_cv_type_char_p" >&6
30294 if test $ac_cv_type_char_p = yes; then
30296 cat >>confdefs.h <<_ACEOF
30297 #define HAVE_CHAR_P 1
30304 echo "$as_me:$LINENO: checking for socklen_t" >&5
30305 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
30306 if test "${ol_cv_type_socklen_t+set}" = set; then
30307 echo $ECHO_N "(cached) $ECHO_C" >&6
30309 cat >conftest.$ac_ext <<_ACEOF
30310 #line $LINENO "configure"
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h. */
30317 #ifdef HAVE_SYS_TYPES_H
30318 #include <sys/types.h>
30320 #ifdef HAVE_SYS_SOCKET_H
30321 #include <sys/socket.h>
30332 rm -f conftest.$ac_objext
30333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30334 (eval $ac_compile) 2>&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } &&
30338 { ac_try='test -s conftest.$ac_objext'
30339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30340 (eval $ac_try) 2>&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); }; }; then
30344 ol_cv_type_socklen_t=yes
30346 echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30349 ol_cv_type_socklen_t=no
30351 rm -f conftest.$ac_objext conftest.$ac_ext
30353 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
30354 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
30355 if test $ol_cv_type_socklen_t = no; then
30357 cat >>confdefs.h <<\_ACEOF
30358 #define socklen_t int
30364 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
30365 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
30366 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30369 cat >conftest.$ac_ext <<_ACEOF
30370 #line $LINENO "configure"
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h. */
30376 $ac_includes_default
30380 static struct stat ac_aggr;
30381 if (ac_aggr.st_blksize)
30387 rm -f conftest.$ac_objext
30388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30389 (eval $ac_compile) 2>&5
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); } &&
30393 { ac_try='test -s conftest.$ac_objext'
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; }; then
30399 ac_cv_member_struct_stat_st_blksize=yes
30401 echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30404 cat >conftest.$ac_ext <<_ACEOF
30405 #line $LINENO "configure"
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30411 $ac_includes_default
30415 static struct stat ac_aggr;
30416 if (sizeof ac_aggr.st_blksize)
30422 rm -f conftest.$ac_objext
30423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30424 (eval $ac_compile) 2>&5
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); } &&
30428 { ac_try='test -s conftest.$ac_objext'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
30434 ac_cv_member_struct_stat_st_blksize=yes
30436 echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30439 ac_cv_member_struct_stat_st_blksize=no
30441 rm -f conftest.$ac_objext conftest.$ac_ext
30443 rm -f conftest.$ac_objext conftest.$ac_ext
30445 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
30446 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
30447 if test $ac_cv_member_struct_stat_st_blksize = yes; then
30449 cat >>confdefs.h <<_ACEOF
30450 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
30454 cat >>confdefs.h <<\_ACEOF
30455 #define HAVE_ST_BLKSIZE 1
30461 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
30462 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
30463 if test "${ac_cv_header_time+set}" = set; then
30464 echo $ECHO_N "(cached) $ECHO_C" >&6
30466 cat >conftest.$ac_ext <<_ACEOF
30467 #line $LINENO "configure"
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 #include <sys/types.h>
30474 #include <sys/time.h>
30480 if ((struct tm *) 0)
30486 rm -f conftest.$ac_objext
30487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30488 (eval $ac_compile) 2>&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } &&
30492 { ac_try='test -s conftest.$ac_objext'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 ac_cv_header_time=yes
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_cv_header_time=no
30505 rm -f conftest.$ac_objext conftest.$ac_ext
30507 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30508 echo "${ECHO_T}$ac_cv_header_time" >&6
30509 if test $ac_cv_header_time = yes; then
30511 cat >>confdefs.h <<\_ACEOF
30512 #define TIME_WITH_SYS_TIME 1
30517 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30518 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30519 if test "${ac_cv_struct_tm+set}" = set; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30522 cat >conftest.$ac_ext <<_ACEOF
30523 #line $LINENO "configure"
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30529 #include <sys/types.h>
30535 struct tm *tp; tp->tm_sec;
30540 rm -f conftest.$ac_objext
30541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30542 (eval $ac_compile) 2>&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } &&
30546 { ac_try='test -s conftest.$ac_objext'
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; }; then
30552 ac_cv_struct_tm=time.h
30554 echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30557 ac_cv_struct_tm=sys/time.h
30559 rm -f conftest.$ac_objext conftest.$ac_ext
30561 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30562 echo "${ECHO_T}$ac_cv_struct_tm" >&6
30563 if test $ac_cv_struct_tm = sys/time.h; then
30565 cat >>confdefs.h <<\_ACEOF
30566 #define TM_IN_SYS_TIME 1
30571 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30572 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30573 if test "${ac_cv_type_uid_t+set}" = set; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30576 cat >conftest.$ac_ext <<_ACEOF
30577 #line $LINENO "configure"
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 #include <sys/types.h>
30586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30587 $EGREP "uid_t" >/dev/null 2>&1; then
30588 ac_cv_type_uid_t=yes
30590 ac_cv_type_uid_t=no
30595 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30596 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30597 if test $ac_cv_type_uid_t = no; then
30599 cat >>confdefs.h <<\_ACEOF
30604 cat >>confdefs.h <<\_ACEOF
30610 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
30611 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
30612 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
30615 cat >conftest.$ac_ext <<_ACEOF
30616 #line $LINENO "configure"
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30622 #include <signal.h>
30626 sig_atomic_t atomic;
30631 rm -f conftest.$ac_objext
30632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30633 (eval $ac_compile) 2>&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
30637 { ac_try='test -s conftest.$ac_objext'
30638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639 (eval $ac_try) 2>&5
30641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642 (exit $ac_status); }; }; then
30643 ol_cv_type_sig_atomic_t=yes
30645 echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30648 ol_cv_type_sig_atomic_t=no
30650 rm -f conftest.$ac_objext conftest.$ac_ext
30652 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
30653 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
30654 if test $ol_cv_type_sig_atomic_t = no; then
30656 cat >>confdefs.h <<\_ACEOF
30657 #define sig_atomic_t int
30664 # test for pw_gecos in struct passwd
30665 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
30666 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
30667 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
30668 echo $ECHO_N "(cached) $ECHO_C" >&6
30671 cat >conftest.$ac_ext <<_ACEOF
30672 #line $LINENO "configure"
30675 cat confdefs.h >>conftest.$ac_ext
30676 cat >>conftest.$ac_ext <<_ACEOF
30677 /* end confdefs.h. */
30684 pwd.pw_gecos = pwd.pw_name;
30690 rm -f conftest.$ac_objext
30691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30692 (eval $ac_compile) 2>&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
30696 { ac_try='test -s conftest.$ac_objext'
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; }; then
30702 ol_cv_struct_passwd_pw_gecos=yes
30704 echo "$as_me: failed program was:" >&5
30705 sed 's/^/| /' conftest.$ac_ext >&5
30707 ol_cv_struct_passwd_pw_gecos=no
30709 rm -f conftest.$ac_objext conftest.$ac_ext
30711 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
30712 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
30713 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
30715 cat >>confdefs.h <<\_ACEOF
30716 #define HAVE_PW_GECOS 1
30721 # test for pw_passwd in struct passwd
30722 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
30723 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
30724 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30728 cat >conftest.$ac_ext <<_ACEOF
30729 #line $LINENO "configure"
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h. */
30741 pwd.pw_passwd = pwd.pw_name;
30747 rm -f conftest.$ac_objext
30748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30749 (eval $ac_compile) 2>&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } &&
30753 { ac_try='test -s conftest.$ac_objext'
30754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755 (eval $ac_try) 2>&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); }; }; then
30759 ol_cv_struct_passwd_pw_passwd=yes
30761 echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30764 ol_cv_struct_passwd_pw_passwd=no
30766 rm -f conftest.$ac_objext conftest.$ac_ext
30768 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
30769 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
30770 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
30772 cat >>confdefs.h <<\_ACEOF
30773 #define HAVE_PW_PASSWD 1
30779 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
30780 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
30781 if test "${ol_cv_c_upper_lower+set}" = set; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30785 if test "$cross_compiling" = yes; then
30786 ol_cv_c_upper_lower=safe
30788 cat >conftest.$ac_ext <<_ACEOF
30789 #line $LINENO "configure"
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30799 if ('C' == toupper('C'))
30805 rm -f conftest$ac_exeext
30806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30807 (eval $ac_link) 2>&5
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; }; then
30816 ol_cv_c_upper_lower=no
30818 echo "$as_me: program exited with status $ac_status" >&5
30819 echo "$as_me: failed program was:" >&5
30820 sed 's/^/| /' conftest.$ac_ext >&5
30822 ( exit $ac_status )
30823 ol_cv_c_upper_lower=yes
30825 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30828 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
30829 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
30830 if test $ol_cv_c_upper_lower != no ; then
30832 cat >>confdefs.h <<\_ACEOF
30833 #define C_UPPER_LOWER 1
30838 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30840 if test "${ac_cv_c_const+set}" = set; then
30841 echo $ECHO_N "(cached) $ECHO_C" >&6
30843 cat >conftest.$ac_ext <<_ACEOF
30844 #line $LINENO "configure"
30847 cat confdefs.h >>conftest.$ac_ext
30848 cat >>conftest.$ac_ext <<_ACEOF
30849 /* end confdefs.h. */
30854 /* FIXME: Include the comments suggested by Paul. */
30855 #ifndef __cplusplus
30856 /* Ultrix mips cc rejects this. */
30857 typedef int charset[2];
30859 /* SunOS 4.1.1 cc rejects this. */
30860 char const *const *ccp;
30862 /* NEC SVR4.0.2 mips cc rejects this. */
30863 struct point {int x, y;};
30864 static struct point const zero = {0,0};
30865 /* AIX XL C 1.02.0.0 rejects this.
30866 It does not let you subtract one const X* pointer from another in
30867 an arm of an if-expression whose if-part is not a constant
30869 const char *g = "string";
30870 ccp = &g + (g ? g-g : 0);
30871 /* HPUX 7.0 cc rejects these. */
30874 ccp = (char const *const *) p;
30875 { /* SCO 3.2v4 cc rejects this. */
30877 char const *s = 0 ? (char *) 0 : (char const *) 0;
30881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
30882 int x[] = {25, 17};
30883 const int *foo = &x[0];
30886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30887 typedef const int *iptr;
30891 { /* AIX XL C 1.02.0.0 rejects this saying
30892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30893 struct s { int j; const int *ap[3]; };
30894 struct s *b; b->j = 5;
30896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30897 const int foo = 10;
30905 rm -f conftest.$ac_objext
30906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30907 (eval $ac_compile) 2>&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } &&
30911 { ac_try='test -s conftest.$ac_objext'
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30919 echo "$as_me: failed program was:" >&5
30920 sed 's/^/| /' conftest.$ac_ext >&5
30924 rm -f conftest.$ac_objext conftest.$ac_ext
30926 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30927 echo "${ECHO_T}$ac_cv_c_const" >&6
30928 if test $ac_cv_c_const = no; then
30930 cat >>confdefs.h <<\_ACEOF
30936 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
30937 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
30938 if test "${ol_cv_c_volatile+set}" = set; then
30939 echo $ECHO_N "(cached) $ECHO_C" >&6
30941 cat >conftest.$ac_ext <<_ACEOF
30942 #line $LINENO "configure"
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h. */
30952 volatile int a; int * volatile b = x ? &y : &z;
30953 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
30959 rm -f conftest.$ac_objext
30960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30961 (eval $ac_compile) 2>&5
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); } &&
30965 { ac_try='test -s conftest.$ac_objext'
30966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967 (eval $ac_try) 2>&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; }; then
30971 ol_cv_c_volatile=yes
30973 echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30976 ol_cv_c_volatile=no
30978 rm -f conftest.$ac_objext conftest.$ac_ext
30980 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
30981 echo "${ECHO_T}$ol_cv_c_volatile" >&6
30982 if test $ol_cv_c_volatile = yes; then
30986 cat >>confdefs.h <<\_ACEOF
30993 if test $cross_compiling = yes ; then
30995 cat >>confdefs.h <<\_ACEOF
30996 #define CROSS_COMPILING 1
31000 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31001 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
31002 if test "${ac_cv_c_bigendian+set}" = set; then
31003 echo $ECHO_N "(cached) $ECHO_C" >&6
31005 # See if sys/param.h defines the BYTE_ORDER macro.
31006 cat >conftest.$ac_ext <<_ACEOF
31007 #line $LINENO "configure"
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h. */
31013 #include <sys/types.h>
31014 #include <sys/param.h>
31019 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
31020 bogus endian macros
31027 rm -f conftest.$ac_objext
31028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31029 (eval $ac_compile) 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } &&
31033 { ac_try='test -s conftest.$ac_objext'
31034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31035 (eval $ac_try) 2>&5
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); }; }; then
31039 # It does; now see whether it defined to BIG_ENDIAN or not.
31040 cat >conftest.$ac_ext <<_ACEOF
31041 #line $LINENO "configure"
31044 cat confdefs.h >>conftest.$ac_ext
31045 cat >>conftest.$ac_ext <<_ACEOF
31046 /* end confdefs.h. */
31047 #include <sys/types.h>
31048 #include <sys/param.h>
31053 #if BYTE_ORDER != BIG_ENDIAN
31061 rm -f conftest.$ac_objext
31062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31063 (eval $ac_compile) 2>&5
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); } &&
31067 { ac_try='test -s conftest.$ac_objext'
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; }; then
31073 ac_cv_c_bigendian=yes
31075 echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31078 ac_cv_c_bigendian=no
31080 rm -f conftest.$ac_objext conftest.$ac_ext
31082 echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31085 # It does not; compile a test program.
31086 if test "$cross_compiling" = yes; then
31087 # try to guess the endianness by grepping values into an object file
31088 ac_cv_c_bigendian=unknown
31089 cat >conftest.$ac_ext <<_ACEOF
31090 #line $LINENO "configure"
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31096 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31097 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31098 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
31099 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31100 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31101 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
31105 _ascii (); _ebcdic ();
31110 rm -f conftest.$ac_objext
31111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31112 (eval $ac_compile) 2>&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; }; then
31122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31123 ac_cv_c_bigendian=yes
31125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31126 if test "$ac_cv_c_bigendian" = unknown; then
31127 ac_cv_c_bigendian=no
31129 # finding both strings is unlikely to happen, but who knows?
31130 ac_cv_c_bigendian=unknown
31134 echo "$as_me: failed program was:" >&5
31135 sed 's/^/| /' conftest.$ac_ext >&5
31138 rm -f conftest.$ac_objext conftest.$ac_ext
31140 cat >conftest.$ac_ext <<_ACEOF
31141 #line $LINENO "configure"
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h. */
31150 /* Are we little or big endian? From Harbison&Steele. */
31154 char c[sizeof (long)];
31157 exit (u.c[sizeof (long) - 1] == 1);
31160 rm -f conftest$ac_exeext
31161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31162 (eval $ac_link) 2>&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; }; then
31171 ac_cv_c_bigendian=no
31173 echo "$as_me: program exited with status $ac_status" >&5
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31177 ( exit $ac_status )
31178 ac_cv_c_bigendian=yes
31180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31183 rm -f conftest.$ac_objext conftest.$ac_ext
31185 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
31186 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
31187 case $ac_cv_c_bigendian in
31190 cat >>confdefs.h <<\_ACEOF
31191 #define WORDS_BIGENDIAN 1
31197 { { echo "$as_me:$LINENO: error: unknown endianness
31198 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
31199 echo "$as_me: error: unknown endianness
31200 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
31201 { (exit 1); exit 1; }; } ;;
31206 echo "$as_me:$LINENO: checking size of short" >&5
31207 echo $ECHO_N "checking size of short... $ECHO_C" >&6
31208 if test "${ac_cv_sizeof_short+set}" = set; then
31209 echo $ECHO_N "(cached) $ECHO_C" >&6
31211 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31212 cat >conftest.$ac_ext <<_ACEOF
31213 #line $LINENO "configure"
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 #include "confdefs.h"
31220 #include <sys/types.h>
31226 switch (0) case 0: case (sizeof (short) == $ac_size):;
31231 rm -f conftest.$ac_objext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31233 (eval $ac_compile) 2>&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
31237 { ac_try='test -s conftest.$ac_objext'
31238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31239 (eval $ac_try) 2>&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; }; then
31243 ac_cv_sizeof_short=$ac_size
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31249 rm -f conftest.$ac_objext conftest.$ac_ext
31250 if test x$ac_cv_sizeof_short != x ; then break; fi
31255 if test x$ac_cv_sizeof_short = x ; then
31256 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
31257 echo "$as_me: error: cannot determine a size for short" >&2;}
31258 { (exit 1); exit 1; }; }
31260 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
31261 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
31263 cat >>confdefs.h <<_ACEOF
31264 #define SIZEOF_SHORT $ac_cv_sizeof_short
31268 echo "$as_me:$LINENO: checking size of int" >&5
31269 echo $ECHO_N "checking size of int... $ECHO_C" >&6
31270 if test "${ac_cv_sizeof_int+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31273 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31274 cat >conftest.$ac_ext <<_ACEOF
31275 #line $LINENO "configure"
31278 cat confdefs.h >>conftest.$ac_ext
31279 cat >>conftest.$ac_ext <<_ACEOF
31280 /* end confdefs.h. */
31281 #include "confdefs.h"
31282 #include <sys/types.h>
31288 switch (0) case 0: case (sizeof (int) == $ac_size):;
31293 rm -f conftest.$ac_objext
31294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31295 (eval $ac_compile) 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31305 ac_cv_sizeof_int=$ac_size
31307 echo "$as_me: failed program was:" >&5
31308 sed 's/^/| /' conftest.$ac_ext >&5
31311 rm -f conftest.$ac_objext conftest.$ac_ext
31312 if test x$ac_cv_sizeof_int != x ; then break; fi
31317 if test x$ac_cv_sizeof_int = x ; then
31318 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
31319 echo "$as_me: error: cannot determine a size for int" >&2;}
31320 { (exit 1); exit 1; }; }
31322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
31323 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
31325 cat >>confdefs.h <<_ACEOF
31326 #define SIZEOF_INT $ac_cv_sizeof_int
31330 echo "$as_me:$LINENO: checking size of long" >&5
31331 echo $ECHO_N "checking size of long... $ECHO_C" >&6
31332 if test "${ac_cv_sizeof_long+set}" = set; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31335 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31336 cat >conftest.$ac_ext <<_ACEOF
31337 #line $LINENO "configure"
31340 cat confdefs.h >>conftest.$ac_ext
31341 cat >>conftest.$ac_ext <<_ACEOF
31342 /* end confdefs.h. */
31343 #include "confdefs.h"
31344 #include <sys/types.h>
31350 switch (0) case 0: case (sizeof (long) == $ac_size):;
31355 rm -f conftest.$ac_objext
31356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31357 (eval $ac_compile) 2>&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } &&
31361 { ac_try='test -s conftest.$ac_objext'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
31367 ac_cv_sizeof_long=$ac_size
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31373 rm -f conftest.$ac_objext conftest.$ac_ext
31374 if test x$ac_cv_sizeof_long != x ; then break; fi
31379 if test x$ac_cv_sizeof_long = x ; then
31380 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
31381 echo "$as_me: error: cannot determine a size for long" >&2;}
31382 { (exit 1); exit 1; }; }
31384 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
31385 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
31387 cat >>confdefs.h <<_ACEOF
31388 #define SIZEOF_LONG $ac_cv_sizeof_long
31393 if test "$ac_cv_sizeof_int" -lt 4 ; then
31394 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
31395 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
31397 cat >>confdefs.h <<\_ACEOF
31398 #define LBER_INT_T long
31402 cat >>confdefs.h <<\_ACEOF
31403 #define LBER_INT_T int
31408 cat >>confdefs.h <<\_ACEOF
31409 #define LBER_LEN_T long
31412 cat >>confdefs.h <<\_ACEOF
31413 #define LBER_SOCKET_T int
31416 cat >>confdefs.h <<\_ACEOF
31417 #define LBER_TAG_T long
31421 echo "$as_me:$LINENO: checking for working memcmp" >&5
31422 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
31423 if test "${ac_cv_func_memcmp_working+set}" = set; then
31424 echo $ECHO_N "(cached) $ECHO_C" >&6
31426 if test "$cross_compiling" = yes; then
31427 ac_cv_func_memcmp_working=no
31429 cat >conftest.$ac_ext <<_ACEOF
31430 #line $LINENO "configure"
31433 cat confdefs.h >>conftest.$ac_ext
31434 cat >>conftest.$ac_ext <<_ACEOF
31435 /* end confdefs.h. */
31441 /* Some versions of memcmp are not 8-bit clean. */
31442 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
31443 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
31446 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
31447 or more and with at least one buffer not starting on a 4-byte boundary.
31448 William Lewis provided this test program. */
31453 for (i = 0; i < 4; i++)
31457 strcpy (a, "--------01111111");
31458 strcpy (b, "--------10000000");
31459 if (memcmp (a, b, 16) >= 0)
31469 rm -f conftest$ac_exeext
31470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31471 (eval $ac_link) 2>&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31476 (eval $ac_try) 2>&5
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; }; then
31480 ac_cv_func_memcmp_working=yes
31482 echo "$as_me: program exited with status $ac_status" >&5
31483 echo "$as_me: failed program was:" >&5
31484 sed 's/^/| /' conftest.$ac_ext >&5
31486 ( exit $ac_status )
31487 ac_cv_func_memcmp_working=no
31489 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31492 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
31493 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
31494 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
31497 for ac_func in strftime
31499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31500 echo "$as_me:$LINENO: checking for $ac_func" >&5
31501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31502 if eval "test \"\${$as_ac_var+set}\" = set"; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31505 cat >conftest.$ac_ext <<_ACEOF
31506 #line $LINENO "configure"
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h. */
31512 /* System header to define __stub macros and hopefully few prototypes,
31513 which can conflict with char $ac_func (); below.
31514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31515 <limits.h> exists even on freestanding compilers. */
31517 # include <limits.h>
31519 # include <assert.h>
31521 /* Override any gcc2 internal prototype to avoid an error. */
31526 /* We use char because int might match the return type of a gcc2
31527 builtin and then its argument prototype would still apply. */
31529 /* The GNU C library defines this for functions which it implements
31530 to always fail with ENOSYS. Some functions are actually named
31531 something starting with __ and the normal name is an alias. */
31532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31535 char (*f) () = $ac_func;
31544 return f != $ac_func;
31549 rm -f conftest.$ac_objext conftest$ac_exeext
31550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31551 (eval $ac_link) 2>&5
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); } &&
31555 { ac_try='test -s conftest$ac_exeext'
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 eval "$as_ac_var=yes"
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31566 eval "$as_ac_var=no"
31568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31572 if test `eval echo '${'$as_ac_var'}'` = yes; then
31573 cat >>confdefs.h <<_ACEOF
31574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31578 # strftime is in -lintl on SCO UNIX.
31579 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31580 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
31581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31582 echo $ECHO_N "(cached) $ECHO_C" >&6
31584 ac_check_lib_save_LIBS=$LIBS
31585 LIBS="-lintl $LIBS"
31586 cat >conftest.$ac_ext <<_ACEOF
31587 #line $LINENO "configure"
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h. */
31594 /* Override any gcc2 internal prototype to avoid an error. */
31598 /* We use char because int might match the return type of a gcc2
31599 builtin and then its argument prototype would still apply. */
31609 rm -f conftest.$ac_objext conftest$ac_exeext
31610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31611 (eval $ac_link) 2>&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } &&
31615 { ac_try='test -s conftest$ac_exeext'
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 ac_cv_lib_intl_strftime=yes
31623 echo "$as_me: failed program was:" >&5
31624 sed 's/^/| /' conftest.$ac_ext >&5
31626 ac_cv_lib_intl_strftime=no
31628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31629 LIBS=$ac_check_lib_save_LIBS
31631 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31632 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
31633 if test $ac_cv_lib_intl_strftime = yes; then
31634 cat >>confdefs.h <<\_ACEOF
31635 #define HAVE_STRFTIME 1
31638 LIBS="-lintl $LIBS"
31645 echo "$as_me:$LINENO: checking for inet_aton()" >&5
31646 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
31647 if test "${ol_cv_func_inet_aton+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 cat >conftest.$ac_ext <<_ACEOF
31651 #line $LINENO "configure"
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h. */
31658 #ifdef HAVE_SYS_TYPES_H
31659 # include <sys/types.h>
31661 #ifdef HAVE_SYS_SOCKET_H
31662 # include <sys/socket.h>
31663 # ifdef HAVE_SYS_SELECT_H
31664 # include <sys/select.h>
31666 # include <netinet/in.h>
31667 # ifdef HAVE_ARPA_INET_H
31668 # include <arpa/inet.h>
31676 int rc = inet_aton( "255.255.255.255", &in );
31681 rm -f conftest.$ac_objext conftest$ac_exeext
31682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31683 (eval $ac_link) 2>&5
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); } &&
31687 { ac_try='test -s conftest$ac_exeext'
31688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31689 (eval $ac_try) 2>&5
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; }; then
31693 ol_cv_func_inet_aton=yes
31695 echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.$ac_ext >&5
31698 ol_cv_func_inet_aton=no
31700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31702 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
31703 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
31704 if test $ol_cv_func_inet_aton != no; then
31706 cat >>confdefs.h <<\_ACEOF
31707 #define HAVE_INET_ATON 1
31713 echo "$as_me:$LINENO: checking for _spawnlp" >&5
31714 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
31715 if test "${ac_cv_func__spawnlp+set}" = set; then
31716 echo $ECHO_N "(cached) $ECHO_C" >&6
31718 cat >conftest.$ac_ext <<_ACEOF
31719 #line $LINENO "configure"
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h. */
31725 /* System header to define __stub macros and hopefully few prototypes,
31726 which can conflict with char _spawnlp (); below.
31727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31728 <limits.h> exists even on freestanding compilers. */
31730 # include <limits.h>
31732 # include <assert.h>
31734 /* Override any gcc2 internal prototype to avoid an error. */
31739 /* We use char because int might match the return type of a gcc2
31740 builtin and then its argument prototype would still apply. */
31742 /* The GNU C library defines this for functions which it implements
31743 to always fail with ENOSYS. Some functions are actually named
31744 something starting with __ and the normal name is an alias. */
31745 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
31748 char (*f) () = _spawnlp;
31757 return f != _spawnlp;
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31764 (eval $ac_link) 2>&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } &&
31768 { ac_try='test -s conftest$ac_exeext'
31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770 (eval $ac_try) 2>&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; }; then
31774 ac_cv_func__spawnlp=yes
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31779 ac_cv_func__spawnlp=no
31781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31783 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
31784 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
31785 if test $ac_cv_func__spawnlp = yes; then
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_SPAWNLP 1
31794 echo "$as_me:$LINENO: checking for _snprintf" >&5
31795 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
31796 if test "${ac_cv_func__snprintf+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31799 cat >conftest.$ac_ext <<_ACEOF
31800 #line $LINENO "configure"
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h. */
31806 /* System header to define __stub macros and hopefully few prototypes,
31807 which can conflict with char _snprintf (); below.
31808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31809 <limits.h> exists even on freestanding compilers. */
31811 # include <limits.h>
31813 # include <assert.h>
31815 /* Override any gcc2 internal prototype to avoid an error. */
31820 /* We use char because int might match the return type of a gcc2
31821 builtin and then its argument prototype would still apply. */
31823 /* The GNU C library defines this for functions which it implements
31824 to always fail with ENOSYS. Some functions are actually named
31825 something starting with __ and the normal name is an alias. */
31826 #if defined (__stub__snprintf) || defined (__stub____snprintf)
31829 char (*f) () = _snprintf;
31838 return f != _snprintf;
31843 rm -f conftest.$ac_objext conftest$ac_exeext
31844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31845 (eval $ac_link) 2>&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } &&
31849 { ac_try='test -s conftest$ac_exeext'
31850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31851 (eval $ac_try) 2>&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); }; }; then
31855 ac_cv_func__snprintf=yes
31857 echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31860 ac_cv_func__snprintf=no
31862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31864 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
31865 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
31866 if test $ac_cv_func__snprintf = yes; then
31867 ac_cv_func_snprintf=yes
31869 cat >>confdefs.h <<\_ACEOF
31870 #define snprintf _snprintf
31877 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
31878 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
31879 if test "${ac_cv_func__vsnprintf+set}" = set; then
31880 echo $ECHO_N "(cached) $ECHO_C" >&6
31882 cat >conftest.$ac_ext <<_ACEOF
31883 #line $LINENO "configure"
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h. */
31889 /* System header to define __stub macros and hopefully few prototypes,
31890 which can conflict with char _vsnprintf (); below.
31891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31892 <limits.h> exists even on freestanding compilers. */
31894 # include <limits.h>
31896 # include <assert.h>
31898 /* Override any gcc2 internal prototype to avoid an error. */
31903 /* We use char because int might match the return type of a gcc2
31904 builtin and then its argument prototype would still apply. */
31905 char _vsnprintf ();
31906 /* The GNU C library defines this for functions which it implements
31907 to always fail with ENOSYS. Some functions are actually named
31908 something starting with __ and the normal name is an alias. */
31909 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
31912 char (*f) () = _vsnprintf;
31921 return f != _vsnprintf;
31926 rm -f conftest.$ac_objext conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928 (eval $ac_link) 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } &&
31932 { ac_try='test -s conftest$ac_exeext'
31933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31934 (eval $ac_try) 2>&5
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; }; then
31938 ac_cv_func__vsnprintf=yes
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31943 ac_cv_func__vsnprintf=no
31945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31947 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
31948 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
31949 if test $ac_cv_func__vsnprintf = yes; then
31950 ac_cv_func_vsnprintf=yes
31952 cat >>confdefs.h <<\_ACEOF
31953 #define vsnprintf _vsnprintf
31961 for ac_func in vprintf
31963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31964 echo "$as_me:$LINENO: checking for $ac_func" >&5
31965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31966 if eval "test \"\${$as_ac_var+set}\" = set"; then
31967 echo $ECHO_N "(cached) $ECHO_C" >&6
31969 cat >conftest.$ac_ext <<_ACEOF
31970 #line $LINENO "configure"
31973 cat confdefs.h >>conftest.$ac_ext
31974 cat >>conftest.$ac_ext <<_ACEOF
31975 /* end confdefs.h. */
31976 /* System header to define __stub macros and hopefully few prototypes,
31977 which can conflict with char $ac_func (); below.
31978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31979 <limits.h> exists even on freestanding compilers. */
31981 # include <limits.h>
31983 # include <assert.h>
31985 /* Override any gcc2 internal prototype to avoid an error. */
31990 /* We use char because int might match the return type of a gcc2
31991 builtin and then its argument prototype would still apply. */
31993 /* The GNU C library defines this for functions which it implements
31994 to always fail with ENOSYS. Some functions are actually named
31995 something starting with __ and the normal name is an alias. */
31996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31999 char (*f) () = $ac_func;
32008 return f != $ac_func;
32013 rm -f conftest.$ac_objext conftest$ac_exeext
32014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32015 (eval $ac_link) 2>&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } &&
32019 { ac_try='test -s conftest$ac_exeext'
32020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021 (eval $ac_try) 2>&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 eval "$as_ac_var=yes"
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 eval "$as_ac_var=no"
32032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32036 if test `eval echo '${'$as_ac_var'}'` = yes; then
32037 cat >>confdefs.h <<_ACEOF
32038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32041 echo "$as_me:$LINENO: checking for _doprnt" >&5
32042 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
32043 if test "${ac_cv_func__doprnt+set}" = set; then
32044 echo $ECHO_N "(cached) $ECHO_C" >&6
32046 cat >conftest.$ac_ext <<_ACEOF
32047 #line $LINENO "configure"
32050 cat confdefs.h >>conftest.$ac_ext
32051 cat >>conftest.$ac_ext <<_ACEOF
32052 /* end confdefs.h. */
32053 /* System header to define __stub macros and hopefully few prototypes,
32054 which can conflict with char _doprnt (); below.
32055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056 <limits.h> exists even on freestanding compilers. */
32058 # include <limits.h>
32060 # include <assert.h>
32062 /* Override any gcc2 internal prototype to avoid an error. */
32067 /* We use char because int might match the return type of a gcc2
32068 builtin and then its argument prototype would still apply. */
32070 /* The GNU C library defines this for functions which it implements
32071 to always fail with ENOSYS. Some functions are actually named
32072 something starting with __ and the normal name is an alias. */
32073 #if defined (__stub__doprnt) || defined (__stub____doprnt)
32076 char (*f) () = _doprnt;
32085 return f != _doprnt;
32090 rm -f conftest.$ac_objext conftest$ac_exeext
32091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32092 (eval $ac_link) 2>&5
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); } &&
32096 { ac_try='test -s conftest$ac_exeext'
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; }; then
32102 ac_cv_func__doprnt=yes
32104 echo "$as_me: failed program was:" >&5
32105 sed 's/^/| /' conftest.$ac_ext >&5
32107 ac_cv_func__doprnt=no
32109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32111 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32112 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
32113 if test $ac_cv_func__doprnt = yes; then
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_DOPRNT 1
32126 if test $ac_cv_func_vprintf = yes ; then
32129 for ac_func in snprintf vsnprintf
32131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32132 echo "$as_me:$LINENO: checking for $ac_func" >&5
32133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32134 if eval "test \"\${$as_ac_var+set}\" = set"; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 cat >conftest.$ac_ext <<_ACEOF
32138 #line $LINENO "configure"
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32144 /* System header to define __stub macros and hopefully few prototypes,
32145 which can conflict with char $ac_func (); below.
32146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32147 <limits.h> exists even on freestanding compilers. */
32149 # include <limits.h>
32151 # include <assert.h>
32153 /* Override any gcc2 internal prototype to avoid an error. */
32158 /* We use char because int might match the return type of a gcc2
32159 builtin and then its argument prototype would still apply. */
32161 /* The GNU C library defines this for functions which it implements
32162 to always fail with ENOSYS. Some functions are actually named
32163 something starting with __ and the normal name is an alias. */
32164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32167 char (*f) () = $ac_func;
32176 return f != $ac_func;
32181 rm -f conftest.$ac_objext conftest$ac_exeext
32182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32183 (eval $ac_link) 2>&5
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } &&
32187 { ac_try='test -s conftest$ac_exeext'
32188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32189 (eval $ac_try) 2>&5
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; }; then
32193 eval "$as_ac_var=yes"
32195 echo "$as_me: failed program was:" >&5
32196 sed 's/^/| /' conftest.$ac_ext >&5
32198 eval "$as_ac_var=no"
32200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32204 if test `eval echo '${'$as_ac_var'}'` = yes; then
32205 cat >>confdefs.h <<_ACEOF
32206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32324 echo "$as_me:$LINENO: checking for $ac_func" >&5
32325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32326 if eval "test \"\${$as_ac_var+set}\" = set"; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32329 cat >conftest.$ac_ext <<_ACEOF
32330 #line $LINENO "configure"
32333 cat confdefs.h >>conftest.$ac_ext
32334 cat >>conftest.$ac_ext <<_ACEOF
32335 /* end confdefs.h. */
32336 /* System header to define __stub macros and hopefully few prototypes,
32337 which can conflict with char $ac_func (); below.
32338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32339 <limits.h> exists even on freestanding compilers. */
32341 # include <limits.h>
32343 # include <assert.h>
32345 /* Override any gcc2 internal prototype to avoid an error. */
32350 /* We use char because int might match the return type of a gcc2
32351 builtin and then its argument prototype would still apply. */
32353 /* The GNU C library defines this for functions which it implements
32354 to always fail with ENOSYS. Some functions are actually named
32355 something starting with __ and the normal name is an alias. */
32356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32359 char (*f) () = $ac_func;
32368 return f != $ac_func;
32373 rm -f conftest.$ac_objext conftest$ac_exeext
32374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32375 (eval $ac_link) 2>&5
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); } &&
32379 { ac_try='test -s conftest$ac_exeext'
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; }; then
32385 eval "$as_ac_var=yes"
32387 echo "$as_me: failed program was:" >&5
32388 sed 's/^/| /' conftest.$ac_ext >&5
32390 eval "$as_ac_var=no"
32392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32396 if test `eval echo '${'$as_ac_var'}'` = yes; then
32397 cat >>confdefs.h <<_ACEOF
32398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32407 for ac_func in getopt getpeereid
32409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32410 echo "$as_me:$LINENO: checking for $ac_func" >&5
32411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32412 if eval "test \"\${$as_ac_var+set}\" = set"; then
32413 echo $ECHO_N "(cached) $ECHO_C" >&6
32415 cat >conftest.$ac_ext <<_ACEOF
32416 #line $LINENO "configure"
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h. */
32422 /* System header to define __stub macros and hopefully few prototypes,
32423 which can conflict with char $ac_func (); below.
32424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32425 <limits.h> exists even on freestanding compilers. */
32427 # include <limits.h>
32429 # include <assert.h>
32431 /* Override any gcc2 internal prototype to avoid an error. */
32436 /* We use char because int might match the return type of a gcc2
32437 builtin and then its argument prototype would still apply. */
32439 /* The GNU C library defines this for functions which it implements
32440 to always fail with ENOSYS. Some functions are actually named
32441 something starting with __ and the normal name is an alias. */
32442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32445 char (*f) () = $ac_func;
32454 return f != $ac_func;
32459 rm -f conftest.$ac_objext conftest$ac_exeext
32460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32461 (eval $ac_link) 2>&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
32465 { ac_try='test -s conftest$ac_exeext'
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; }; then
32471 eval "$as_ac_var=yes"
32473 echo "$as_me: failed program was:" >&5
32474 sed 's/^/| /' conftest.$ac_ext >&5
32476 eval "$as_ac_var=no"
32478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32482 if test `eval echo '${'$as_ac_var'}'` = yes; then
32483 cat >>confdefs.h <<_ACEOF
32484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32488 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32494 if test "$ac_cv_func_getopt" != yes; then
32495 LIBSRCS="$LIBSRCS getopt.c"
32497 if test "$ac_cv_func_getpeereid" != yes; then
32498 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
32499 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
32500 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32503 cat >conftest.$ac_ext <<_ACEOF
32504 #line $LINENO "configure"
32507 cat confdefs.h >>conftest.$ac_ext
32508 cat >>conftest.$ac_ext <<_ACEOF
32509 /* end confdefs.h. */
32510 #include <sys/socket.h>
32514 struct msghdr m; m.msg_accrightslen=0
32519 rm -f conftest.$ac_objext
32520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32521 (eval $ac_compile) 2>&5
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); } &&
32525 { ac_try='test -s conftest.$ac_objext'
32526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527 (eval $ac_try) 2>&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; }; then
32531 ol_cv_msghdr_msg_accrights=yes
32533 echo "$as_me: failed program was:" >&5
32534 sed 's/^/| /' conftest.$ac_ext >&5
32536 ol_cv_msghdr_msg_accrights=no
32538 rm -f conftest.$ac_objext conftest.$ac_ext
32541 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
32542 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
32543 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
32545 cat >>confdefs.h <<\_ACEOF
32546 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
32551 LIBSRCS="$LIBSRCS getpeereid.c"
32553 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
32554 if test "$ac_cv_func_snprintf" != yes; then
32556 cat >>confdefs.h <<\_ACEOF
32557 #define snprintf ber_pvt_snprintf
32561 if test "$ac_cv_func_vsnprintf" != yes; then
32563 cat >>confdefs.h <<\_ACEOF
32564 #define vsnprintf ber_pvt_vsnprintf
32570 # Check Configuration
32571 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
32572 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
32573 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
32574 echo $ECHO_N "(cached) $ECHO_C" >&6
32577 cat >conftest.$ac_ext <<_ACEOF
32578 #line $LINENO "configure"
32581 cat confdefs.h >>conftest.$ac_ext
32582 cat >>conftest.$ac_ext <<_ACEOF
32583 /* end confdefs.h. */
32586 #include <sys/types.h>
32589 #include <stdlib.h>
32594 char *c = (char *) *sys_errlist
32599 rm -f conftest.$ac_objext
32600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32601 (eval $ac_compile) 2>&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } &&
32605 { ac_try='test -s conftest.$ac_objext'
32606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32607 (eval $ac_try) 2>&5
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; }; then
32611 ol_cv_dcl_sys_errlist=yes
32612 ol_cv_have_sys_errlist=yes
32614 echo "$as_me: failed program was:" >&5
32615 sed 's/^/| /' conftest.$ac_ext >&5
32617 ol_cv_dcl_sys_errlist=no
32619 rm -f conftest.$ac_objext conftest.$ac_ext
32621 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
32622 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
32624 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
32625 if test $ol_cv_dcl_sys_errlist = no ; then
32627 cat >>confdefs.h <<\_ACEOF
32628 #define DECL_SYS_ERRLIST 1
32632 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
32633 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
32634 if test "${ol_cv_have_sys_errlist+set}" = set; then
32635 echo $ECHO_N "(cached) $ECHO_C" >&6
32638 cat >conftest.$ac_ext <<_ACEOF
32639 #line $LINENO "configure"
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h. */
32649 char *c = (char *) *sys_errlist
32654 rm -f conftest.$ac_objext conftest$ac_exeext
32655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32656 (eval $ac_link) 2>&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
32660 { ac_try='test -s conftest$ac_exeext'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; }; then
32666 ol_cv_have_sys_errlist=yes
32668 echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32671 ol_cv_have_sys_errlist=no
32673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32675 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
32676 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
32678 if test $ol_cv_have_sys_errlist = yes ; then
32680 cat >>confdefs.h <<\_ACEOF
32681 #define HAVE_SYS_ERRLIST 1
32688 if test "$ol_enable_slapi" != no ; then
32690 for ac_header in ltdl.h
32692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32694 echo "$as_me:$LINENO: checking for $ac_header" >&5
32695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32702 # Is the header compilable?
32703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32705 cat >conftest.$ac_ext <<_ACEOF
32706 #line $LINENO "configure"
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h. */
32712 $ac_includes_default
32713 #include <$ac_header>
32715 rm -f conftest.$ac_objext
32716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32717 (eval $ac_compile) 2>&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } &&
32721 { ac_try='test -s conftest.$ac_objext'
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; }; then
32727 ac_header_compiler=yes
32729 echo "$as_me: failed program was:" >&5
32730 sed 's/^/| /' conftest.$ac_ext >&5
32732 ac_header_compiler=no
32734 rm -f conftest.$ac_objext conftest.$ac_ext
32735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32736 echo "${ECHO_T}$ac_header_compiler" >&6
32738 # Is the header present?
32739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32741 cat >conftest.$ac_ext <<_ACEOF
32742 #line $LINENO "configure"
32745 cat confdefs.h >>conftest.$ac_ext
32746 cat >>conftest.$ac_ext <<_ACEOF
32747 /* end confdefs.h. */
32748 #include <$ac_header>
32750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32753 grep -v '^ *+' conftest.er1 >conftest.err
32755 cat conftest.err >&5
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); } >/dev/null; then
32758 if test -s conftest.err; then
32759 ac_cpp_err=$ac_c_preproc_warn_flag
32766 if test -z "$ac_cpp_err"; then
32767 ac_header_preproc=yes
32769 echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32772 ac_header_preproc=no
32774 rm -f conftest.err conftest.$ac_ext
32775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32776 echo "${ECHO_T}$ac_header_preproc" >&6
32778 # So? What about this header?
32779 case $ac_header_compiler:$ac_header_preproc in
32781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32787 ## ------------------------------------ ##
32788 ## Report this to bug-autoconf@gnu.org. ##
32789 ## ------------------------------------ ##
32792 sed "s/^/$as_me: WARNING: /" >&2
32795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32803 ## ------------------------------------ ##
32804 ## Report this to bug-autoconf@gnu.org. ##
32805 ## ------------------------------------ ##
32808 sed "s/^/$as_me: WARNING: /" >&2
32811 echo "$as_me:$LINENO: checking for $ac_header" >&5
32812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32814 echo $ECHO_N "(cached) $ECHO_C" >&6
32816 eval "$as_ac_Header=$ac_header_preproc"
32818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32823 cat >>confdefs.h <<_ACEOF
32824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32832 if test $ac_cv_header_ltdl_h != yes ; then
32833 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
32834 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
32835 { (exit 1); exit 1; }; }
32837 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
32838 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
32839 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32842 ac_check_lib_save_LIBS=$LIBS
32843 LIBS="-lltdl $LIBS"
32844 cat >conftest.$ac_ext <<_ACEOF
32845 #line $LINENO "configure"
32848 cat confdefs.h >>conftest.$ac_ext
32849 cat >>conftest.$ac_ext <<_ACEOF
32850 /* end confdefs.h. */
32852 /* Override any gcc2 internal prototype to avoid an error. */
32856 /* We use char because int might match the return type of a gcc2
32857 builtin and then its argument prototype would still apply. */
32867 rm -f conftest.$ac_objext conftest$ac_exeext
32868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32869 (eval $ac_link) 2>&5
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); } &&
32873 { ac_try='test -s conftest$ac_exeext'
32874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32875 (eval $ac_try) 2>&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
32879 ac_cv_lib_ltdl_lt_dlinit=yes
32881 echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32884 ac_cv_lib_ltdl_lt_dlinit=no
32886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32887 LIBS=$ac_check_lib_save_LIBS
32889 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
32890 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
32891 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
32894 LIBSLAPI=./libslapi.a
32895 LIBSLAPITOOLS=../libslapi.a
32897 cat >>confdefs.h <<\_ACEOF
32898 #define HAVE_LIBLTDL 1
32903 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
32904 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
32905 { (exit 1); exit 1; }; }
32910 cat >>confdefs.h <<\_ACEOF
32911 #define LDAP_SLAPI 1
32916 if test "$ol_enable_debug" != no ; then
32918 cat >>confdefs.h <<\_ACEOF
32919 #define LDAP_DEBUG 1
32923 if test "$ol_enable_syslog" = yes ; then
32925 cat >>confdefs.h <<\_ACEOF
32926 #define LDAP_SYSLOG 1
32930 if test "$ol_link_kbind" != no ; then
32931 cat >>confdefs.h <<\_ACEOF
32932 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
32936 if test "$ol_enable_proctitle" != no ; then
32938 cat >>confdefs.h <<\_ACEOF
32939 #define LDAP_PROCTITLE 1
32943 if test "$ol_enable_referrals" != no ; then
32944 cat >>confdefs.h <<\_ACEOF
32945 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
32949 if test "$ol_enable_local" != no; then
32951 cat >>confdefs.h <<\_ACEOF
32952 #define LDAP_PF_LOCAL 1
32956 if test "$ol_link_ipv6" != no; then
32958 cat >>confdefs.h <<\_ACEOF
32959 #define LDAP_PF_INET6 1
32963 if test "$ol_enable_cleartext" != no ; then
32965 cat >>confdefs.h <<\_ACEOF
32966 #define SLAPD_CLEARTEXT 1
32970 if test "$ol_enable_crypt" != no ; then
32972 cat >>confdefs.h <<\_ACEOF
32973 #define SLAPD_CRYPT 1
32977 if test "$ol_link_kpasswd" != no ; then
32979 cat >>confdefs.h <<\_ACEOF
32980 #define SLAPD_KPASSWD 1
32984 if test "$ol_link_spasswd" != no ; then
32986 cat >>confdefs.h <<\_ACEOF
32987 #define SLAPD_SPASSWD 1
32991 if test "$ol_enable_multimaster" != no ; then
32993 cat >>confdefs.h <<\_ACEOF
32994 #define SLAPD_MULTIMASTER 1
32998 if test "$ol_enable_phonetic" != no ; then
33000 cat >>confdefs.h <<\_ACEOF
33001 #define SLAPD_PHONETIC 1
33005 if test "$ol_enable_rlookups" != no ; then
33007 cat >>confdefs.h <<\_ACEOF
33008 #define SLAPD_RLOOKUPS 1
33012 if test "$ol_enable_aci" != no ; then
33014 cat >>confdefs.h <<\_ACEOF
33015 #define SLAPD_ACI_ENABLED 1
33020 if test "$ol_link_modules" != no ; then
33022 cat >>confdefs.h <<\_ACEOF
33023 #define SLAPD_MODULES 1
33027 SLAPD_MODULES_LDFLAGS="-dlopen self"
33030 if test "$ol_enable_bdb" != no ; then
33032 cat >>confdefs.h <<\_ACEOF
33033 #define SLAPD_BDB 1
33038 if test "$ol_with_bdb_module" != static ; then
33040 cat >>confdefs.h <<\_ACEOF
33041 #define SLAPD_BDB_DYNAMIC 1
33045 BUILD_BDB_DYNAMIC=shared
33046 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
33048 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
33052 if test "$ol_link_dnssrv" != no ; then
33054 cat >>confdefs.h <<\_ACEOF
33055 #define SLAPD_DNSSRV 1
33060 if test "$ol_with_dnssrv_module" != static ; then
33062 cat >>confdefs.h <<\_ACEOF
33063 #define SLAPD_DNSSRV_DYNAMIC 1
33067 BUILD_DNSSRV_DYNAMIC=shared
33068 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
33070 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
33074 if test "$ol_enable_ldap" != no ; then
33076 cat >>confdefs.h <<\_ACEOF
33077 #define SLAPD_LDAP 1
33082 if test "$ol_with_ldap_module" != static ; then
33084 cat >>confdefs.h <<\_ACEOF
33085 #define SLAPD_LDAP_DYNAMIC 1
33089 BUILD_LDAP_DYNAMIC=shared
33090 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
33092 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
33096 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
33098 cat >>confdefs.h <<\_ACEOF
33099 #define SLAPD_LDBM 1
33104 if test "$ol_with_ldbm_module" != static ; then
33106 cat >>confdefs.h <<\_ACEOF
33107 #define SLAPD_LDBM_DYNAMIC 1
33111 BUILD_LDBM_DYNAMIC=shared
33112 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
33114 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
33118 if test "$ol_enable_meta" != no ; then
33119 if test "$ol_enable_ldap" = no ; then
33120 { { echo "$as_me:$LINENO: error: need --enable-ldap to use --enable-meta" >&5
33121 echo "$as_me: error: need --enable-ldap to use --enable-meta" >&2;}
33122 { (exit 1); exit 1; }; }
33124 if test "$ol_enable_rewrite" = no ; then
33125 { { echo "$as_me:$LINENO: error: need --enable-rewrite to use --enable-meta" >&5
33126 echo "$as_me: error: need --enable-rewrite to use --enable-meta" >&2;}
33127 { (exit 1); exit 1; }; }
33130 cat >>confdefs.h <<\_ACEOF
33131 #define SLAPD_META 1
33138 if test "$ol_with_meta_module" != static ; then
33140 cat >>confdefs.h <<\_ACEOF
33141 #define SLAPD_META_DYNAMIC 1
33145 BUILD_META_DYNAMIC=shared
33146 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
33148 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
33152 if test "$ol_enable_monitor" != no ; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define SLAPD_MONITOR 1
33160 if test "$ol_with_monitor_module" != static ; then
33162 cat >>confdefs.h <<\_ACEOF
33163 #define SLAPD_MONITOR_DYNAMIC 1
33167 BUILD_MONITOR_DYNAMIC=shared
33168 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
33170 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
33174 if test "$ol_enable_null" != no ; then
33176 cat >>confdefs.h <<\_ACEOF
33177 #define SLAPD_NULL 1
33182 if test "$ol_with_null_module" != static ; then
33184 cat >>confdefs.h <<\_ACEOF
33185 #define SLAPD_NULL_DYNAMIC 1
33189 BUILD_NULL_DYNAMIC=shared
33190 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
33192 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
33196 if test "$ol_enable_passwd" != no ; then
33198 cat >>confdefs.h <<\_ACEOF
33199 #define SLAPD_PASSWD 1
33204 if test "$ol_with_passwd_module" != static ; then
33206 cat >>confdefs.h <<\_ACEOF
33207 #define SLAPD_PASSWD_DYNAMIC 1
33211 BUILD_PASSWD_DYNAMIC=shared
33212 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
33214 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
33218 if test "$ol_link_perl" != no ; then
33220 cat >>confdefs.h <<\_ACEOF
33221 #define SLAPD_PERL 1
33226 if test "$ol_with_perl_module" != static ; then
33228 cat >>confdefs.h <<\_ACEOF
33229 #define SLAPD_PERL_DYNAMIC 1
33233 BUILD_PERL_DYNAMIC=shared
33234 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
33236 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
33240 if test "$ol_enable_shell" != no ; then
33241 if test "$ol_link_thread" != no ; then
33242 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
33243 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
33246 cat >>confdefs.h <<\_ACEOF
33247 #define SLAPD_SHELL 1
33252 if test "$ol_with_shell_module" != static ; then
33254 cat >>confdefs.h <<\_ACEOF
33255 #define SLAPD_SHELL_DYNAMIC 1
33259 BUILD_SHELL_DYNAMIC=shared
33260 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
33262 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
33266 if test "$ol_enable_tcl" != no ; then
33268 cat >>confdefs.h <<\_ACEOF
33269 #define SLAPD_TCL 1
33274 if test "$ol_with_tcl_module" != static; then
33276 cat >>confdefs.h <<\_ACEOF
33277 #define SLAPD_TCL_DYNAMIC 1
33281 BUILD_TCL_DYNAMIC=shared
33282 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
33284 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
33288 if test "$ol_link_sql" != no ; then
33290 cat >>confdefs.h <<\_ACEOF
33291 #define SLAPD_SQL 1
33296 if test "$ol_with_sql_module" != static; then
33298 cat >>confdefs.h <<\_ACEOF
33299 #define SLAPD_SQL_DYNAMIC 1
33303 BUILD_SQL_DYNAMIC=shared
33304 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
33306 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
33310 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
33311 $BUILD_SLAPD = yes ; then
33315 if test "$ol_enable_rewrite" != no ; then
33317 cat >>confdefs.h <<\_ACEOF
33318 #define ENABLE_REWRITE 1
33324 if test "$ol_enable_slapi" != no ; then
33326 cat >>confdefs.h <<\_ACEOF
33327 #define ENABLE_SLAPI 1
33331 SLAPD_SLAPI_DEPEND=libslapi.a
33336 if test "$ac_cv_mingw32" = yes ; then
33338 SLAPD_MODULES_LDFLAGS=
33343 if test -z "$SLAPD_STATIC_BACKENDS"; then
33344 SLAPD_NO_STATIC='#'
33422 # Check whether --with-xxinstall or --without-xxinstall was given.
33423 if test "${with_xxinstall+set}" = set; then
33424 withval="$with_xxinstall"
33428 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk"
33430 ac_config_files="$ac_config_files doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk"
33432 ac_config_files="$ac_config_files doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk"
33434 ac_config_files="$ac_config_files doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk"
33436 ac_config_files="$ac_config_files doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk"
33438 ac_config_files="$ac_config_files doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk"
33440 ac_config_files="$ac_config_files doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk"
33442 ac_config_files="$ac_config_files clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk"
33444 ac_config_files="$ac_config_files clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk"
33446 ac_config_files="$ac_config_files include/Makefile:build/top.mk:include/Makefile.in"
33448 ac_config_files="$ac_config_files libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk"
33450 ac_config_files="$ac_config_files libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk"
33452 ac_config_files="$ac_config_files libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk"
33454 ac_config_files="$ac_config_files libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk"
33456 ac_config_files="$ac_config_files libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk"
33458 ac_config_files="$ac_config_files libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk"
33460 ac_config_files="$ac_config_files libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk"
33462 ac_config_files="$ac_config_files libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk"
33464 ac_config_files="$ac_config_files libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk"
33466 ac_config_files="$ac_config_files libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk"
33468 ac_config_files="$ac_config_files servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk"
33470 ac_config_files="$ac_config_files servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk"
33472 ac_config_files="$ac_config_files servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk"
33474 ac_config_files="$ac_config_files servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk"
33476 ac_config_files="$ac_config_files servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk"
33478 ac_config_files="$ac_config_files servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk"
33480 ac_config_files="$ac_config_files servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk"
33482 ac_config_files="$ac_config_files servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk"
33484 ac_config_files="$ac_config_files servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk"
33486 ac_config_files="$ac_config_files servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk"
33488 ac_config_files="$ac_config_files servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk"
33490 ac_config_files="$ac_config_files servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk"
33492 ac_config_files="$ac_config_files servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk"
33494 ac_config_files="$ac_config_files servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk"
33496 ac_config_files="$ac_config_files servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk"
33498 ac_config_files="$ac_config_files servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk"
33500 ac_config_files="$ac_config_files servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in"
33502 ac_config_files="$ac_config_files servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk"
33504 ac_config_files="$ac_config_files tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk"
33506 ac_config_files="$ac_config_files tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
33509 ac_config_commands="$ac_config_commands time-stamp"
33511 cat >confcache <<\_ACEOF
33512 # This file is a shell script that caches the results of configure
33513 # tests run on this system so they can be shared between configure
33514 # scripts and configure runs, see configure's option --config-cache.
33515 # It is not useful on other systems. If it contains results you don't
33516 # want to keep, you may remove or edit it.
33518 # config.status only pays attention to the cache file if you give it
33519 # the --recheck option to rerun configure.
33521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33523 # following values.
33527 # The following way of writing the cache mishandles newlines in values,
33528 # but we know of no workaround that is simple, portable, and efficient.
33529 # So, don't put newlines in cache variables' values.
33530 # Ultrix sh set writes to stderr and can't be redirected directly,
33531 # and sets the high bit in the cache file unless we assign to the vars.
33534 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33536 # `set' does not quote correctly, so add quotes (double-quote
33537 # substitution turns \\\\ into \\, and sed turns \\ into \).
33540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33543 # `set' quotes correctly as required by POSIX, so do not add quotes.
33545 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33554 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33556 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33557 if test -w $cache_file; then
33558 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33559 cat confcache >$cache_file
33561 echo "not updating unwritable cache $cache_file"
33566 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33567 # Let make expand exec_prefix.
33568 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33572 # trailing colons and then remove the whole line if VPATH becomes empty
33573 # (actually we leave an empty line to preserve line numbers).
33574 if test "x$srcdir" = x.; then
33575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33576 s/:*\$(srcdir):*/:/;
33577 s/:*\${srcdir}:*/:/;
33579 s/^\([^=]*=[ ]*\):*/\1/;
33585 DEFS=-DHAVE_CONFIG_H
33589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33590 # 1. Remove the extension, and $U if already installed.
33591 ac_i=`echo "$ac_i" |
33592 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33594 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
33595 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
33597 LIBOBJS=$ac_libobjs
33599 LTLIBOBJS=$ac_ltlibobjs
33603 : ${CONFIG_STATUS=./config.status}
33604 ac_clean_files_save=$ac_clean_files
33605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33608 cat >$CONFIG_STATUS <<_ACEOF
33610 # Generated by $as_me.
33611 # Run this file to recreate the current configuration.
33612 # Compiler output produced by configure, useful for debugging
33613 # configure, is in config.log if it exists.
33616 ac_cs_recheck=false
33618 SHELL=\${CONFIG_SHELL-$SHELL}
33621 cat >>$CONFIG_STATUS <<\_ACEOF
33622 ## --------------------- ##
33623 ## M4sh Initialization. ##
33624 ## --------------------- ##
33626 # Be Bourne compatible
33627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33630 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33631 # is contrary to our usage. Disable this feature.
33632 alias -g '${1+"$@"}'='"$@"'
33633 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33637 # Support unset when possible.
33638 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33645 # Work around bugs in pre-3.0 UWIN ksh.
33646 $as_unset ENV MAIL MAILPATH
33653 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33654 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33655 LC_TELEPHONE LC_TIME
33657 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
33658 eval $as_var=C; export $as_var
33664 # Required to use basename.
33665 if expr a : '\(a\)' >/dev/null 2>&1; then
33671 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
33672 as_basename=basename
33678 # Name of the executable.
33679 as_me=`$as_basename "$0" ||
33680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33681 X"$0" : 'X\(//\)$' \| \
33682 X"$0" : 'X\(/\)$' \| \
33683 . : '\(.\)' 2>/dev/null ||
33685 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33686 /^X\/\(\/\/\)$/{ s//\1/; q; }
33687 /^X\/\(\/\).*/{ s//\1/; q; }
33691 # PATH needs CR, and LINENO needs CR and PATH.
33692 # Avoid depending upon Character Ranges.
33693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33696 as_cr_digits='0123456789'
33697 as_cr_alnum=$as_cr_Letters$as_cr_digits
33699 # The user is always right.
33700 if test "${PATH_SEPARATOR+set}" != set; then
33701 echo "#! /bin/sh" >conf$$.sh
33702 echo "exit 0" >>conf$$.sh
33704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33713 as_lineno_1=$LINENO
33714 as_lineno_2=$LINENO
33715 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33716 test "x$as_lineno_1" != "x$as_lineno_2" &&
33717 test "x$as_lineno_3" = "x$as_lineno_2" || {
33718 # Find who we are. Look in the path if we contain no path at all
33721 *[\\/]* ) as_myself=$0 ;;
33722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33723 for as_dir in $PATH
33726 test -z "$as_dir" && as_dir=.
33727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33732 # We did not find ourselves, most probably we were run as `sh COMMAND'
33733 # in which case we are not to be found in the path.
33734 if test "x$as_myself" = x; then
33737 if test ! -f "$as_myself"; then
33738 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33739 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33740 { (exit 1); exit 1; }; }
33742 case $CONFIG_SHELL in
33744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33745 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33748 test -z "$as_dir" && as_dir=.
33749 for as_base in sh bash ksh sh5; do
33752 if ("$as_dir/$as_base" -c '
33753 as_lineno_1=$LINENO
33754 as_lineno_2=$LINENO
33755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33756 test "x$as_lineno_1" != "x$as_lineno_2" &&
33757 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
33758 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33759 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33760 CONFIG_SHELL=$as_dir/$as_base
33761 export CONFIG_SHELL
33762 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33770 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33771 # uniformly replaced by the line number. The first 'sed' inserts a
33772 # line-number line before each line; the second 'sed' does the real
33773 # work. The second script uses 'N' to pair each line-number line
33774 # with the numbered line, and appends trailing '-' during
33775 # substitution so that $LINENO is not a special case at line end.
33776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33777 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33778 sed '=' <$as_myself |
33783 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33786 s,^['$as_cr_digits']*\n,,
33787 ' >$as_me.lineno &&
33788 chmod +x $as_me.lineno ||
33789 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33790 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33791 { (exit 1); exit 1; }; }
33793 # Don't try to exec as it changes $[0], causing all sort of problems
33794 # (the dirname of $[0] is not the place where we might find the
33795 # original and so on. Autoconf is especially sensible to this).
33797 # Exit status is that of the last command.
33802 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33803 *c*,-n*) ECHO_N= ECHO_C='
33805 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33806 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
33809 if expr a : '\(a\)' >/dev/null 2>&1; then
33815 rm -f conf$$ conf$$.exe conf$$.file
33817 if ln -s conf$$.file conf$$ 2>/dev/null; then
33818 # We could just check for DJGPP; but this test a) works b) is more generic
33819 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33820 if test -f conf$$.exe; then
33821 # Don't use ln at all; we don't have any links
33826 elif ln conf$$.file conf$$ 2>/dev/null; then
33831 rm -f conf$$ conf$$.exe conf$$.file
33833 if mkdir -p . 2>/dev/null; then
33839 as_executable_p="test -f"
33841 # Sed expression to map a string onto a valid CPP name.
33842 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
33844 # Sed expression to map a string onto a valid variable name.
33845 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
33849 # We need space, tab and new line, in precisely that order.
33859 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33860 # report actual input values of CONFIG_FILES etc. instead of their
33861 # values after options handling. Logging --version etc. is OK.
33865 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33866 ## Running $as_me. ##
33871 This file was extended by $as_me, which was
33872 generated by GNU Autoconf 2.57. Invocation command line was
33874 CONFIG_FILES = $CONFIG_FILES
33875 CONFIG_HEADERS = $CONFIG_HEADERS
33876 CONFIG_LINKS = $CONFIG_LINKS
33877 CONFIG_COMMANDS = $CONFIG_COMMANDS
33881 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33885 # Files that config.status was made for.
33886 if test -n "$ac_config_files"; then
33887 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33890 if test -n "$ac_config_headers"; then
33891 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33894 if test -n "$ac_config_links"; then
33895 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33898 if test -n "$ac_config_commands"; then
33899 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33902 cat >>$CONFIG_STATUS <<\_ACEOF
33905 \`$as_me' instantiates files from templates according to the
33906 current configuration.
33908 Usage: $0 [OPTIONS] [FILE]...
33910 -h, --help print this help, then exit
33911 -V, --version print version number, then exit
33912 -q, --quiet do not print progress messages
33913 -d, --debug don't remove temporary files
33914 --recheck update $as_me by reconfiguring in the same conditions
33915 --file=FILE[:TEMPLATE]
33916 instantiate the configuration file FILE
33917 --header=FILE[:TEMPLATE]
33918 instantiate the configuration header FILE
33920 Configuration files:
33923 Configuration headers:
33926 Configuration commands:
33929 Report bugs to <bug-autoconf@gnu.org>."
33932 cat >>$CONFIG_STATUS <<_ACEOF
33935 configured by $0, generated by GNU Autoconf 2.57,
33936 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
33939 Free Software Foundation, Inc.
33940 This config.status script is free software; the Free Software Foundation
33941 gives unlimited permission to copy, distribute and modify it."
33946 cat >>$CONFIG_STATUS <<\_ACEOF
33947 # If no file are specified by the user, then we need to provide default
33948 # value. By we need to know if files were specified by the user.
33954 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33955 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33963 *) # This is not an option, so the user has probably given explicit
33966 ac_need_defaults=false;;
33970 # Handling of the options.
33972 cat >>$CONFIG_STATUS <<\_ACEOF
33973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33975 --version | --vers* | -V )
33976 echo "$ac_cs_version"; exit 0 ;;
33978 # Conflict between --help and --header
33979 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33980 Try \`$0 --help' for more information." >&5
33981 echo "$as_me: error: ambiguous option: $1
33982 Try \`$0 --help' for more information." >&2;}
33983 { (exit 1); exit 1; }; };;
33984 --help | --hel | -h )
33985 echo "$ac_cs_usage"; exit 0 ;;
33986 --debug | --d* | -d )
33988 --file | --fil | --fi | --f )
33990 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33991 ac_need_defaults=false;;
33992 --header | --heade | --head | --hea )
33994 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33995 ac_need_defaults=false;;
33996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34000 # This is an error.
34001 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
34002 Try \`$0 --help' for more information." >&5
34003 echo "$as_me: error: unrecognized option: $1
34004 Try \`$0 --help' for more information." >&2;}
34005 { (exit 1); exit 1; }; } ;;
34007 *) ac_config_targets="$ac_config_targets $1" ;;
34013 ac_configure_extra_args=
34015 if $ac_cs_silent; then
34017 ac_configure_extra_args="$ac_configure_extra_args --silent"
34021 cat >>$CONFIG_STATUS <<_ACEOF
34022 if \$ac_cs_recheck; then
34023 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34024 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34033 cat >>$CONFIG_STATUS <<\_ACEOF
34034 for ac_config_target in $ac_config_targets
34036 case "$ac_config_target" in
34037 # Handling of arguments.
34038 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
34039 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
34040 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
34041 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
34042 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
34043 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
34044 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
34045 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
34046 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
34047 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
34048 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
34049 "libraries/libavl/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34050 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
34051 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
34052 "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" ;;
34053 "libraries/libldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34054 "libraries/libldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34055 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34056 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34057 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
34058 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
34059 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
34060 "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" ;;
34061 "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" ;;
34062 "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" ;;
34063 "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" ;;
34064 "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" ;;
34065 "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" ;;
34066 "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" ;;
34067 "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" ;;
34068 "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" ;;
34069 "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" ;;
34070 "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" ;;
34071 "servers/slapd/back-tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk" ;;
34072 "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" ;;
34073 "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" ;;
34074 "servers/slapd/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in" ;;
34075 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
34076 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
34077 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
34078 "time-stamp" ) CONFIG_COMMANDS="$CONFIG_COMMANDS time-stamp" ;;
34079 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
34080 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
34081 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
34082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34084 { (exit 1); exit 1; }; };;
34088 # If the user did not use the arguments to specify the items to instantiate,
34089 # then the envvar interface is used. Set only those that are not.
34090 # We use the long form for the default assignment because of an extremely
34091 # bizarre bug on SunOS 4.1.3.
34092 if $ac_need_defaults; then
34093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34098 # Have a temporary directory for convenience. Make it in the build tree
34099 # simply because there is no reason to put it here, and in addition,
34100 # creating and moving files from /tmp can sometimes cause problems.
34101 # Create a temporary directory, and hook for its removal unless debugging.
34104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
34105 trap '{ (exit 1); exit 1; }' 1 2 13 15
34108 # Create a (secure) tmp directory for tmp files.
34111 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
34112 test -n "$tmp" && test -d "$tmp"
34115 tmp=./confstat$$-$RANDOM
34116 (umask 077 && mkdir $tmp)
34119 echo "$me: cannot create a temporary directory in ." >&2
34120 { (exit 1); exit 1; }
34125 cat >>$CONFIG_STATUS <<_ACEOF
34128 # CONFIG_FILES section.
34131 # No need to generate the scripts if there are no CONFIG_FILES.
34132 # This happens for instance when ./config.status config.h
34133 if test -n "\$CONFIG_FILES"; then
34134 # Protect against being on the right side of a sed subst in config.status.
34135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
34136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
34137 s,@SHELL@,$SHELL,;t t
34138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
34139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
34140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
34141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
34142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
34143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
34144 s,@exec_prefix@,$exec_prefix,;t t
34145 s,@prefix@,$prefix,;t t
34146 s,@program_transform_name@,$program_transform_name,;t t
34147 s,@bindir@,$bindir,;t t
34148 s,@sbindir@,$sbindir,;t t
34149 s,@libexecdir@,$libexecdir,;t t
34150 s,@datadir@,$datadir,;t t
34151 s,@sysconfdir@,$sysconfdir,;t t
34152 s,@sharedstatedir@,$sharedstatedir,;t t
34153 s,@localstatedir@,$localstatedir,;t t
34154 s,@libdir@,$libdir,;t t
34155 s,@includedir@,$includedir,;t t
34156 s,@oldincludedir@,$oldincludedir,;t t
34157 s,@infodir@,$infodir,;t t
34158 s,@mandir@,$mandir,;t t
34159 s,@build_alias@,$build_alias,;t t
34160 s,@host_alias@,$host_alias,;t t
34161 s,@target_alias@,$target_alias,;t t
34162 s,@DEFS@,$DEFS,;t t
34163 s,@ECHO_C@,$ECHO_C,;t t
34164 s,@ECHO_N@,$ECHO_N,;t t
34165 s,@ECHO_T@,$ECHO_T,;t t
34166 s,@LIBS@,$LIBS,;t t
34167 s,@SHTOOL@,$SHTOOL,;t t
34168 s,@build@,$build,;t t
34169 s,@build_cpu@,$build_cpu,;t t
34170 s,@build_vendor@,$build_vendor,;t t
34171 s,@build_os@,$build_os,;t t
34172 s,@host@,$host,;t t
34173 s,@host_cpu@,$host_cpu,;t t
34174 s,@host_vendor@,$host_vendor,;t t
34175 s,@host_os@,$host_os,;t t
34176 s,@target@,$target,;t t
34177 s,@target_cpu@,$target_cpu,;t t
34178 s,@target_vendor@,$target_vendor,;t t
34179 s,@target_os@,$target_os,;t t
34180 s,@OPENLDAP_PACKAGE@,$OPENLDAP_PACKAGE,;t t
34181 s,@OPENLDAP_VERSION@,$OPENLDAP_VERSION,;t t
34182 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
34183 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
34184 s,@top_builddir@,$top_builddir,;t t
34185 s,@ldap_subdir@,$ldap_subdir,;t t
34186 s,@SET_MAKE@,$SET_MAKE,;t t
34187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34192 s,@CFLAGS@,$CFLAGS,;t t
34193 s,@LDFLAGS@,$LDFLAGS,;t t
34194 s,@CPPFLAGS@,$CPPFLAGS,;t t
34195 s,@ac_ct_CC@,$ac_ct_CC,;t t
34196 s,@EXEEXT@,$EXEEXT,;t t
34197 s,@OBJEXT@,$OBJEXT,;t t
34198 s,@LN_S@,$LN_S,;t t
34199 s,@ECHO@,$ECHO,;t t
34200 s,@RANLIB@,$RANLIB,;t t
34201 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34202 s,@STRIP@,$STRIP,;t t
34203 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34205 s,@EGREP@,$EGREP,;t t
34206 s,@LIBTOOL@,$LIBTOOL,;t t
34207 s,@LN_H@,$LN_H,;t t
34208 s,@PERLBIN@,$PERLBIN,;t t
34209 s,@OL_MKDEP@,$OL_MKDEP,;t t
34210 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
34211 s,@LTSTATIC@,$LTSTATIC,;t t
34212 s,@LIBOBJS@,$LIBOBJS,;t t
34213 s,@LIBSRCS@,$LIBSRCS,;t t
34214 s,@PLAT@,$PLAT,;t t
34215 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
34216 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
34217 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
34218 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
34219 s,@BUILD_BDB@,$BUILD_BDB,;t t
34220 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
34221 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
34222 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
34223 s,@BUILD_META@,$BUILD_META,;t t
34224 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
34225 s,@BUILD_NULL@,$BUILD_NULL,;t t
34226 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
34227 s,@BUILD_PERL@,$BUILD_PERL,;t t
34228 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
34229 s,@BUILD_SQL@,$BUILD_SQL,;t t
34230 s,@BUILD_TCL@,$BUILD_TCL,;t t
34231 s,@BUILD_BDB_DYNAMIC@,$BUILD_BDB_DYNAMIC,;t t
34232 s,@BUILD_DNSSRV_DYNAMIC@,$BUILD_DNSSRV_DYNAMIC,;t t
34233 s,@BUILD_LDAP_DYNAMIC@,$BUILD_LDAP_DYNAMIC,;t t
34234 s,@BUILD_LDBM_DYNAMIC@,$BUILD_LDBM_DYNAMIC,;t t
34235 s,@BUILD_META_DYNAMIC@,$BUILD_META_DYNAMIC,;t t
34236 s,@BUILD_MONITOR_DYNAMIC@,$BUILD_MONITOR_DYNAMIC,;t t
34237 s,@BUILD_NULL_DYNAMIC@,$BUILD_NULL_DYNAMIC,;t t
34238 s,@BUILD_PASSWD_DYNAMIC@,$BUILD_PASSWD_DYNAMIC,;t t
34239 s,@BUILD_PERL_DYNAMIC@,$BUILD_PERL_DYNAMIC,;t t
34240 s,@BUILD_SHELL_DYNAMIC@,$BUILD_SHELL_DYNAMIC,;t t
34241 s,@BUILD_SQL_DYNAMIC@,$BUILD_SQL_DYNAMIC,;t t
34242 s,@BUILD_TCL_DYNAMIC@,$BUILD_TCL_DYNAMIC,;t t
34243 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
34244 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
34245 s,@LDIF_LIBS@,$LDIF_LIBS,;t t
34246 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
34247 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
34248 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
34249 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
34250 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
34251 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
34252 s,@MOD_TCL_LIB@,$MOD_TCL_LIB,;t t
34253 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
34254 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
34255 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
34256 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
34257 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
34258 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
34259 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
34260 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
34261 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
34262 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
34263 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
34264 s,@SASL_LIBS@,$SASL_LIBS,;t t
34265 s,@TERMCAP_LIBS@,$TERMCAP_LIBS,;t t
34266 s,@TLS_LIBS@,$TLS_LIBS,;t t
34267 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
34268 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
34269 s,@LIBSLAPI@,$LIBSLAPI,;t t
34270 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
34271 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
34272 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
34273 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
34274 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
34275 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
34276 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34281 cat >>$CONFIG_STATUS <<\_ACEOF
34282 # Split the substitutions into bite-sized pieces for seds with
34283 # small command number limits, like on Digital OSF/1 and HP-UX.
34284 ac_max_sed_lines=48
34285 ac_sed_frag=1 # Number of current file.
34286 ac_beg=1 # First line for current file.
34287 ac_end=$ac_max_sed_lines # Line after last line for current file.
34290 while $ac_more_lines; do
34291 if test $ac_beg -gt 1; then
34292 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34294 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34296 if test ! -s $tmp/subs.frag; then
34297 ac_more_lines=false
34299 # The purpose of the label and of the branching condition is to
34300 # speed up the sed processing (if there are no `@' at all, there
34301 # is no need to browse any of the substitutions).
34302 # These are the two extra sed commands mentioned above.
34304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34305 if test -z "$ac_sed_cmds"; then
34306 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34308 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34310 ac_sed_frag=`expr $ac_sed_frag + 1`
34312 ac_end=`expr $ac_end + $ac_max_sed_lines`
34315 if test -z "$ac_sed_cmds"; then
34318 fi # test -n "$CONFIG_FILES"
34321 cat >>$CONFIG_STATUS <<\_ACEOF
34322 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34325 - | *:- | *:-:* ) # input from stdin
34327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34331 * ) ac_file_in=$ac_file.in ;;
34334 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34335 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34337 X"$ac_file" : 'X\(//\)[^/]' \| \
34338 X"$ac_file" : 'X\(//\)$' \| \
34339 X"$ac_file" : 'X\(/\)' \| \
34340 . : '\(.\)' 2>/dev/null ||
34342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34344 /^X\(\/\/\)$/{ s//\1/; q; }
34345 /^X\(\/\).*/{ s//\1/; q; }
34347 { if $as_mkdir_p; then
34352 while test ! -d "$as_dir"; do
34353 as_dirs="$as_dir $as_dirs"
34354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34356 X"$as_dir" : 'X\(//\)[^/]' \| \
34357 X"$as_dir" : 'X\(//\)$' \| \
34358 X"$as_dir" : 'X\(/\)' \| \
34359 . : '\(.\)' 2>/dev/null ||
34361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34363 /^X\(\/\/\)$/{ s//\1/; q; }
34364 /^X\(\/\).*/{ s//\1/; q; }
34367 test ! -n "$as_dirs" || mkdir $as_dirs
34368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34370 { (exit 1); exit 1; }; }; }
34374 if test "$ac_dir" != .; then
34375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34376 # A "../" for each directory in $ac_dir_suffix.
34377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34379 ac_dir_suffix= ac_top_builddir=
34383 .) # No --srcdir option. We are building in place.
34385 if test -z "$ac_top_builddir"; then
34388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34390 [\\/]* | ?:[\\/]* ) # Absolute path.
34391 ac_srcdir=$srcdir$ac_dir_suffix;
34392 ac_top_srcdir=$srcdir ;;
34393 *) # Relative path.
34394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34397 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
34399 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
34400 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
34401 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
34402 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
34406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34407 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
34410 if test x"$ac_file" != x-; then
34411 { echo "$as_me:$LINENO: creating $ac_file" >&5
34412 echo "$as_me: creating $ac_file" >&6;}
34415 # Let's still pretend it is `configure' which instantiates (i.e., don't
34416 # use $as_me), people would be surprised to read:
34417 # /* config.h. Generated by config.status. */
34418 if test x"$ac_file" = x-; then
34421 configure_input="$ac_file. "
34423 configure_input=$configure_input"Generated from `echo $ac_file_in |
34424 sed 's,.*/,,'` by configure."
34426 # First look for the input files in the build tree, otherwise in the
34428 ac_file_inputs=`IFS=:
34429 for f in $ac_file_in; do
34431 -) echo $tmp/stdin ;;
34433 # Absolute (can't be DOS-style, as IFS=:)
34434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34435 echo "$as_me: error: cannot find input file: $f" >&2;}
34436 { (exit 1); exit 1; }; }
34439 if test -f "$f"; then
34442 elif test -f "$srcdir/$f"; then
34447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34448 echo "$as_me: error: cannot find input file: $f" >&2;}
34449 { (exit 1); exit 1; }; }
34452 done` || { (exit 1); exit 1; }
34454 cat >>$CONFIG_STATUS <<_ACEOF
34458 cat >>$CONFIG_STATUS <<\_ACEOF
34460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34461 s,@configure_input@,$configure_input,;t t
34462 s,@srcdir@,$ac_srcdir,;t t
34463 s,@abs_srcdir@,$ac_abs_srcdir,;t t
34464 s,@top_srcdir@,$ac_top_srcdir,;t t
34465 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34466 s,@builddir@,$ac_builddir,;t t
34467 s,@abs_builddir@,$ac_abs_builddir,;t t
34468 s,@top_builddir@,$ac_top_builddir,;t t
34469 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34470 s,@INSTALL@,$ac_INSTALL,;t t
34471 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34473 if test x"$ac_file" != x-; then
34474 mv $tmp/out $ac_file
34482 cat >>$CONFIG_STATUS <<\_ACEOF
34485 # CONFIG_HEADER section.
34488 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34489 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34491 # ac_d sets the value in "#define NAME VALUE" lines.
34492 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34493 ac_dB='[ ].*$,\1#\2'
34496 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34497 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34498 ac_uB='$,\1#\2define\3'
34502 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34503 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34505 - | *:- | *:-:* ) # input from stdin
34507 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34509 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34511 * ) ac_file_in=$ac_file.in ;;
34514 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34515 echo "$as_me: creating $ac_file" >&6;}
34517 # First look for the input files in the build tree, otherwise in the
34519 ac_file_inputs=`IFS=:
34520 for f in $ac_file_in; do
34522 -) echo $tmp/stdin ;;
34524 # Absolute (can't be DOS-style, as IFS=:)
34525 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34526 echo "$as_me: error: cannot find input file: $f" >&2;}
34527 { (exit 1); exit 1; }; }
34530 if test -f "$f"; then
34533 elif test -f "$srcdir/$f"; then
34538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34539 echo "$as_me: error: cannot find input file: $f" >&2;}
34540 { (exit 1); exit 1; }; }
34543 done` || { (exit 1); exit 1; }
34544 # Remove the trailing spaces.
34545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34550 # `conftest.undefs', that substitutes the proper values into
34551 # config.h.in to produce config.h. The first handles `#define'
34552 # templates, and the second `#undef' templates.
34553 # And first: Protect against being on the right side of a sed subst in
34554 # config.status. Protect against being in an unquoted here document
34555 # in config.status.
34556 rm -f conftest.defines conftest.undefs
34557 # Using a here document instead of a string reduces the quoting nightmare.
34558 # Putting comments in sed scripts is not portable.
34560 # `end' is used to avoid that the second main sed command (meant for
34561 # 0-ary CPP macros) applies to n-ary macro definitions.
34562 # See the Autoconf documentation for `clear'.
34563 cat >confdef2sed.sed <<\_ACEOF
34568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34573 # If some macros were called several times there might be several times
34574 # the same #defines, which is useless. Nevertheless, we may not want to
34575 # sort them, since we want the *last* AC-DEFINE to be honored.
34576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34578 rm -f confdef2sed.sed
34580 # This sed command replaces #undef with comments. This is necessary, for
34581 # example, in the case of _POSIX_SOURCE, which is predefined and required
34582 # on some systems where configure will not decide to define it.
34583 cat >>conftest.undefs <<\_ACEOF
34584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34587 # Break up conftest.defines because some shells have a limit on the size
34588 # of here documents, and old seds have small limits too (100 cmds).
34589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34592 echo ' :' >>$CONFIG_STATUS
34593 rm -f conftest.tail
34594 while grep . conftest.defines >/dev/null
34596 # Write a limited-size here document to $tmp/defines.sed.
34597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34598 # Speed up: don't consider the non `#define' lines.
34599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34600 # Work around the forget-to-reset-the-flag bug.
34601 echo 't clr' >>$CONFIG_STATUS
34602 echo ': clr' >>$CONFIG_STATUS
34603 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
34605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34607 mv $tmp/out $tmp/in
34609 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
34610 rm -f conftest.defines
34611 mv conftest.tail conftest.defines
34613 rm -f conftest.defines
34614 echo ' fi # grep' >>$CONFIG_STATUS
34615 echo >>$CONFIG_STATUS
34617 # Break up conftest.undefs because some shells have a limit on the size
34618 # of here documents, and old seds have small limits too (100 cmds).
34619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34620 rm -f conftest.tail
34621 while grep . conftest.undefs >/dev/null
34623 # Write a limited-size here document to $tmp/undefs.sed.
34624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34625 # Speed up: don't consider the non `#undef'
34626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34627 # Work around the forget-to-reset-the-flag bug.
34628 echo 't clr' >>$CONFIG_STATUS
34629 echo ': clr' >>$CONFIG_STATUS
34630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34634 mv $tmp/out $tmp/in
34636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34637 rm -f conftest.undefs
34638 mv conftest.tail conftest.undefs
34640 rm -f conftest.undefs
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34643 # Let's still pretend it is `configure' which instantiates (i.e., don't
34644 # use $as_me), people would be surprised to read:
34645 # /* config.h. Generated by config.status. */
34646 if test x"$ac_file" = x-; then
34647 echo "/* Generated by configure. */" >$tmp/config.h
34649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34651 cat $tmp/in >>$tmp/config.h
34653 if test x"$ac_file" != x-; then
34654 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
34655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34656 echo "$as_me: $ac_file is unchanged" >&6;}
34658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34660 X"$ac_file" : 'X\(//\)[^/]' \| \
34661 X"$ac_file" : 'X\(//\)$' \| \
34662 X"$ac_file" : 'X\(/\)' \| \
34663 . : '\(.\)' 2>/dev/null ||
34665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34667 /^X\(\/\/\)$/{ s//\1/; q; }
34668 /^X\(\/\).*/{ s//\1/; q; }
34670 { if $as_mkdir_p; then
34675 while test ! -d "$as_dir"; do
34676 as_dirs="$as_dir $as_dirs"
34677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34679 X"$as_dir" : 'X\(//\)[^/]' \| \
34680 X"$as_dir" : 'X\(//\)$' \| \
34681 X"$as_dir" : 'X\(/\)' \| \
34682 . : '\(.\)' 2>/dev/null ||
34684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34686 /^X\(\/\/\)$/{ s//\1/; q; }
34687 /^X\(\/\).*/{ s//\1/; q; }
34690 test ! -n "$as_dirs" || mkdir $as_dirs
34691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34693 { (exit 1); exit 1; }; }; }
34696 mv $tmp/config.h $ac_file
34700 rm -f $tmp/config.h
34704 cat >>$CONFIG_STATUS <<\_ACEOF
34707 # CONFIG_COMMANDS section.
34709 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
34710 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
34711 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
34712 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
34713 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34714 X"$ac_dest" : 'X\(//\)[^/]' \| \
34715 X"$ac_dest" : 'X\(//\)$' \| \
34716 X"$ac_dest" : 'X\(/\)' \| \
34717 . : '\(.\)' 2>/dev/null ||
34719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34721 /^X\(\/\/\)$/{ s//\1/; q; }
34722 /^X\(\/\).*/{ s//\1/; q; }
34726 if test "$ac_dir" != .; then
34727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34728 # A "../" for each directory in $ac_dir_suffix.
34729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34731 ac_dir_suffix= ac_top_builddir=
34735 .) # No --srcdir option. We are building in place.
34737 if test -z "$ac_top_builddir"; then
34740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34742 [\\/]* | ?:[\\/]* ) # Absolute path.
34743 ac_srcdir=$srcdir$ac_dir_suffix;
34744 ac_top_srcdir=$srcdir ;;
34745 *) # Relative path.
34746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34749 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
34751 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
34752 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
34753 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
34754 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
34757 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
34758 echo "$as_me: executing $ac_dest commands" >&6;}
34760 time-stamp ) date >stamp-h
34761 echo Please run \"make depend\" to build dependencies ;;
34766 cat >>$CONFIG_STATUS <<\_ACEOF
34768 { (exit 0); exit 0; }
34770 chmod +x $CONFIG_STATUS
34771 ac_clean_files=$ac_clean_files_save
34774 # configure is writing to config.log, and then calls config.status.
34775 # config.status does its own redirection, appending to config.log.
34776 # Unfortunately, on DOS this fails, as config.log is still kept open
34777 # by configure, so config.status won't be able to write to it; its
34778 # output is simply discarded. So we exec the FD to /dev/null,
34779 # effectively closing config.log, so it can be properly (re)opened and
34780 # appended to by config.status. When coming back to configure, we
34781 # need to make the FD available again.
34782 if test "$no_create" != yes; then
34784 ac_config_status_args=
34785 test "$silent" = yes &&
34786 ac_config_status_args="$ac_config_status_args --quiet"
34788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34791 # would make configure fail if this is the last instruction.
34792 $ac_cs_success || { (exit 1); exit 1; }