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 cat >>confdefs.h <<_ACEOF
9730 #define EXEEXT "${EXEEXT}"
9734 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
9735 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
9736 if test "${ac_cv_lib_be_be_app+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 ac_check_lib_save_LIBS=$LIBS
9740 LIBS="-lbe -lroot -lnet $LIBS"
9741 cat >conftest.$ac_ext <<_ACEOF
9742 #line $LINENO "configure"
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9749 /* Override any gcc2 internal prototype to avoid an error. */
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_be_be_app=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_lib_be_be_app=no
9783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
9787 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
9788 if test $ac_cv_lib_be_be_app = yes; then
9789 LIBS="$LIBS -lbe -lroot -lnet"
9798 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
9799 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
9800 if test "${am_cv_prog_cc_stdc+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 am_cv_prog_cc_stdc=no
9805 # Don't try gcc -ansi; that turns off useful extensions and
9806 # breaks some systems' header files.
9807 # AIX -qlanglvl=ansi
9808 # Ultrix and OSF/1 -std1
9809 # HP-UX 10.20 and later -Ae
9810 # HP-UX older versions -Aa -D_HPUX_SOURCE
9811 # SVR4 -Xc -D__EXTENSIONS__
9812 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9814 CC="$ac_save_CC $ac_arg"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9824 #include <sys/types.h>
9825 #include <sys/stat.h>
9826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9827 struct buf { int x; };
9828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9829 static char *e (p, i)
9835 static char *f (char * (*g) (char **, int), char **p, ...)
9840 s = g (p, va_arg (v,int));
9844 int test (int i, double x);
9845 struct s1 {int (*f) (int a);};
9846 struct s2 {int (*f) (double a);};
9847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 am_cv_prog_cc_stdc="$ac_arg"; break
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9885 if test -z "$am_cv_prog_cc_stdc"; then
9886 echo "$as_me:$LINENO: result: none needed" >&5
9887 echo "${ECHO_T}none needed" >&6
9889 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
9890 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
9892 case "x$am_cv_prog_cc_stdc" in
9894 *) CC="$CC $am_cv_prog_cc_stdc" ;;
9897 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
9898 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
9899 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
9900 { (exit 1); exit 1; }; }
9903 # test for make depend flag
9906 if test -z "${MKDEP}"; then
9908 if test -z "${MKDEP_FLAGS}"; then
9909 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
9910 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
9911 if test "${ol_cv_mkdep+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 for flag in "-M" "-xM"; do
9917 cat > conftest.c <<EOF
9920 if { ac_try='$OL_MKDEP $flag conftest.c'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } \
9926 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
9928 if test ! -f conftest."${ac_object}" ; then
9930 OL_MKDEP_FLAGS="$flag"
9938 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
9939 echo "${ECHO_T}$ol_cv_mkdep" >&6
9942 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
9947 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
9952 if test "${ol_cv_mkdep}" = no ; then
9953 # this will soon become an error
9954 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
9955 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
9958 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
9959 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
9960 if test "${ac_cv_lib_s_afopen+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS=$LIBS
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line $LINENO "configure"
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9973 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_lib_s_afopen=yes
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_cv_lib_s_afopen=no
10007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
10012 if test $ac_cv_lib_s_afopen = yes; then
10016 cat >>confdefs.h <<\_ACEOF
10017 #define HAVE_AIX_SECURITY 1
10026 ac_cv_func_getopt=no
10028 cat >>confdefs.h <<\_ACEOF
10029 #define BOTH_STRINGS_H 1
10036 if test $ol_enable_modules != no ; then
10038 for ac_header in ltdl.h
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10042 echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10050 # Is the header compilable?
10051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10054 #line $LINENO "configure"
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 #include <$ac_header>
10063 rm -f conftest.$ac_objext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_header_compiler=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_header_compiler=no
10082 rm -f conftest.$ac_objext conftest.$ac_ext
10083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10084 echo "${ECHO_T}$ac_header_compiler" >&6
10086 # Is the header present?
10087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10090 #line $LINENO "configure"
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 #include <$ac_header>
10098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10101 grep -v '^ *+' conftest.er1 >conftest.err
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } >/dev/null; then
10106 if test -s conftest.err; then
10107 ac_cpp_err=$ac_c_preproc_warn_flag
10114 if test -z "$ac_cpp_err"; then
10115 ac_header_preproc=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ac_header_preproc=no
10122 rm -f conftest.err conftest.$ac_ext
10123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10124 echo "${ECHO_T}$ac_header_preproc" >&6
10126 # So? What about this header?
10127 case $ac_header_compiler:$ac_header_preproc in
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10135 ## ------------------------------------ ##
10136 ## Report this to bug-autoconf@gnu.org. ##
10137 ## ------------------------------------ ##
10140 sed "s/^/$as_me: WARNING: /" >&2
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10151 ## ------------------------------------ ##
10152 ## Report this to bug-autoconf@gnu.org. ##
10153 ## ------------------------------------ ##
10156 sed "s/^/$as_me: WARNING: /" >&2
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 eval "$as_ac_Header=$ac_header_preproc"
10166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10180 if test $ac_cv_header_ltdl_h = no ; then
10181 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
10182 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
10183 { (exit 1); exit 1; }; }
10186 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
10187 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
10188 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-lltdl $LIBS"
10193 cat >conftest.$ac_ext <<_ACEOF
10194 #line $LINENO "configure"
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any gcc2 internal prototype to avoid an error. */
10205 /* We use char because int might match the return type of a gcc2
10206 builtin and then its argument prototype would still apply. */
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_lib_ltdl_lt_dlinit=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ac_cv_lib_ltdl_lt_dlinit=no
10235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10238 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
10239 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
10240 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
10242 MODULES_LIBS=-lltdl
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_LIBLTDL 1
10252 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
10253 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
10254 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
10255 { (exit 1); exit 1; }; }
10257 ol_link_modules=yes
10259 ol_with_bdb_module=static
10260 ol_with_dnssrv_module=static
10261 ol_with_ldap_module=static
10262 ol_with_ldbm_module=static
10263 ol_with_meta_module=static
10264 ol_with_monitor_module=static
10265 ol_with_null_module=static
10266 ol_with_passwd_module=static
10267 ol_with_perl_module=static
10268 ol_with_shell_module=static
10269 ol_with_tcl_module=static
10270 ol_with_sql_module=static
10274 echo "$as_me:$LINENO: checking for EBCDIC" >&5
10275 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
10276 if test "${ol_cv_cpp_ebcdic+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10281 #line $LINENO "configure"
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10289 #include <__ASCII__/generate_error.h>
10293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null; then
10301 if test -s conftest.err; then
10302 ac_cpp_err=$ac_c_preproc_warn_flag
10309 if test -z "$ac_cpp_err"; then
10310 ol_cv_cpp_ebcdic=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ol_cv_cpp_ebcdic=no
10317 rm -f conftest.err conftest.$ac_ext
10319 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
10320 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
10321 if test $ol_cv_cpp_ebcdic = yes ; then
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_EBCDIC 1
10329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10331 if test "${ol_cv_header_stdc+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <stdlib.h>
10342 #include <stdarg.h>
10343 #include <string.h>
10346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } >/dev/null; then
10354 if test -s conftest.err; then
10355 ac_cpp_err=$ac_c_preproc_warn_flag
10362 if test -z "$ac_cpp_err"; then
10363 ol_cv_header_stdc=yes
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ol_cv_header_stdc=no
10370 rm -f conftest.err conftest.$ac_ext
10372 if test $ol_cv_header_stdc = yes; then
10373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <string.h>
10384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10385 $EGREP "memchr" >/dev/null 2>&1; then
10388 ol_cv_header_stdc=no
10394 if test $ol_cv_header_stdc = yes; then
10395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10396 cat >conftest.$ac_ext <<_ACEOF
10397 #line $LINENO "configure"
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 #include <stdlib.h>
10406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10407 $EGREP "free" >/dev/null 2>&1; then
10410 ol_cv_header_stdc=no
10416 if test $ol_cv_header_stdc = yes; then
10417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10418 if test "$cross_compiling" = yes; then
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 #ifndef HAVE_EBCDIC
10430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10433 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10434 || ('j' <= (c) && (c) <= 'r') \
10435 || ('s' <= (c) && (c) <= 'z'))
10436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10439 int main () { int i; for (i = 0; i < 256; i++)
10440 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10444 rm -f conftest$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10457 echo "$as_me: program exited with status $ac_status" >&5
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ( exit $ac_status )
10462 ol_cv_header_stdc=no
10464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10468 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
10469 echo "${ECHO_T}$ol_cv_header_stdc" >&6
10470 if test $ol_cv_header_stdc = yes; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define STDC_HEADERS 1
10476 ac_cv_header_stdc=disable
10479 if test $ol_cv_header_stdc != yes; then
10480 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
10481 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
10489 ac_header_dirent=no
10490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10491 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10492 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10493 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line $LINENO "configure"
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <sys/types.h>
10516 rm -f conftest.$ac_objext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518 (eval $ac_compile) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -s conftest.$ac_objext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 eval "$as_ac_Header=yes"
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 eval "$as_ac_Header=no"
10535 rm -f conftest.$ac_objext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10540 cat >>confdefs.h <<_ACEOF
10541 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10544 ac_header_dirent=$ac_hdr; break
10548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10549 if test $ac_header_dirent = dirent.h; then
10550 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10552 if test "${ac_cv_search_opendir+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 ac_func_search_save_LIBS=$LIBS
10556 ac_cv_search_opendir=no
10557 cat >conftest.$ac_ext <<_ACEOF
10558 #line $LINENO "configure"
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 /* Override any gcc2 internal prototype to avoid an error. */
10569 /* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_search_opendir="none required"
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 if test "$ac_cv_search_opendir" = no; then
10600 for ac_lib in dir; do
10601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10602 cat >conftest.$ac_ext <<_ACEOF
10603 #line $LINENO "configure"
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10610 /* Override any gcc2 internal prototype to avoid an error. */
10614 /* We use char because int might match the return type of a gcc2
10615 builtin and then its argument prototype would still apply. */
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_search_opendir="-l$ac_lib"
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_func_search_save_LIBS
10649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10651 if test "$ac_cv_search_opendir" != no; then
10652 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10659 if test "${ac_cv_search_opendir+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 ac_func_search_save_LIBS=$LIBS
10663 ac_cv_search_opendir=no
10664 cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10672 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689 (eval $ac_link) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_search_opendir="none required"
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10706 if test "$ac_cv_search_opendir" = no; then
10707 for ac_lib in x; do
10708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10709 cat >conftest.$ac_ext <<_ACEOF
10710 #line $LINENO "configure"
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10717 /* Override any gcc2 internal prototype to avoid an error. */
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_search_opendir="-l$ac_lib"
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_func_search_save_LIBS
10756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10758 if test "$ac_cv_search_opendir" != no; then
10759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10765 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10766 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10767 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 #line $LINENO "configure"
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 #include <sys/types.h>
10778 #include <sys/wait.h>
10779 #ifndef WEXITSTATUS
10780 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_header_sys_wait_h=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_header_sys_wait_h=no
10815 rm -f conftest.$ac_objext conftest.$ac_ext
10817 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10818 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10819 if test $ac_cv_header_sys_wait_h = yes; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_SYS_WAIT_H 1
10827 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
10828 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
10829 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10833 #line $LINENO "configure"
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <sys/types.h>
10840 #include <termios.h>
10846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10847 $EGREP "yes" >/dev/null 2>&1; then
10848 ac_cv_sys_tiocgwinsz_in_termios_h=yes
10850 ac_cv_sys_tiocgwinsz_in_termios_h=no
10855 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
10856 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
10858 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
10859 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
10860 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
10861 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 #include <sys/types.h>
10872 #include <sys/ioctl.h>
10878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10879 $EGREP "yes" >/dev/null 2>&1; then
10880 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
10882 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
10887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
10888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
10890 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
10892 cat >>confdefs.h <<\_ACEOF
10893 #define GWINSZ_IN_SYS_IOCTL 1
10899 if test $am_cv_sys_posix_termios = yes ; then
10901 cat >>confdefs.h <<\_ACEOF
10902 #define HAVE_POSIX_TERMIOS 1
11000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11002 echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11010 # Is the header compilable?
11011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11013 cat >conftest.$ac_ext <<_ACEOF
11014 #line $LINENO "configure"
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11020 $ac_includes_default
11021 #include <$ac_header>
11023 rm -f conftest.$ac_objext
11024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025 (eval $ac_compile) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_header_compiler=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_header_compiler=no
11042 rm -f conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044 echo "${ECHO_T}$ac_header_compiler" >&6
11046 # Is the header present?
11047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11050 #line $LINENO "configure"
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <$ac_header>
11058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } >/dev/null; then
11066 if test -s conftest.err; then
11067 ac_cpp_err=$ac_c_preproc_warn_flag
11074 if test -z "$ac_cpp_err"; then
11075 ac_header_preproc=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_header_preproc=no
11082 rm -f conftest.err conftest.$ac_ext
11083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11084 echo "${ECHO_T}$ac_header_preproc" >&6
11086 # So? What about this header?
11087 case $ac_header_compiler:$ac_header_preproc in
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11095 ## ------------------------------------ ##
11096 ## Report this to bug-autoconf@gnu.org. ##
11097 ## ------------------------------------ ##
11100 sed "s/^/$as_me: WARNING: /" >&2
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11111 ## ------------------------------------ ##
11112 ## Report this to bug-autoconf@gnu.org. ##
11113 ## ------------------------------------ ##
11116 sed "s/^/$as_me: WARNING: /" >&2
11119 echo "$as_me:$LINENO: checking for $ac_header" >&5
11120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 eval "$as_ac_Header=$ac_header_preproc"
11126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11141 for ac_header in sys/ucred.h
11143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11144 echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 cat >conftest.$ac_ext <<_ACEOF
11150 #line $LINENO "configure"
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156 #include <sys/types.h>
11158 #include <$ac_header>
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -s conftest.$ac_objext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 eval "$as_ac_Header=yes"
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 eval "$as_ac_Header=no"
11179 rm -f conftest.$ac_objext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11193 for ac_header in resolv.h
11195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196 echo "$as_me:$LINENO: checking for $ac_header" >&5
11197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 #include <sys/types.h>
11210 #include <netinet/in.h>
11211 #include <arpa/nameser.h>
11214 #include <$ac_header>
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218 (eval $ac_compile) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "$as_ac_Header=yes"
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "$as_ac_Header=no"
11235 rm -f conftest.$ac_objext conftest.$ac_ext
11237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11250 echo "$as_me:$LINENO: checking for dlopen" >&5
11251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11252 if test "${ac_cv_func_dlopen+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* System header to define __stub macros and hopefully few prototypes,
11263 which can conflict with char dlopen (); below.
11264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265 <limits.h> exists even on freestanding compilers. */
11267 # include <limits.h>
11269 # include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error. */
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11279 /* The GNU C library defines this for functions which it implements
11280 to always fail with ENOSYS. Some functions are actually named
11281 something starting with __ and the normal name is an alias. */
11282 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11285 char (*f) () = dlopen;
11294 return f != dlopen;
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_func_dlopen=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_cv_func_dlopen=no
11318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11321 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11322 if test $ac_cv_func_dlopen = yes; then
11326 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11327 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_check_lib_save_LIBS=$LIBS
11333 cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11341 /* Override any gcc2 internal prototype to avoid an error. */
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11358 (eval $ac_link) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -s conftest$ac_exeext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_lib_dl_dlopen=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_cv_lib_dl_dlopen=no
11375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11378 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11380 if test $ac_cv_lib_dl_dlopen = yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define HAVE_LIBDL 1
11393 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
11394 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
11395 if test "${ac_cv_lib_V3_sigset+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 ac_check_lib_save_LIBS=$LIBS
11400 cat >conftest.$ac_ext <<_ACEOF
11401 #line $LINENO "configure"
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_lib_V3_sigset=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_lib_V3_sigset=no
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11445 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
11446 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
11447 if test $ac_cv_lib_V3_sigset = yes; then
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_LIBV3 1
11457 echo "$as_me:$LINENO: checking for winsock" >&5
11458 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
11460 for curlib in ws2_32 wsock32; do
11461 LIBS="$LIBS -l$curlib"
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11472 char closesocket@4();
11473 char gethostname@8();
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509 if test $have_winsock = yes; then
11511 cat >>confdefs.h <<\_ACEOF
11512 #define HAVE_WINSOCK 1
11515 ac_cv_func_socket=yes
11516 ac_cv_func_select=yes
11517 ac_cv_func_closesocket=yes
11518 ac_cv_func_gethostname=yes
11519 if test $curlib = ws2_32; then
11520 have_winsock=winsock2
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_WINSOCK2 1
11531 echo "$as_me:$LINENO: result: $have_winsock" >&5
11532 echo "${ECHO_T}$have_winsock" >&6
11535 echo "$as_me:$LINENO: checking for socket" >&5
11536 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11537 if test "${ac_cv_func_socket+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char socket (); below.
11549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11550 <limits.h> exists even on freestanding compilers. */
11552 # include <limits.h>
11554 # include <assert.h>
11556 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11564 /* The GNU C library defines this for functions which it implements
11565 to always fail with ENOSYS. Some functions are actually named
11566 something starting with __ and the normal name is an alias. */
11567 #if defined (__stub_socket) || defined (__stub___socket)
11570 char (*f) () = socket;
11579 return f != socket;
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586 (eval $ac_link) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_func_socket=yes
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_cv_func_socket=no
11603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11606 echo "${ECHO_T}$ac_cv_func_socket" >&6
11607 if test $ac_cv_func_socket = yes; then
11612 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11613 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11614 if test "${ac_cv_lib_socket_main+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lsocket $LIBS"
11619 cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_lib_socket_main=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_cv_lib_socket_main=no
11655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11659 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11660 if test $ac_cv_lib_socket_main = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define HAVE_LIBSOCKET 1
11665 LIBS="-lsocket $LIBS"
11670 echo "$as_me:$LINENO: checking for main in -lnet" >&5
11671 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
11672 if test "${ac_cv_lib_net_main+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 ac_check_lib_save_LIBS=$LIBS
11677 cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696 (eval $ac_link) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -s conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_lib_net_main=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_lib_net_main=no
11713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
11717 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
11718 if test $ac_cv_lib_net_main = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define HAVE_LIBNET 1
11728 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
11729 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
11730 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lnsl_s $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_lib_nsl_s_main=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_lib_nsl_s_main=no
11771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11774 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
11775 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
11776 if test $ac_cv_lib_nsl_s_main = yes; then
11777 cat >>confdefs.h <<_ACEOF
11778 #define HAVE_LIBNSL_S 1
11781 LIBS="-lnsl_s $LIBS"
11786 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11787 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11788 if test "${ac_cv_lib_nsl_main+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_check_lib_save_LIBS=$LIBS
11793 cat >conftest.$ac_ext <<_ACEOF
11794 #line $LINENO "configure"
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_cv_lib_nsl_main=yes
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_cv_lib_nsl_main=no
11829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
11833 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
11834 if test $ac_cv_lib_nsl_main = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836 #define HAVE_LIBNSL 1
11844 echo "$as_me:$LINENO: checking for socket in -linet" >&5
11845 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
11846 if test "${ac_cv_lib_inet_socket+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-linet $LIBS"
11851 cat >conftest.$ac_ext <<_ACEOF
11852 #line $LINENO "configure"
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -s conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_lib_inet_socket=yes
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_cv_lib_inet_socket=no
11893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11896 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
11897 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
11898 if test $ac_cv_lib_inet_socket = yes; then
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_LIBINET 1
11903 LIBS="-linet $LIBS"
11908 echo "$as_me:$LINENO: checking for main in -lgen" >&5
11909 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
11910 if test "${ac_cv_lib_gen_main+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 ac_check_lib_save_LIBS=$LIBS
11915 cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -s conftest$ac_exeext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 ac_cv_lib_gen_main=yes
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_cv_lib_gen_main=no
11951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11954 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
11955 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
11956 if test $ac_cv_lib_gen_main = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define HAVE_LIBGEN 1
11969 echo "$as_me:$LINENO: checking for select" >&5
11970 echo $ECHO_N "checking for select... $ECHO_C" >&6
11971 if test "${ac_cv_func_select+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 /* System header to define __stub macros and hopefully few prototypes,
11982 which can conflict with char select (); below.
11983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11984 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11990 /* Override any gcc2 internal prototype to avoid an error. */
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11998 /* The GNU C library defines this for functions which it implements
11999 to always fail with ENOSYS. Some functions are actually named
12000 something starting with __ and the normal name is an alias. */
12001 #if defined (__stub_select) || defined (__stub___select)
12004 char (*f) () = select;
12013 return f != select;
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_func_select=yes
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_cv_func_select=no
12037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12039 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
12040 echo "${ECHO_T}$ac_cv_func_select" >&6
12041 if test $ac_cv_func_select = yes; then
12044 { { echo "$as_me:$LINENO: error: select() required." >&5
12045 echo "$as_me: error: select() required." >&2;}
12046 { (exit 1); exit 1; }; }
12050 if test "${ac_cv_header_winsock_h}" != yes; then
12053 for ac_header in sys/select.h sys/socket.h
12055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12057 echo "$as_me:$LINENO: checking for $ac_header" >&5
12058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12065 # Is the header compilable?
12066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12068 cat >conftest.$ac_ext <<_ACEOF
12069 #line $LINENO "configure"
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 $ac_includes_default
12076 #include <$ac_header>
12078 rm -f conftest.$ac_objext
12079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12080 (eval $ac_compile) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -s conftest.$ac_objext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_header_compiler=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_header_compiler=no
12097 rm -f conftest.$ac_objext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12099 echo "${ECHO_T}$ac_header_compiler" >&6
12101 # Is the header present?
12102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #include <$ac_header>
12113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } >/dev/null; then
12121 if test -s conftest.err; then
12122 ac_cpp_err=$ac_c_preproc_warn_flag
12129 if test -z "$ac_cpp_err"; then
12130 ac_header_preproc=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_header_preproc=no
12137 rm -f conftest.err conftest.$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12139 echo "${ECHO_T}$ac_header_preproc" >&6
12141 # So? What about this header?
12142 case $ac_header_compiler:$ac_header_preproc in
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12150 ## ------------------------------------ ##
12151 ## Report this to bug-autoconf@gnu.org. ##
12152 ## ------------------------------------ ##
12155 sed "s/^/$as_me: WARNING: /" >&2
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12166 ## ------------------------------------ ##
12167 ## Report this to bug-autoconf@gnu.org. ##
12168 ## ------------------------------------ ##
12171 sed "s/^/$as_me: WARNING: /" >&2
12174 echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 eval "$as_ac_Header=$ac_header_preproc"
12181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12186 cat >>confdefs.h <<_ACEOF
12187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12194 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12195 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12196 if test "${ac_cv_func_select_args+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12200 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12201 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 $ac_includes_default
12210 #if HAVE_SYS_SELECT_H
12211 # include <sys/select.h>
12213 #if HAVE_SYS_SOCKET_H
12214 # include <sys/socket.h>
12220 extern int select ($ac_arg1,
12221 $ac_arg234, $ac_arg234, $ac_arg234,
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12245 rm -f conftest.$ac_objext conftest.$ac_ext
12249 # Provide a safe default value.
12250 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12253 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12254 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12255 ac_save_IFS=$IFS; IFS=','
12256 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12260 cat >>confdefs.h <<_ACEOF
12261 #define SELECT_TYPE_ARG1 $1
12265 cat >>confdefs.h <<_ACEOF
12266 #define SELECT_TYPE_ARG234 ($2)
12270 cat >>confdefs.h <<_ACEOF
12271 #define SELECT_TYPE_ARG5 ($3)
12280 for ac_header in regex.h
12282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12284 echo "$as_me:$LINENO: checking for $ac_header" >&5
12285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12292 # Is the header compilable?
12293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12295 cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 #include <$ac_header>
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307 (eval $ac_compile) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -s conftest.$ac_objext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_header_compiler=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_header_compiler=no
12324 rm -f conftest.$ac_objext conftest.$ac_ext
12325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12326 echo "${ECHO_T}$ac_header_compiler" >&6
12328 # Is the header present?
12329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12332 #line $LINENO "configure"
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 #include <$ac_header>
12340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } >/dev/null; then
12348 if test -s conftest.err; then
12349 ac_cpp_err=$ac_c_preproc_warn_flag
12356 if test -z "$ac_cpp_err"; then
12357 ac_header_preproc=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_header_preproc=no
12364 rm -f conftest.err conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12366 echo "${ECHO_T}$ac_header_preproc" >&6
12368 # So? What about this header?
12369 case $ac_header_compiler:$ac_header_preproc in
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12377 ## ------------------------------------ ##
12378 ## Report this to bug-autoconf@gnu.org. ##
12379 ## ------------------------------------ ##
12382 sed "s/^/$as_me: WARNING: /" >&2
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12393 ## ------------------------------------ ##
12394 ## Report this to bug-autoconf@gnu.org. ##
12395 ## ------------------------------------ ##
12398 sed "s/^/$as_me: WARNING: /" >&2
12401 echo "$as_me:$LINENO: checking for $ac_header" >&5
12402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 eval "$as_ac_Header=$ac_header_preproc"
12408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12421 if test "$ac_cv_header_regex_h" != yes ; then
12422 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
12423 echo "$as_me: error: POSIX regex.h required." >&2;}
12424 { (exit 1); exit 1; }; }
12426 echo "$as_me:$LINENO: checking for library containing regfree" >&5
12427 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
12428 if test "${ac_cv_search_regfree+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 ac_func_search_save_LIBS=$LIBS
12432 ac_cv_search_regfree=no
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_search_regfree="none required"
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12475 if test "$ac_cv_search_regfree" = no; then
12476 for ac_lib in regex gnuregex; do
12477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12503 (eval $ac_link) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_search_regfree="-l$ac_lib"
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_func_search_save_LIBS
12525 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
12526 echo "${ECHO_T}$ac_cv_search_regfree" >&6
12527 if test "$ac_cv_search_regfree" != no; then
12528 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
12531 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
12532 echo "$as_me: error: POSIX regex required." >&2;}
12533 { (exit 1); exit 1; }; }
12538 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
12539 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
12540 if test "${ol_cv_c_posix_regex+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 if test "$cross_compiling" = yes; then
12545 ol_cv_c_posix_regex=cross
12547 cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12555 #include <sys/types.h>
12557 static char *pattern, *string;
12565 if(regcomp(&re, pattern, 0)) {
12569 string = "ALL MATCH";
12571 rc = regexec(&re, string, 0, (void*)0, 0);
12578 rm -f conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ol_cv_c_posix_regex=yes
12591 echo "$as_me: program exited with status $ac_status" >&5
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ( exit $ac_status )
12596 ol_cv_c_posix_regex=no
12598 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
12602 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
12604 if test "$ol_cv_c_posix_regex" = no ; then
12605 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
12606 echo "$as_me: error: broken POSIX regex!" >&2;}
12607 { (exit 1); exit 1; }; }
12613 for ac_header in sys/uuid.h
12615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12617 echo "$as_me:$LINENO: checking for $ac_header" >&5
12618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 # Is the header compilable?
12626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 $ac_includes_default
12636 #include <$ac_header>
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_header_compiler=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_header_compiler=no
12657 rm -f conftest.$ac_objext conftest.$ac_ext
12658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12659 echo "${ECHO_T}$ac_header_compiler" >&6
12661 # Is the header present?
12662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12664 cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 #include <$ac_header>
12673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } >/dev/null; then
12681 if test -s conftest.err; then
12682 ac_cpp_err=$ac_c_preproc_warn_flag
12689 if test -z "$ac_cpp_err"; then
12690 ac_header_preproc=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_header_preproc=no
12697 rm -f conftest.err conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12699 echo "${ECHO_T}$ac_header_preproc" >&6
12701 # So? What about this header?
12702 case $ac_header_compiler:$ac_header_preproc in
12704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12710 ## ------------------------------------ ##
12711 ## Report this to bug-autoconf@gnu.org. ##
12712 ## ------------------------------------ ##
12715 sed "s/^/$as_me: WARNING: /" >&2
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12726 ## ------------------------------------ ##
12727 ## Report this to bug-autoconf@gnu.org. ##
12728 ## ------------------------------------ ##
12731 sed "s/^/$as_me: WARNING: /" >&2
12734 echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 eval "$as_ac_Header=$ac_header_preproc"
12741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12754 if test $ac_cv_header_sys_uuid_h = yes ; then
12756 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
12757 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
12758 if test "${ac_cv_search_uuid_to_str+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 ac_func_search_save_LIBS=$LIBS
12762 ac_cv_search_uuid_to_str=no
12763 cat >conftest.$ac_ext <<_ACEOF
12764 #line $LINENO "configure"
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 /* Override any gcc2 internal prototype to avoid an error. */
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777 char uuid_to_str ();
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_search_uuid_to_str="none required"
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12805 if test "$ac_cv_search_uuid_to_str" = no; then
12806 for ac_lib in uuid; do
12807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 #line $LINENO "configure"
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12816 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char uuid_to_str ();
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_search_uuid_to_str="-l$ac_lib"
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_func_search_save_LIBS
12855 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
12856 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
12857 if test "$ac_cv_search_uuid_to_str" != no; then
12858 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
12866 if test have_uuid = yes ; then
12868 cat >>confdefs.h <<\_ACEOF
12869 #define HAVE_UUID_TO_STR 1
12873 test "$ac_cv_search_uuid_to_str" = "none required" || \
12874 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
12878 if test $have_uuid = no ; then
12879 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
12880 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
12882 LIBS="$LIBS -lrpcrt4"
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 char UuidCreate@4();
12892 char UuidToStringA@8();
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12907 (eval $ac_link) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925 if test $need_rpcrt = yes; then
12926 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
12929 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
12930 echo "${ECHO_T}$need_rpcrt" >&6
12934 echo "$as_me:$LINENO: checking for res_query" >&5
12935 echo $ECHO_N "checking for res_query... $ECHO_C" >&6
12936 if test "${ac_cv_func_res_query+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 /* System header to define __stub macros and hopefully few prototypes,
12947 which can conflict with char res_query (); below.
12948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12949 <limits.h> exists even on freestanding compilers. */
12951 # include <limits.h>
12953 # include <assert.h>
12955 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12963 /* The GNU C library defines this for functions which it implements
12964 to always fail with ENOSYS. Some functions are actually named
12965 something starting with __ and the normal name is an alias. */
12966 #if defined (__stub_res_query) || defined (__stub___res_query)
12969 char (*f) () = res_query;
12978 return f != res_query;
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985 (eval $ac_link) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -s conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_func_res_query=yes
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 ac_cv_func_res_query=no
13002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_cv_func_res_query" >&5
13005 echo "${ECHO_T}$ac_cv_func_res_query" >&6
13006 if test $ac_cv_func_res_query = yes; then
13010 if test $ac_cv_func_res_query = no ; then
13011 echo "$as_me:$LINENO: checking for __res_query" >&5
13012 echo $ECHO_N "checking for __res_query... $ECHO_C" >&6
13013 if test "${ac_cv_func___res_query+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 cat >conftest.$ac_ext <<_ACEOF
13017 #line $LINENO "configure"
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 /* System header to define __stub macros and hopefully few prototypes,
13024 which can conflict with char __res_query (); below.
13025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13026 <limits.h> exists even on freestanding compilers. */
13028 # include <limits.h>
13030 # include <assert.h>
13032 /* Override any gcc2 internal prototype to avoid an error. */
13037 /* We use char because int might match the return type of a gcc2
13038 builtin and then its argument prototype would still apply. */
13039 char __res_query ();
13040 /* The GNU C library defines this for functions which it implements
13041 to always fail with ENOSYS. Some functions are actually named
13042 something starting with __ and the normal name is an alias. */
13043 #if defined (__stub___res_query) || defined (__stub_____res_query)
13046 char (*f) () = __res_query;
13055 return f != __res_query;
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062 (eval $ac_link) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_cv_func___res_query=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ac_cv_func___res_query=no
13079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_cv_func___res_query" >&5
13082 echo "${ECHO_T}$ac_cv_func___res_query" >&6
13083 if test $ac_cv_func___res_query = yes; then
13087 ac_cv_func_res_query=$ac_cv_func___res_query
13090 if test $ac_cv_func_res_query = no ; then
13092 echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
13093 echo $ECHO_N "checking for res_query in -lbind... $ECHO_C" >&6
13094 if test "${ac_cv_lib_bind_res_query+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lbind $LIBS"
13099 cat >conftest.$ac_ext <<_ACEOF
13100 #line $LINENO "configure"
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13107 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13124 (eval $ac_link) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_lib_bind_res_query=yes
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 ac_cv_lib_bind_res_query=no
13141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13144 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
13145 echo "${ECHO_T}$ac_cv_lib_bind_res_query" >&6
13146 if test $ac_cv_lib_bind_res_query = yes; then
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_LIBBIND 1
13151 LIBS="-lbind $LIBS"
13155 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
13158 if test $ac_cv_func_res_query = no ; then
13160 echo "$as_me:$LINENO: checking for __res_query in -lbind" >&5
13161 echo $ECHO_N "checking for __res_query in -lbind... $ECHO_C" >&6
13162 if test "${ac_cv_lib_bind___res_query+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-lbind $LIBS"
13167 cat >conftest.$ac_ext <<_ACEOF
13168 #line $LINENO "configure"
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 /* Override any gcc2 internal prototype to avoid an error. */
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181 char __res_query ();
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_lib_bind___res_query=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_cv_lib_bind___res_query=no
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13212 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_query" >&5
13213 echo "${ECHO_T}$ac_cv_lib_bind___res_query" >&6
13214 if test $ac_cv_lib_bind___res_query = yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_LIBBIND 1
13219 LIBS="-lbind $LIBS"
13223 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
13226 if test $ac_cv_func_res_query = no ; then
13228 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
13229 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
13230 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_check_lib_save_LIBS=$LIBS
13234 LIBS="-lresolv $LIBS"
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 /* Override any gcc2 internal prototype to avoid an error. */
13247 /* We use char because int might match the return type of a gcc2
13248 builtin and then its argument prototype would still apply. */
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13260 (eval $ac_link) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -s conftest$ac_exeext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_lib_resolv_res_query=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_cv_lib_resolv_res_query=no
13277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13280 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
13281 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
13282 if test $ac_cv_lib_resolv_res_query = yes; then
13283 cat >>confdefs.h <<_ACEOF
13284 #define HAVE_LIBRESOLV 1
13287 LIBS="-lresolv $LIBS"
13291 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
13294 if test $ac_cv_func_res_query = no ; then
13296 echo "$as_me:$LINENO: checking for __res_query in -lresolv" >&5
13297 echo $ECHO_N "checking for __res_query in -lresolv... $ECHO_C" >&6
13298 if test "${ac_cv_lib_resolv___res_query+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lresolv $LIBS"
13303 cat >conftest.$ac_ext <<_ACEOF
13304 #line $LINENO "configure"
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13311 /* Override any gcc2 internal prototype to avoid an error. */
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char __res_query ();
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -s conftest$ac_exeext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_lib_resolv___res_query=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_cv_lib_resolv___res_query=no
13345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_query" >&5
13349 echo "${ECHO_T}$ac_cv_lib_resolv___res_query" >&6
13350 if test $ac_cv_lib_resolv___res_query = yes; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define HAVE_LIBRESOLV 1
13355 LIBS="-lresolv $LIBS"
13359 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
13362 if test "$ac_cv_func_res_query" = yes ; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_RES_QUERY 1
13369 if test $ol_enable_dnssrv != no ; then
13374 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
13375 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
13376 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
13377 { (exit 1); exit 1; }; }
13384 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
13386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13387 echo "$as_me:$LINENO: checking for $ac_func" >&5
13388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13389 if eval "test \"\${$as_ac_var+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.$ac_ext <<_ACEOF
13393 #line $LINENO "configure"
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 /* System header to define __stub macros and hopefully few prototypes,
13400 which can conflict with char $ac_func (); below.
13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 <limits.h> exists even on freestanding compilers. */
13404 # include <limits.h>
13406 # include <assert.h>
13408 /* Override any gcc2 internal prototype to avoid an error. */
13413 /* We use char because int might match the return type of a gcc2
13414 builtin and then its argument prototype would still apply. */
13416 /* The GNU C library defines this for functions which it implements
13417 to always fail with ENOSYS. Some functions are actually named
13418 something starting with __ and the normal name is an alias. */
13419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422 char (*f) () = $ac_func;
13431 return f != $ac_func;
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 eval "$as_ac_var=yes"
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 eval "$as_ac_var=no"
13455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13459 if test `eval echo '${'$as_ac_var'}'` = yes; then
13460 cat >>confdefs.h <<_ACEOF
13461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
13470 if test $ol_enable_ipv6 = yes ; then
13471 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
13472 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
13473 { (exit 1); exit 1; }; }
13475 elif test $ol_enable_ipv6 != no ; then
13476 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
13477 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
13478 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 # include <netinet/in.h>
13491 # ifdef INET6_ADDRSTRLEN
13492 __has_inet6_addrstrlen__;
13496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13497 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
13498 ol_cv_inet6_addrstrlen=yes
13500 ol_cv_inet6_addrstrlen=no
13505 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
13506 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
13509 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
13510 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
13511 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <sys/socket.h>
13530 struct sockaddr_storage ss;
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ol_cv_struct_sockaddr_storage=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ol_cv_struct_sockaddr_storage=no
13555 rm -f conftest.$ac_objext conftest.$ac_ext
13557 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
13558 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
13560 if test $ol_cv_inet6_addrstrlen = yes \
13561 -a $ol_cv_struct_sockaddr_storage = yes ; then
13563 elif test $ol_enable_ipv6 = yes \
13564 -a $ol_cv_inet6_addrstrlen = no ; then
13565 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
13566 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
13567 { (exit 1); exit 1; }; }
13568 elif test $ol_enable_ipv6 = yes \
13569 -a $ol_cv_struct_sockaddr_storage = no ; then
13570 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
13571 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
13572 { (exit 1); exit 1; }; }
13576 if test $ol_enable_local != no ; then
13578 for ac_header in sys/un.h
13580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590 # Is the header compilable?
13591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 $ac_includes_default
13601 #include <$ac_header>
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
13609 { ac_try='test -s conftest.$ac_objext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_header_compiler=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_header_compiler=no
13622 rm -f conftest.$ac_objext conftest.$ac_ext
13623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13624 echo "${ECHO_T}$ac_header_compiler" >&6
13626 # Is the header present?
13627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <$ac_header>
13638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13641 grep -v '^ *+' conftest.er1 >conftest.err
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } >/dev/null; then
13646 if test -s conftest.err; then
13647 ac_cpp_err=$ac_c_preproc_warn_flag
13654 if test -z "$ac_cpp_err"; then
13655 ac_header_preproc=yes
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_header_preproc=no
13662 rm -f conftest.err conftest.$ac_ext
13663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13664 echo "${ECHO_T}$ac_header_preproc" >&6
13666 # So? What about this header?
13667 case $ac_header_compiler:$ac_header_preproc in
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13675 ## ------------------------------------ ##
13676 ## Report this to bug-autoconf@gnu.org. ##
13677 ## ------------------------------------ ##
13680 sed "s/^/$as_me: WARNING: /" >&2
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13691 ## ------------------------------------ ##
13692 ## Report this to bug-autoconf@gnu.org. ##
13693 ## ------------------------------------ ##
13696 sed "s/^/$as_me: WARNING: /" >&2
13699 echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 eval "$as_ac_Header=$ac_header_preproc"
13706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13711 cat >>confdefs.h <<_ACEOF
13712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 if test $ol_enable_local = auto ; then
13721 ol_enable_local=$ac_cv_header_sys_un_h
13722 elif test $ac_cv_header_sys_un_h = no ; then
13723 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
13724 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
13725 { (exit 1); exit 1; }; }
13734 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
13735 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
13736 -o $ol_with_kerberos = k425 ; then
13739 for ac_header in krb5.h
13741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13751 # Is the header compilable?
13752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13755 #line $LINENO "configure"
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13762 #include <$ac_header>
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_header_compiler=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 ac_header_compiler=no
13783 rm -f conftest.$ac_objext conftest.$ac_ext
13784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13785 echo "${ECHO_T}$ac_header_compiler" >&6
13787 # Is the header present?
13788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13790 cat >conftest.$ac_ext <<_ACEOF
13791 #line $LINENO "configure"
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <$ac_header>
13799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null; then
13807 if test -s conftest.err; then
13808 ac_cpp_err=$ac_c_preproc_warn_flag
13815 if test -z "$ac_cpp_err"; then
13816 ac_header_preproc=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_header_preproc=no
13823 rm -f conftest.err conftest.$ac_ext
13824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13825 echo "${ECHO_T}$ac_header_preproc" >&6
13827 # So? What about this header?
13828 case $ac_header_compiler:$ac_header_preproc in
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13836 ## ------------------------------------ ##
13837 ## Report this to bug-autoconf@gnu.org. ##
13838 ## ------------------------------------ ##
13841 sed "s/^/$as_me: WARNING: /" >&2
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13852 ## ------------------------------------ ##
13853 ## Report this to bug-autoconf@gnu.org. ##
13854 ## ------------------------------------ ##
13857 sed "s/^/$as_me: WARNING: /" >&2
13860 echo "$as_me:$LINENO: checking for $ac_header" >&5
13861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 eval "$as_ac_Header=$ac_header_preproc"
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13872 cat >>confdefs.h <<_ACEOF
13873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13881 if test $ac_cv_header_krb5_h = yes ; then
13883 for ac_header in heim_err.h
13885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13887 echo "$as_me:$LINENO: checking for $ac_header" >&5
13888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13895 # Is the header compilable?
13896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13898 cat >conftest.$ac_ext <<_ACEOF
13899 #line $LINENO "configure"
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 $ac_includes_default
13906 #include <$ac_header>
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_header_compiler=yes
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_header_compiler=no
13927 rm -f conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13929 echo "${ECHO_T}$ac_header_compiler" >&6
13931 # Is the header present?
13932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13935 #line $LINENO "configure"
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <$ac_header>
13943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } >/dev/null; then
13951 if test -s conftest.err; then
13952 ac_cpp_err=$ac_c_preproc_warn_flag
13959 if test -z "$ac_cpp_err"; then
13960 ac_header_preproc=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_header_preproc=no
13967 rm -f conftest.err conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969 echo "${ECHO_T}$ac_header_preproc" >&6
13971 # So? What about this header?
13972 case $ac_header_compiler:$ac_header_preproc in
13974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13980 ## ------------------------------------ ##
13981 ## Report this to bug-autoconf@gnu.org. ##
13982 ## ------------------------------------ ##
13985 sed "s/^/$as_me: WARNING: /" >&2
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13996 ## ------------------------------------ ##
13997 ## Report this to bug-autoconf@gnu.org. ##
13998 ## ------------------------------------ ##
14001 sed "s/^/$as_me: WARNING: /" >&2
14004 echo "$as_me:$LINENO: checking for $ac_header" >&5
14005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 eval "$as_ac_Header=$ac_header_preproc"
14011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14016 cat >>confdefs.h <<_ACEOF
14017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14024 if test $ac_cv_header_heim_err_h = yes ; then
14030 if test $krb5_impl = mit; then
14031 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
14032 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
14033 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-lk5crypto $LIBS"
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14055 rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057 (eval $ac_link) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_lib_k5crypto_main=yes
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_cv_lib_k5crypto_main=no
14074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14075 LIBS=$ac_check_lib_save_LIBS
14077 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
14078 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
14079 if test $ac_cv_lib_k5crypto_main = yes; then
14080 krb5crypto=k5crypto
14086 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
14087 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
14088 if test "${ac_cv_lib_krb5_main+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 ac_check_lib_save_LIBS=$LIBS
14092 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
14093 cat >conftest.$ac_ext <<_ACEOF
14094 #line $LINENO "configure"
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_lib_krb5_main=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_cv_lib_krb5_main=no
14129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
14133 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
14134 if test $ac_cv_lib_krb5_main = yes; then
14136 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
14142 elif test $krb5_impl = heimdal; then
14143 echo "$as_me:$LINENO: checking for main in -ldes" >&5
14144 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
14145 if test "${ac_cv_lib_des_main+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 ac_check_lib_save_LIBS=$LIBS
14150 cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_des_main=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_lib_des_main=no
14186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14189 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
14190 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
14191 if test $ac_cv_lib_des_main = yes; then
14198 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
14199 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
14200 if test "${ac_cv_lib_krb5_main+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 ac_check_lib_save_LIBS=$LIBS
14204 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224 (eval $ac_link) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_cv_lib_krb5_main=yes
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ac_cv_lib_krb5_main=no
14241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14242 LIBS=$ac_check_lib_save_LIBS
14244 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
14245 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
14246 if test $ac_cv_lib_krb5_main = yes; then
14248 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_HEIMDAL_KERBEROS 1
14262 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
14263 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
14266 if test $have_krb5 = yes ; then
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_KRB5 1
14275 if test $ol_enable_kpasswd != no ; then
14276 ol_link_kpasswd=yes;
14279 if test $ol_with_kerberos = k5only ; then
14280 ol_with_kerberos=found
14283 elif test $ol_with_kerberos != auto ; then
14284 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
14285 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
14286 { (exit 1); exit 1; }; }
14292 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
14293 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
14297 for ac_header in kerberosIV/krb.h kerberosIV/des.h
14299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14301 echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14309 # Is the header compilable?
14310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14312 cat >conftest.$ac_ext <<_ACEOF
14313 #line $LINENO "configure"
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 $ac_includes_default
14320 #include <$ac_header>
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_header_compiler=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_header_compiler=no
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6
14345 # Is the header present?
14346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 #include <$ac_header>
14357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } >/dev/null; then
14365 if test -s conftest.err; then
14366 ac_cpp_err=$ac_c_preproc_warn_flag
14373 if test -z "$ac_cpp_err"; then
14374 ac_header_preproc=yes
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 ac_header_preproc=no
14381 rm -f conftest.err conftest.$ac_ext
14382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 echo "${ECHO_T}$ac_header_preproc" >&6
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc in
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14394 ## ------------------------------------ ##
14395 ## Report this to bug-autoconf@gnu.org. ##
14396 ## ------------------------------------ ##
14399 sed "s/^/$as_me: WARNING: /" >&2
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14410 ## ------------------------------------ ##
14411 ## Report this to bug-autoconf@gnu.org. ##
14412 ## ------------------------------------ ##
14415 sed "s/^/$as_me: WARNING: /" >&2
14418 echo "$as_me:$LINENO: checking for $ac_header" >&5
14419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 eval "$as_ac_Header=$ac_header_preproc"
14425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14430 cat >>confdefs.h <<_ACEOF
14431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
14440 if test $krb5_impl = mit; then
14441 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14442 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14443 if test "${ac_cv_lib_krb4_main+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 ac_check_lib_save_LIBS=$LIBS
14447 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14465 rm -f conftest.$ac_objext conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -s conftest$ac_exeext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_cv_lib_krb4_main=yes
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_lib_krb4_main=no
14484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14485 LIBS=$ac_check_lib_save_LIBS
14487 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14488 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14489 if test $ac_cv_lib_krb4_main = yes; then
14491 KRB4_LIBS="-lkrb4 -ldes425"
14497 elif test $krb5_impl = heimdal; then
14498 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14499 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14500 if test "${ac_cv_lib_krb4_main+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -s conftest$ac_exeext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_lib_krb4_main=yes
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_cv_lib_krb4_main=no
14541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14544 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14545 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14546 if test $ac_cv_lib_krb4_main = yes; then
14556 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
14557 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
14560 if test $have_k425 = yes ; then
14561 ol_with_kerberos=found
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE_KRB425 1
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_KRB4 1
14575 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
14576 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
14577 if test "${ol_cv_var_des_debug+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
14583 cat >conftest.$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14591 #include <kerberosIV/krb.h>
14592 #include <kerberosIV/des.h>
14593 extern int des_debug;
14605 rm -f conftest.$ac_objext conftest$ac_exeext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14607 (eval $ac_link) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ol_cv_var_des_debug=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ol_cv_var_des_debug=no
14624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14628 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
14629 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
14631 if test $ol_cv_var_des_debug = yes ; then
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_DES_DEBUG 1
14644 if test $ol_link_krb5 = yes ; then
14645 ol_with_kerberos=found
14648 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
14649 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
14654 for ac_header in krb.h des.h krb-archaeology.h
14656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14658 echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14666 # Is the header compilable?
14667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 $ac_includes_default
14677 #include <$ac_header>
14679 rm -f conftest.$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681 (eval $ac_compile) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -s conftest.$ac_objext'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }; then
14691 ac_header_compiler=yes
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_header_compiler=no
14698 rm -f conftest.$ac_objext conftest.$ac_ext
14699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14700 echo "${ECHO_T}$ac_header_compiler" >&6
14702 # Is the header present?
14703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <$ac_header>
14714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14717 grep -v '^ *+' conftest.er1 >conftest.err
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } >/dev/null; then
14722 if test -s conftest.err; then
14723 ac_cpp_err=$ac_c_preproc_warn_flag
14730 if test -z "$ac_cpp_err"; then
14731 ac_header_preproc=yes
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_header_preproc=no
14738 rm -f conftest.err conftest.$ac_ext
14739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14740 echo "${ECHO_T}$ac_header_preproc" >&6
14742 # So? What about this header?
14743 case $ac_header_compiler:$ac_header_preproc in
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14751 ## ------------------------------------ ##
14752 ## Report this to bug-autoconf@gnu.org. ##
14753 ## ------------------------------------ ##
14756 sed "s/^/$as_me: WARNING: /" >&2
14759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767 ## ------------------------------------ ##
14768 ## Report this to bug-autoconf@gnu.org. ##
14769 ## ------------------------------------ ##
14772 sed "s/^/$as_me: WARNING: /" >&2
14775 echo "$as_me:$LINENO: checking for $ac_header" >&5
14776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 eval "$as_ac_Header=$ac_header_preproc"
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14787 cat >>confdefs.h <<_ACEOF
14788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14796 if test $ac_cv_header_krb_h = yes ; then
14797 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14798 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14799 if test "${ac_cv_lib_krb_main+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-lkrb -ldes $LIBS"
14804 cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14823 (eval $ac_link) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -s conftest$ac_exeext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_krb_main=yes
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_cv_lib_krb_main=no
14840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14841 LIBS=$ac_check_lib_save_LIBS
14843 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
14844 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
14845 if test $ac_cv_lib_krb_main = yes; then
14852 if test $have_k4 = yes ; then
14853 ol_with_kerberos=found
14857 cat >>confdefs.h <<\_ACEOF
14858 #define HAVE_KRB4 1
14862 KRB4_LIBS="-lkrb -ldes"
14864 if test $ac_cv_header_krb_archaeology_h = yes ; then
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_KTH_KERBEROS 1
14875 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
14876 ol_link_kpasswd=yes
14879 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
14882 elif test $ol_enable_kbind = yes ; then
14883 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
14884 echo "$as_me: error: Kerberos IV detection failed" >&2;}
14885 { (exit 1); exit 1; }; }
14888 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
14890 cat >>confdefs.h <<\_ACEOF
14891 #define HAVE_KERBEROS 1
14895 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
14896 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
14897 echo "$as_me: error: Kerberos detection failed" >&2;}
14898 { (exit 1); exit 1; }; }
14902 if test $ol_with_tls != no ; then
14905 for ac_header in openssl/ssl.h ssl.h
14907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14909 echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14917 # Is the header compilable?
14918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14928 #include <$ac_header>
14930 rm -f conftest.$ac_objext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try='test -s conftest.$ac_objext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_header_compiler=yes
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 ac_header_compiler=no
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14951 echo "${ECHO_T}$ac_header_compiler" >&6
14953 # Is the header present?
14954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14957 #line $LINENO "configure"
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14963 #include <$ac_header>
14965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_c_preproc_warn_flag
14981 if test -z "$ac_cpp_err"; then
14982 ac_header_preproc=yes
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ac_header_preproc=no
14989 rm -f conftest.err conftest.$ac_ext
14990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991 echo "${ECHO_T}$ac_header_preproc" >&6
14993 # So? What about this header?
14994 case $ac_header_compiler:$ac_header_preproc in
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15002 ## ------------------------------------ ##
15003 ## Report this to bug-autoconf@gnu.org. ##
15004 ## ------------------------------------ ##
15007 sed "s/^/$as_me: WARNING: /" >&2
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018 ## ------------------------------------ ##
15019 ## Report this to bug-autoconf@gnu.org. ##
15020 ## ------------------------------------ ##
15023 sed "s/^/$as_me: WARNING: /" >&2
15026 echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 eval "$as_ac_Header=$ac_header_preproc"
15033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15047 if test $ac_cv_header_openssl_ssl_h = yes \
15048 -o $ac_cv_header_ssl_h = yes ; then
15049 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
15050 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
15051 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lssl -lcrypto $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15064 /* Override any gcc2 internal prototype to avoid an error. */
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15070 char SSLeay_add_ssl_algorithms ();
15074 SSLeay_add_ssl_algorithms ();
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -s conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
15098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15099 LIBS=$ac_check_lib_save_LIBS
15101 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
15102 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
15103 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
15111 if test $have_ssleay = no ; then
15112 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
15113 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
15114 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_check_lib_save_LIBS=$LIBS
15118 LIBS="-lssl -lcrypto $LIBS"
15119 cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15127 /* Override any gcc2 internal prototype to avoid an error. */
15131 /* We use char because int might match the return type of a gcc2
15132 builtin and then its argument prototype would still apply. */
15133 char SSL_library_init ();
15137 SSL_library_init ();
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -s conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_lib_ssl_SSL_library_init=yes
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_cv_lib_ssl_SSL_library_init=no
15161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15162 LIBS=$ac_check_lib_save_LIBS
15164 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15165 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
15166 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
15175 if test $have_ssleay = no ; then
15176 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
15177 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
15178 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15184 #line $LINENO "configure"
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15191 /* Override any gcc2 internal prototype to avoid an error. */
15195 /* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15197 char ssl3_accept ();
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -s conftest$ac_exeext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_lib_ssl_ssl3_accept=yes
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_cv_lib_ssl_ssl3_accept=no
15225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15229 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
15230 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
15239 if test $have_ssleay = yes ; then
15244 cat >>confdefs.h <<\_ACEOF
15245 #define HAVE_SSLEAY 1
15249 if test $need_rsaref = yes; then
15251 cat >>confdefs.h <<\_ACEOF
15252 #define HAVE_RSAREF 1
15256 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15258 TLS_LIBS="-lssl -lcrypto"
15264 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
15265 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15268 if test $ol_link_tls = yes ; then
15270 cat >>confdefs.h <<\_ACEOF
15275 elif test $ol_with_tls = auto ; then
15276 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
15277 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
15279 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15281 elif test $ol_with_tls != no ; then
15282 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
15283 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
15284 { (exit 1); exit 1; }; }
15287 if test $ol_enable_lmpasswd != no; then
15288 if test $ol_link_tls != yes ; then
15289 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
15290 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
15291 { (exit 1); exit 1; }; }
15295 cat >>confdefs.h <<\_ACEOF
15296 #define SLAPD_LMHASH 1
15303 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15304 -o $ol_with_threads = nt ; then
15307 echo "$as_me:$LINENO: checking for _beginthread" >&5
15308 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
15309 if test "${ac_cv_func__beginthread+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15313 #line $LINENO "configure"
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 /* System header to define __stub macros and hopefully few prototypes,
15320 which can conflict with char _beginthread (); below.
15321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15322 <limits.h> exists even on freestanding compilers. */
15324 # include <limits.h>
15326 # include <assert.h>
15328 /* Override any gcc2 internal prototype to avoid an error. */
15333 /* We use char because int might match the return type of a gcc2
15334 builtin and then its argument prototype would still apply. */
15335 char _beginthread ();
15336 /* The GNU C library defines this for functions which it implements
15337 to always fail with ENOSYS. Some functions are actually named
15338 something starting with __ and the normal name is an alias. */
15339 #if defined (__stub__beginthread) || defined (__stub____beginthread)
15342 char (*f) () = _beginthread;
15351 return f != _beginthread;
15356 rm -f conftest.$ac_objext conftest$ac_exeext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15358 (eval $ac_link) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -s conftest$ac_exeext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_cv_func__beginthread=yes
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_cv_func__beginthread=no
15375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15377 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
15378 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
15381 if test $ac_cv_func__beginthread = yes ; then
15383 cat >>confdefs.h <<\_ACEOF
15384 #define HAVE_NT_THREADS 1
15387 ol_cv_nt_threads=yes
15391 if test "$ol_cv_nt_threads" = yes ; then
15393 ol_with_threads=found
15394 ol_with_yielding_select=yes
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_NT_SERVICE_MANAGER 1
15402 cat >>confdefs.h <<\_ACEOF
15403 #define HAVE_NT_EVENT_LOG 1
15408 if test $ol_with_threads = nt ; then
15409 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
15410 echo "$as_me: error: could not locate NT Threads" >&2;}
15411 { (exit 1); exit 1; }; }
15415 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15416 -o $ol_with_threads = posix ; then
15419 for ac_header in pthread.h
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15423 echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15431 # Is the header compilable?
15432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15434 cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_header_compiler=yes
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_header_compiler=no
15463 rm -f conftest.$ac_objext conftest.$ac_ext
15464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15465 echo "${ECHO_T}$ac_header_compiler" >&6
15467 # Is the header present?
15468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15470 cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 #include <$ac_header>
15479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15482 grep -v '^ *+' conftest.er1 >conftest.err
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null; then
15487 if test -s conftest.err; then
15488 ac_cpp_err=$ac_c_preproc_warn_flag
15495 if test -z "$ac_cpp_err"; then
15496 ac_header_preproc=yes
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ac_header_preproc=no
15503 rm -f conftest.err conftest.$ac_ext
15504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15505 echo "${ECHO_T}$ac_header_preproc" >&6
15507 # So? What about this header?
15508 case $ac_header_compiler:$ac_header_preproc in
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516 ## ------------------------------------ ##
15517 ## Report this to bug-autoconf@gnu.org. ##
15518 ## ------------------------------------ ##
15521 sed "s/^/$as_me: WARNING: /" >&2
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15532 ## ------------------------------------ ##
15533 ## Report this to bug-autoconf@gnu.org. ##
15534 ## ------------------------------------ ##
15537 sed "s/^/$as_me: WARNING: /" >&2
15540 echo "$as_me:$LINENO: checking for $ac_header" >&5
15541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 eval "$as_ac_Header=$ac_header_preproc"
15547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15552 cat >>confdefs.h <<_ACEOF
15553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 if test $ac_cv_header_pthread_h = yes ; then
15562 echo "$as_me:$LINENO: checking POSIX thread version" >&5
15563 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
15564 if test "${ol_cv_pthread_version+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15576 # include <pthread.h>
15582 int i = PTHREAD_CREATE_JOINABLE;
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590 (eval $ac_compile) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15601 cat >conftest.$ac_ext <<_ACEOF
15602 #line $LINENO "configure"
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 #include <pthread.h>
15611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15612 $EGREP "pthread_detach" >/dev/null 2>&1; then
15613 ol_cv_pthread_version=10
15615 ol_cv_pthread_version=8
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15624 cat >conftest.$ac_ext <<_ACEOF
15625 #line $LINENO "configure"
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15632 # include <pthread.h>
15633 # ifdef PTHREAD_CREATE_UNDETACHED
15638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15639 $EGREP "draft7" >/dev/null 2>&1; then
15640 ol_cv_pthread_version=7
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line $LINENO "configure"
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 #include <pthread.h>
15653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15654 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
15655 ol_cv_pthread_version=6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15666 # include <pthread.h>
15667 #ifdef PTHREAD_MUTEX_INITIALIZER
15672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15673 $EGREP "draft5" >/dev/null 2>&1; then
15674 ol_cv_pthread_version=5
15676 ol_cv_pthread_version=4
15687 rm -f conftest.$ac_objext conftest.$ac_ext
15690 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
15691 echo "${ECHO_T}$ol_cv_pthread_version" >&6
15694 if test $ol_cv_pthread_version != 0 ; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_PTHREADS $ol_cv_pthread_version
15701 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
15702 echo "$as_me: error: unknown pthread version" >&2;}
15703 { (exit 1); exit 1; }; }
15706 # consider threads found
15707 ol_with_threads=found
15710 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
15711 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
15712 if test "${ol_cv_header_linux_threads+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.$ac_ext <<_ACEOF
15716 #line $LINENO "configure"
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #include <pthread.h>
15724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15725 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15726 ol_cv_header_linux_threads=yes
15728 ol_cv_header_linux_threads=no
15734 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
15735 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
15736 if test $ol_cv_header_linux_threads = yes; then
15738 cat >>confdefs.h <<\_ACEOF
15739 #define HAVE_LINUX_THREADS 1
15745 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
15746 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
15747 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 cat >conftest.$ac_ext <<_ACEOF
15751 #line $LINENO "configure"
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 #include <pthread.h>
15758 #ifdef _POSIX_THREAD_IS_GNU_PTH
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
15765 ol_cv_header_gnu_pth_pthread_h=yes
15767 ol_cv_header_gnu_pth_pthread_h=no
15773 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
15774 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
15777 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
15779 for ac_header in sched.h
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15783 echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15791 # Is the header compilable?
15792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15794 cat >conftest.$ac_ext <<_ACEOF
15795 #line $LINENO "configure"
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 $ac_includes_default
15802 #include <$ac_header>
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -s conftest.$ac_objext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_header_compiler=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_header_compiler=no
15823 rm -f conftest.$ac_objext conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6
15827 # Is the header present?
15828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15830 cat >conftest.$ac_ext <<_ACEOF
15831 #line $LINENO "configure"
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 #include <$ac_header>
15839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15842 grep -v '^ *+' conftest.er1 >conftest.err
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } >/dev/null; then
15847 if test -s conftest.err; then
15848 ac_cpp_err=$ac_c_preproc_warn_flag
15855 if test -z "$ac_cpp_err"; then
15856 ac_header_preproc=yes
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_header_preproc=no
15863 rm -f conftest.err conftest.$ac_ext
15864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15865 echo "${ECHO_T}$ac_header_preproc" >&6
15867 # So? What about this header?
15868 case $ac_header_compiler:$ac_header_preproc in
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876 ## ------------------------------------ ##
15877 ## Report this to bug-autoconf@gnu.org. ##
15878 ## ------------------------------------ ##
15881 sed "s/^/$as_me: WARNING: /" >&2
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892 ## ------------------------------------ ##
15893 ## Report this to bug-autoconf@gnu.org. ##
15894 ## ------------------------------------ ##
15897 sed "s/^/$as_me: WARNING: /" >&2
15900 echo "$as_me:$LINENO: checking for $ac_header" >&5
15901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 eval "$as_ac_Header=$ac_header_preproc"
15907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15912 cat >>confdefs.h <<_ACEOF
15913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15923 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
15924 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
15925 if test "${ol_cv_pthread_create+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 if test "$cross_compiling" = yes; then
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line $LINENO "configure"
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 /* pthread test headers */
15938 #include <pthread.h>
15939 #if HAVE_PTHREADS < 7
15943 #define NULL (void*)0
15946 static void *task(p)
15949 return (void *) (p == NULL);
15956 /* pthread test function */
15957 #ifndef PTHREAD_CREATE_DETACHED
15958 #define PTHREAD_CREATE_DETACHED 1
15962 int detach = PTHREAD_CREATE_DETACHED;
15964 #if HAVE_PTHREADS > 4
15965 /* Final pthreads */
15966 pthread_attr_t attr;
15968 status = pthread_attr_init(&attr);
15969 if( status ) return status;
15971 #if HAVE_PTHREADS < 7
15972 status = pthread_attr_setdetachstate(&attr, &detach);
15973 if( status < 0 ) status = errno;
15975 status = pthread_attr_setdetachstate(&attr, detach);
15977 if( status ) return status;
15978 status = pthread_create( &t, &attr, task, NULL );
15979 #if HAVE_PTHREADS < 7
15980 if( status < 0 ) status = errno;
15982 if( status ) return status;
15984 /* Draft 4 pthreads */
15985 status = pthread_create( &t, pthread_attr_default, task, NULL );
15986 if( status ) return errno;
15988 /* give thread a chance to complete */
15989 /* it should remain joinable and hence detachable */
15992 status = pthread_detach( &t );
15993 if( status ) return errno;
15996 #ifdef HAVE_LINUX_THREADS
15997 pthread_kill_other_threads_np();
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008 (eval $ac_link) 2>&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -s conftest$ac_exeext'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ol_cv_pthread_create=yes
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ol_cv_pthread_create=no
16025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16027 cat >conftest.$ac_ext <<_ACEOF
16028 #line $LINENO "configure"
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 /* pthread test headers */
16035 #include <pthread.h>
16036 #if HAVE_PTHREADS < 7
16040 #define NULL (void*)0
16043 static void *task(p)
16046 return (void *) (p == NULL);
16050 int main(argc, argv)
16055 /* pthread test function */
16056 #ifndef PTHREAD_CREATE_DETACHED
16057 #define PTHREAD_CREATE_DETACHED 1
16061 int detach = PTHREAD_CREATE_DETACHED;
16063 #if HAVE_PTHREADS > 4
16064 /* Final pthreads */
16065 pthread_attr_t attr;
16067 status = pthread_attr_init(&attr);
16068 if( status ) return status;
16070 #if HAVE_PTHREADS < 7
16071 status = pthread_attr_setdetachstate(&attr, &detach);
16072 if( status < 0 ) status = errno;
16074 status = pthread_attr_setdetachstate(&attr, detach);
16076 if( status ) return status;
16077 status = pthread_create( &t, &attr, task, NULL );
16078 #if HAVE_PTHREADS < 7
16079 if( status < 0 ) status = errno;
16081 if( status ) return status;
16083 /* Draft 4 pthreads */
16084 status = pthread_create( &t, pthread_attr_default, task, NULL );
16085 if( status ) return errno;
16087 /* give thread a chance to complete */
16088 /* it should remain joinable and hence detachable */
16091 status = pthread_detach( &t );
16092 if( status ) return errno;
16095 #ifdef HAVE_LINUX_THREADS
16096 pthread_kill_other_threads_np();
16104 rm -f conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ol_cv_pthread_create=yes
16117 echo "$as_me: program exited with status $ac_status" >&5
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ( exit $ac_status )
16122 ol_cv_pthread_create=no
16124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16127 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
16128 echo "${ECHO_T}$ol_cv_pthread_create" >&6
16130 if test $ol_cv_pthread_create != no ; then
16131 ol_link_threads=posix
16132 ol_link_pthreads=""
16135 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16136 if test "$ol_link_threads" = no ; then
16138 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
16139 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
16140 if test "${ol_cv_pthread_kthread+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 LIBS="-kthread $LIBS"
16148 if test "$cross_compiling" = yes; then
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line $LINENO "configure"
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 /* pthread test headers */
16157 #include <pthread.h>
16158 #if HAVE_PTHREADS < 7
16162 #define NULL (void*)0
16165 static void *task(p)
16168 return (void *) (p == NULL);
16175 /* pthread test function */
16176 #ifndef PTHREAD_CREATE_DETACHED
16177 #define PTHREAD_CREATE_DETACHED 1
16181 int detach = PTHREAD_CREATE_DETACHED;
16183 #if HAVE_PTHREADS > 4
16184 /* Final pthreads */
16185 pthread_attr_t attr;
16187 status = pthread_attr_init(&attr);
16188 if( status ) return status;
16190 #if HAVE_PTHREADS < 7
16191 status = pthread_attr_setdetachstate(&attr, &detach);
16192 if( status < 0 ) status = errno;
16194 status = pthread_attr_setdetachstate(&attr, detach);
16196 if( status ) return status;
16197 status = pthread_create( &t, &attr, task, NULL );
16198 #if HAVE_PTHREADS < 7
16199 if( status < 0 ) status = errno;
16201 if( status ) return status;
16203 /* Draft 4 pthreads */
16204 status = pthread_create( &t, pthread_attr_default, task, NULL );
16205 if( status ) return errno;
16207 /* give thread a chance to complete */
16208 /* it should remain joinable and hence detachable */
16211 status = pthread_detach( &t );
16212 if( status ) return errno;
16215 #ifdef HAVE_LINUX_THREADS
16216 pthread_kill_other_threads_np();
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16227 (eval $ac_link) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -s conftest$ac_exeext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ol_cv_pthread_kthread=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ol_cv_pthread_kthread=no
16244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 /* pthread test headers */
16254 #include <pthread.h>
16255 #if HAVE_PTHREADS < 7
16259 #define NULL (void*)0
16262 static void *task(p)
16265 return (void *) (p == NULL);
16269 int main(argc, argv)
16274 /* pthread test function */
16275 #ifndef PTHREAD_CREATE_DETACHED
16276 #define PTHREAD_CREATE_DETACHED 1
16280 int detach = PTHREAD_CREATE_DETACHED;
16282 #if HAVE_PTHREADS > 4
16283 /* Final pthreads */
16284 pthread_attr_t attr;
16286 status = pthread_attr_init(&attr);
16287 if( status ) return status;
16289 #if HAVE_PTHREADS < 7
16290 status = pthread_attr_setdetachstate(&attr, &detach);
16291 if( status < 0 ) status = errno;
16293 status = pthread_attr_setdetachstate(&attr, detach);
16295 if( status ) return status;
16296 status = pthread_create( &t, &attr, task, NULL );
16297 #if HAVE_PTHREADS < 7
16298 if( status < 0 ) status = errno;
16300 if( status ) return status;
16302 /* Draft 4 pthreads */
16303 status = pthread_create( &t, pthread_attr_default, task, NULL );
16304 if( status ) return errno;
16306 /* give thread a chance to complete */
16307 /* it should remain joinable and hence detachable */
16310 status = pthread_detach( &t );
16311 if( status ) return errno;
16314 #ifdef HAVE_LINUX_THREADS
16315 pthread_kill_other_threads_np();
16323 rm -f conftest$ac_exeext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16325 (eval $ac_link) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ol_cv_pthread_kthread=yes
16336 echo "$as_me: program exited with status $ac_status" >&5
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ( exit $ac_status )
16341 ol_cv_pthread_kthread=no
16343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16350 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
16351 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
16353 if test $ol_cv_pthread_kthread = yes ; then
16354 ol_link_pthreads="-kthread"
16355 ol_link_threads=posix
16359 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16360 if test "$ol_link_threads" = no ; then
16362 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
16363 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
16364 if test "${ol_cv_pthread_pthread+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 LIBS="-pthread $LIBS"
16372 if test "$cross_compiling" = yes; then
16373 cat >conftest.$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 /* pthread test headers */
16381 #include <pthread.h>
16382 #if HAVE_PTHREADS < 7
16386 #define NULL (void*)0
16389 static void *task(p)
16392 return (void *) (p == NULL);
16399 /* pthread test function */
16400 #ifndef PTHREAD_CREATE_DETACHED
16401 #define PTHREAD_CREATE_DETACHED 1
16405 int detach = PTHREAD_CREATE_DETACHED;
16407 #if HAVE_PTHREADS > 4
16408 /* Final pthreads */
16409 pthread_attr_t attr;
16411 status = pthread_attr_init(&attr);
16412 if( status ) return status;
16414 #if HAVE_PTHREADS < 7
16415 status = pthread_attr_setdetachstate(&attr, &detach);
16416 if( status < 0 ) status = errno;
16418 status = pthread_attr_setdetachstate(&attr, detach);
16420 if( status ) return status;
16421 status = pthread_create( &t, &attr, task, NULL );
16422 #if HAVE_PTHREADS < 7
16423 if( status < 0 ) status = errno;
16425 if( status ) return status;
16427 /* Draft 4 pthreads */
16428 status = pthread_create( &t, pthread_attr_default, task, NULL );
16429 if( status ) return errno;
16431 /* give thread a chance to complete */
16432 /* it should remain joinable and hence detachable */
16435 status = pthread_detach( &t );
16436 if( status ) return errno;
16439 #ifdef HAVE_LINUX_THREADS
16440 pthread_kill_other_threads_np();
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451 (eval $ac_link) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ol_cv_pthread_pthread=yes
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ol_cv_pthread_pthread=no
16468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16470 cat >conftest.$ac_ext <<_ACEOF
16471 #line $LINENO "configure"
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 /* pthread test headers */
16478 #include <pthread.h>
16479 #if HAVE_PTHREADS < 7
16483 #define NULL (void*)0
16486 static void *task(p)
16489 return (void *) (p == NULL);
16493 int main(argc, argv)
16498 /* pthread test function */
16499 #ifndef PTHREAD_CREATE_DETACHED
16500 #define PTHREAD_CREATE_DETACHED 1
16504 int detach = PTHREAD_CREATE_DETACHED;
16506 #if HAVE_PTHREADS > 4
16507 /* Final pthreads */
16508 pthread_attr_t attr;
16510 status = pthread_attr_init(&attr);
16511 if( status ) return status;
16513 #if HAVE_PTHREADS < 7
16514 status = pthread_attr_setdetachstate(&attr, &detach);
16515 if( status < 0 ) status = errno;
16517 status = pthread_attr_setdetachstate(&attr, detach);
16519 if( status ) return status;
16520 status = pthread_create( &t, &attr, task, NULL );
16521 #if HAVE_PTHREADS < 7
16522 if( status < 0 ) status = errno;
16524 if( status ) return status;
16526 /* Draft 4 pthreads */
16527 status = pthread_create( &t, pthread_attr_default, task, NULL );
16528 if( status ) return errno;
16530 /* give thread a chance to complete */
16531 /* it should remain joinable and hence detachable */
16534 status = pthread_detach( &t );
16535 if( status ) return errno;
16538 #ifdef HAVE_LINUX_THREADS
16539 pthread_kill_other_threads_np();
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ol_cv_pthread_pthread=yes
16560 echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ( exit $ac_status )
16565 ol_cv_pthread_pthread=no
16567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
16575 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
16577 if test $ol_cv_pthread_pthread = yes ; then
16578 ol_link_pthreads="-pthread"
16579 ol_link_threads=posix
16583 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16584 if test "$ol_link_threads" = no ; then
16586 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
16587 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
16588 if test "${ol_cv_pthread_pthreads+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 LIBS="-pthreads $LIBS"
16596 if test "$cross_compiling" = yes; then
16597 cat >conftest.$ac_ext <<_ACEOF
16598 #line $LINENO "configure"
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 /* pthread test headers */
16605 #include <pthread.h>
16606 #if HAVE_PTHREADS < 7
16610 #define NULL (void*)0
16613 static void *task(p)
16616 return (void *) (p == NULL);
16623 /* pthread test function */
16624 #ifndef PTHREAD_CREATE_DETACHED
16625 #define PTHREAD_CREATE_DETACHED 1
16629 int detach = PTHREAD_CREATE_DETACHED;
16631 #if HAVE_PTHREADS > 4
16632 /* Final pthreads */
16633 pthread_attr_t attr;
16635 status = pthread_attr_init(&attr);
16636 if( status ) return status;
16638 #if HAVE_PTHREADS < 7
16639 status = pthread_attr_setdetachstate(&attr, &detach);
16640 if( status < 0 ) status = errno;
16642 status = pthread_attr_setdetachstate(&attr, detach);
16644 if( status ) return status;
16645 status = pthread_create( &t, &attr, task, NULL );
16646 #if HAVE_PTHREADS < 7
16647 if( status < 0 ) status = errno;
16649 if( status ) return status;
16651 /* Draft 4 pthreads */
16652 status = pthread_create( &t, pthread_attr_default, task, NULL );
16653 if( status ) return errno;
16655 /* give thread a chance to complete */
16656 /* it should remain joinable and hence detachable */
16659 status = pthread_detach( &t );
16660 if( status ) return errno;
16663 #ifdef HAVE_LINUX_THREADS
16664 pthread_kill_other_threads_np();
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675 (eval $ac_link) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -s conftest$ac_exeext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ol_cv_pthread_pthreads=yes
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ol_cv_pthread_pthreads=no
16692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16694 cat >conftest.$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* pthread test headers */
16702 #include <pthread.h>
16703 #if HAVE_PTHREADS < 7
16707 #define NULL (void*)0
16710 static void *task(p)
16713 return (void *) (p == NULL);
16717 int main(argc, argv)
16722 /* pthread test function */
16723 #ifndef PTHREAD_CREATE_DETACHED
16724 #define PTHREAD_CREATE_DETACHED 1
16728 int detach = PTHREAD_CREATE_DETACHED;
16730 #if HAVE_PTHREADS > 4
16731 /* Final pthreads */
16732 pthread_attr_t attr;
16734 status = pthread_attr_init(&attr);
16735 if( status ) return status;
16737 #if HAVE_PTHREADS < 7
16738 status = pthread_attr_setdetachstate(&attr, &detach);
16739 if( status < 0 ) status = errno;
16741 status = pthread_attr_setdetachstate(&attr, detach);
16743 if( status ) return status;
16744 status = pthread_create( &t, &attr, task, NULL );
16745 #if HAVE_PTHREADS < 7
16746 if( status < 0 ) status = errno;
16748 if( status ) return status;
16750 /* Draft 4 pthreads */
16751 status = pthread_create( &t, pthread_attr_default, task, NULL );
16752 if( status ) return errno;
16754 /* give thread a chance to complete */
16755 /* it should remain joinable and hence detachable */
16758 status = pthread_detach( &t );
16759 if( status ) return errno;
16762 #ifdef HAVE_LINUX_THREADS
16763 pthread_kill_other_threads_np();
16771 rm -f conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773 (eval $ac_link) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 ol_cv_pthread_pthreads=yes
16784 echo "$as_me: program exited with status $ac_status" >&5
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ( exit $ac_status )
16789 ol_cv_pthread_pthreads=no
16791 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
16799 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
16801 if test $ol_cv_pthread_pthreads = yes ; then
16802 ol_link_pthreads="-pthreads"
16803 ol_link_threads=posix
16807 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16808 if test "$ol_link_threads" = no ; then
16810 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
16811 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
16812 if test "${ol_cv_pthread_mthreads+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 LIBS="-mthreads $LIBS"
16820 if test "$cross_compiling" = yes; then
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16828 /* pthread test headers */
16829 #include <pthread.h>
16830 #if HAVE_PTHREADS < 7
16834 #define NULL (void*)0
16837 static void *task(p)
16840 return (void *) (p == NULL);
16847 /* pthread test function */
16848 #ifndef PTHREAD_CREATE_DETACHED
16849 #define PTHREAD_CREATE_DETACHED 1
16853 int detach = PTHREAD_CREATE_DETACHED;
16855 #if HAVE_PTHREADS > 4
16856 /* Final pthreads */
16857 pthread_attr_t attr;
16859 status = pthread_attr_init(&attr);
16860 if( status ) return status;
16862 #if HAVE_PTHREADS < 7
16863 status = pthread_attr_setdetachstate(&attr, &detach);
16864 if( status < 0 ) status = errno;
16866 status = pthread_attr_setdetachstate(&attr, detach);
16868 if( status ) return status;
16869 status = pthread_create( &t, &attr, task, NULL );
16870 #if HAVE_PTHREADS < 7
16871 if( status < 0 ) status = errno;
16873 if( status ) return status;
16875 /* Draft 4 pthreads */
16876 status = pthread_create( &t, pthread_attr_default, task, NULL );
16877 if( status ) return errno;
16879 /* give thread a chance to complete */
16880 /* it should remain joinable and hence detachable */
16883 status = pthread_detach( &t );
16884 if( status ) return errno;
16887 #ifdef HAVE_LINUX_THREADS
16888 pthread_kill_other_threads_np();
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -s conftest$ac_exeext'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ol_cv_pthread_mthreads=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ol_cv_pthread_mthreads=no
16916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16918 cat >conftest.$ac_ext <<_ACEOF
16919 #line $LINENO "configure"
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 /* pthread test headers */
16926 #include <pthread.h>
16927 #if HAVE_PTHREADS < 7
16931 #define NULL (void*)0
16934 static void *task(p)
16937 return (void *) (p == NULL);
16941 int main(argc, argv)
16946 /* pthread test function */
16947 #ifndef PTHREAD_CREATE_DETACHED
16948 #define PTHREAD_CREATE_DETACHED 1
16952 int detach = PTHREAD_CREATE_DETACHED;
16954 #if HAVE_PTHREADS > 4
16955 /* Final pthreads */
16956 pthread_attr_t attr;
16958 status = pthread_attr_init(&attr);
16959 if( status ) return status;
16961 #if HAVE_PTHREADS < 7
16962 status = pthread_attr_setdetachstate(&attr, &detach);
16963 if( status < 0 ) status = errno;
16965 status = pthread_attr_setdetachstate(&attr, detach);
16967 if( status ) return status;
16968 status = pthread_create( &t, &attr, task, NULL );
16969 #if HAVE_PTHREADS < 7
16970 if( status < 0 ) status = errno;
16972 if( status ) return status;
16974 /* Draft 4 pthreads */
16975 status = pthread_create( &t, pthread_attr_default, task, NULL );
16976 if( status ) return errno;
16978 /* give thread a chance to complete */
16979 /* it should remain joinable and hence detachable */
16982 status = pthread_detach( &t );
16983 if( status ) return errno;
16986 #ifdef HAVE_LINUX_THREADS
16987 pthread_kill_other_threads_np();
16995 rm -f conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ol_cv_pthread_mthreads=yes
17008 echo "$as_me: program exited with status $ac_status" >&5
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ( exit $ac_status )
17013 ol_cv_pthread_mthreads=no
17015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17022 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
17023 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
17025 if test $ol_cv_pthread_mthreads = yes ; then
17026 ol_link_pthreads="-mthreads"
17027 ol_link_threads=posix
17031 # Pthread try link: -thread (ol_cv_pthread_thread)
17032 if test "$ol_link_threads" = no ; then
17034 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
17035 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
17036 if test "${ol_cv_pthread_thread+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 LIBS="-thread $LIBS"
17044 if test "$cross_compiling" = yes; then
17045 cat >conftest.$ac_ext <<_ACEOF
17046 #line $LINENO "configure"
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 /* pthread test headers */
17053 #include <pthread.h>
17054 #if HAVE_PTHREADS < 7
17058 #define NULL (void*)0
17061 static void *task(p)
17064 return (void *) (p == NULL);
17071 /* pthread test function */
17072 #ifndef PTHREAD_CREATE_DETACHED
17073 #define PTHREAD_CREATE_DETACHED 1
17077 int detach = PTHREAD_CREATE_DETACHED;
17079 #if HAVE_PTHREADS > 4
17080 /* Final pthreads */
17081 pthread_attr_t attr;
17083 status = pthread_attr_init(&attr);
17084 if( status ) return status;
17086 #if HAVE_PTHREADS < 7
17087 status = pthread_attr_setdetachstate(&attr, &detach);
17088 if( status < 0 ) status = errno;
17090 status = pthread_attr_setdetachstate(&attr, detach);
17092 if( status ) return status;
17093 status = pthread_create( &t, &attr, task, NULL );
17094 #if HAVE_PTHREADS < 7
17095 if( status < 0 ) status = errno;
17097 if( status ) return status;
17099 /* Draft 4 pthreads */
17100 status = pthread_create( &t, pthread_attr_default, task, NULL );
17101 if( status ) return errno;
17103 /* give thread a chance to complete */
17104 /* it should remain joinable and hence detachable */
17107 status = pthread_detach( &t );
17108 if( status ) return errno;
17111 #ifdef HAVE_LINUX_THREADS
17112 pthread_kill_other_threads_np();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -s conftest$ac_exeext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ol_cv_pthread_thread=yes
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ol_cv_pthread_thread=no
17140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17142 cat >conftest.$ac_ext <<_ACEOF
17143 #line $LINENO "configure"
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* pthread test headers */
17150 #include <pthread.h>
17151 #if HAVE_PTHREADS < 7
17155 #define NULL (void*)0
17158 static void *task(p)
17161 return (void *) (p == NULL);
17165 int main(argc, argv)
17170 /* pthread test function */
17171 #ifndef PTHREAD_CREATE_DETACHED
17172 #define PTHREAD_CREATE_DETACHED 1
17176 int detach = PTHREAD_CREATE_DETACHED;
17178 #if HAVE_PTHREADS > 4
17179 /* Final pthreads */
17180 pthread_attr_t attr;
17182 status = pthread_attr_init(&attr);
17183 if( status ) return status;
17185 #if HAVE_PTHREADS < 7
17186 status = pthread_attr_setdetachstate(&attr, &detach);
17187 if( status < 0 ) status = errno;
17189 status = pthread_attr_setdetachstate(&attr, detach);
17191 if( status ) return status;
17192 status = pthread_create( &t, &attr, task, NULL );
17193 #if HAVE_PTHREADS < 7
17194 if( status < 0 ) status = errno;
17196 if( status ) return status;
17198 /* Draft 4 pthreads */
17199 status = pthread_create( &t, pthread_attr_default, task, NULL );
17200 if( status ) return errno;
17202 /* give thread a chance to complete */
17203 /* it should remain joinable and hence detachable */
17206 status = pthread_detach( &t );
17207 if( status ) return errno;
17210 #ifdef HAVE_LINUX_THREADS
17211 pthread_kill_other_threads_np();
17219 rm -f conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ol_cv_pthread_thread=yes
17232 echo "$as_me: program exited with status $ac_status" >&5
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 ( exit $ac_status )
17237 ol_cv_pthread_thread=no
17239 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
17247 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
17249 if test $ol_cv_pthread_thread = yes ; then
17250 ol_link_pthreads="-thread"
17251 ol_link_threads=posix
17256 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17257 if test "$ol_link_threads" = no ; then
17258 # try -lpthread -lmach -lexc -lc_r
17259 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17260 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
17261 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17269 if test "$cross_compiling" = yes; then
17270 cat >conftest.$ac_ext <<_ACEOF
17271 #line $LINENO "configure"
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 /* pthread test headers */
17278 #include <pthread.h>
17279 #if HAVE_PTHREADS < 7
17283 #define NULL (void*)0
17286 static void *task(p)
17289 return (void *) (p == NULL);
17296 /* pthread test function */
17297 #ifndef PTHREAD_CREATE_DETACHED
17298 #define PTHREAD_CREATE_DETACHED 1
17302 int detach = PTHREAD_CREATE_DETACHED;
17304 #if HAVE_PTHREADS > 4
17305 /* Final pthreads */
17306 pthread_attr_t attr;
17308 status = pthread_attr_init(&attr);
17309 if( status ) return status;
17311 #if HAVE_PTHREADS < 7
17312 status = pthread_attr_setdetachstate(&attr, &detach);
17313 if( status < 0 ) status = errno;
17315 status = pthread_attr_setdetachstate(&attr, detach);
17317 if( status ) return status;
17318 status = pthread_create( &t, &attr, task, NULL );
17319 #if HAVE_PTHREADS < 7
17320 if( status < 0 ) status = errno;
17322 if( status ) return status;
17324 /* Draft 4 pthreads */
17325 status = pthread_create( &t, pthread_attr_default, task, NULL );
17326 if( status ) return errno;
17328 /* give thread a chance to complete */
17329 /* it should remain joinable and hence detachable */
17332 status = pthread_detach( &t );
17333 if( status ) return errno;
17336 #ifdef HAVE_LINUX_THREADS
17337 pthread_kill_other_threads_np();
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348 (eval $ac_link) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* pthread test headers */
17375 #include <pthread.h>
17376 #if HAVE_PTHREADS < 7
17380 #define NULL (void*)0
17383 static void *task(p)
17386 return (void *) (p == NULL);
17390 int main(argc, argv)
17395 /* pthread test function */
17396 #ifndef PTHREAD_CREATE_DETACHED
17397 #define PTHREAD_CREATE_DETACHED 1
17401 int detach = PTHREAD_CREATE_DETACHED;
17403 #if HAVE_PTHREADS > 4
17404 /* Final pthreads */
17405 pthread_attr_t attr;
17407 status = pthread_attr_init(&attr);
17408 if( status ) return status;
17410 #if HAVE_PTHREADS < 7
17411 status = pthread_attr_setdetachstate(&attr, &detach);
17412 if( status < 0 ) status = errno;
17414 status = pthread_attr_setdetachstate(&attr, detach);
17416 if( status ) return status;
17417 status = pthread_create( &t, &attr, task, NULL );
17418 #if HAVE_PTHREADS < 7
17419 if( status < 0 ) status = errno;
17421 if( status ) return status;
17423 /* Draft 4 pthreads */
17424 status = pthread_create( &t, pthread_attr_default, task, NULL );
17425 if( status ) return errno;
17427 /* give thread a chance to complete */
17428 /* it should remain joinable and hence detachable */
17431 status = pthread_detach( &t );
17432 if( status ) return errno;
17435 #ifdef HAVE_LINUX_THREADS
17436 pthread_kill_other_threads_np();
17444 rm -f conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17457 echo "$as_me: program exited with status $ac_status" >&5
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ( exit $ac_status )
17462 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17471 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17472 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
17474 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17475 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17476 ol_link_threads=posix
17480 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17481 if test "$ol_link_threads" = no ; then
17482 # try -lpthread -lmach -lexc
17483 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
17484 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
17485 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 LIBS="-lpthread -lmach -lexc $LIBS"
17493 if test "$cross_compiling" = yes; then
17494 cat >conftest.$ac_ext <<_ACEOF
17495 #line $LINENO "configure"
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 /* pthread test headers */
17502 #include <pthread.h>
17503 #if HAVE_PTHREADS < 7
17507 #define NULL (void*)0
17510 static void *task(p)
17513 return (void *) (p == NULL);
17520 /* pthread test function */
17521 #ifndef PTHREAD_CREATE_DETACHED
17522 #define PTHREAD_CREATE_DETACHED 1
17526 int detach = PTHREAD_CREATE_DETACHED;
17528 #if HAVE_PTHREADS > 4
17529 /* Final pthreads */
17530 pthread_attr_t attr;
17532 status = pthread_attr_init(&attr);
17533 if( status ) return status;
17535 #if HAVE_PTHREADS < 7
17536 status = pthread_attr_setdetachstate(&attr, &detach);
17537 if( status < 0 ) status = errno;
17539 status = pthread_attr_setdetachstate(&attr, detach);
17541 if( status ) return status;
17542 status = pthread_create( &t, &attr, task, NULL );
17543 #if HAVE_PTHREADS < 7
17544 if( status < 0 ) status = errno;
17546 if( status ) return status;
17548 /* Draft 4 pthreads */
17549 status = pthread_create( &t, pthread_attr_default, task, NULL );
17550 if( status ) return errno;
17552 /* give thread a chance to complete */
17553 /* it should remain joinable and hence detachable */
17556 status = pthread_detach( &t );
17557 if( status ) return errno;
17560 #ifdef HAVE_LINUX_THREADS
17561 pthread_kill_other_threads_np();
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ol_cv_pthread_lpthread_lmach_lexc=yes
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 ol_cv_pthread_lpthread_lmach_lexc=no
17589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17591 cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 /* pthread test headers */
17599 #include <pthread.h>
17600 #if HAVE_PTHREADS < 7
17604 #define NULL (void*)0
17607 static void *task(p)
17610 return (void *) (p == NULL);
17614 int main(argc, argv)
17619 /* pthread test function */
17620 #ifndef PTHREAD_CREATE_DETACHED
17621 #define PTHREAD_CREATE_DETACHED 1
17625 int detach = PTHREAD_CREATE_DETACHED;
17627 #if HAVE_PTHREADS > 4
17628 /* Final pthreads */
17629 pthread_attr_t attr;
17631 status = pthread_attr_init(&attr);
17632 if( status ) return status;
17634 #if HAVE_PTHREADS < 7
17635 status = pthread_attr_setdetachstate(&attr, &detach);
17636 if( status < 0 ) status = errno;
17638 status = pthread_attr_setdetachstate(&attr, detach);
17640 if( status ) return status;
17641 status = pthread_create( &t, &attr, task, NULL );
17642 #if HAVE_PTHREADS < 7
17643 if( status < 0 ) status = errno;
17645 if( status ) return status;
17647 /* Draft 4 pthreads */
17648 status = pthread_create( &t, pthread_attr_default, task, NULL );
17649 if( status ) return errno;
17651 /* give thread a chance to complete */
17652 /* it should remain joinable and hence detachable */
17655 status = pthread_detach( &t );
17656 if( status ) return errno;
17659 #ifdef HAVE_LINUX_THREADS
17660 pthread_kill_other_threads_np();
17668 rm -f conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ol_cv_pthread_lpthread_lmach_lexc=yes
17681 echo "$as_me: program exited with status $ac_status" >&5
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ( exit $ac_status )
17686 ol_cv_pthread_lpthread_lmach_lexc=no
17688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17695 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17696 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
17698 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17699 ol_link_pthreads="-lpthread -lmach -lexc"
17700 ol_link_threads=posix
17705 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17706 if test "$ol_link_threads" = no ; then
17707 # try -lpthread -Wl,-woff,85
17708 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17709 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
17710 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17718 if test "$cross_compiling" = yes; then
17719 cat >conftest.$ac_ext <<_ACEOF
17720 #line $LINENO "configure"
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* pthread test headers */
17727 #include <pthread.h>
17728 #if HAVE_PTHREADS < 7
17732 #define NULL (void*)0
17735 static void *task(p)
17738 return (void *) (p == NULL);
17745 /* pthread test function */
17746 #ifndef PTHREAD_CREATE_DETACHED
17747 #define PTHREAD_CREATE_DETACHED 1
17751 int detach = PTHREAD_CREATE_DETACHED;
17753 #if HAVE_PTHREADS > 4
17754 /* Final pthreads */
17755 pthread_attr_t attr;
17757 status = pthread_attr_init(&attr);
17758 if( status ) return status;
17760 #if HAVE_PTHREADS < 7
17761 status = pthread_attr_setdetachstate(&attr, &detach);
17762 if( status < 0 ) status = errno;
17764 status = pthread_attr_setdetachstate(&attr, detach);
17766 if( status ) return status;
17767 status = pthread_create( &t, &attr, task, NULL );
17768 #if HAVE_PTHREADS < 7
17769 if( status < 0 ) status = errno;
17771 if( status ) return status;
17773 /* Draft 4 pthreads */
17774 status = pthread_create( &t, pthread_attr_default, task, NULL );
17775 if( status ) return errno;
17777 /* give thread a chance to complete */
17778 /* it should remain joinable and hence detachable */
17781 status = pthread_detach( &t );
17782 if( status ) return errno;
17785 #ifdef HAVE_LINUX_THREADS
17786 pthread_kill_other_threads_np();
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try='test -s conftest$ac_exeext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ol_cv_pthread_lib_lpthread_woff=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ol_cv_pthread_lib_lpthread_woff=no
17814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17816 cat >conftest.$ac_ext <<_ACEOF
17817 #line $LINENO "configure"
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 /* pthread test headers */
17824 #include <pthread.h>
17825 #if HAVE_PTHREADS < 7
17829 #define NULL (void*)0
17832 static void *task(p)
17835 return (void *) (p == NULL);
17839 int main(argc, argv)
17844 /* pthread test function */
17845 #ifndef PTHREAD_CREATE_DETACHED
17846 #define PTHREAD_CREATE_DETACHED 1
17850 int detach = PTHREAD_CREATE_DETACHED;
17852 #if HAVE_PTHREADS > 4
17853 /* Final pthreads */
17854 pthread_attr_t attr;
17856 status = pthread_attr_init(&attr);
17857 if( status ) return status;
17859 #if HAVE_PTHREADS < 7
17860 status = pthread_attr_setdetachstate(&attr, &detach);
17861 if( status < 0 ) status = errno;
17863 status = pthread_attr_setdetachstate(&attr, detach);
17865 if( status ) return status;
17866 status = pthread_create( &t, &attr, task, NULL );
17867 #if HAVE_PTHREADS < 7
17868 if( status < 0 ) status = errno;
17870 if( status ) return status;
17872 /* Draft 4 pthreads */
17873 status = pthread_create( &t, pthread_attr_default, task, NULL );
17874 if( status ) return errno;
17876 /* give thread a chance to complete */
17877 /* it should remain joinable and hence detachable */
17880 status = pthread_detach( &t );
17881 if( status ) return errno;
17884 #ifdef HAVE_LINUX_THREADS
17885 pthread_kill_other_threads_np();
17893 rm -f conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895 (eval $ac_link) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ol_cv_pthread_lib_lpthread_woff=yes
17906 echo "$as_me: program exited with status $ac_status" >&5
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 ( exit $ac_status )
17911 ol_cv_pthread_lib_lpthread_woff=no
17913 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17920 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17921 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
17923 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17924 ol_link_pthreads="-lpthread -Wl,-woff,85"
17925 ol_link_threads=posix
17930 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17931 if test "$ol_link_threads" = no ; then
17933 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
17934 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
17935 if test "${ol_cv_pthread_lpthread+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 LIBS="-lpthread $LIBS"
17943 if test "$cross_compiling" = yes; then
17944 cat >conftest.$ac_ext <<_ACEOF
17945 #line $LINENO "configure"
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17951 /* pthread test headers */
17952 #include <pthread.h>
17953 #if HAVE_PTHREADS < 7
17957 #define NULL (void*)0
17960 static void *task(p)
17963 return (void *) (p == NULL);
17970 /* pthread test function */
17971 #ifndef PTHREAD_CREATE_DETACHED
17972 #define PTHREAD_CREATE_DETACHED 1
17976 int detach = PTHREAD_CREATE_DETACHED;
17978 #if HAVE_PTHREADS > 4
17979 /* Final pthreads */
17980 pthread_attr_t attr;
17982 status = pthread_attr_init(&attr);
17983 if( status ) return status;
17985 #if HAVE_PTHREADS < 7
17986 status = pthread_attr_setdetachstate(&attr, &detach);
17987 if( status < 0 ) status = errno;
17989 status = pthread_attr_setdetachstate(&attr, detach);
17991 if( status ) return status;
17992 status = pthread_create( &t, &attr, task, NULL );
17993 #if HAVE_PTHREADS < 7
17994 if( status < 0 ) status = errno;
17996 if( status ) return status;
17998 /* Draft 4 pthreads */
17999 status = pthread_create( &t, pthread_attr_default, task, NULL );
18000 if( status ) return errno;
18002 /* give thread a chance to complete */
18003 /* it should remain joinable and hence detachable */
18006 status = pthread_detach( &t );
18007 if( status ) return errno;
18010 #ifdef HAVE_LINUX_THREADS
18011 pthread_kill_other_threads_np();
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ol_cv_pthread_lpthread=yes
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ol_cv_pthread_lpthread=no
18039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* pthread test headers */
18049 #include <pthread.h>
18050 #if HAVE_PTHREADS < 7
18054 #define NULL (void*)0
18057 static void *task(p)
18060 return (void *) (p == NULL);
18064 int main(argc, argv)
18069 /* pthread test function */
18070 #ifndef PTHREAD_CREATE_DETACHED
18071 #define PTHREAD_CREATE_DETACHED 1
18075 int detach = PTHREAD_CREATE_DETACHED;
18077 #if HAVE_PTHREADS > 4
18078 /* Final pthreads */
18079 pthread_attr_t attr;
18081 status = pthread_attr_init(&attr);
18082 if( status ) return status;
18084 #if HAVE_PTHREADS < 7
18085 status = pthread_attr_setdetachstate(&attr, &detach);
18086 if( status < 0 ) status = errno;
18088 status = pthread_attr_setdetachstate(&attr, detach);
18090 if( status ) return status;
18091 status = pthread_create( &t, &attr, task, NULL );
18092 #if HAVE_PTHREADS < 7
18093 if( status < 0 ) status = errno;
18095 if( status ) return status;
18097 /* Draft 4 pthreads */
18098 status = pthread_create( &t, pthread_attr_default, task, NULL );
18099 if( status ) return errno;
18101 /* give thread a chance to complete */
18102 /* it should remain joinable and hence detachable */
18105 status = pthread_detach( &t );
18106 if( status ) return errno;
18109 #ifdef HAVE_LINUX_THREADS
18110 pthread_kill_other_threads_np();
18118 rm -f conftest$ac_exeext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18120 (eval $ac_link) 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ol_cv_pthread_lpthread=yes
18131 echo "$as_me: program exited with status $ac_status" >&5
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ( exit $ac_status )
18136 ol_cv_pthread_lpthread=no
18138 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18145 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
18146 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
18148 if test $ol_cv_pthread_lpthread = yes ; then
18149 ol_link_pthreads="-lpthread"
18150 ol_link_threads=posix
18154 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
18155 if test "$ol_link_threads" = no ; then
18157 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
18158 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
18159 if test "${ol_cv_pthread_lc_r+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 if test "$cross_compiling" = yes; then
18168 cat >conftest.$ac_ext <<_ACEOF
18169 #line $LINENO "configure"
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* pthread test headers */
18176 #include <pthread.h>
18177 #if HAVE_PTHREADS < 7
18181 #define NULL (void*)0
18184 static void *task(p)
18187 return (void *) (p == NULL);
18194 /* pthread test function */
18195 #ifndef PTHREAD_CREATE_DETACHED
18196 #define PTHREAD_CREATE_DETACHED 1
18200 int detach = PTHREAD_CREATE_DETACHED;
18202 #if HAVE_PTHREADS > 4
18203 /* Final pthreads */
18204 pthread_attr_t attr;
18206 status = pthread_attr_init(&attr);
18207 if( status ) return status;
18209 #if HAVE_PTHREADS < 7
18210 status = pthread_attr_setdetachstate(&attr, &detach);
18211 if( status < 0 ) status = errno;
18213 status = pthread_attr_setdetachstate(&attr, detach);
18215 if( status ) return status;
18216 status = pthread_create( &t, &attr, task, NULL );
18217 #if HAVE_PTHREADS < 7
18218 if( status < 0 ) status = errno;
18220 if( status ) return status;
18222 /* Draft 4 pthreads */
18223 status = pthread_create( &t, pthread_attr_default, task, NULL );
18224 if( status ) return errno;
18226 /* give thread a chance to complete */
18227 /* it should remain joinable and hence detachable */
18230 status = pthread_detach( &t );
18231 if( status ) return errno;
18234 #ifdef HAVE_LINUX_THREADS
18235 pthread_kill_other_threads_np();
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18246 (eval $ac_link) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ol_cv_pthread_lc_r=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ol_cv_pthread_lc_r=no
18263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18265 cat >conftest.$ac_ext <<_ACEOF
18266 #line $LINENO "configure"
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* pthread test headers */
18273 #include <pthread.h>
18274 #if HAVE_PTHREADS < 7
18278 #define NULL (void*)0
18281 static void *task(p)
18284 return (void *) (p == NULL);
18288 int main(argc, argv)
18293 /* pthread test function */
18294 #ifndef PTHREAD_CREATE_DETACHED
18295 #define PTHREAD_CREATE_DETACHED 1
18299 int detach = PTHREAD_CREATE_DETACHED;
18301 #if HAVE_PTHREADS > 4
18302 /* Final pthreads */
18303 pthread_attr_t attr;
18305 status = pthread_attr_init(&attr);
18306 if( status ) return status;
18308 #if HAVE_PTHREADS < 7
18309 status = pthread_attr_setdetachstate(&attr, &detach);
18310 if( status < 0 ) status = errno;
18312 status = pthread_attr_setdetachstate(&attr, detach);
18314 if( status ) return status;
18315 status = pthread_create( &t, &attr, task, NULL );
18316 #if HAVE_PTHREADS < 7
18317 if( status < 0 ) status = errno;
18319 if( status ) return status;
18321 /* Draft 4 pthreads */
18322 status = pthread_create( &t, pthread_attr_default, task, NULL );
18323 if( status ) return errno;
18325 /* give thread a chance to complete */
18326 /* it should remain joinable and hence detachable */
18329 status = pthread_detach( &t );
18330 if( status ) return errno;
18333 #ifdef HAVE_LINUX_THREADS
18334 pthread_kill_other_threads_np();
18342 rm -f conftest$ac_exeext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18344 (eval $ac_link) 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ol_cv_pthread_lc_r=yes
18355 echo "$as_me: program exited with status $ac_status" >&5
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 ( exit $ac_status )
18360 ol_cv_pthread_lc_r=no
18362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18369 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
18370 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
18372 if test $ol_cv_pthread_lc_r = yes ; then
18373 ol_link_pthreads="-lc_r"
18374 ol_link_threads=posix
18379 # Pthread try link: -threads (ol_cv_pthread_threads)
18380 if test "$ol_link_threads" = no ; then
18382 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
18383 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
18384 if test "${ol_cv_pthread_threads+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 LIBS="-threads $LIBS"
18392 if test "$cross_compiling" = yes; then
18393 cat >conftest.$ac_ext <<_ACEOF
18394 #line $LINENO "configure"
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 /* pthread test headers */
18401 #include <pthread.h>
18402 #if HAVE_PTHREADS < 7
18406 #define NULL (void*)0
18409 static void *task(p)
18412 return (void *) (p == NULL);
18419 /* pthread test function */
18420 #ifndef PTHREAD_CREATE_DETACHED
18421 #define PTHREAD_CREATE_DETACHED 1
18425 int detach = PTHREAD_CREATE_DETACHED;
18427 #if HAVE_PTHREADS > 4
18428 /* Final pthreads */
18429 pthread_attr_t attr;
18431 status = pthread_attr_init(&attr);
18432 if( status ) return status;
18434 #if HAVE_PTHREADS < 7
18435 status = pthread_attr_setdetachstate(&attr, &detach);
18436 if( status < 0 ) status = errno;
18438 status = pthread_attr_setdetachstate(&attr, detach);
18440 if( status ) return status;
18441 status = pthread_create( &t, &attr, task, NULL );
18442 #if HAVE_PTHREADS < 7
18443 if( status < 0 ) status = errno;
18445 if( status ) return status;
18447 /* Draft 4 pthreads */
18448 status = pthread_create( &t, pthread_attr_default, task, NULL );
18449 if( status ) return errno;
18451 /* give thread a chance to complete */
18452 /* it should remain joinable and hence detachable */
18455 status = pthread_detach( &t );
18456 if( status ) return errno;
18459 #ifdef HAVE_LINUX_THREADS
18460 pthread_kill_other_threads_np();
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471 (eval $ac_link) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -s conftest$ac_exeext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ol_cv_pthread_threads=yes
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 ol_cv_pthread_threads=no
18488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490 cat >conftest.$ac_ext <<_ACEOF
18491 #line $LINENO "configure"
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 /* pthread test headers */
18498 #include <pthread.h>
18499 #if HAVE_PTHREADS < 7
18503 #define NULL (void*)0
18506 static void *task(p)
18509 return (void *) (p == NULL);
18513 int main(argc, argv)
18518 /* pthread test function */
18519 #ifndef PTHREAD_CREATE_DETACHED
18520 #define PTHREAD_CREATE_DETACHED 1
18524 int detach = PTHREAD_CREATE_DETACHED;
18526 #if HAVE_PTHREADS > 4
18527 /* Final pthreads */
18528 pthread_attr_t attr;
18530 status = pthread_attr_init(&attr);
18531 if( status ) return status;
18533 #if HAVE_PTHREADS < 7
18534 status = pthread_attr_setdetachstate(&attr, &detach);
18535 if( status < 0 ) status = errno;
18537 status = pthread_attr_setdetachstate(&attr, detach);
18539 if( status ) return status;
18540 status = pthread_create( &t, &attr, task, NULL );
18541 #if HAVE_PTHREADS < 7
18542 if( status < 0 ) status = errno;
18544 if( status ) return status;
18546 /* Draft 4 pthreads */
18547 status = pthread_create( &t, pthread_attr_default, task, NULL );
18548 if( status ) return errno;
18550 /* give thread a chance to complete */
18551 /* it should remain joinable and hence detachable */
18554 status = pthread_detach( &t );
18555 if( status ) return errno;
18558 #ifdef HAVE_LINUX_THREADS
18559 pthread_kill_other_threads_np();
18567 rm -f conftest$ac_exeext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569 (eval $ac_link) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ol_cv_pthread_threads=yes
18580 echo "$as_me: program exited with status $ac_status" >&5
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 ( exit $ac_status )
18585 ol_cv_pthread_threads=no
18587 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18594 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
18595 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
18597 if test $ol_cv_pthread_threads = yes ; then
18598 ol_link_pthreads="-threads"
18599 ol_link_threads=posix
18604 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18605 if test "$ol_link_threads" = no ; then
18606 # try -lpthreads -lmach -lexc -lc_r
18607 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18608 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
18609 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18617 if test "$cross_compiling" = yes; then
18618 cat >conftest.$ac_ext <<_ACEOF
18619 #line $LINENO "configure"
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 /* pthread test headers */
18626 #include <pthread.h>
18627 #if HAVE_PTHREADS < 7
18631 #define NULL (void*)0
18634 static void *task(p)
18637 return (void *) (p == NULL);
18644 /* pthread test function */
18645 #ifndef PTHREAD_CREATE_DETACHED
18646 #define PTHREAD_CREATE_DETACHED 1
18650 int detach = PTHREAD_CREATE_DETACHED;
18652 #if HAVE_PTHREADS > 4
18653 /* Final pthreads */
18654 pthread_attr_t attr;
18656 status = pthread_attr_init(&attr);
18657 if( status ) return status;
18659 #if HAVE_PTHREADS < 7
18660 status = pthread_attr_setdetachstate(&attr, &detach);
18661 if( status < 0 ) status = errno;
18663 status = pthread_attr_setdetachstate(&attr, detach);
18665 if( status ) return status;
18666 status = pthread_create( &t, &attr, task, NULL );
18667 #if HAVE_PTHREADS < 7
18668 if( status < 0 ) status = errno;
18670 if( status ) return status;
18672 /* Draft 4 pthreads */
18673 status = pthread_create( &t, pthread_attr_default, task, NULL );
18674 if( status ) return errno;
18676 /* give thread a chance to complete */
18677 /* it should remain joinable and hence detachable */
18680 status = pthread_detach( &t );
18681 if( status ) return errno;
18684 #ifdef HAVE_LINUX_THREADS
18685 pthread_kill_other_threads_np();
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18696 (eval $ac_link) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18715 cat >conftest.$ac_ext <<_ACEOF
18716 #line $LINENO "configure"
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 /* pthread test headers */
18723 #include <pthread.h>
18724 #if HAVE_PTHREADS < 7
18728 #define NULL (void*)0
18731 static void *task(p)
18734 return (void *) (p == NULL);
18738 int main(argc, argv)
18743 /* pthread test function */
18744 #ifndef PTHREAD_CREATE_DETACHED
18745 #define PTHREAD_CREATE_DETACHED 1
18749 int detach = PTHREAD_CREATE_DETACHED;
18751 #if HAVE_PTHREADS > 4
18752 /* Final pthreads */
18753 pthread_attr_t attr;
18755 status = pthread_attr_init(&attr);
18756 if( status ) return status;
18758 #if HAVE_PTHREADS < 7
18759 status = pthread_attr_setdetachstate(&attr, &detach);
18760 if( status < 0 ) status = errno;
18762 status = pthread_attr_setdetachstate(&attr, detach);
18764 if( status ) return status;
18765 status = pthread_create( &t, &attr, task, NULL );
18766 #if HAVE_PTHREADS < 7
18767 if( status < 0 ) status = errno;
18769 if( status ) return status;
18771 /* Draft 4 pthreads */
18772 status = pthread_create( &t, pthread_attr_default, task, NULL );
18773 if( status ) return errno;
18775 /* give thread a chance to complete */
18776 /* it should remain joinable and hence detachable */
18779 status = pthread_detach( &t );
18780 if( status ) return errno;
18783 #ifdef HAVE_LINUX_THREADS
18784 pthread_kill_other_threads_np();
18792 rm -f conftest$ac_exeext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18794 (eval $ac_link) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18805 echo "$as_me: program exited with status $ac_status" >&5
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ( exit $ac_status )
18810 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18812 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18819 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18820 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
18822 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18823 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18824 ol_link_threads=posix
18828 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18829 if test "$ol_link_threads" = no ; then
18830 # try -lpthreads -lmach -lexc
18831 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
18832 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
18833 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 LIBS="-lpthreads -lmach -lexc $LIBS"
18841 if test "$cross_compiling" = yes; then
18842 cat >conftest.$ac_ext <<_ACEOF
18843 #line $LINENO "configure"
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 /* pthread test headers */
18850 #include <pthread.h>
18851 #if HAVE_PTHREADS < 7
18855 #define NULL (void*)0
18858 static void *task(p)
18861 return (void *) (p == NULL);
18868 /* pthread test function */
18869 #ifndef PTHREAD_CREATE_DETACHED
18870 #define PTHREAD_CREATE_DETACHED 1
18874 int detach = PTHREAD_CREATE_DETACHED;
18876 #if HAVE_PTHREADS > 4
18877 /* Final pthreads */
18878 pthread_attr_t attr;
18880 status = pthread_attr_init(&attr);
18881 if( status ) return status;
18883 #if HAVE_PTHREADS < 7
18884 status = pthread_attr_setdetachstate(&attr, &detach);
18885 if( status < 0 ) status = errno;
18887 status = pthread_attr_setdetachstate(&attr, detach);
18889 if( status ) return status;
18890 status = pthread_create( &t, &attr, task, NULL );
18891 #if HAVE_PTHREADS < 7
18892 if( status < 0 ) status = errno;
18894 if( status ) return status;
18896 /* Draft 4 pthreads */
18897 status = pthread_create( &t, pthread_attr_default, task, NULL );
18898 if( status ) return errno;
18900 /* give thread a chance to complete */
18901 /* it should remain joinable and hence detachable */
18904 status = pthread_detach( &t );
18905 if( status ) return errno;
18908 #ifdef HAVE_LINUX_THREADS
18909 pthread_kill_other_threads_np();
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18920 (eval $ac_link) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ol_cv_pthread_lpthreads_lmach_lexc=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ol_cv_pthread_lpthreads_lmach_lexc=no
18937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18939 cat >conftest.$ac_ext <<_ACEOF
18940 #line $LINENO "configure"
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 /* pthread test headers */
18947 #include <pthread.h>
18948 #if HAVE_PTHREADS < 7
18952 #define NULL (void*)0
18955 static void *task(p)
18958 return (void *) (p == NULL);
18962 int main(argc, argv)
18967 /* pthread test function */
18968 #ifndef PTHREAD_CREATE_DETACHED
18969 #define PTHREAD_CREATE_DETACHED 1
18973 int detach = PTHREAD_CREATE_DETACHED;
18975 #if HAVE_PTHREADS > 4
18976 /* Final pthreads */
18977 pthread_attr_t attr;
18979 status = pthread_attr_init(&attr);
18980 if( status ) return status;
18982 #if HAVE_PTHREADS < 7
18983 status = pthread_attr_setdetachstate(&attr, &detach);
18984 if( status < 0 ) status = errno;
18986 status = pthread_attr_setdetachstate(&attr, detach);
18988 if( status ) return status;
18989 status = pthread_create( &t, &attr, task, NULL );
18990 #if HAVE_PTHREADS < 7
18991 if( status < 0 ) status = errno;
18993 if( status ) return status;
18995 /* Draft 4 pthreads */
18996 status = pthread_create( &t, pthread_attr_default, task, NULL );
18997 if( status ) return errno;
18999 /* give thread a chance to complete */
19000 /* it should remain joinable and hence detachable */
19003 status = pthread_detach( &t );
19004 if( status ) return errno;
19007 #ifdef HAVE_LINUX_THREADS
19008 pthread_kill_other_threads_np();
19016 rm -f conftest$ac_exeext
19017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19018 (eval $ac_link) 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19027 ol_cv_pthread_lpthreads_lmach_lexc=yes
19029 echo "$as_me: program exited with status $ac_status" >&5
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ( exit $ac_status )
19034 ol_cv_pthread_lpthreads_lmach_lexc=no
19036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19043 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
19044 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
19046 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
19047 ol_link_pthreads="-lpthreads -lmach -lexc"
19048 ol_link_threads=posix
19052 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
19053 if test "$ol_link_threads" = no ; then
19054 # try -lpthreads -lexc
19055 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
19056 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
19057 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 LIBS="-lpthreads -lexc $LIBS"
19065 if test "$cross_compiling" = yes; then
19066 cat >conftest.$ac_ext <<_ACEOF
19067 #line $LINENO "configure"
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 /* pthread test headers */
19074 #include <pthread.h>
19075 #if HAVE_PTHREADS < 7
19079 #define NULL (void*)0
19082 static void *task(p)
19085 return (void *) (p == NULL);
19092 /* pthread test function */
19093 #ifndef PTHREAD_CREATE_DETACHED
19094 #define PTHREAD_CREATE_DETACHED 1
19098 int detach = PTHREAD_CREATE_DETACHED;
19100 #if HAVE_PTHREADS > 4
19101 /* Final pthreads */
19102 pthread_attr_t attr;
19104 status = pthread_attr_init(&attr);
19105 if( status ) return status;
19107 #if HAVE_PTHREADS < 7
19108 status = pthread_attr_setdetachstate(&attr, &detach);
19109 if( status < 0 ) status = errno;
19111 status = pthread_attr_setdetachstate(&attr, detach);
19113 if( status ) return status;
19114 status = pthread_create( &t, &attr, task, NULL );
19115 #if HAVE_PTHREADS < 7
19116 if( status < 0 ) status = errno;
19118 if( status ) return status;
19120 /* Draft 4 pthreads */
19121 status = pthread_create( &t, pthread_attr_default, task, NULL );
19122 if( status ) return errno;
19124 /* give thread a chance to complete */
19125 /* it should remain joinable and hence detachable */
19128 status = pthread_detach( &t );
19129 if( status ) return errno;
19132 #ifdef HAVE_LINUX_THREADS
19133 pthread_kill_other_threads_np();
19142 rm -f conftest.$ac_objext conftest$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ol_cv_pthread_lpthreads_lexc=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ol_cv_pthread_lpthreads_lexc=no
19161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19163 cat >conftest.$ac_ext <<_ACEOF
19164 #line $LINENO "configure"
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 /* pthread test headers */
19171 #include <pthread.h>
19172 #if HAVE_PTHREADS < 7
19176 #define NULL (void*)0
19179 static void *task(p)
19182 return (void *) (p == NULL);
19186 int main(argc, argv)
19191 /* pthread test function */
19192 #ifndef PTHREAD_CREATE_DETACHED
19193 #define PTHREAD_CREATE_DETACHED 1
19197 int detach = PTHREAD_CREATE_DETACHED;
19199 #if HAVE_PTHREADS > 4
19200 /* Final pthreads */
19201 pthread_attr_t attr;
19203 status = pthread_attr_init(&attr);
19204 if( status ) return status;
19206 #if HAVE_PTHREADS < 7
19207 status = pthread_attr_setdetachstate(&attr, &detach);
19208 if( status < 0 ) status = errno;
19210 status = pthread_attr_setdetachstate(&attr, detach);
19212 if( status ) return status;
19213 status = pthread_create( &t, &attr, task, NULL );
19214 #if HAVE_PTHREADS < 7
19215 if( status < 0 ) status = errno;
19217 if( status ) return status;
19219 /* Draft 4 pthreads */
19220 status = pthread_create( &t, pthread_attr_default, task, NULL );
19221 if( status ) return errno;
19223 /* give thread a chance to complete */
19224 /* it should remain joinable and hence detachable */
19227 status = pthread_detach( &t );
19228 if( status ) return errno;
19231 #ifdef HAVE_LINUX_THREADS
19232 pthread_kill_other_threads_np();
19240 rm -f conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ol_cv_pthread_lpthreads_lexc=yes
19253 echo "$as_me: program exited with status $ac_status" >&5
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ( exit $ac_status )
19258 ol_cv_pthread_lpthreads_lexc=no
19260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19267 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
19268 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
19270 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
19271 ol_link_pthreads="-lpthreads -lexc"
19272 ol_link_threads=posix
19277 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
19278 if test "$ol_link_threads" = no ; then
19280 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
19281 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
19282 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 LIBS="-lpthreads $LIBS"
19290 if test "$cross_compiling" = yes; then
19291 cat >conftest.$ac_ext <<_ACEOF
19292 #line $LINENO "configure"
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 /* pthread test headers */
19299 #include <pthread.h>
19300 #if HAVE_PTHREADS < 7
19304 #define NULL (void*)0
19307 static void *task(p)
19310 return (void *) (p == NULL);
19317 /* pthread test function */
19318 #ifndef PTHREAD_CREATE_DETACHED
19319 #define PTHREAD_CREATE_DETACHED 1
19323 int detach = PTHREAD_CREATE_DETACHED;
19325 #if HAVE_PTHREADS > 4
19326 /* Final pthreads */
19327 pthread_attr_t attr;
19329 status = pthread_attr_init(&attr);
19330 if( status ) return status;
19332 #if HAVE_PTHREADS < 7
19333 status = pthread_attr_setdetachstate(&attr, &detach);
19334 if( status < 0 ) status = errno;
19336 status = pthread_attr_setdetachstate(&attr, detach);
19338 if( status ) return status;
19339 status = pthread_create( &t, &attr, task, NULL );
19340 #if HAVE_PTHREADS < 7
19341 if( status < 0 ) status = errno;
19343 if( status ) return status;
19345 /* Draft 4 pthreads */
19346 status = pthread_create( &t, pthread_attr_default, task, NULL );
19347 if( status ) return errno;
19349 /* give thread a chance to complete */
19350 /* it should remain joinable and hence detachable */
19353 status = pthread_detach( &t );
19354 if( status ) return errno;
19357 #ifdef HAVE_LINUX_THREADS
19358 pthread_kill_other_threads_np();
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ol_cv_pthread_lib_lpthreads=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ol_cv_pthread_lib_lpthreads=no
19386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19388 cat >conftest.$ac_ext <<_ACEOF
19389 #line $LINENO "configure"
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* pthread test headers */
19396 #include <pthread.h>
19397 #if HAVE_PTHREADS < 7
19401 #define NULL (void*)0
19404 static void *task(p)
19407 return (void *) (p == NULL);
19411 int main(argc, argv)
19416 /* pthread test function */
19417 #ifndef PTHREAD_CREATE_DETACHED
19418 #define PTHREAD_CREATE_DETACHED 1
19422 int detach = PTHREAD_CREATE_DETACHED;
19424 #if HAVE_PTHREADS > 4
19425 /* Final pthreads */
19426 pthread_attr_t attr;
19428 status = pthread_attr_init(&attr);
19429 if( status ) return status;
19431 #if HAVE_PTHREADS < 7
19432 status = pthread_attr_setdetachstate(&attr, &detach);
19433 if( status < 0 ) status = errno;
19435 status = pthread_attr_setdetachstate(&attr, detach);
19437 if( status ) return status;
19438 status = pthread_create( &t, &attr, task, NULL );
19439 #if HAVE_PTHREADS < 7
19440 if( status < 0 ) status = errno;
19442 if( status ) return status;
19444 /* Draft 4 pthreads */
19445 status = pthread_create( &t, pthread_attr_default, task, NULL );
19446 if( status ) return errno;
19448 /* give thread a chance to complete */
19449 /* it should remain joinable and hence detachable */
19452 status = pthread_detach( &t );
19453 if( status ) return errno;
19456 #ifdef HAVE_LINUX_THREADS
19457 pthread_kill_other_threads_np();
19465 rm -f conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467 (eval $ac_link) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ol_cv_pthread_lib_lpthreads=yes
19478 echo "$as_me: program exited with status $ac_status" >&5
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ( exit $ac_status )
19483 ol_cv_pthread_lib_lpthreads=no
19485 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
19493 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
19495 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19496 ol_link_pthreads="-lpthreads"
19497 ol_link_threads=posix
19502 if test $ol_link_threads != no ; then
19503 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19505 save_CPPFLAGS="$CPPFLAGS"
19507 LIBS="$LTHREAD_LIBS $LIBS"
19512 for ac_func in sched_yield pthread_yield thr_yield
19514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19515 echo "$as_me:$LINENO: checking for $ac_func" >&5
19516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19517 if eval "test \"\${$as_ac_var+set}\" = set"; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19521 #line $LINENO "configure"
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 /* System header to define __stub macros and hopefully few prototypes,
19528 which can conflict with char $ac_func (); below.
19529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19530 <limits.h> exists even on freestanding compilers. */
19532 # include <limits.h>
19534 # include <assert.h>
19536 /* Override any gcc2 internal prototype to avoid an error. */
19541 /* We use char because int might match the return type of a gcc2
19542 builtin and then its argument prototype would still apply. */
19544 /* The GNU C library defines this for functions which it implements
19545 to always fail with ENOSYS. Some functions are actually named
19546 something starting with __ and the normal name is an alias. */
19547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19550 char (*f) () = $ac_func;
19559 return f != $ac_func;
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566 (eval $ac_link) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -s conftest$ac_exeext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 eval "$as_ac_var=yes"
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 eval "$as_ac_var=no"
19583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19587 if test `eval echo '${'$as_ac_var'}'` = yes; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19596 if test $ac_cv_func_sched_yield = no -a \
19597 $ac_cv_func_pthread_yield = no -a \
19598 $ac_cv_func_thr_yield = no ; then
19599 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
19600 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
19601 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 ac_check_lib_save_LIBS=$LIBS
19606 cat >conftest.$ac_ext <<_ACEOF
19607 #line $LINENO "configure"
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any gcc2 internal prototype to avoid an error. */
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19620 char sched_yield ();
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -s conftest$ac_exeext'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_lib_rt_sched_yield=yes
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ac_cv_lib_rt_sched_yield=no
19648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
19652 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
19653 if test $ac_cv_lib_rt_sched_yield = yes; then
19654 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_SCHED_YIELD 1
19660 ac_cv_func_sched_yield=yes
19662 ac_cv_func_sched_yield=no
19666 if test $ac_cv_func_sched_yield = no -a \
19667 $ac_cv_func_pthread_yield = no -a \
19668 "$ac_cv_func_thr_yield" = no ; then
19669 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19670 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19675 for ac_func in pthread_kill pthread_rwlock_destroy
19677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19678 echo "$as_me:$LINENO: checking for $ac_func" >&5
19679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19680 if eval "test \"\${$as_ac_var+set}\" = set"; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 cat >conftest.$ac_ext <<_ACEOF
19684 #line $LINENO "configure"
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 /* System header to define __stub macros and hopefully few prototypes,
19691 which can conflict with char $ac_func (); below.
19692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19693 <limits.h> exists even on freestanding compilers. */
19695 # include <limits.h>
19697 # include <assert.h>
19699 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19707 /* The GNU C library defines this for functions which it implements
19708 to always fail with ENOSYS. Some functions are actually named
19709 something starting with __ and the normal name is an alias. */
19710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19713 char (*f) () = $ac_func;
19722 return f != $ac_func;
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -s conftest$ac_exeext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 eval "$as_ac_var=yes"
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 eval "$as_ac_var=no"
19746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19750 if test `eval echo '${'$as_ac_var'}'` = yes; then
19751 cat >>confdefs.h <<_ACEOF
19752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19759 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
19760 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
19761 if test "${ol_cv_func_pthread_detach+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 cat >conftest.$ac_ext <<_ACEOF
19766 #line $LINENO "configure"
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19773 #include <pthread.h>
19775 #define NULL (void*)0
19781 pthread_detach(NULL);
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19788 (eval $ac_link) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -s conftest$ac_exeext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ol_cv_func_pthread_detach=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ol_cv_func_pthread_detach=no
19805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19808 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
19809 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
19811 if test $ol_cv_func_pthread_detach = no ; then
19812 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
19813 echo "$as_me: error: could not locate pthread_detach()" >&2;}
19814 { (exit 1); exit 1; }; }
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_PTHREAD_DETACH 1
19828 pthread_setconcurrency \
19829 pthread_getconcurrency \
19830 thr_setconcurrency \
19831 thr_getconcurrency \
19834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19835 echo "$as_me:$LINENO: checking for $ac_func" >&5
19836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19837 if eval "test \"\${$as_ac_var+set}\" = set"; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 cat >conftest.$ac_ext <<_ACEOF
19841 #line $LINENO "configure"
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 /* System header to define __stub macros and hopefully few prototypes,
19848 which can conflict with char $ac_func (); below.
19849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19850 <limits.h> exists even on freestanding compilers. */
19852 # include <limits.h>
19854 # include <assert.h>
19856 /* Override any gcc2 internal prototype to avoid an error. */
19861 /* We use char because int might match the return type of a gcc2
19862 builtin and then its argument prototype would still apply. */
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19870 char (*f) () = $ac_func;
19879 return f != $ac_func;
19884 rm -f conftest.$ac_objext conftest$ac_exeext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -s conftest$ac_exeext'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 eval "$as_ac_var=yes"
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 eval "$as_ac_var=no"
19903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19907 if test `eval echo '${'$as_ac_var'}'` = yes; then
19908 cat >>confdefs.h <<_ACEOF
19909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19918 for ac_func in pthread_kill_other_threads_np
19920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19921 echo "$as_me:$LINENO: checking for $ac_func" >&5
19922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19923 if eval "test \"\${$as_ac_var+set}\" = set"; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 cat >conftest.$ac_ext <<_ACEOF
19927 #line $LINENO "configure"
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 /* System header to define __stub macros and hopefully few prototypes,
19934 which can conflict with char $ac_func (); below.
19935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19936 <limits.h> exists even on freestanding compilers. */
19938 # include <limits.h>
19940 # include <assert.h>
19942 /* Override any gcc2 internal prototype to avoid an error. */
19947 /* We use char because int might match the return type of a gcc2
19948 builtin and then its argument prototype would still apply. */
19950 /* The GNU C library defines this for functions which it implements
19951 to always fail with ENOSYS. Some functions are actually named
19952 something starting with __ and the normal name is an alias. */
19953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19956 char (*f) () = $ac_func;
19965 return f != $ac_func;
19970 rm -f conftest.$ac_objext conftest$ac_exeext
19971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19972 (eval $ac_link) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
19976 { ac_try='test -s conftest$ac_exeext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 eval "$as_ac_var=yes"
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 eval "$as_ac_var=no"
19989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19993 if test `eval echo '${'$as_ac_var'}'` = yes; then
19994 cat >>confdefs.h <<_ACEOF
19995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20001 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
20002 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
20003 if test "${ol_cv_sys_linux_threads+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
20008 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
20009 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
20014 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
20015 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
20016 if test "${ol_cv_linux_threads+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 if test $ol_cv_header_linux_threads = yes -a \
20021 $ol_cv_sys_linux_threads = yes; then
20022 ol_cv_linux_threads=yes
20023 elif test $ol_cv_header_linux_threads = no -a \
20024 $ol_cv_sys_linux_threads = no; then
20025 ol_cv_linux_threads=no
20027 ol_cv_linux_threads=error
20031 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
20032 echo "${ECHO_T}$ol_cv_linux_threads" >&6
20035 if test $ol_cv_linux_threads = error; then
20036 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
20037 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
20038 { (exit 1); exit 1; }; };
20041 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
20042 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
20043 if test "${ol_cv_pthread_create_works+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 if test "$cross_compiling" = yes; then
20048 ol_cv_pthread_create_works=yes
20050 cat >conftest.$ac_ext <<_ACEOF
20051 #line $LINENO "configure"
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* pthread test headers */
20058 #include <pthread.h>
20059 #if HAVE_PTHREADS < 7
20063 #define NULL (void*)0
20066 static void *task(p)
20069 return (void *) (p == NULL);
20073 int main(argc, argv)
20078 /* pthread test function */
20079 #ifndef PTHREAD_CREATE_DETACHED
20080 #define PTHREAD_CREATE_DETACHED 1
20084 int detach = PTHREAD_CREATE_DETACHED;
20086 #if HAVE_PTHREADS > 4
20087 /* Final pthreads */
20088 pthread_attr_t attr;
20090 status = pthread_attr_init(&attr);
20091 if( status ) return status;
20093 #if HAVE_PTHREADS < 7
20094 status = pthread_attr_setdetachstate(&attr, &detach);
20095 if( status < 0 ) status = errno;
20097 status = pthread_attr_setdetachstate(&attr, detach);
20099 if( status ) return status;
20100 status = pthread_create( &t, &attr, task, NULL );
20101 #if HAVE_PTHREADS < 7
20102 if( status < 0 ) status = errno;
20104 if( status ) return status;
20106 /* Draft 4 pthreads */
20107 status = pthread_create( &t, pthread_attr_default, task, NULL );
20108 if( status ) return errno;
20110 /* give thread a chance to complete */
20111 /* it should remain joinable and hence detachable */
20114 status = pthread_detach( &t );
20115 if( status ) return errno;
20118 #ifdef HAVE_LINUX_THREADS
20119 pthread_kill_other_threads_np();
20127 rm -f conftest$ac_exeext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129 (eval $ac_link) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ol_cv_pthread_create_works=yes
20140 echo "$as_me: program exited with status $ac_status" >&5
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ( exit $ac_status )
20145 ol_cv_pthread_create_works=no
20147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20150 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
20151 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
20153 if test $ol_cv_pthread_create_works = no ; then
20154 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
20155 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
20156 { (exit 1); exit 1; }; }
20159 if test $ol_with_yielding_select = auto ; then
20160 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
20161 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
20162 if test "${ol_cv_pthread_select_yields+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 if test "$cross_compiling" = yes; then
20167 ol_cv_pthread_select_yields=cross
20169 cat >conftest.$ac_ext <<_ACEOF
20170 #line $LINENO "configure"
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20177 #include <sys/types.h>
20178 #include <sys/time.h>
20179 #include <unistd.h>
20180 #include <pthread.h>
20182 #define NULL (void*) 0
20185 static int fildes[2];
20187 static void *task(p)
20199 FD_SET(fildes[0], &rfds);
20201 /* we're not interested in any fds */
20202 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
20209 exit(0); /* if we exit here, the select blocked the whole process */
20212 int main(argc, argv)
20218 /* create a pipe to select */
20219 if(pipe(&fildes[0])) {
20224 #ifdef HAVE_PTHREAD_SETCONCURRENCY
20225 (void) pthread_setconcurrency(2);
20227 #ifdef HAVE_THR_SETCONCURRENCY
20228 /* Set Solaris LWP concurrency to 2 */
20229 thr_setconcurrency(2);
20233 #if HAVE_PTHREADS < 6
20234 pthread_create(&t, pthread_attr_default, task, NULL);
20236 pthread_create(&t, NULL, task, NULL);
20239 /* make sure task runs first */
20242 #elif defined( HAVE_SCHED_YIELD )
20244 #elif defined( HAVE_PTHREAD_YIELD )
20251 rm -f conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253 (eval $ac_link) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ol_cv_pthread_select_yields=no
20264 echo "$as_me: program exited with status $ac_status" >&5
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ( exit $ac_status )
20269 ol_cv_pthread_select_yields=yes
20271 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20274 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
20275 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
20277 if test $ol_cv_pthread_select_yields = cross ; then
20278 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
20279 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
20280 { (exit 1); exit 1; }; }
20283 if test $ol_cv_pthread_select_yields = yes ; then
20284 ol_with_yielding_select=yes
20288 CPPFLAGS="$save_CPPFLAGS"
20291 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
20292 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
20293 { (exit 1); exit 1; }; }
20297 if test $ol_with_threads = posix ; then
20298 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
20299 echo "$as_me: error: could not locate POSIX Threads" >&2;}
20300 { (exit 1); exit 1; }; }
20304 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20305 -o $ol_with_threads = mach ; then
20309 for ac_header in mach/cthreads.h cthreads.h
20311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20313 echo "$as_me:$LINENO: checking for $ac_header" >&5
20314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20321 # Is the header compilable?
20322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20324 cat >conftest.$ac_ext <<_ACEOF
20325 #line $LINENO "configure"
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 $ac_includes_default
20332 #include <$ac_header>
20334 rm -f conftest.$ac_objext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336 (eval $ac_compile) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_header_compiler=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_header_compiler=no
20353 rm -f conftest.$ac_objext conftest.$ac_ext
20354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20355 echo "${ECHO_T}$ac_header_compiler" >&6
20357 # Is the header present?
20358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20360 cat >conftest.$ac_ext <<_ACEOF
20361 #line $LINENO "configure"
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 #include <$ac_header>
20369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } >/dev/null; then
20377 if test -s conftest.err; then
20378 ac_cpp_err=$ac_c_preproc_warn_flag
20385 if test -z "$ac_cpp_err"; then
20386 ac_header_preproc=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_header_preproc=no
20393 rm -f conftest.err conftest.$ac_ext
20394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20395 echo "${ECHO_T}$ac_header_preproc" >&6
20397 # So? What about this header?
20398 case $ac_header_compiler:$ac_header_preproc in
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20406 ## ------------------------------------ ##
20407 ## Report this to bug-autoconf@gnu.org. ##
20408 ## ------------------------------------ ##
20411 sed "s/^/$as_me: WARNING: /" >&2
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20422 ## ------------------------------------ ##
20423 ## Report this to bug-autoconf@gnu.org. ##
20424 ## ------------------------------------ ##
20427 sed "s/^/$as_me: WARNING: /" >&2
20430 echo "$as_me:$LINENO: checking for $ac_header" >&5
20431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20435 eval "$as_ac_Header=$ac_header_preproc"
20437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20442 cat >>confdefs.h <<_ACEOF
20443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20450 if test $ac_cv_header_mach_cthreads_h = yes ; then
20451 ol_with_threads=found
20453 echo "$as_me:$LINENO: checking for cthread_fork" >&5
20454 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
20455 if test "${ac_cv_func_cthread_fork+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 cat >conftest.$ac_ext <<_ACEOF
20459 #line $LINENO "configure"
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 /* System header to define __stub macros and hopefully few prototypes,
20466 which can conflict with char cthread_fork (); below.
20467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20468 <limits.h> exists even on freestanding compilers. */
20470 # include <limits.h>
20472 # include <assert.h>
20474 /* Override any gcc2 internal prototype to avoid an error. */
20479 /* We use char because int might match the return type of a gcc2
20480 builtin and then its argument prototype would still apply. */
20481 char cthread_fork ();
20482 /* The GNU C library defines this for functions which it implements
20483 to always fail with ENOSYS. Some functions are actually named
20484 something starting with __ and the normal name is an alias. */
20485 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
20488 char (*f) () = cthread_fork;
20497 return f != cthread_fork;
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20504 (eval $ac_link) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -s conftest$ac_exeext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_cv_func_cthread_fork=yes
20516 echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 ac_cv_func_cthread_fork=no
20521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
20524 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
20525 if test $ac_cv_func_cthread_fork = yes; then
20526 ol_link_threads=yes
20530 if test $ol_link_threads = no ; then
20531 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
20532 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
20533 if test "${ol_cv_cthread_all_load+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 LIBS="-all_load $LIBS"
20539 cat >conftest.$ac_ext <<_ACEOF
20540 #line $LINENO "configure"
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20546 #include <mach/cthreads.h>
20551 cthread_fork((void *)0, (void *)0);
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20559 (eval $ac_link) 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -s conftest$ac_exeext'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 ol_cv_cthread_all_load=yes
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ol_cv_cthread_all_load=no
20576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20580 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
20581 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
20583 if test $ol_cv_cthread_all_load = yes ; then
20584 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
20585 ol_link_threads=mach
20586 ol_with_threads=found
20590 elif test $ac_cv_header_cthreads_h = yes ; then
20592 ol_with_threads=found
20595 LIBS="$LIBS -lthreads"
20596 echo "$as_me:$LINENO: checking for cthread_fork" >&5
20597 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
20598 if test "${ac_cv_func_cthread_fork+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 cat >conftest.$ac_ext <<_ACEOF
20602 #line $LINENO "configure"
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 /* System header to define __stub macros and hopefully few prototypes,
20609 which can conflict with char cthread_fork (); below.
20610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20611 <limits.h> exists even on freestanding compilers. */
20613 # include <limits.h>
20615 # include <assert.h>
20617 /* Override any gcc2 internal prototype to avoid an error. */
20622 /* We use char because int might match the return type of a gcc2
20623 builtin and then its argument prototype would still apply. */
20624 char cthread_fork ();
20625 /* The GNU C library defines this for functions which it implements
20626 to always fail with ENOSYS. Some functions are actually named
20627 something starting with __ and the normal name is an alias. */
20628 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
20631 char (*f) () = cthread_fork;
20640 return f != cthread_fork;
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -s conftest$ac_exeext'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }; then
20657 ac_cv_func_cthread_fork=yes
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ac_cv_func_cthread_fork=no
20664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20666 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
20667 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
20668 if test $ac_cv_func_cthread_fork = yes; then
20669 ol_link_threads=yes
20674 if test $ol_link_threads = yes ; then
20675 LTHREAD_LIBS="-lthreads"
20676 ol_link_threads=mach
20677 ol_with_threads=found
20679 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
20680 echo "$as_me: error: could not link with Mach CThreads" >&2;}
20681 { (exit 1); exit 1; }; }
20684 elif test $ol_with_threads = mach ; then
20685 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
20686 echo "$as_me: error: could not locate Mach CThreads" >&2;}
20687 { (exit 1); exit 1; }; }
20690 if test $ol_link_threads = mach ; then
20692 cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_MACH_CTHREADS 1
20696 elif test $ol_with_threads = found ; then
20697 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
20698 echo "$as_me: error: could not link with Mach CThreads" >&2;}
20699 { (exit 1); exit 1; }; }
20703 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20704 -o $ol_with_threads = pth ; then
20707 for ac_header in pth.h
20709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20711 echo "$as_me:$LINENO: checking for $ac_header" >&5
20712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20719 # Is the header compilable?
20720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20723 #line $LINENO "configure"
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20730 #include <$ac_header>
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -s conftest.$ac_objext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
20744 ac_header_compiler=yes
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_header_compiler=no
20751 rm -f conftest.$ac_objext conftest.$ac_ext
20752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20753 echo "${ECHO_T}$ac_header_compiler" >&6
20755 # Is the header present?
20756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20759 #line $LINENO "configure"
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 #include <$ac_header>
20767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } >/dev/null; then
20775 if test -s conftest.err; then
20776 ac_cpp_err=$ac_c_preproc_warn_flag
20783 if test -z "$ac_cpp_err"; then
20784 ac_header_preproc=yes
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ac_header_preproc=no
20791 rm -f conftest.err conftest.$ac_ext
20792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20793 echo "${ECHO_T}$ac_header_preproc" >&6
20795 # So? What about this header?
20796 case $ac_header_compiler:$ac_header_preproc in
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20804 ## ------------------------------------ ##
20805 ## Report this to bug-autoconf@gnu.org. ##
20806 ## ------------------------------------ ##
20809 sed "s/^/$as_me: WARNING: /" >&2
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20820 ## ------------------------------------ ##
20821 ## Report this to bug-autoconf@gnu.org. ##
20822 ## ------------------------------------ ##
20825 sed "s/^/$as_me: WARNING: /" >&2
20828 echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 eval "$as_ac_Header=$ac_header_preproc"
20835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20849 if test $ac_cv_header_pth_h = yes ; then
20850 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
20851 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
20852 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 ac_check_lib_save_LIBS=$LIBS
20857 cat >conftest.$ac_ext <<_ACEOF
20858 #line $LINENO "configure"
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20865 /* Override any gcc2 internal prototype to avoid an error. */
20869 /* We use char because int might match the return type of a gcc2
20870 builtin and then its argument prototype would still apply. */
20871 char pth_version ();
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882 (eval $ac_link) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_lib_pth_pth_version=yes
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ac_cv_lib_pth_pth_version=no
20899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20902 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
20903 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
20904 if test $ac_cv_lib_pth_pth_version = yes; then
20911 if test $have_pth = yes ; then
20913 cat >>confdefs.h <<\_ACEOF
20914 #define HAVE_GNU_PTH 1
20917 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
20918 ol_link_threads=pth
20919 ol_with_threads=found
20921 if test $ol_with_yielding_select = auto ; then
20922 ol_with_yielding_select=yes
20928 if test $ol_with_threads = auto -o $ol_with_threads = yes \
20929 -o $ol_with_threads = lwp ; then
20933 for ac_header in thread.h synch.h
20935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20937 echo "$as_me:$LINENO: checking for $ac_header" >&5
20938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20945 # Is the header compilable?
20946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20948 cat >conftest.$ac_ext <<_ACEOF
20949 #line $LINENO "configure"
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20956 #include <$ac_header>
20958 rm -f conftest.$ac_objext
20959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960 (eval $ac_compile) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_header_compiler=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_header_compiler=no
20977 rm -f conftest.$ac_objext conftest.$ac_ext
20978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20979 echo "${ECHO_T}$ac_header_compiler" >&6
20981 # Is the header present?
20982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20984 cat >conftest.$ac_ext <<_ACEOF
20985 #line $LINENO "configure"
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <$ac_header>
20993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } >/dev/null; then
21001 if test -s conftest.err; then
21002 ac_cpp_err=$ac_c_preproc_warn_flag
21009 if test -z "$ac_cpp_err"; then
21010 ac_header_preproc=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_preproc=no
21017 rm -f conftest.err conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21019 echo "${ECHO_T}$ac_header_preproc" >&6
21021 # So? What about this header?
21022 case $ac_header_compiler:$ac_header_preproc in
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21030 ## ------------------------------------ ##
21031 ## Report this to bug-autoconf@gnu.org. ##
21032 ## ------------------------------------ ##
21035 sed "s/^/$as_me: WARNING: /" >&2
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21046 ## ------------------------------------ ##
21047 ## Report this to bug-autoconf@gnu.org. ##
21048 ## ------------------------------------ ##
21051 sed "s/^/$as_me: WARNING: /" >&2
21054 echo "$as_me:$LINENO: checking for $ac_header" >&5
21055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 eval "$as_ac_Header=$ac_header_preproc"
21061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21066 cat >>confdefs.h <<_ACEOF
21067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21074 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
21075 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
21076 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
21077 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 ac_check_lib_save_LIBS=$LIBS
21081 LIBS="-lthread $LIBS"
21082 cat >conftest.$ac_ext <<_ACEOF
21083 #line $LINENO "configure"
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 /* Override any gcc2 internal prototype to avoid an error. */
21094 /* We use char because int might match the return type of a gcc2
21095 builtin and then its argument prototype would still apply. */
21096 char thr_create ();
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107 (eval $ac_link) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -s conftest$ac_exeext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 ac_cv_lib_thread_thr_create=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_cv_lib_thread_thr_create=no
21124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21125 LIBS=$ac_check_lib_save_LIBS
21127 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
21128 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
21129 if test $ac_cv_lib_thread_thr_create = yes; then
21136 if test $have_thr = yes ; then
21138 cat >>confdefs.h <<\_ACEOF
21142 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
21143 ol_link_threads=thr
21145 if test $ol_with_yielding_select = auto ; then
21146 ol_with_yielding_select=yes
21152 thr_setconcurrency \
21153 thr_getconcurrency \
21156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21157 echo "$as_me:$LINENO: checking for $ac_func" >&5
21158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21159 if eval "test \"\${$as_ac_var+set}\" = set"; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 cat >conftest.$ac_ext <<_ACEOF
21163 #line $LINENO "configure"
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 /* System header to define __stub macros and hopefully few prototypes,
21170 which can conflict with char $ac_func (); below.
21171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21172 <limits.h> exists even on freestanding compilers. */
21174 # include <limits.h>
21176 # include <assert.h>
21178 /* Override any gcc2 internal prototype to avoid an error. */
21183 /* We use char because int might match the return type of a gcc2
21184 builtin and then its argument prototype would still apply. */
21186 /* The GNU C library defines this for functions which it implements
21187 to always fail with ENOSYS. Some functions are actually named
21188 something starting with __ and the normal name is an alias. */
21189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21192 char (*f) () = $ac_func;
21201 return f != $ac_func;
21206 rm -f conftest.$ac_objext conftest$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208 (eval $ac_link) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } &&
21212 { ac_try='test -s conftest$ac_exeext'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 eval "$as_ac_var=yes"
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 eval "$as_ac_var=no"
21225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21229 if test `eval echo '${'$as_ac_var'}'` = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21241 for ac_header in lwp/lwp.h
21243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21245 echo "$as_me:$LINENO: checking for $ac_header" >&5
21246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21253 # Is the header compilable?
21254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21256 cat >conftest.$ac_ext <<_ACEOF
21257 #line $LINENO "configure"
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 $ac_includes_default
21264 #include <$ac_header>
21266 rm -f conftest.$ac_objext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268 (eval $ac_compile) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_header_compiler=yes
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_header_compiler=no
21285 rm -f conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21287 echo "${ECHO_T}$ac_header_compiler" >&6
21289 # Is the header present?
21290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21293 #line $LINENO "configure"
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <$ac_header>
21301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } >/dev/null; then
21309 if test -s conftest.err; then
21310 ac_cpp_err=$ac_c_preproc_warn_flag
21317 if test -z "$ac_cpp_err"; then
21318 ac_header_preproc=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_header_preproc=no
21325 rm -f conftest.err conftest.$ac_ext
21326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21327 echo "${ECHO_T}$ac_header_preproc" >&6
21329 # So? What about this header?
21330 case $ac_header_compiler:$ac_header_preproc in
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21338 ## ------------------------------------ ##
21339 ## Report this to bug-autoconf@gnu.org. ##
21340 ## ------------------------------------ ##
21343 sed "s/^/$as_me: WARNING: /" >&2
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21354 ## ------------------------------------ ##
21355 ## Report this to bug-autoconf@gnu.org. ##
21356 ## ------------------------------------ ##
21359 sed "s/^/$as_me: WARNING: /" >&2
21362 echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 eval "$as_ac_Header=$ac_header_preproc"
21369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21374 cat >>confdefs.h <<_ACEOF
21375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382 if test $ac_cv_header_lwp_lwp_h = yes ; then
21383 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
21384 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
21385 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_check_lib_save_LIBS=$LIBS
21390 cat >conftest.$ac_ext <<_ACEOF
21391 #line $LINENO "configure"
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21398 /* Override any gcc2 internal prototype to avoid an error. */
21402 /* We use char because int might match the return type of a gcc2
21403 builtin and then its argument prototype would still apply. */
21404 char lwp_create ();
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } &&
21419 { ac_try='test -s conftest$ac_exeext'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_cv_lib_lwp_lwp_create=yes
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_cv_lib_lwp_lwp_create=no
21432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21433 LIBS=$ac_check_lib_save_LIBS
21435 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
21436 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
21437 if test $ac_cv_lib_lwp_lwp_create = yes; then
21444 if test $have_lwp = yes ; then
21446 cat >>confdefs.h <<\_ACEOF
21450 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
21451 ol_link_threads=lwp
21453 if test $ol_with_yielding_select = auto ; then
21454 ol_with_yielding_select=no
21460 if test $ol_with_yielding_select = yes ; then
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_YIELDING_SELECT 1
21468 if test $ol_with_threads = manual ; then
21469 ol_link_threads=yes
21471 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
21472 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
21476 for ac_header in pthread.h sched.h
21478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21480 echo "$as_me:$LINENO: checking for $ac_header" >&5
21481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21488 # Is the header compilable?
21489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21491 cat >conftest.$ac_ext <<_ACEOF
21492 #line $LINENO "configure"
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 $ac_includes_default
21499 #include <$ac_header>
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_header_compiler=yes
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_header_compiler=no
21520 rm -f conftest.$ac_objext conftest.$ac_ext
21521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21522 echo "${ECHO_T}$ac_header_compiler" >&6
21524 # Is the header present?
21525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21527 cat >conftest.$ac_ext <<_ACEOF
21528 #line $LINENO "configure"
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 #include <$ac_header>
21536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21539 grep -v '^ *+' conftest.er1 >conftest.err
21541 cat conftest.err >&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } >/dev/null; then
21544 if test -s conftest.err; then
21545 ac_cpp_err=$ac_c_preproc_warn_flag
21552 if test -z "$ac_cpp_err"; then
21553 ac_header_preproc=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_header_preproc=no
21560 rm -f conftest.err conftest.$ac_ext
21561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21562 echo "${ECHO_T}$ac_header_preproc" >&6
21564 # So? What about this header?
21565 case $ac_header_compiler:$ac_header_preproc in
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21573 ## ------------------------------------ ##
21574 ## Report this to bug-autoconf@gnu.org. ##
21575 ## ------------------------------------ ##
21578 sed "s/^/$as_me: WARNING: /" >&2
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21589 ## ------------------------------------ ##
21590 ## Report this to bug-autoconf@gnu.org. ##
21591 ## ------------------------------------ ##
21594 sed "s/^/$as_me: WARNING: /" >&2
21597 echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 eval "$as_ac_Header=$ac_header_preproc"
21604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21609 cat >>confdefs.h <<_ACEOF
21610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21619 for ac_func in sched_yield pthread_yield
21621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21622 echo "$as_me:$LINENO: checking for $ac_func" >&5
21623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21624 if eval "test \"\${$as_ac_var+set}\" = set"; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 cat >conftest.$ac_ext <<_ACEOF
21628 #line $LINENO "configure"
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 /* System header to define __stub macros and hopefully few prototypes,
21635 which can conflict with char $ac_func (); below.
21636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21637 <limits.h> exists even on freestanding compilers. */
21639 # include <limits.h>
21641 # include <assert.h>
21643 /* Override any gcc2 internal prototype to avoid an error. */
21648 /* We use char because int might match the return type of a gcc2
21649 builtin and then its argument prototype would still apply. */
21651 /* The GNU C library defines this for functions which it implements
21652 to always fail with ENOSYS. Some functions are actually named
21653 something starting with __ and the normal name is an alias. */
21654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21657 char (*f) () = $ac_func;
21666 return f != $ac_func;
21671 rm -f conftest.$ac_objext conftest$ac_exeext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21673 (eval $ac_link) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } &&
21677 { ac_try='test -s conftest$ac_exeext'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }; then
21683 eval "$as_ac_var=yes"
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 eval "$as_ac_var=no"
21690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21694 if test `eval echo '${'$as_ac_var'}'` = yes; then
21695 cat >>confdefs.h <<_ACEOF
21696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21703 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
21704 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
21705 if test "${ol_cv_header_linux_threads+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 cat >conftest.$ac_ext <<_ACEOF
21709 #line $LINENO "configure"
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 #include <pthread.h>
21717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21718 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
21719 ol_cv_header_linux_threads=yes
21721 ol_cv_header_linux_threads=no
21727 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
21728 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
21729 if test $ol_cv_header_linux_threads = yes; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_LINUX_THREADS 1
21739 for ac_header in mach/cthreads.h
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21743 echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21751 # Is the header compilable?
21752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21754 cat >conftest.$ac_ext <<_ACEOF
21755 #line $LINENO "configure"
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21762 #include <$ac_header>
21764 rm -f conftest.$ac_objext
21765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21766 (eval $ac_compile) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -s conftest.$ac_objext'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; }; then
21776 ac_header_compiler=yes
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_header_compiler=no
21783 rm -f conftest.$ac_objext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21785 echo "${ECHO_T}$ac_header_compiler" >&6
21787 # Is the header present?
21788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21790 cat >conftest.$ac_ext <<_ACEOF
21791 #line $LINENO "configure"
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <$ac_header>
21799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } >/dev/null; then
21807 if test -s conftest.err; then
21808 ac_cpp_err=$ac_c_preproc_warn_flag
21815 if test -z "$ac_cpp_err"; then
21816 ac_header_preproc=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_preproc=no
21823 rm -f conftest.err conftest.$ac_ext
21824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6
21827 # So? What about this header?
21828 case $ac_header_compiler:$ac_header_preproc in
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21836 ## ------------------------------------ ##
21837 ## Report this to bug-autoconf@gnu.org. ##
21838 ## ------------------------------------ ##
21841 sed "s/^/$as_me: WARNING: /" >&2
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21852 ## ------------------------------------ ##
21853 ## Report this to bug-autoconf@gnu.org. ##
21854 ## ------------------------------------ ##
21857 sed "s/^/$as_me: WARNING: /" >&2
21860 echo "$as_me:$LINENO: checking for $ac_header" >&5
21861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 eval "$as_ac_Header=$ac_header_preproc"
21867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21881 for ac_header in lwp/lwp.h
21883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21885 echo "$as_me:$LINENO: checking for $ac_header" >&5
21886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21893 # Is the header compilable?
21894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21896 cat >conftest.$ac_ext <<_ACEOF
21897 #line $LINENO "configure"
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 #include <$ac_header>
21906 rm -f conftest.$ac_objext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21908 (eval $ac_compile) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_header_compiler=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_header_compiler=no
21925 rm -f conftest.$ac_objext conftest.$ac_ext
21926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21927 echo "${ECHO_T}$ac_header_compiler" >&6
21929 # Is the header present?
21930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21933 #line $LINENO "configure"
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <$ac_header>
21941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21944 grep -v '^ *+' conftest.er1 >conftest.err
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } >/dev/null; then
21949 if test -s conftest.err; then
21950 ac_cpp_err=$ac_c_preproc_warn_flag
21957 if test -z "$ac_cpp_err"; then
21958 ac_header_preproc=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ac_header_preproc=no
21965 rm -f conftest.err conftest.$ac_ext
21966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21967 echo "${ECHO_T}$ac_header_preproc" >&6
21969 # So? What about this header?
21970 case $ac_header_compiler:$ac_header_preproc in
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21978 ## ------------------------------------ ##
21979 ## Report this to bug-autoconf@gnu.org. ##
21980 ## ------------------------------------ ##
21983 sed "s/^/$as_me: WARNING: /" >&2
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21994 ## ------------------------------------ ##
21995 ## Report this to bug-autoconf@gnu.org. ##
21996 ## ------------------------------------ ##
21999 sed "s/^/$as_me: WARNING: /" >&2
22002 echo "$as_me:$LINENO: checking for $ac_header" >&5
22003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 eval "$as_ac_Header=$ac_header_preproc"
22009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22024 for ac_header in thread.h synch.h
22026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22028 echo "$as_me:$LINENO: checking for $ac_header" >&5
22029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22036 # Is the header compilable?
22037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22040 #line $LINENO "configure"
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 $ac_includes_default
22047 #include <$ac_header>
22049 rm -f conftest.$ac_objext
22050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22051 (eval $ac_compile) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -s conftest.$ac_objext'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22061 ac_header_compiler=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_header_compiler=no
22068 rm -f conftest.$ac_objext conftest.$ac_ext
22069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22070 echo "${ECHO_T}$ac_header_compiler" >&6
22072 # Is the header present?
22073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22075 cat >conftest.$ac_ext <<_ACEOF
22076 #line $LINENO "configure"
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 #include <$ac_header>
22084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } >/dev/null; then
22092 if test -s conftest.err; then
22093 ac_cpp_err=$ac_c_preproc_warn_flag
22100 if test -z "$ac_cpp_err"; then
22101 ac_header_preproc=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_header_preproc=no
22108 rm -f conftest.err conftest.$ac_ext
22109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22110 echo "${ECHO_T}$ac_header_preproc" >&6
22112 # So? What about this header?
22113 case $ac_header_compiler:$ac_header_preproc in
22115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22121 ## ------------------------------------ ##
22122 ## Report this to bug-autoconf@gnu.org. ##
22123 ## ------------------------------------ ##
22126 sed "s/^/$as_me: WARNING: /" >&2
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22137 ## ------------------------------------ ##
22138 ## Report this to bug-autoconf@gnu.org. ##
22139 ## ------------------------------------ ##
22142 sed "s/^/$as_me: WARNING: /" >&2
22145 echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 eval "$as_ac_Header=$ac_header_preproc"
22152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22167 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
22168 cat >>confdefs.h <<\_ACEOF
22169 #define REENTRANT 1
22172 cat >>confdefs.h <<\_ACEOF
22173 #define _REENTRANT 1
22176 cat >>confdefs.h <<\_ACEOF
22177 #define THREAD_SAFE 1
22180 cat >>confdefs.h <<\_ACEOF
22181 #define _THREAD_SAFE 1
22184 cat >>confdefs.h <<\_ACEOF
22185 #define THREADSAFE 1
22188 cat >>confdefs.h <<\_ACEOF
22189 #define _THREADSAFE 1
22192 cat >>confdefs.h <<\_ACEOF
22193 #define _SGI_MP_SOURCE 1
22197 echo "$as_me:$LINENO: checking for thread specific errno" >&5
22198 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
22199 if test "${ol_cv_errno_thread_specific+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22204 #line $LINENO "configure"
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22221 (eval $ac_link) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
22225 { ac_try='test -s conftest$ac_exeext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ol_cv_errno_thread_specific=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ol_cv_errno_thread_specific=no
22238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22241 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
22242 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
22244 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
22245 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
22246 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22251 #line $LINENO "configure"
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22268 (eval $ac_link) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try='test -s conftest$ac_exeext'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 ol_cv_h_errno_thread_specific=yes
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ol_cv_h_errno_thread_specific=no
22285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22288 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
22289 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
22291 if test $ol_cv_errno_thread_specific != yes \
22292 -o $ol_cv_h_errno_thread_specific != yes ; then
22293 LIBS="$LTHREAD_LIBS $LIBS"
22299 if test $ol_link_threads = no ; then
22300 if test $ol_with_threads = yes ; then
22301 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
22302 echo "$as_me: error: no suitable thread support" >&2;}
22303 { (exit 1); exit 1; }; }
22306 if test $ol_with_threads = auto ; then
22307 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
22308 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
22313 cat >>confdefs.h <<\_ACEOF
22314 #define NO_THREADS 1
22320 if test $ol_link_threads != no ; then
22321 cat >>confdefs.h <<\_ACEOF
22322 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
22332 gethostbyname_r gethostbyaddr_r \
22335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22336 echo "$as_me:$LINENO: checking for $ac_func" >&5
22337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22338 if eval "test \"\${$as_ac_var+set}\" = set"; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 cat >conftest.$ac_ext <<_ACEOF
22342 #line $LINENO "configure"
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 /* System header to define __stub macros and hopefully few prototypes,
22349 which can conflict with char $ac_func (); below.
22350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22351 <limits.h> exists even on freestanding compilers. */
22353 # include <limits.h>
22355 # include <assert.h>
22357 /* Override any gcc2 internal prototype to avoid an error. */
22362 /* We use char because int might match the return type of a gcc2
22363 builtin and then its argument prototype would still apply. */
22365 /* The GNU C library defines this for functions which it implements
22366 to always fail with ENOSYS. Some functions are actually named
22367 something starting with __ and the normal name is an alias. */
22368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371 char (*f) () = $ac_func;
22380 return f != $ac_func;
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -s conftest$ac_exeext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 eval "$as_ac_var=yes"
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 eval "$as_ac_var=no"
22404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22408 if test `eval echo '${'$as_ac_var'}'` = yes; then
22409 cat >>confdefs.h <<_ACEOF
22410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22417 if test "$ac_cv_func_ctime_r" = no ; then
22418 ol_cv_func_ctime_r_nargs=0
22420 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
22421 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
22422 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22426 #line $LINENO "configure"
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22436 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -s conftest.$ac_objext'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ol_cv_func_ctime_r_nargs3=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ol_cv_func_ctime_r_nargs3=no
22460 rm -f conftest.$ac_objext conftest.$ac_ext
22462 cat >conftest.$ac_ext <<_ACEOF
22463 #line $LINENO "configure"
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22473 time_t ti; char *buffer; ctime_r(&ti,buffer);
22478 rm -f conftest.$ac_objext
22479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22480 (eval $ac_compile) 2>&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -s conftest.$ac_objext'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 ol_cv_func_ctime_r_nargs2=yes
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ol_cv_func_ctime_r_nargs2=no
22497 rm -f conftest.$ac_objext conftest.$ac_ext
22499 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
22500 $ol_cv_func_ctime_r_nargs2 = no ; then
22502 ol_cv_func_ctime_r_nargs=3
22504 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
22505 $ol_cv_func_ctime_r_nargs2 = yes ; then
22507 ol_cv_func_ctime_r_nargs=2
22510 ol_cv_func_ctime_r_nargs=0
22514 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
22515 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
22517 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
22519 cat >>confdefs.h <<_ACEOF
22520 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
22527 if test "$ac_cv_func_gethostbyname_r" = yes ; then
22528 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
22529 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
22530 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22534 #line $LINENO "configure"
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 #include <sys/types.h>
22541 #include <sys/socket.h>
22542 #include <netinet/in.h>
22544 #define BUFSIZE (sizeof(struct hostent)+10)
22548 struct hostent hent; char buffer[BUFSIZE];
22549 int bufsize=BUFSIZE;int h_errno;
22550 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
22551 buffer, bufsize, &h_errno);
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558 (eval $ac_compile) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
22562 { ac_try='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 ol_cv_func_gethostbyname_r_nargs5=yes
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22573 ol_cv_func_gethostbyname_r_nargs5=no
22575 rm -f conftest.$ac_objext conftest.$ac_ext
22577 cat >conftest.$ac_ext <<_ACEOF
22578 #line $LINENO "configure"
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 #include <sys/types.h>
22585 #include <sys/socket.h>
22586 #include <netinet/in.h>
22588 #define BUFSIZE (sizeof(struct hostent)+10)
22592 struct hostent hent;struct hostent *rhent;
22593 char buffer[BUFSIZE];
22594 int bufsize=BUFSIZE;int h_errno;
22595 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
22601 rm -f conftest.$ac_objext
22602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22603 (eval $ac_compile) 2>&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -s conftest.$ac_objext'
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ol_cv_func_gethostbyname_r_nargs6=yes
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 ol_cv_func_gethostbyname_r_nargs6=no
22620 rm -f conftest.$ac_objext conftest.$ac_ext
22622 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
22623 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
22625 ol_cv_func_gethostbyname_r_nargs=5
22627 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
22628 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
22630 ol_cv_func_gethostbyname_r_nargs=6
22633 ol_cv_func_gethostbyname_r_nargs=0
22637 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
22638 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
22639 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
22641 cat >>confdefs.h <<_ACEOF
22642 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
22648 ol_cv_func_gethostbyname_r_nargs=0
22651 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
22652 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
22653 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
22654 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 cat >conftest.$ac_ext <<_ACEOF
22658 #line $LINENO "configure"
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 #include <sys/types.h>
22665 #include <sys/socket.h>
22666 #include <netinet/in.h>
22668 #define BUFSIZE (sizeof(struct hostent)+10)
22672 struct hostent hent; char buffer[BUFSIZE];
22673 struct in_addr add;
22674 size_t alen=sizeof(struct in_addr);
22675 int bufsize=BUFSIZE;int h_errno;
22676 (void)gethostbyaddr_r( (void *)&(add.s_addr),
22677 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
22682 rm -f conftest.$ac_objext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22684 (eval $ac_compile) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } &&
22688 { ac_try='test -s conftest.$ac_objext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ol_cv_func_gethostbyaddr_r_nargs7=yes
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ol_cv_func_gethostbyaddr_r_nargs7=no
22701 rm -f conftest.$ac_objext conftest.$ac_ext
22703 cat >conftest.$ac_ext <<_ACEOF
22704 #line $LINENO "configure"
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <sys/types.h>
22711 #include <sys/socket.h>
22712 #include <netinet/in.h>
22714 #define BUFSIZE (sizeof(struct hostent)+10)
22718 struct hostent hent;
22719 struct hostent *rhent; char buffer[BUFSIZE];
22720 struct in_addr add;
22721 size_t alen=sizeof(struct in_addr);
22722 int bufsize=BUFSIZE;int h_errno;
22723 (void)gethostbyaddr_r( (void *)&(add.s_addr),
22724 alen, AF_INET, &hent, buffer, bufsize,
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -s conftest.$ac_objext'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742 ol_cv_func_gethostbyaddr_r_nargs8=yes
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ol_cv_func_gethostbyaddr_r_nargs8=no
22749 rm -f conftest.$ac_objext conftest.$ac_ext
22751 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
22752 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
22754 ol_cv_func_gethostbyaddr_r_nargs=7
22756 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
22757 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
22759 ol_cv_func_gethostbyaddr_r_nargs=8
22762 ol_cv_func_gethostbyaddr_r_nargs=0
22766 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
22767 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
22768 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
22770 cat >>confdefs.h <<_ACEOF
22771 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
22777 ol_cv_func_gethostbyaddr_r_nargs=0
22782 if test $ol_with_ldbm_api = auto \
22783 -o $ol_with_ldbm_api = berkeley \
22784 -o $ol_with_ldbm_api = bcompat ; then
22786 if test $ol_with_ldbm_api = bcompat; then \
22789 for ac_header in db_185.h db.h
22791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22793 echo "$as_me:$LINENO: checking for $ac_header" >&5
22794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22801 # Is the header compilable?
22802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22804 cat >conftest.$ac_ext <<_ACEOF
22805 #line $LINENO "configure"
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h. */
22811 $ac_includes_default
22812 #include <$ac_header>
22814 rm -f conftest.$ac_objext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22816 (eval $ac_compile) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_header_compiler=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_header_compiler=no
22833 rm -f conftest.$ac_objext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835 echo "${ECHO_T}$ac_header_compiler" >&6
22837 # Is the header present?
22838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22840 cat >conftest.$ac_ext <<_ACEOF
22841 #line $LINENO "configure"
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 #include <$ac_header>
22849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } >/dev/null; then
22857 if test -s conftest.err; then
22858 ac_cpp_err=$ac_c_preproc_warn_flag
22865 if test -z "$ac_cpp_err"; then
22866 ac_header_preproc=yes
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ac_header_preproc=no
22873 rm -f conftest.err conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875 echo "${ECHO_T}$ac_header_preproc" >&6
22877 # So? What about this header?
22878 case $ac_header_compiler:$ac_header_preproc in
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22886 ## ------------------------------------ ##
22887 ## Report this to bug-autoconf@gnu.org. ##
22888 ## ------------------------------------ ##
22891 sed "s/^/$as_me: WARNING: /" >&2
22894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22902 ## ------------------------------------ ##
22903 ## Report this to bug-autoconf@gnu.org. ##
22904 ## ------------------------------------ ##
22907 sed "s/^/$as_me: WARNING: /" >&2
22910 echo "$as_me:$LINENO: checking for $ac_header" >&5
22911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 eval "$as_ac_Header=$ac_header_preproc"
22917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22922 cat >>confdefs.h <<_ACEOF
22923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22930 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
22931 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
22932 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
22933 if test "${ol_cv_header_db1+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22938 #line $LINENO "configure"
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22946 # include <db_185.h>
22951 /* this check could be improved */
22952 #ifndef DB_VERSION_MAJOR
22953 # define DB_VERSION_MAJOR 1
22956 #if DB_VERSION_MAJOR == 1
22961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22962 $EGREP "__db_version_1" >/dev/null 2>&1; then
22963 ol_cv_header_db1=yes
22965 ol_cv_header_db1=no
22970 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
22971 echo "${ECHO_T}$ol_cv_header_db1" >&6
22973 if test $ol_cv_header_db1 = yes ; then
22975 if test $ol_cv_lib_db = no ; then
22976 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
22977 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
22978 if test "${ol_cv_db_none+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
22986 cat >conftest.$ac_ext <<_ACEOF
22987 #line $LINENO "configure"
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22994 #ifdef HAVE_DB_185_H
22995 # include <db_185.h>
23000 #ifndef DB_VERSION_MAJOR
23001 # define DB_VERSION_MAJOR 1
23005 #define NULL ((void*)0)
23012 #if DB_VERSION_MAJOR > 1
23015 int major, minor, patch;
23017 version = db_version( &major, &minor, &patch );
23019 if( major != DB_VERSION_MAJOR ||
23020 minor < DB_VERSION_MINOR )
23022 printf("Berkeley DB version mismatch\n"
23023 "\texpected: %s\n\tgot: %s\n",
23024 DB_VERSION_STRING, version);
23030 #if DB_VERSION_MAJOR > 2
23031 db_env_create( NULL, 0 );
23032 #elif DB_VERSION_MAJOR > 1
23033 db_appexit( NULL );
23035 (void) dbopen( NULL, 0, 0, 0, NULL);
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044 (eval $ac_link) 2>&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
23048 { ac_try='test -s conftest$ac_exeext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23066 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
23067 echo "${ECHO_T}$ol_cv_db_none" >&6
23069 if test $ol_cv_db_none = yes ; then
23074 if test $ol_cv_lib_db = no ; then
23075 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
23076 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
23077 if test "${ol_cv_db_db41+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23085 cat >conftest.$ac_ext <<_ACEOF
23086 #line $LINENO "configure"
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 #ifdef HAVE_DB_185_H
23094 # include <db_185.h>
23099 #ifndef DB_VERSION_MAJOR
23100 # define DB_VERSION_MAJOR 1
23104 #define NULL ((void*)0)
23111 #if DB_VERSION_MAJOR > 1
23114 int major, minor, patch;
23116 version = db_version( &major, &minor, &patch );
23118 if( major != DB_VERSION_MAJOR ||
23119 minor < DB_VERSION_MINOR )
23121 printf("Berkeley DB version mismatch\n"
23122 "\texpected: %s\n\tgot: %s\n",
23123 DB_VERSION_STRING, version);
23129 #if DB_VERSION_MAJOR > 2
23130 db_env_create( NULL, 0 );
23131 #elif DB_VERSION_MAJOR > 1
23132 db_appexit( NULL );
23134 (void) dbopen( NULL, 0, 0, 0, NULL);
23141 rm -f conftest.$ac_objext conftest$ac_exeext
23142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23143 (eval $ac_link) 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
23147 { ac_try='test -s conftest$ac_exeext'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }; then
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23165 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
23166 echo "${ECHO_T}$ol_cv_db_db41" >&6
23168 if test $ol_cv_db_db41 = yes ; then
23169 ol_cv_lib_db=-ldb41
23173 if test $ol_cv_lib_db = no ; then
23174 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
23175 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
23176 if test "${ol_cv_db_db_41+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23184 cat >conftest.$ac_ext <<_ACEOF
23185 #line $LINENO "configure"
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23192 #ifdef HAVE_DB_185_H
23193 # include <db_185.h>
23198 #ifndef DB_VERSION_MAJOR
23199 # define DB_VERSION_MAJOR 1
23203 #define NULL ((void*)0)
23210 #if DB_VERSION_MAJOR > 1
23213 int major, minor, patch;
23215 version = db_version( &major, &minor, &patch );
23217 if( major != DB_VERSION_MAJOR ||
23218 minor < DB_VERSION_MINOR )
23220 printf("Berkeley DB version mismatch\n"
23221 "\texpected: %s\n\tgot: %s\n",
23222 DB_VERSION_STRING, version);
23228 #if DB_VERSION_MAJOR > 2
23229 db_env_create( NULL, 0 );
23230 #elif DB_VERSION_MAJOR > 1
23231 db_appexit( NULL );
23233 (void) dbopen( NULL, 0, 0, 0, NULL);
23240 rm -f conftest.$ac_objext conftest$ac_exeext
23241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23242 (eval $ac_link) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
23246 { ac_try='test -s conftest$ac_exeext'
23247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23264 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
23265 echo "${ECHO_T}$ol_cv_db_db_41" >&6
23267 if test $ol_cv_db_db_41 = yes ; then
23268 ol_cv_lib_db=-ldb-41
23272 if test $ol_cv_lib_db = no ; then
23273 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
23274 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
23275 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23283 cat >conftest.$ac_ext <<_ACEOF
23284 #line $LINENO "configure"
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23291 #ifdef HAVE_DB_185_H
23292 # include <db_185.h>
23297 #ifndef DB_VERSION_MAJOR
23298 # define DB_VERSION_MAJOR 1
23302 #define NULL ((void*)0)
23309 #if DB_VERSION_MAJOR > 1
23312 int major, minor, patch;
23314 version = db_version( &major, &minor, &patch );
23316 if( major != DB_VERSION_MAJOR ||
23317 minor < DB_VERSION_MINOR )
23319 printf("Berkeley DB version mismatch\n"
23320 "\texpected: %s\n\tgot: %s\n",
23321 DB_VERSION_STRING, version);
23327 #if DB_VERSION_MAJOR > 2
23328 db_env_create( NULL, 0 );
23329 #elif DB_VERSION_MAJOR > 1
23330 db_appexit( NULL );
23332 (void) dbopen( NULL, 0, 0, 0, NULL);
23339 rm -f conftest.$ac_objext conftest$ac_exeext
23340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23341 (eval $ac_link) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 ol_cv_db_db_4_dot_1=yes
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ol_cv_db_db_4_dot_1=no
23358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23363 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
23364 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
23366 if test $ol_cv_db_db_4_dot_1 = yes ; then
23367 ol_cv_lib_db=-ldb-4.1
23371 if test $ol_cv_lib_db = no ; then
23372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
23373 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
23374 if test "${ol_cv_db_db_4_1+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23382 cat >conftest.$ac_ext <<_ACEOF
23383 #line $LINENO "configure"
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23390 #ifdef HAVE_DB_185_H
23391 # include <db_185.h>
23396 #ifndef DB_VERSION_MAJOR
23397 # define DB_VERSION_MAJOR 1
23401 #define NULL ((void*)0)
23408 #if DB_VERSION_MAJOR > 1
23411 int major, minor, patch;
23413 version = db_version( &major, &minor, &patch );
23415 if( major != DB_VERSION_MAJOR ||
23416 minor < DB_VERSION_MINOR )
23418 printf("Berkeley DB version mismatch\n"
23419 "\texpected: %s\n\tgot: %s\n",
23420 DB_VERSION_STRING, version);
23426 #if DB_VERSION_MAJOR > 2
23427 db_env_create( NULL, 0 );
23428 #elif DB_VERSION_MAJOR > 1
23429 db_appexit( NULL );
23431 (void) dbopen( NULL, 0, 0, 0, NULL);
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
23444 { ac_try='test -s conftest$ac_exeext'
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ol_cv_db_db_4_1=yes
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
23463 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
23465 if test $ol_cv_db_db_4_1 = yes ; then
23466 ol_cv_lib_db=-ldb-4-1
23470 if test $ol_cv_lib_db = no ; then
23471 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
23472 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
23473 if test "${ol_cv_db_db_4+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23481 cat >conftest.$ac_ext <<_ACEOF
23482 #line $LINENO "configure"
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23489 #ifdef HAVE_DB_185_H
23490 # include <db_185.h>
23495 #ifndef DB_VERSION_MAJOR
23496 # define DB_VERSION_MAJOR 1
23500 #define NULL ((void*)0)
23507 #if DB_VERSION_MAJOR > 1
23510 int major, minor, patch;
23512 version = db_version( &major, &minor, &patch );
23514 if( major != DB_VERSION_MAJOR ||
23515 minor < DB_VERSION_MINOR )
23517 printf("Berkeley DB version mismatch\n"
23518 "\texpected: %s\n\tgot: %s\n",
23519 DB_VERSION_STRING, version);
23525 #if DB_VERSION_MAJOR > 2
23526 db_env_create( NULL, 0 );
23527 #elif DB_VERSION_MAJOR > 1
23528 db_appexit( NULL );
23530 (void) dbopen( NULL, 0, 0, 0, NULL);
23537 rm -f conftest.$ac_objext conftest$ac_exeext
23538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23539 (eval $ac_link) 2>&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } &&
23543 { ac_try='test -s conftest$ac_exeext'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23561 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
23562 echo "${ECHO_T}$ol_cv_db_db_4" >&6
23564 if test $ol_cv_db_db_4 = yes ; then
23565 ol_cv_lib_db=-ldb-4
23569 if test $ol_cv_lib_db = no ; then
23570 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
23571 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
23572 if test "${ol_cv_db_db4+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23580 cat >conftest.$ac_ext <<_ACEOF
23581 #line $LINENO "configure"
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23588 #ifdef HAVE_DB_185_H
23589 # include <db_185.h>
23594 #ifndef DB_VERSION_MAJOR
23595 # define DB_VERSION_MAJOR 1
23599 #define NULL ((void*)0)
23606 #if DB_VERSION_MAJOR > 1
23609 int major, minor, patch;
23611 version = db_version( &major, &minor, &patch );
23613 if( major != DB_VERSION_MAJOR ||
23614 minor < DB_VERSION_MINOR )
23616 printf("Berkeley DB version mismatch\n"
23617 "\texpected: %s\n\tgot: %s\n",
23618 DB_VERSION_STRING, version);
23624 #if DB_VERSION_MAJOR > 2
23625 db_env_create( NULL, 0 );
23626 #elif DB_VERSION_MAJOR > 1
23627 db_appexit( NULL );
23629 (void) dbopen( NULL, 0, 0, 0, NULL);
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638 (eval $ac_link) 2>&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } &&
23642 { ac_try='test -s conftest$ac_exeext'
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; }; then
23650 echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23660 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
23661 echo "${ECHO_T}$ol_cv_db_db4" >&6
23663 if test $ol_cv_db_db4 = yes ; then
23668 if test $ol_cv_lib_db = no ; then
23669 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
23670 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
23671 if test "${ol_cv_db_db+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23679 cat >conftest.$ac_ext <<_ACEOF
23680 #line $LINENO "configure"
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23687 #ifdef HAVE_DB_185_H
23688 # include <db_185.h>
23693 #ifndef DB_VERSION_MAJOR
23694 # define DB_VERSION_MAJOR 1
23698 #define NULL ((void*)0)
23705 #if DB_VERSION_MAJOR > 1
23708 int major, minor, patch;
23710 version = db_version( &major, &minor, &patch );
23712 if( major != DB_VERSION_MAJOR ||
23713 minor < DB_VERSION_MINOR )
23715 printf("Berkeley DB version mismatch\n"
23716 "\texpected: %s\n\tgot: %s\n",
23717 DB_VERSION_STRING, version);
23723 #if DB_VERSION_MAJOR > 2
23724 db_env_create( NULL, 0 );
23725 #elif DB_VERSION_MAJOR > 1
23726 db_appexit( NULL );
23728 (void) dbopen( NULL, 0, 0, 0, NULL);
23735 rm -f conftest.$ac_objext conftest$ac_exeext
23736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23737 (eval $ac_link) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } &&
23741 { ac_try='test -s conftest$ac_exeext'
23742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743 (eval $ac_try) 2>&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23759 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
23760 echo "${ECHO_T}$ol_cv_db_db" >&6
23762 if test $ol_cv_db_db = yes ; then
23767 if test $ol_cv_lib_db = no ; then
23768 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
23769 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
23770 if test "${ol_cv_db_db3+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23778 cat >conftest.$ac_ext <<_ACEOF
23779 #line $LINENO "configure"
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23786 #ifdef HAVE_DB_185_H
23787 # include <db_185.h>
23792 #ifndef DB_VERSION_MAJOR
23793 # define DB_VERSION_MAJOR 1
23797 #define NULL ((void*)0)
23804 #if DB_VERSION_MAJOR > 1
23807 int major, minor, patch;
23809 version = db_version( &major, &minor, &patch );
23811 if( major != DB_VERSION_MAJOR ||
23812 minor < DB_VERSION_MINOR )
23814 printf("Berkeley DB version mismatch\n"
23815 "\texpected: %s\n\tgot: %s\n",
23816 DB_VERSION_STRING, version);
23822 #if DB_VERSION_MAJOR > 2
23823 db_env_create( NULL, 0 );
23824 #elif DB_VERSION_MAJOR > 1
23825 db_appexit( NULL );
23827 (void) dbopen( NULL, 0, 0, 0, NULL);
23834 rm -f conftest.$ac_objext conftest$ac_exeext
23835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23836 (eval $ac_link) 2>&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } &&
23840 { ac_try='test -s conftest$ac_exeext'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; }; then
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23858 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
23859 echo "${ECHO_T}$ol_cv_db_db3" >&6
23861 if test $ol_cv_db_db3 = yes ; then
23866 if test $ol_cv_lib_db = no ; then
23867 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
23868 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
23869 if test "${ol_cv_db_db_3+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23875 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23877 cat >conftest.$ac_ext <<_ACEOF
23878 #line $LINENO "configure"
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23885 #ifdef HAVE_DB_185_H
23886 # include <db_185.h>
23891 #ifndef DB_VERSION_MAJOR
23892 # define DB_VERSION_MAJOR 1
23896 #define NULL ((void*)0)
23903 #if DB_VERSION_MAJOR > 1
23906 int major, minor, patch;
23908 version = db_version( &major, &minor, &patch );
23910 if( major != DB_VERSION_MAJOR ||
23911 minor < DB_VERSION_MINOR )
23913 printf("Berkeley DB version mismatch\n"
23914 "\texpected: %s\n\tgot: %s\n",
23915 DB_VERSION_STRING, version);
23921 #if DB_VERSION_MAJOR > 2
23922 db_env_create( NULL, 0 );
23923 #elif DB_VERSION_MAJOR > 1
23924 db_appexit( NULL );
23926 (void) dbopen( NULL, 0, 0, 0, NULL);
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23935 (eval $ac_link) 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } &&
23939 { ac_try='test -s conftest$ac_exeext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23957 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
23958 echo "${ECHO_T}$ol_cv_db_db_3" >&6
23960 if test $ol_cv_db_db_3 = yes ; then
23961 ol_cv_lib_db=-ldb-3
23965 if test $ol_cv_lib_db = no ; then
23966 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
23967 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
23968 if test "${ol_cv_db_db2+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
23976 cat >conftest.$ac_ext <<_ACEOF
23977 #line $LINENO "configure"
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23984 #ifdef HAVE_DB_185_H
23985 # include <db_185.h>
23990 #ifndef DB_VERSION_MAJOR
23991 # define DB_VERSION_MAJOR 1
23995 #define NULL ((void*)0)
24002 #if DB_VERSION_MAJOR > 1
24005 int major, minor, patch;
24007 version = db_version( &major, &minor, &patch );
24009 if( major != DB_VERSION_MAJOR ||
24010 minor < DB_VERSION_MINOR )
24012 printf("Berkeley DB version mismatch\n"
24013 "\texpected: %s\n\tgot: %s\n",
24014 DB_VERSION_STRING, version);
24020 #if DB_VERSION_MAJOR > 2
24021 db_env_create( NULL, 0 );
24022 #elif DB_VERSION_MAJOR > 1
24023 db_appexit( NULL );
24025 (void) dbopen( NULL, 0, 0, 0, NULL);
24032 rm -f conftest.$ac_objext conftest$ac_exeext
24033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24034 (eval $ac_link) 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
24038 { ac_try='test -s conftest$ac_exeext'
24039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24046 echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
24057 echo "${ECHO_T}$ol_cv_db_db2" >&6
24059 if test $ol_cv_db_db2 = yes ; then
24064 if test $ol_cv_lib_db = no ; then
24065 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
24066 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
24067 if test "${ol_cv_db_db_2+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24075 cat >conftest.$ac_ext <<_ACEOF
24076 #line $LINENO "configure"
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24083 #ifdef HAVE_DB_185_H
24084 # include <db_185.h>
24089 #ifndef DB_VERSION_MAJOR
24090 # define DB_VERSION_MAJOR 1
24094 #define NULL ((void*)0)
24101 #if DB_VERSION_MAJOR > 1
24104 int major, minor, patch;
24106 version = db_version( &major, &minor, &patch );
24108 if( major != DB_VERSION_MAJOR ||
24109 minor < DB_VERSION_MINOR )
24111 printf("Berkeley DB version mismatch\n"
24112 "\texpected: %s\n\tgot: %s\n",
24113 DB_VERSION_STRING, version);
24119 #if DB_VERSION_MAJOR > 2
24120 db_env_create( NULL, 0 );
24121 #elif DB_VERSION_MAJOR > 1
24122 db_appexit( NULL );
24124 (void) dbopen( NULL, 0, 0, 0, NULL);
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133 (eval $ac_link) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -s conftest$ac_exeext'
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139 (eval $ac_try) 2>&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; }; then
24145 echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24155 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
24156 echo "${ECHO_T}$ol_cv_db_db_2" >&6
24158 if test $ol_cv_db_db_2 = yes ; then
24159 ol_cv_lib_db=-ldb-2
24163 if test $ol_cv_lib_db = no ; then
24164 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
24165 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
24166 if test "${ol_cv_db_db1+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24174 cat >conftest.$ac_ext <<_ACEOF
24175 #line $LINENO "configure"
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24182 #ifdef HAVE_DB_185_H
24183 # include <db_185.h>
24188 #ifndef DB_VERSION_MAJOR
24189 # define DB_VERSION_MAJOR 1
24193 #define NULL ((void*)0)
24200 #if DB_VERSION_MAJOR > 1
24203 int major, minor, patch;
24205 version = db_version( &major, &minor, &patch );
24207 if( major != DB_VERSION_MAJOR ||
24208 minor < DB_VERSION_MINOR )
24210 printf("Berkeley DB version mismatch\n"
24211 "\texpected: %s\n\tgot: %s\n",
24212 DB_VERSION_STRING, version);
24218 #if DB_VERSION_MAJOR > 2
24219 db_env_create( NULL, 0 );
24220 #elif DB_VERSION_MAJOR > 1
24221 db_appexit( NULL );
24223 (void) dbopen( NULL, 0, 0, 0, NULL);
24230 rm -f conftest.$ac_objext conftest$ac_exeext
24231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24232 (eval $ac_link) 2>&5
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } &&
24236 { ac_try='test -s conftest$ac_exeext'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24254 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
24255 echo "${ECHO_T}$ol_cv_db_db1" >&6
24257 if test $ol_cv_db_db1 = yes ; then
24262 if test $ol_cv_lib_db = no ; then
24263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
24264 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
24265 if test "${ol_cv_db_db_1+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24273 cat >conftest.$ac_ext <<_ACEOF
24274 #line $LINENO "configure"
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24281 #ifdef HAVE_DB_185_H
24282 # include <db_185.h>
24287 #ifndef DB_VERSION_MAJOR
24288 # define DB_VERSION_MAJOR 1
24292 #define NULL ((void*)0)
24299 #if DB_VERSION_MAJOR > 1
24302 int major, minor, patch;
24304 version = db_version( &major, &minor, &patch );
24306 if( major != DB_VERSION_MAJOR ||
24307 minor < DB_VERSION_MINOR )
24309 printf("Berkeley DB version mismatch\n"
24310 "\texpected: %s\n\tgot: %s\n",
24311 DB_VERSION_STRING, version);
24317 #if DB_VERSION_MAJOR > 2
24318 db_env_create( NULL, 0 );
24319 #elif DB_VERSION_MAJOR > 1
24320 db_appexit( NULL );
24322 (void) dbopen( NULL, 0, 0, 0, NULL);
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331 (eval $ac_link) 2>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -s conftest$ac_exeext'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24353 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
24354 echo "${ECHO_T}$ol_cv_db_db_1" >&6
24356 if test $ol_cv_db_db_1 = yes ; then
24357 ol_cv_lib_db=-ldb-1
24362 if test "$ol_cv_lib_db" != no ; then
24363 ol_cv_berkeley_db=yes
24369 ol_cv_berkeley_db=no
24371 for ac_header in db.h
24373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24375 echo "$as_me:$LINENO: checking for $ac_header" >&5
24376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24383 # Is the header compilable?
24384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24386 cat >conftest.$ac_ext <<_ACEOF
24387 #line $LINENO "configure"
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24393 $ac_includes_default
24394 #include <$ac_header>
24396 rm -f conftest.$ac_objext
24397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24398 (eval $ac_compile) 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } &&
24402 { ac_try='test -s conftest.$ac_objext'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24408 ac_header_compiler=yes
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 ac_header_compiler=no
24415 rm -f conftest.$ac_objext conftest.$ac_ext
24416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24417 echo "${ECHO_T}$ac_header_compiler" >&6
24419 # Is the header present?
24420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24422 cat >conftest.$ac_ext <<_ACEOF
24423 #line $LINENO "configure"
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 #include <$ac_header>
24431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } >/dev/null; then
24439 if test -s conftest.err; then
24440 ac_cpp_err=$ac_c_preproc_warn_flag
24447 if test -z "$ac_cpp_err"; then
24448 ac_header_preproc=yes
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_header_preproc=no
24455 rm -f conftest.err conftest.$ac_ext
24456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24457 echo "${ECHO_T}$ac_header_preproc" >&6
24459 # So? What about this header?
24460 case $ac_header_compiler:$ac_header_preproc in
24462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468 ## ------------------------------------ ##
24469 ## Report this to bug-autoconf@gnu.org. ##
24470 ## ------------------------------------ ##
24473 sed "s/^/$as_me: WARNING: /" >&2
24476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24484 ## ------------------------------------ ##
24485 ## Report this to bug-autoconf@gnu.org. ##
24486 ## ------------------------------------ ##
24489 sed "s/^/$as_me: WARNING: /" >&2
24492 echo "$as_me:$LINENO: checking for $ac_header" >&5
24493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 eval "$as_ac_Header=$ac_header_preproc"
24499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24504 cat >>confdefs.h <<_ACEOF
24505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24512 if test $ac_cv_header_db_h = yes; then
24514 if test $ol_cv_lib_db = no ; then
24515 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
24516 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
24517 if test "${ol_cv_db_none+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24523 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24525 cat >conftest.$ac_ext <<_ACEOF
24526 #line $LINENO "configure"
24529 cat confdefs.h >>conftest.$ac_ext
24530 cat >>conftest.$ac_ext <<_ACEOF
24531 /* end confdefs.h. */
24533 #ifdef HAVE_DB_185_H
24534 # include <db_185.h>
24539 #ifndef DB_VERSION_MAJOR
24540 # define DB_VERSION_MAJOR 1
24544 #define NULL ((void*)0)
24551 #if DB_VERSION_MAJOR > 1
24554 int major, minor, patch;
24556 version = db_version( &major, &minor, &patch );
24558 if( major != DB_VERSION_MAJOR ||
24559 minor < DB_VERSION_MINOR )
24561 printf("Berkeley DB version mismatch\n"
24562 "\texpected: %s\n\tgot: %s\n",
24563 DB_VERSION_STRING, version);
24569 #if DB_VERSION_MAJOR > 2
24570 db_env_create( NULL, 0 );
24571 #elif DB_VERSION_MAJOR > 1
24572 db_appexit( NULL );
24574 (void) dbopen( NULL, 0, 0, 0, NULL);
24581 rm -f conftest.$ac_objext conftest$ac_exeext
24582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24583 (eval $ac_link) 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } &&
24587 { ac_try='test -s conftest$ac_exeext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24605 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
24606 echo "${ECHO_T}$ol_cv_db_none" >&6
24608 if test $ol_cv_db_none = yes ; then
24613 if test $ol_cv_lib_db = no ; then
24614 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
24615 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
24616 if test "${ol_cv_db_db41+set}" = set; then
24617 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24624 cat >conftest.$ac_ext <<_ACEOF
24625 #line $LINENO "configure"
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24632 #ifdef HAVE_DB_185_H
24633 # include <db_185.h>
24638 #ifndef DB_VERSION_MAJOR
24639 # define DB_VERSION_MAJOR 1
24643 #define NULL ((void*)0)
24650 #if DB_VERSION_MAJOR > 1
24653 int major, minor, patch;
24655 version = db_version( &major, &minor, &patch );
24657 if( major != DB_VERSION_MAJOR ||
24658 minor < DB_VERSION_MINOR )
24660 printf("Berkeley DB version mismatch\n"
24661 "\texpected: %s\n\tgot: %s\n",
24662 DB_VERSION_STRING, version);
24668 #if DB_VERSION_MAJOR > 2
24669 db_env_create( NULL, 0 );
24670 #elif DB_VERSION_MAJOR > 1
24671 db_appexit( NULL );
24673 (void) dbopen( NULL, 0, 0, 0, NULL);
24680 rm -f conftest.$ac_objext conftest$ac_exeext
24681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24682 (eval $ac_link) 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
24686 { ac_try='test -s conftest$ac_exeext'
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24704 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
24705 echo "${ECHO_T}$ol_cv_db_db41" >&6
24707 if test $ol_cv_db_db41 = yes ; then
24708 ol_cv_lib_db=-ldb41
24712 if test $ol_cv_lib_db = no ; then
24713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
24714 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
24715 if test "${ol_cv_db_db_41+set}" = set; then
24716 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24723 cat >conftest.$ac_ext <<_ACEOF
24724 #line $LINENO "configure"
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24731 #ifdef HAVE_DB_185_H
24732 # include <db_185.h>
24737 #ifndef DB_VERSION_MAJOR
24738 # define DB_VERSION_MAJOR 1
24742 #define NULL ((void*)0)
24749 #if DB_VERSION_MAJOR > 1
24752 int major, minor, patch;
24754 version = db_version( &major, &minor, &patch );
24756 if( major != DB_VERSION_MAJOR ||
24757 minor < DB_VERSION_MINOR )
24759 printf("Berkeley DB version mismatch\n"
24760 "\texpected: %s\n\tgot: %s\n",
24761 DB_VERSION_STRING, version);
24767 #if DB_VERSION_MAJOR > 2
24768 db_env_create( NULL, 0 );
24769 #elif DB_VERSION_MAJOR > 1
24770 db_appexit( NULL );
24772 (void) dbopen( NULL, 0, 0, 0, NULL);
24779 rm -f conftest.$ac_objext conftest$ac_exeext
24780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -s conftest$ac_exeext'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24803 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
24804 echo "${ECHO_T}$ol_cv_db_db_41" >&6
24806 if test $ol_cv_db_db_41 = yes ; then
24807 ol_cv_lib_db=-ldb-41
24811 if test $ol_cv_lib_db = no ; then
24812 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
24813 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
24814 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24822 cat >conftest.$ac_ext <<_ACEOF
24823 #line $LINENO "configure"
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24830 #ifdef HAVE_DB_185_H
24831 # include <db_185.h>
24836 #ifndef DB_VERSION_MAJOR
24837 # define DB_VERSION_MAJOR 1
24841 #define NULL ((void*)0)
24848 #if DB_VERSION_MAJOR > 1
24851 int major, minor, patch;
24853 version = db_version( &major, &minor, &patch );
24855 if( major != DB_VERSION_MAJOR ||
24856 minor < DB_VERSION_MINOR )
24858 printf("Berkeley DB version mismatch\n"
24859 "\texpected: %s\n\tgot: %s\n",
24860 DB_VERSION_STRING, version);
24866 #if DB_VERSION_MAJOR > 2
24867 db_env_create( NULL, 0 );
24868 #elif DB_VERSION_MAJOR > 1
24869 db_appexit( NULL );
24871 (void) dbopen( NULL, 0, 0, 0, NULL);
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880 (eval $ac_link) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -s conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ol_cv_db_db_4_dot_1=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ol_cv_db_db_4_dot_1=no
24897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24902 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
24903 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
24905 if test $ol_cv_db_db_4_dot_1 = yes ; then
24906 ol_cv_lib_db=-ldb-4.1
24910 if test $ol_cv_lib_db = no ; then
24911 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
24912 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
24913 if test "${ol_cv_db_db_4_1+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24919 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
24921 cat >conftest.$ac_ext <<_ACEOF
24922 #line $LINENO "configure"
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24929 #ifdef HAVE_DB_185_H
24930 # include <db_185.h>
24935 #ifndef DB_VERSION_MAJOR
24936 # define DB_VERSION_MAJOR 1
24940 #define NULL ((void*)0)
24947 #if DB_VERSION_MAJOR > 1
24950 int major, minor, patch;
24952 version = db_version( &major, &minor, &patch );
24954 if( major != DB_VERSION_MAJOR ||
24955 minor < DB_VERSION_MINOR )
24957 printf("Berkeley DB version mismatch\n"
24958 "\texpected: %s\n\tgot: %s\n",
24959 DB_VERSION_STRING, version);
24965 #if DB_VERSION_MAJOR > 2
24966 db_env_create( NULL, 0 );
24967 #elif DB_VERSION_MAJOR > 1
24968 db_appexit( NULL );
24970 (void) dbopen( NULL, 0, 0, 0, NULL);
24977 rm -f conftest.$ac_objext conftest$ac_exeext
24978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24979 (eval $ac_link) 2>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
24983 { ac_try='test -s conftest$ac_exeext'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24989 ol_cv_db_db_4_1=yes
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25001 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
25002 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
25004 if test $ol_cv_db_db_4_1 = yes ; then
25005 ol_cv_lib_db=-ldb-4-1
25009 if test $ol_cv_lib_db = no ; then
25010 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
25011 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
25012 if test "${ol_cv_db_db_4+set}" = set; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25018 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25020 cat >conftest.$ac_ext <<_ACEOF
25021 #line $LINENO "configure"
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25028 #ifdef HAVE_DB_185_H
25029 # include <db_185.h>
25034 #ifndef DB_VERSION_MAJOR
25035 # define DB_VERSION_MAJOR 1
25039 #define NULL ((void*)0)
25046 #if DB_VERSION_MAJOR > 1
25049 int major, minor, patch;
25051 version = db_version( &major, &minor, &patch );
25053 if( major != DB_VERSION_MAJOR ||
25054 minor < DB_VERSION_MINOR )
25056 printf("Berkeley DB version mismatch\n"
25057 "\texpected: %s\n\tgot: %s\n",
25058 DB_VERSION_STRING, version);
25064 #if DB_VERSION_MAJOR > 2
25065 db_env_create( NULL, 0 );
25066 #elif DB_VERSION_MAJOR > 1
25067 db_appexit( NULL );
25069 (void) dbopen( NULL, 0, 0, 0, NULL);
25076 rm -f conftest.$ac_objext conftest$ac_exeext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25078 (eval $ac_link) 2>&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } &&
25082 { ac_try='test -s conftest$ac_exeext'
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; }; then
25090 echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25100 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
25101 echo "${ECHO_T}$ol_cv_db_db_4" >&6
25103 if test $ol_cv_db_db_4 = yes ; then
25104 ol_cv_lib_db=-ldb-4
25108 if test $ol_cv_lib_db = no ; then
25109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
25110 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
25111 if test "${ol_cv_db_db4+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25120 #line $LINENO "configure"
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h. */
25127 #ifdef HAVE_DB_185_H
25128 # include <db_185.h>
25133 #ifndef DB_VERSION_MAJOR
25134 # define DB_VERSION_MAJOR 1
25138 #define NULL ((void*)0)
25145 #if DB_VERSION_MAJOR > 1
25148 int major, minor, patch;
25150 version = db_version( &major, &minor, &patch );
25152 if( major != DB_VERSION_MAJOR ||
25153 minor < DB_VERSION_MINOR )
25155 printf("Berkeley DB version mismatch\n"
25156 "\texpected: %s\n\tgot: %s\n",
25157 DB_VERSION_STRING, version);
25163 #if DB_VERSION_MAJOR > 2
25164 db_env_create( NULL, 0 );
25165 #elif DB_VERSION_MAJOR > 1
25166 db_appexit( NULL );
25168 (void) dbopen( NULL, 0, 0, 0, NULL);
25175 rm -f conftest.$ac_objext conftest$ac_exeext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177 (eval $ac_link) 2>&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } &&
25181 { ac_try='test -s conftest$ac_exeext'
25182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183 (eval $ac_try) 2>&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); }; }; then
25189 echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25199 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
25200 echo "${ECHO_T}$ol_cv_db_db4" >&6
25202 if test $ol_cv_db_db4 = yes ; then
25207 if test $ol_cv_lib_db = no ; then
25208 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
25209 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
25210 if test "${ol_cv_db_db+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25218 cat >conftest.$ac_ext <<_ACEOF
25219 #line $LINENO "configure"
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25226 #ifdef HAVE_DB_185_H
25227 # include <db_185.h>
25232 #ifndef DB_VERSION_MAJOR
25233 # define DB_VERSION_MAJOR 1
25237 #define NULL ((void*)0)
25244 #if DB_VERSION_MAJOR > 1
25247 int major, minor, patch;
25249 version = db_version( &major, &minor, &patch );
25251 if( major != DB_VERSION_MAJOR ||
25252 minor < DB_VERSION_MINOR )
25254 printf("Berkeley DB version mismatch\n"
25255 "\texpected: %s\n\tgot: %s\n",
25256 DB_VERSION_STRING, version);
25262 #if DB_VERSION_MAJOR > 2
25263 db_env_create( NULL, 0 );
25264 #elif DB_VERSION_MAJOR > 1
25265 db_appexit( NULL );
25267 (void) dbopen( NULL, 0, 0, 0, NULL);
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25276 (eval $ac_link) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -s conftest$ac_exeext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25298 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
25299 echo "${ECHO_T}$ol_cv_db_db" >&6
25301 if test $ol_cv_db_db = yes ; then
25306 if test $ol_cv_lib_db = no ; then
25307 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
25308 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
25309 if test "${ol_cv_db_db3+set}" = set; then
25310 echo $ECHO_N "(cached) $ECHO_C" >&6
25315 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25317 cat >conftest.$ac_ext <<_ACEOF
25318 #line $LINENO "configure"
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25325 #ifdef HAVE_DB_185_H
25326 # include <db_185.h>
25331 #ifndef DB_VERSION_MAJOR
25332 # define DB_VERSION_MAJOR 1
25336 #define NULL ((void*)0)
25343 #if DB_VERSION_MAJOR > 1
25346 int major, minor, patch;
25348 version = db_version( &major, &minor, &patch );
25350 if( major != DB_VERSION_MAJOR ||
25351 minor < DB_VERSION_MINOR )
25353 printf("Berkeley DB version mismatch\n"
25354 "\texpected: %s\n\tgot: %s\n",
25355 DB_VERSION_STRING, version);
25361 #if DB_VERSION_MAJOR > 2
25362 db_env_create( NULL, 0 );
25363 #elif DB_VERSION_MAJOR > 1
25364 db_appexit( NULL );
25366 (void) dbopen( NULL, 0, 0, 0, NULL);
25373 rm -f conftest.$ac_objext conftest$ac_exeext
25374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25375 (eval $ac_link) 2>&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); } &&
25379 { ac_try='test -s conftest$ac_exeext'
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; }; then
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25397 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
25398 echo "${ECHO_T}$ol_cv_db_db3" >&6
25400 if test $ol_cv_db_db3 = yes ; then
25405 if test $ol_cv_lib_db = no ; then
25406 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
25407 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
25408 if test "${ol_cv_db_db_3+set}" = set; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25414 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25416 cat >conftest.$ac_ext <<_ACEOF
25417 #line $LINENO "configure"
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h. */
25424 #ifdef HAVE_DB_185_H
25425 # include <db_185.h>
25430 #ifndef DB_VERSION_MAJOR
25431 # define DB_VERSION_MAJOR 1
25435 #define NULL ((void*)0)
25442 #if DB_VERSION_MAJOR > 1
25445 int major, minor, patch;
25447 version = db_version( &major, &minor, &patch );
25449 if( major != DB_VERSION_MAJOR ||
25450 minor < DB_VERSION_MINOR )
25452 printf("Berkeley DB version mismatch\n"
25453 "\texpected: %s\n\tgot: %s\n",
25454 DB_VERSION_STRING, version);
25460 #if DB_VERSION_MAJOR > 2
25461 db_env_create( NULL, 0 );
25462 #elif DB_VERSION_MAJOR > 1
25463 db_appexit( NULL );
25465 (void) dbopen( NULL, 0, 0, 0, NULL);
25472 rm -f conftest.$ac_objext conftest$ac_exeext
25473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25474 (eval $ac_link) 2>&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -s conftest$ac_exeext'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25486 echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25496 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
25497 echo "${ECHO_T}$ol_cv_db_db_3" >&6
25499 if test $ol_cv_db_db_3 = yes ; then
25500 ol_cv_lib_db=-ldb-3
25504 if test $ol_cv_lib_db = no ; then
25505 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
25506 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
25507 if test "${ol_cv_db_db2+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25513 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25515 cat >conftest.$ac_ext <<_ACEOF
25516 #line $LINENO "configure"
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h. */
25523 #ifdef HAVE_DB_185_H
25524 # include <db_185.h>
25529 #ifndef DB_VERSION_MAJOR
25530 # define DB_VERSION_MAJOR 1
25534 #define NULL ((void*)0)
25541 #if DB_VERSION_MAJOR > 1
25544 int major, minor, patch;
25546 version = db_version( &major, &minor, &patch );
25548 if( major != DB_VERSION_MAJOR ||
25549 minor < DB_VERSION_MINOR )
25551 printf("Berkeley DB version mismatch\n"
25552 "\texpected: %s\n\tgot: %s\n",
25553 DB_VERSION_STRING, version);
25559 #if DB_VERSION_MAJOR > 2
25560 db_env_create( NULL, 0 );
25561 #elif DB_VERSION_MAJOR > 1
25562 db_appexit( NULL );
25564 (void) dbopen( NULL, 0, 0, 0, NULL);
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25573 (eval $ac_link) 2>&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } &&
25577 { ac_try='test -s conftest$ac_exeext'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; }; then
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25595 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
25596 echo "${ECHO_T}$ol_cv_db_db2" >&6
25598 if test $ol_cv_db_db2 = yes ; then
25603 if test $ol_cv_lib_db = no ; then
25604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
25605 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
25606 if test "${ol_cv_db_db_2+set}" = set; then
25607 echo $ECHO_N "(cached) $ECHO_C" >&6
25612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25614 cat >conftest.$ac_ext <<_ACEOF
25615 #line $LINENO "configure"
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25622 #ifdef HAVE_DB_185_H
25623 # include <db_185.h>
25628 #ifndef DB_VERSION_MAJOR
25629 # define DB_VERSION_MAJOR 1
25633 #define NULL ((void*)0)
25640 #if DB_VERSION_MAJOR > 1
25643 int major, minor, patch;
25645 version = db_version( &major, &minor, &patch );
25647 if( major != DB_VERSION_MAJOR ||
25648 minor < DB_VERSION_MINOR )
25650 printf("Berkeley DB version mismatch\n"
25651 "\texpected: %s\n\tgot: %s\n",
25652 DB_VERSION_STRING, version);
25658 #if DB_VERSION_MAJOR > 2
25659 db_env_create( NULL, 0 );
25660 #elif DB_VERSION_MAJOR > 1
25661 db_appexit( NULL );
25663 (void) dbopen( NULL, 0, 0, 0, NULL);
25670 rm -f conftest.$ac_objext conftest$ac_exeext
25671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25672 (eval $ac_link) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } &&
25676 { ac_try='test -s conftest$ac_exeext'
25677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678 (eval $ac_try) 2>&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); }; }; then
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25694 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
25695 echo "${ECHO_T}$ol_cv_db_db_2" >&6
25697 if test $ol_cv_db_db_2 = yes ; then
25698 ol_cv_lib_db=-ldb-2
25702 if test $ol_cv_lib_db = no ; then
25703 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
25704 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
25705 if test "${ol_cv_db_db1+set}" = set; then
25706 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25713 cat >conftest.$ac_ext <<_ACEOF
25714 #line $LINENO "configure"
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25721 #ifdef HAVE_DB_185_H
25722 # include <db_185.h>
25727 #ifndef DB_VERSION_MAJOR
25728 # define DB_VERSION_MAJOR 1
25732 #define NULL ((void*)0)
25739 #if DB_VERSION_MAJOR > 1
25742 int major, minor, patch;
25744 version = db_version( &major, &minor, &patch );
25746 if( major != DB_VERSION_MAJOR ||
25747 minor < DB_VERSION_MINOR )
25749 printf("Berkeley DB version mismatch\n"
25750 "\texpected: %s\n\tgot: %s\n",
25751 DB_VERSION_STRING, version);
25757 #if DB_VERSION_MAJOR > 2
25758 db_env_create( NULL, 0 );
25759 #elif DB_VERSION_MAJOR > 1
25760 db_appexit( NULL );
25762 (void) dbopen( NULL, 0, 0, 0, NULL);
25769 rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25771 (eval $ac_link) 2>&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } &&
25775 { ac_try='test -s conftest$ac_exeext'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25793 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
25794 echo "${ECHO_T}$ol_cv_db_db1" >&6
25796 if test $ol_cv_db_db1 = yes ; then
25801 if test $ol_cv_lib_db = no ; then
25802 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
25803 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
25804 if test "${ol_cv_db_db_1+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25810 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
25812 cat >conftest.$ac_ext <<_ACEOF
25813 #line $LINENO "configure"
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25820 #ifdef HAVE_DB_185_H
25821 # include <db_185.h>
25826 #ifndef DB_VERSION_MAJOR
25827 # define DB_VERSION_MAJOR 1
25831 #define NULL ((void*)0)
25838 #if DB_VERSION_MAJOR > 1
25841 int major, minor, patch;
25843 version = db_version( &major, &minor, &patch );
25845 if( major != DB_VERSION_MAJOR ||
25846 minor < DB_VERSION_MINOR )
25848 printf("Berkeley DB version mismatch\n"
25849 "\texpected: %s\n\tgot: %s\n",
25850 DB_VERSION_STRING, version);
25856 #if DB_VERSION_MAJOR > 2
25857 db_env_create( NULL, 0 );
25858 #elif DB_VERSION_MAJOR > 1
25859 db_appexit( NULL );
25861 (void) dbopen( NULL, 0, 0, 0, NULL);
25868 rm -f conftest.$ac_objext conftest$ac_exeext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25870 (eval $ac_link) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try='test -s conftest$ac_exeext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25892 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
25893 echo "${ECHO_T}$ol_cv_db_db_1" >&6
25895 if test $ol_cv_db_db_1 = yes ; then
25896 ol_cv_lib_db=-ldb-1
25901 if test "$ol_cv_lib_db" != no ; then
25902 ol_cv_berkeley_db=yes
25903 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
25904 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
25905 if test "${ol_cv_berkeley_db_thread+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25910 LIBS="$LTHREAD_LIBS $LIBS"
25911 if test $ol_cv_lib_db != yes ; then
25912 LIBS="$ol_cv_lib_db $LIBS"
25915 if test "$cross_compiling" = yes; then
25916 ol_cv_berkeley_db_thread=cross
25918 cat >conftest.$ac_ext <<_ACEOF
25919 #line $LINENO "configure"
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25926 #ifdef HAVE_DB_185_H
25932 #define NULL ((void *)0)
25937 u_int32_t flags = DB_CREATE |
25943 #if DB_VERSION_MAJOR > 2
25944 DB_ENV *env = NULL;
25946 rc = db_env_create( &env, 0 );
25948 flags |= DB_INIT_MPOOL;
25949 #ifdef DB_MPOOL_PRIVATE
25950 flags |= DB_MPOOL_PRIVATE;
25954 printf("BerkeleyDB: %s\n", db_strerror(rc) );
25958 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
25959 rc = env->open( env, NULL, flags, 0 );
25961 rc = env->open( env, NULL, NULL, flags, 0 );
25965 rc = env->close( env, 0 );
25969 printf("BerkeleyDB: %s\n", db_strerror(rc) );
25975 memset( &env, '\0', sizeof(env) );
25977 rc = db_appinit( NULL, NULL, &env, flags );
25980 db_appexit( &env );
25983 unlink("__db_mpool.share");
25984 unlink("__db_lock.share");
25990 rm -f conftest$ac_exeext
25991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25992 (eval $ac_link) 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; }; then
26001 ol_cv_berkeley_db_thread=yes
26003 echo "$as_me: program exited with status $ac_status" >&5
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 ( exit $ac_status )
26008 ol_cv_berkeley_db_thread=no
26010 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26016 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
26017 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
26019 if test $ol_cv_berkeley_db_thread != no ; then
26021 cat >>confdefs.h <<\_ACEOF
26022 #define HAVE_BERKELEY_DB_THREAD 1
26032 if test $ol_cv_berkeley_db != no ; then
26034 cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_BERKELEY_DB 1
26039 ol_link_ldbm=berkeley
26040 ol_with_ldbm_api=berkeley
26042 if test $ol_with_ldbm_type = hash ; then
26044 cat >>confdefs.h <<\_ACEOF
26045 #define LDBM_USE_DBHASH 1
26050 cat >>confdefs.h <<\_ACEOF
26051 #define LDBM_USE_DBBTREE 1
26056 if test $ol_cv_lib_db != yes ; then
26057 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
26062 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
26063 { { echo "$as_me:$LINENO: error: BDB: BerkeleyDB not available" >&5
26064 echo "$as_me: error: BDB: BerkeleyDB not available" >&2;}
26065 { (exit 1); exit 1; }; }
26066 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
26067 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
26068 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
26069 if test "${ol_cv_bdb_compat+set}" = set; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26073 cat >conftest.$ac_ext <<_ACEOF
26074 #line $LINENO "configure"
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h. */
26083 /* this check could be improved */
26084 #ifndef DB_VERSION_MAJOR
26085 # define DB_VERSION_MAJOR 1
26087 #ifndef DB_VERSION_MINOR
26088 # define DB_VERSION_MINOR 0
26091 /* require 4.1 or later */
26092 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
26093 __db_version_compat
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098 $EGREP "__db_version_compat" >/dev/null 2>&1; then
26099 ol_cv_bdb_compat=yes
26101 ol_cv_bdb_compat=no
26106 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
26107 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
26110 if test $ol_cv_bdb_compat = yes ; then
26112 elif test $ol_enable_bdb = yes ; then
26113 { { echo "$as_me:$LINENO: error: BDB: BerkeleyDB version incompatible" >&5
26114 echo "$as_me: error: BDB: BerkeleyDB version incompatible" >&2;}
26115 { (exit 1); exit 1; }; }
26121 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
26122 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
26123 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
26124 ol_with_ldbm_api=none
26127 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
26128 echo "$as_me:$LINENO: checking for MDBM library" >&5
26129 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
26130 if test "${ol_cv_lib_mdbm+set}" = set; then
26131 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
26135 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
26136 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 cat >conftest.$ac_ext <<_ACEOF
26140 #line $LINENO "configure"
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 /* System header to define __stub macros and hopefully few prototypes,
26147 which can conflict with char mdbm_set_chain (); below.
26148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26149 <limits.h> exists even on freestanding compilers. */
26151 # include <limits.h>
26153 # include <assert.h>
26155 /* Override any gcc2 internal prototype to avoid an error. */
26160 /* We use char because int might match the return type of a gcc2
26161 builtin and then its argument prototype would still apply. */
26162 char mdbm_set_chain ();
26163 /* The GNU C library defines this for functions which it implements
26164 to always fail with ENOSYS. Some functions are actually named
26165 something starting with __ and the normal name is an alias. */
26166 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
26169 char (*f) () = mdbm_set_chain;
26178 return f != mdbm_set_chain;
26183 rm -f conftest.$ac_objext conftest$ac_exeext
26184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26185 (eval $ac_link) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -s conftest$ac_exeext'
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; }; then
26195 ac_cv_func_mdbm_set_chain=yes
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 ac_cv_func_mdbm_set_chain=no
26202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26204 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
26205 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
26206 if test $ac_cv_func_mdbm_set_chain = yes; then
26210 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
26211 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
26212 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26215 ac_check_lib_save_LIBS=$LIBS
26216 LIBS="-lmdbm $LIBS"
26217 cat >conftest.$ac_ext <<_ACEOF
26218 #line $LINENO "configure"
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26225 /* Override any gcc2 internal prototype to avoid an error. */
26229 /* We use char because int might match the return type of a gcc2
26230 builtin and then its argument prototype would still apply. */
26231 char mdbm_set_chain ();
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26242 (eval $ac_link) 2>&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
26246 { ac_try='test -s conftest$ac_exeext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 ac_cv_lib_mdbm_mdbm_set_chain=yes
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_cv_lib_mdbm_mdbm_set_chain=no
26259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26260 LIBS=$ac_check_lib_save_LIBS
26262 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
26263 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
26264 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
26265 ol_cv_lib_mdbm=-lmdbm
26276 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
26277 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
26281 for ac_header in mdbm.h
26283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26285 echo "$as_me:$LINENO: checking for $ac_header" >&5
26286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26293 # Is the header compilable?
26294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26297 #line $LINENO "configure"
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26303 $ac_includes_default
26304 #include <$ac_header>
26306 rm -f conftest.$ac_objext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308 (eval $ac_compile) 2>&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
26312 { ac_try='test -s conftest.$ac_objext'
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; }; then
26318 ac_header_compiler=yes
26320 echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26323 ac_header_compiler=no
26325 rm -f conftest.$ac_objext conftest.$ac_ext
26326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26327 echo "${ECHO_T}$ac_header_compiler" >&6
26329 # Is the header present?
26330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26332 cat >conftest.$ac_ext <<_ACEOF
26333 #line $LINENO "configure"
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 #include <$ac_header>
26341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26344 grep -v '^ *+' conftest.er1 >conftest.err
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } >/dev/null; then
26349 if test -s conftest.err; then
26350 ac_cpp_err=$ac_c_preproc_warn_flag
26357 if test -z "$ac_cpp_err"; then
26358 ac_header_preproc=yes
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_header_preproc=no
26365 rm -f conftest.err conftest.$ac_ext
26366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26367 echo "${ECHO_T}$ac_header_preproc" >&6
26369 # So? What about this header?
26370 case $ac_header_compiler:$ac_header_preproc in
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26378 ## ------------------------------------ ##
26379 ## Report this to bug-autoconf@gnu.org. ##
26380 ## ------------------------------------ ##
26383 sed "s/^/$as_me: WARNING: /" >&2
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26394 ## ------------------------------------ ##
26395 ## Report this to bug-autoconf@gnu.org. ##
26396 ## ------------------------------------ ##
26399 sed "s/^/$as_me: WARNING: /" >&2
26402 echo "$as_me:$LINENO: checking for $ac_header" >&5
26403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26405 echo $ECHO_N "(cached) $ECHO_C" >&6
26407 eval "$as_ac_Header=$ac_header_preproc"
26409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26414 cat >>confdefs.h <<_ACEOF
26415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26422 echo "$as_me:$LINENO: checking for db" >&5
26423 echo $ECHO_N "checking for db... $ECHO_C" >&6
26424 if test "${ol_cv_mdbm+set}" = set; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
26435 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
26436 echo "${ECHO_T}$ol_cv_mdbm" >&6
26437 if test $ol_cv_mdbm = yes ; then
26439 cat >>confdefs.h <<\_ACEOF
26440 #define HAVE_MDBM 1
26446 if test $ol_cv_mdbm = yes ; then
26448 ol_with_ldbm_api=mdbm
26449 if test $ol_cv_lib_mdbm != yes ; then
26450 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
26455 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
26456 echo "$as_me:$LINENO: checking for GDBM library" >&5
26457 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
26458 if test "${ol_cv_lib_gdbm+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26462 echo "$as_me:$LINENO: checking for gdbm_open" >&5
26463 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
26464 if test "${ac_cv_func_gdbm_open+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 cat >conftest.$ac_ext <<_ACEOF
26468 #line $LINENO "configure"
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26474 /* System header to define __stub macros and hopefully few prototypes,
26475 which can conflict with char gdbm_open (); below.
26476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26477 <limits.h> exists even on freestanding compilers. */
26479 # include <limits.h>
26481 # include <assert.h>
26483 /* Override any gcc2 internal prototype to avoid an error. */
26488 /* We use char because int might match the return type of a gcc2
26489 builtin and then its argument prototype would still apply. */
26491 /* The GNU C library defines this for functions which it implements
26492 to always fail with ENOSYS. Some functions are actually named
26493 something starting with __ and the normal name is an alias. */
26494 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
26497 char (*f) () = gdbm_open;
26506 return f != gdbm_open;
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26513 (eval $ac_link) 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } &&
26517 { ac_try='test -s conftest$ac_exeext'
26518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519 (eval $ac_try) 2>&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); }; }; then
26523 ac_cv_func_gdbm_open=yes
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_cv_func_gdbm_open=no
26530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26532 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
26533 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
26534 if test $ac_cv_func_gdbm_open = yes; then
26538 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
26539 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
26540 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26543 ac_check_lib_save_LIBS=$LIBS
26544 LIBS="-lgdbm $LIBS"
26545 cat >conftest.$ac_ext <<_ACEOF
26546 #line $LINENO "configure"
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26553 /* Override any gcc2 internal prototype to avoid an error. */
26557 /* We use char because int might match the return type of a gcc2
26558 builtin and then its argument prototype would still apply. */
26568 rm -f conftest.$ac_objext conftest$ac_exeext
26569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26570 (eval $ac_link) 2>&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
26574 { ac_try='test -s conftest$ac_exeext'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; }; then
26580 ac_cv_lib_gdbm_gdbm_open=yes
26582 echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 ac_cv_lib_gdbm_gdbm_open=no
26587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26588 LIBS=$ac_check_lib_save_LIBS
26590 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
26591 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
26592 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
26593 ol_cv_lib_gdbm=-lgdbm
26604 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
26605 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
26609 for ac_header in gdbm.h
26611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613 echo "$as_me:$LINENO: checking for $ac_header" >&5
26614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26621 # Is the header compilable?
26622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26624 cat >conftest.$ac_ext <<_ACEOF
26625 #line $LINENO "configure"
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26632 #include <$ac_header>
26634 rm -f conftest.$ac_objext
26635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636 (eval $ac_compile) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); } &&
26640 { ac_try='test -s conftest.$ac_objext'
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; }; then
26646 ac_header_compiler=yes
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 ac_header_compiler=no
26653 rm -f conftest.$ac_objext conftest.$ac_ext
26654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26655 echo "${ECHO_T}$ac_header_compiler" >&6
26657 # Is the header present?
26658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26660 cat >conftest.$ac_ext <<_ACEOF
26661 #line $LINENO "configure"
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 #include <$ac_header>
26669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } >/dev/null; then
26677 if test -s conftest.err; then
26678 ac_cpp_err=$ac_c_preproc_warn_flag
26685 if test -z "$ac_cpp_err"; then
26686 ac_header_preproc=yes
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26691 ac_header_preproc=no
26693 rm -f conftest.err conftest.$ac_ext
26694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26695 echo "${ECHO_T}$ac_header_preproc" >&6
26697 # So? What about this header?
26698 case $ac_header_compiler:$ac_header_preproc in
26700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26706 ## ------------------------------------ ##
26707 ## Report this to bug-autoconf@gnu.org. ##
26708 ## ------------------------------------ ##
26711 sed "s/^/$as_me: WARNING: /" >&2
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26722 ## ------------------------------------ ##
26723 ## Report this to bug-autoconf@gnu.org. ##
26724 ## ------------------------------------ ##
26727 sed "s/^/$as_me: WARNING: /" >&2
26730 echo "$as_me:$LINENO: checking for $ac_header" >&5
26731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26733 echo $ECHO_N "(cached) $ECHO_C" >&6
26735 eval "$as_ac_Header=$ac_header_preproc"
26737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26742 cat >>confdefs.h <<_ACEOF
26743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26750 echo "$as_me:$LINENO: checking for db" >&5
26751 echo $ECHO_N "checking for db... $ECHO_C" >&6
26752 if test "${ol_cv_gdbm+set}" = set; then
26753 echo $ECHO_N "(cached) $ECHO_C" >&6
26756 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
26763 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
26764 echo "${ECHO_T}$ol_cv_gdbm" >&6
26765 if test $ol_cv_gdbm = yes ; then
26767 cat >>confdefs.h <<\_ACEOF
26768 #define HAVE_GDBM 1
26774 if test $ol_cv_gdbm = yes ; then
26776 ol_with_ldbm_api=gdbm
26778 if test $ol_cv_lib_gdbm != yes ; then
26779 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
26784 if test $ol_with_ldbm_api = ndbm ; then
26785 echo "$as_me:$LINENO: checking for NDBM library" >&5
26786 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
26787 if test "${ol_cv_lib_ndbm+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 echo "$as_me:$LINENO: checking for dbm_open" >&5
26792 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
26793 if test "${ac_cv_func_dbm_open+set}" = set; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26797 #line $LINENO "configure"
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 /* System header to define __stub macros and hopefully few prototypes,
26804 which can conflict with char dbm_open (); below.
26805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26806 <limits.h> exists even on freestanding compilers. */
26808 # include <limits.h>
26810 # include <assert.h>
26812 /* Override any gcc2 internal prototype to avoid an error. */
26817 /* We use char because int might match the return type of a gcc2
26818 builtin and then its argument prototype would still apply. */
26820 /* The GNU C library defines this for functions which it implements
26821 to always fail with ENOSYS. Some functions are actually named
26822 something starting with __ and the normal name is an alias. */
26823 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
26826 char (*f) () = dbm_open;
26835 return f != dbm_open;
26840 rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26842 (eval $ac_link) 2>&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 { ac_try='test -s conftest$ac_exeext'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_cv_func_dbm_open=yes
26854 echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26857 ac_cv_func_dbm_open=no
26859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26861 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
26862 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
26863 if test $ac_cv_func_dbm_open = yes; then
26867 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
26868 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
26869 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
26870 echo $ECHO_N "(cached) $ECHO_C" >&6
26872 ac_check_lib_save_LIBS=$LIBS
26873 LIBS="-lndbm $LIBS"
26874 cat >conftest.$ac_ext <<_ACEOF
26875 #line $LINENO "configure"
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26882 /* Override any gcc2 internal prototype to avoid an error. */
26886 /* We use char because int might match the return type of a gcc2
26887 builtin and then its argument prototype would still apply. */
26897 rm -f conftest.$ac_objext conftest$ac_exeext
26898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26899 (eval $ac_link) 2>&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } &&
26903 { ac_try='test -s conftest$ac_exeext'
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; }; then
26909 ac_cv_lib_ndbm_dbm_open=yes
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26914 ac_cv_lib_ndbm_dbm_open=no
26916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26917 LIBS=$ac_check_lib_save_LIBS
26919 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
26920 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
26921 if test $ac_cv_lib_ndbm_dbm_open = yes; then
26922 ol_cv_lib_ndbm=-lndbm
26925 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
26926 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
26927 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26930 ac_check_lib_save_LIBS=$LIBS
26932 cat >conftest.$ac_ext <<_ACEOF
26933 #line $LINENO "configure"
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26940 /* Override any gcc2 internal prototype to avoid an error. */
26944 /* We use char because int might match the return type of a gcc2
26945 builtin and then its argument prototype would still apply. */
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26957 (eval $ac_link) 2>&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } &&
26961 { ac_try='test -s conftest$ac_exeext'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26967 ac_cv_lib_dbm_dbm_open=yes
26969 echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 ac_cv_lib_dbm_dbm_open=no
26974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26975 LIBS=$ac_check_lib_save_LIBS
26977 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
26978 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
26979 if test $ac_cv_lib_dbm_dbm_open = yes; then
26980 ol_cv_lib_ndbm=-ldbm
26993 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
26994 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
26998 for ac_header in ndbm.h
27000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27002 echo "$as_me:$LINENO: checking for $ac_header" >&5
27003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27005 echo $ECHO_N "(cached) $ECHO_C" >&6
27007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27010 # Is the header compilable?
27011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27014 #line $LINENO "configure"
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h. */
27020 $ac_includes_default
27021 #include <$ac_header>
27023 rm -f conftest.$ac_objext
27024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27025 (eval $ac_compile) 2>&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
27029 { ac_try='test -s conftest.$ac_objext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_header_compiler=yes
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27040 ac_header_compiler=no
27042 rm -f conftest.$ac_objext conftest.$ac_ext
27043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27044 echo "${ECHO_T}$ac_header_compiler" >&6
27046 # Is the header present?
27047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27049 cat >conftest.$ac_ext <<_ACEOF
27050 #line $LINENO "configure"
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h. */
27056 #include <$ac_header>
27058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } >/dev/null; then
27066 if test -s conftest.err; then
27067 ac_cpp_err=$ac_c_preproc_warn_flag
27074 if test -z "$ac_cpp_err"; then
27075 ac_header_preproc=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ac_header_preproc=no
27082 rm -f conftest.err conftest.$ac_ext
27083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27084 echo "${ECHO_T}$ac_header_preproc" >&6
27086 # So? What about this header?
27087 case $ac_header_compiler:$ac_header_preproc in
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27095 ## ------------------------------------ ##
27096 ## Report this to bug-autoconf@gnu.org. ##
27097 ## ------------------------------------ ##
27100 sed "s/^/$as_me: WARNING: /" >&2
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27111 ## ------------------------------------ ##
27112 ## Report this to bug-autoconf@gnu.org. ##
27113 ## ------------------------------------ ##
27116 sed "s/^/$as_me: WARNING: /" >&2
27119 echo "$as_me:$LINENO: checking for $ac_header" >&5
27120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27122 echo $ECHO_N "(cached) $ECHO_C" >&6
27124 eval "$as_ac_Header=$ac_header_preproc"
27126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27131 cat >>confdefs.h <<_ACEOF
27132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27139 echo "$as_me:$LINENO: checking for db" >&5
27140 echo $ECHO_N "checking for db... $ECHO_C" >&6
27141 if test "${ol_cv_ndbm+set}" = set; then
27142 echo $ECHO_N "(cached) $ECHO_C" >&6
27145 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
27152 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
27153 echo "${ECHO_T}$ol_cv_ndbm" >&6
27154 if test $ol_cv_ndbm = yes ; then
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_NDBM 1
27163 if test $ol_cv_ndbm = yes ; then
27165 ol_with_ldbm_api=ndbm
27167 if test $ol_cv_lib_ndbm != yes ; then
27168 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
27173 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
27174 { echo "$as_me:$LINENO: WARNING: could not find suitable LDBM backend" >&5
27175 echo "$as_me: WARNING: could not find suitable LDBM backend" >&2;}
27176 if test $ol_enable_ldbm = yes ; then
27177 { { echo "$as_me:$LINENO: error: select appropriate LDBM options or disable" >&5
27178 echo "$as_me: error: select appropriate LDBM options or disable" >&2;}
27179 { (exit 1); exit 1; }; }
27182 { echo "$as_me:$LINENO: WARNING: disabling LDBM" >&5
27183 echo "$as_me: WARNING: disabling LDBM" >&2;}
27188 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
27189 BUILD_LIBS_DYNAMIC=shared
27191 cat >>confdefs.h <<\_ACEOF
27192 #define LDAP_LIBS_DYNAMIC 1
27197 BUILD_LIBS_DYNAMIC=static
27201 if test $ol_enable_wrappers != no ; then
27203 for ac_header in tcpd.h
27205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27207 echo "$as_me:$LINENO: checking for $ac_header" >&5
27208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27215 # Is the header compilable?
27216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27218 cat >conftest.$ac_ext <<_ACEOF
27219 #line $LINENO "configure"
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h. */
27225 $ac_includes_default
27226 #include <$ac_header>
27228 rm -f conftest.$ac_objext
27229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27230 (eval $ac_compile) 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); } &&
27234 { ac_try='test -s conftest.$ac_objext'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; }; then
27240 ac_header_compiler=yes
27242 echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27245 ac_header_compiler=no
27247 rm -f conftest.$ac_objext conftest.$ac_ext
27248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27249 echo "${ECHO_T}$ac_header_compiler" >&6
27251 # Is the header present?
27252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27254 cat >conftest.$ac_ext <<_ACEOF
27255 #line $LINENO "configure"
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h. */
27261 #include <$ac_header>
27263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27266 grep -v '^ *+' conftest.er1 >conftest.err
27268 cat conftest.err >&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } >/dev/null; then
27271 if test -s conftest.err; then
27272 ac_cpp_err=$ac_c_preproc_warn_flag
27279 if test -z "$ac_cpp_err"; then
27280 ac_header_preproc=yes
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27285 ac_header_preproc=no
27287 rm -f conftest.err conftest.$ac_ext
27288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27289 echo "${ECHO_T}$ac_header_preproc" >&6
27291 # So? What about this header?
27292 case $ac_header_compiler:$ac_header_preproc in
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27300 ## ------------------------------------ ##
27301 ## Report this to bug-autoconf@gnu.org. ##
27302 ## ------------------------------------ ##
27305 sed "s/^/$as_me: WARNING: /" >&2
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27316 ## ------------------------------------ ##
27317 ## Report this to bug-autoconf@gnu.org. ##
27318 ## ------------------------------------ ##
27321 sed "s/^/$as_me: WARNING: /" >&2
27324 echo "$as_me:$LINENO: checking for $ac_header" >&5
27325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27329 eval "$as_ac_Header=$ac_header_preproc"
27331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27336 cat >>confdefs.h <<_ACEOF
27337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27340 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
27341 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
27343 LIBS="$LIBS -lwrap"
27344 cat >conftest.$ac_ext <<_ACEOF
27345 #line $LINENO "configure"
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27353 int allow_severity = 0;
27354 int deny_severity = 0;
27356 struct request_info *req;
27368 rm -f conftest.$ac_objext conftest$ac_exeext
27369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27370 (eval $ac_link) 2>&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
27374 { ac_try='test -s conftest$ac_exeext'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 echo "$as_me:$LINENO: result: -lwrap" >&5
27381 echo "${ECHO_T}-lwrap" >&6
27385 echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27390 cat >conftest.$ac_ext <<_ACEOF
27391 #line $LINENO "configure"
27394 cat confdefs.h >>conftest.$ac_ext
27395 cat >>conftest.$ac_ext <<_ACEOF
27396 /* end confdefs.h. */
27399 int allow_severity = 0;
27400 int deny_severity = 0;
27402 struct request_info *req;
27414 rm -f conftest.$ac_objext conftest$ac_exeext
27415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27416 (eval $ac_link) 2>&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } &&
27420 { ac_try='test -s conftest$ac_exeext'
27421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
27427 echo "${ECHO_T}-lwrap -lnsl" >&6
27429 LIBS="$save_LIBS -lnsl"
27431 echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27435 echo "$as_me:$LINENO: result: no" >&5
27436 echo "${ECHO_T}no" >&6
27440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27450 if test $have_wrappers = yes ; then
27452 cat >>confdefs.h <<\_ACEOF
27453 #define HAVE_TCPD 1
27457 elif test $ol_enable_wrappers = yes ; then
27458 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options ore disable" >&5
27459 echo "$as_me: error: could not find TCP wrappers, select apppropriate options ore disable" >&2;}
27460 { (exit 1); exit 1; }; }
27462 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
27463 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
27468 if test $ol_enable_syslog != no ; then
27469 echo "$as_me:$LINENO: checking for openlog" >&5
27470 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
27471 if test "${ac_cv_func_openlog+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 cat >conftest.$ac_ext <<_ACEOF
27475 #line $LINENO "configure"
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 /* System header to define __stub macros and hopefully few prototypes,
27482 which can conflict with char openlog (); below.
27483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27484 <limits.h> exists even on freestanding compilers. */
27486 # include <limits.h>
27488 # include <assert.h>
27490 /* Override any gcc2 internal prototype to avoid an error. */
27495 /* We use char because int might match the return type of a gcc2
27496 builtin and then its argument prototype would still apply. */
27498 /* The GNU C library defines this for functions which it implements
27499 to always fail with ENOSYS. Some functions are actually named
27500 something starting with __ and the normal name is an alias. */
27501 #if defined (__stub_openlog) || defined (__stub___openlog)
27504 char (*f) () = openlog;
27513 return f != openlog;
27518 rm -f conftest.$ac_objext conftest$ac_exeext
27519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27520 (eval $ac_link) 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -s conftest$ac_exeext'
27525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526 (eval $ac_try) 2>&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; }; then
27530 ac_cv_func_openlog=yes
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_cv_func_openlog=no
27537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27539 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
27540 echo "${ECHO_T}$ac_cv_func_openlog" >&6
27542 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
27543 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
27544 echo "$as_me: error: could not find syslog" >&2;}
27545 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
27547 ol_enable_syslog=$ac_cv_func_openlog
27552 if test $ol_enable_sql != no ; then
27555 for ac_header in sql.h sqlext.h
27557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27559 echo "$as_me:$LINENO: checking for $ac_header" >&5
27560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27567 # Is the header compilable?
27568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27570 cat >conftest.$ac_ext <<_ACEOF
27571 #line $LINENO "configure"
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27577 $ac_includes_default
27578 #include <$ac_header>
27580 rm -f conftest.$ac_objext
27581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27582 (eval $ac_compile) 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
27586 { ac_try='test -s conftest.$ac_objext'
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 ac_header_compiler=yes
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27597 ac_header_compiler=no
27599 rm -f conftest.$ac_objext conftest.$ac_ext
27600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 echo "${ECHO_T}$ac_header_compiler" >&6
27603 # Is the header present?
27604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27606 cat >conftest.$ac_ext <<_ACEOF
27607 #line $LINENO "configure"
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h. */
27613 #include <$ac_header>
27615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27618 grep -v '^ *+' conftest.er1 >conftest.err
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } >/dev/null; then
27623 if test -s conftest.err; then
27624 ac_cpp_err=$ac_c_preproc_warn_flag
27631 if test -z "$ac_cpp_err"; then
27632 ac_header_preproc=yes
27634 echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27637 ac_header_preproc=no
27639 rm -f conftest.err conftest.$ac_ext
27640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27641 echo "${ECHO_T}$ac_header_preproc" >&6
27643 # So? What about this header?
27644 case $ac_header_compiler:$ac_header_preproc in
27646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27652 ## ------------------------------------ ##
27653 ## Report this to bug-autoconf@gnu.org. ##
27654 ## ------------------------------------ ##
27657 sed "s/^/$as_me: WARNING: /" >&2
27660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27668 ## ------------------------------------ ##
27669 ## Report this to bug-autoconf@gnu.org. ##
27670 ## ------------------------------------ ##
27673 sed "s/^/$as_me: WARNING: /" >&2
27676 echo "$as_me:$LINENO: checking for $ac_header" >&5
27677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27681 eval "$as_ac_Header=$ac_header_preproc"
27683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27688 cat >>confdefs.h <<_ACEOF
27689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27694 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
27695 echo "$as_me: error: could not locate SQL headers" >&2;}
27696 { (exit 1); exit 1; }; }
27703 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
27704 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
27705 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
27706 echo $ECHO_N "(cached) $ECHO_C" >&6
27708 ac_check_lib_save_LIBS=$LIBS
27709 LIBS="-liodbc $LIBS"
27710 cat >conftest.$ac_ext <<_ACEOF
27711 #line $LINENO "configure"
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h. */
27718 /* Override any gcc2 internal prototype to avoid an error. */
27722 /* We use char because int might match the return type of a gcc2
27723 builtin and then its argument prototype would still apply. */
27724 char SQLDriverConnect ();
27728 SQLDriverConnect ();
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27735 (eval $ac_link) 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); } &&
27739 { ac_try='test -s conftest$ac_exeext'
27740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27741 (eval $ac_try) 2>&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; }; then
27745 ac_cv_lib_iodbc_SQLDriverConnect=yes
27747 echo "$as_me: failed program was:" >&5
27748 sed 's/^/| /' conftest.$ac_ext >&5
27750 ac_cv_lib_iodbc_SQLDriverConnect=no
27752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27753 LIBS=$ac_check_lib_save_LIBS
27755 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
27756 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
27757 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
27763 if test $have_iodbc = yes ; then
27764 ol_link_sql="-liodbc"
27766 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
27767 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
27768 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 ac_check_lib_save_LIBS=$LIBS
27772 LIBS="-lodbc $LIBS"
27773 cat >conftest.$ac_ext <<_ACEOF
27774 #line $LINENO "configure"
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h. */
27781 /* Override any gcc2 internal prototype to avoid an error. */
27785 /* We use char because int might match the return type of a gcc2
27786 builtin and then its argument prototype would still apply. */
27787 char SQLDriverConnect ();
27791 SQLDriverConnect ();
27796 rm -f conftest.$ac_objext conftest$ac_exeext
27797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27798 (eval $ac_link) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
27802 { ac_try='test -s conftest$ac_exeext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_cv_lib_odbc_SQLDriverConnect=yes
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ac_cv_lib_odbc_SQLDriverConnect=no
27815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27816 LIBS=$ac_check_lib_save_LIBS
27818 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
27819 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
27820 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
27826 if test $have_odbc = yes ; then
27827 ol_link_sql="-lodbc"
27831 if test $ol_link_sql != no ; then
27832 SLAPD_SQL_LIBS="$ol_link_sql"
27834 elif test $ol_enable_sql != auto ; then
27835 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
27836 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
27837 { (exit 1); exit 1; }; }
27841 if test $ol_enable_tcl != no ; then
27843 for ac_header in tcl.h
27845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27847 echo "$as_me:$LINENO: checking for $ac_header" >&5
27848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27855 # Is the header compilable?
27856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27858 cat >conftest.$ac_ext <<_ACEOF
27859 #line $LINENO "configure"
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27865 $ac_includes_default
27866 #include <$ac_header>
27868 rm -f conftest.$ac_objext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27870 (eval $ac_compile) 2>&5
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); } &&
27874 { ac_try='test -s conftest.$ac_objext'
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
27880 ac_header_compiler=yes
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27885 ac_header_compiler=no
27887 rm -f conftest.$ac_objext conftest.$ac_ext
27888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27889 echo "${ECHO_T}$ac_header_compiler" >&6
27891 # Is the header present?
27892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27894 cat >conftest.$ac_ext <<_ACEOF
27895 #line $LINENO "configure"
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27901 #include <$ac_header>
27903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27906 grep -v '^ *+' conftest.er1 >conftest.err
27908 cat conftest.err >&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); } >/dev/null; then
27911 if test -s conftest.err; then
27912 ac_cpp_err=$ac_c_preproc_warn_flag
27919 if test -z "$ac_cpp_err"; then
27920 ac_header_preproc=yes
27922 echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27925 ac_header_preproc=no
27927 rm -f conftest.err conftest.$ac_ext
27928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27929 echo "${ECHO_T}$ac_header_preproc" >&6
27931 # So? What about this header?
27932 case $ac_header_compiler:$ac_header_preproc in
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27940 ## ------------------------------------ ##
27941 ## Report this to bug-autoconf@gnu.org. ##
27942 ## ------------------------------------ ##
27945 sed "s/^/$as_me: WARNING: /" >&2
27948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27956 ## ------------------------------------ ##
27957 ## Report this to bug-autoconf@gnu.org. ##
27958 ## ------------------------------------ ##
27961 sed "s/^/$as_me: WARNING: /" >&2
27964 echo "$as_me:$LINENO: checking for $ac_header" >&5
27965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27967 echo $ECHO_N "(cached) $ECHO_C" >&6
27969 eval "$as_ac_Header=$ac_header_preproc"
27971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27976 cat >>confdefs.h <<_ACEOF
27977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27985 if test $ac_cv_header_tcl_h != yes ; then
27988 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
27989 as_ac_Lib=`echo "ac_cv_lib_$lib''_main" | $as_tr_sh`
27990 echo "$as_me:$LINENO: checking for main in -l$lib" >&5
27991 echo $ECHO_N "checking for main in -l$lib... $ECHO_C" >&6
27992 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27995 ac_check_lib_save_LIBS=$LIBS
27996 LIBS="-l$lib $LIBS"
27997 cat >conftest.$ac_ext <<_ACEOF
27998 #line $LINENO "configure"
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28014 rm -f conftest.$ac_objext conftest$ac_exeext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28016 (eval $ac_link) 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } &&
28020 { ac_try='test -s conftest$ac_exeext'
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; }; then
28026 eval "$as_ac_Lib=yes"
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 eval "$as_ac_Lib=no"
28033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28034 LIBS=$ac_check_lib_save_LIBS
28036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28037 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28038 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28040 if test x"$ol_with_tcl_module" = "xstatic" ; then
28041 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
28043 MOD_TCL_LIB="-l${lib}"
28052 if test $have_tcl != yes ; then
28053 { echo "$as_me:$LINENO: WARNING: could not find -ltcl" >&5
28054 echo "$as_me: WARNING: could not find -ltcl" >&2;}
28055 if test $ol_enable_tcl = yes ; then
28056 { { echo "$as_me:$LINENO: error: could not find tcl, select appropriate options or disable" >&5
28057 echo "$as_me: error: could not find tcl, select appropriate options or disable" >&2;}
28058 { (exit 1); exit 1; }; }
28068 for ac_header in termcap.h ncurses.h
28070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28072 echo "$as_me:$LINENO: checking for $ac_header" >&5
28073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28075 echo $ECHO_N "(cached) $ECHO_C" >&6
28077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28080 # Is the header compilable?
28081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28083 cat >conftest.$ac_ext <<_ACEOF
28084 #line $LINENO "configure"
28087 cat confdefs.h >>conftest.$ac_ext
28088 cat >>conftest.$ac_ext <<_ACEOF
28089 /* end confdefs.h. */
28090 $ac_includes_default
28091 #include <$ac_header>
28093 rm -f conftest.$ac_objext
28094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28095 (eval $ac_compile) 2>&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); } &&
28099 { ac_try='test -s conftest.$ac_objext'
28100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28101 (eval $ac_try) 2>&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
28105 ac_header_compiler=yes
28107 echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28110 ac_header_compiler=no
28112 rm -f conftest.$ac_objext conftest.$ac_ext
28113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28114 echo "${ECHO_T}$ac_header_compiler" >&6
28116 # Is the header present?
28117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28119 cat >conftest.$ac_ext <<_ACEOF
28120 #line $LINENO "configure"
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28126 #include <$ac_header>
28128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } >/dev/null; then
28136 if test -s conftest.err; then
28137 ac_cpp_err=$ac_c_preproc_warn_flag
28144 if test -z "$ac_cpp_err"; then
28145 ac_header_preproc=yes
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28150 ac_header_preproc=no
28152 rm -f conftest.err conftest.$ac_ext
28153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28154 echo "${ECHO_T}$ac_header_preproc" >&6
28156 # So? What about this header?
28157 case $ac_header_compiler:$ac_header_preproc in
28159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28165 ## ------------------------------------ ##
28166 ## Report this to bug-autoconf@gnu.org. ##
28167 ## ------------------------------------ ##
28170 sed "s/^/$as_me: WARNING: /" >&2
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28181 ## ------------------------------------ ##
28182 ## Report this to bug-autoconf@gnu.org. ##
28183 ## ------------------------------------ ##
28186 sed "s/^/$as_me: WARNING: /" >&2
28189 echo "$as_me:$LINENO: checking for $ac_header" >&5
28190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28194 eval "$as_ac_Header=$ac_header_preproc"
28196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28201 cat >>confdefs.h <<_ACEOF
28202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28210 if test $ol_link_termcap = no ; then
28211 echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
28212 echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6
28213 if test "${ac_cv_lib_termcap_tputs+set}" = set; then
28214 echo $ECHO_N "(cached) $ECHO_C" >&6
28216 ac_check_lib_save_LIBS=$LIBS
28217 LIBS="-ltermcap $LIBS"
28218 cat >conftest.$ac_ext <<_ACEOF
28219 #line $LINENO "configure"
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h. */
28226 /* Override any gcc2 internal prototype to avoid an error. */
28230 /* We use char because int might match the return type of a gcc2
28231 builtin and then its argument prototype would still apply. */
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28243 (eval $ac_link) 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
28247 { ac_try='test -s conftest$ac_exeext'
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
28253 ac_cv_lib_termcap_tputs=yes
28255 echo "$as_me: failed program was:" >&5
28256 sed 's/^/| /' conftest.$ac_ext >&5
28258 ac_cv_lib_termcap_tputs=no
28260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28261 LIBS=$ac_check_lib_save_LIBS
28263 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
28264 echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6
28265 if test $ac_cv_lib_termcap_tputs = yes; then
28271 if test $have_termcap = yes ; then
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_TERMCAP 1
28277 ol_link_termcap=yes
28278 TERMCAP_LIBS=-ltermcap
28282 if test $ol_link_termcap = no ; then
28283 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
28284 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
28285 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28288 ac_check_lib_save_LIBS=$LIBS
28289 LIBS="-lncurses $LIBS"
28290 cat >conftest.$ac_ext <<_ACEOF
28291 #line $LINENO "configure"
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28298 /* Override any gcc2 internal prototype to avoid an error. */
28302 /* We use char because int might match the return type of a gcc2
28303 builtin and then its argument prototype would still apply. */
28313 rm -f conftest.$ac_objext conftest$ac_exeext
28314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28315 (eval $ac_link) 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); } &&
28319 { ac_try='test -s conftest$ac_exeext'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; }; then
28325 ac_cv_lib_ncurses_initscr=yes
28327 echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28330 ac_cv_lib_ncurses_initscr=no
28332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28333 LIBS=$ac_check_lib_save_LIBS
28335 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
28336 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
28337 if test $ac_cv_lib_ncurses_initscr = yes; then
28343 if test $have_ncurses = yes ; then
28345 cat >>confdefs.h <<\_ACEOF
28346 #define HAVE_NCURSES 1
28349 ol_link_termcap=yes
28350 TERMCAP_LIBS=-lncurses
28354 if test $ol_link_termcap = no ; then
28356 cat >>confdefs.h <<\_ACEOF
28357 #define NO_TERMCAP 1
28365 if test $ol_with_cyrus_sasl != no ; then
28368 for ac_header in sasl/sasl.h sasl.h
28370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28372 echo "$as_me:$LINENO: checking for $ac_header" >&5
28373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28380 # Is the header compilable?
28381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28383 cat >conftest.$ac_ext <<_ACEOF
28384 #line $LINENO "configure"
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h. */
28390 $ac_includes_default
28391 #include <$ac_header>
28393 rm -f conftest.$ac_objext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28395 (eval $ac_compile) 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
28399 { ac_try='test -s conftest.$ac_objext'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_header_compiler=yes
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 ac_header_compiler=no
28412 rm -f conftest.$ac_objext conftest.$ac_ext
28413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28414 echo "${ECHO_T}$ac_header_compiler" >&6
28416 # Is the header present?
28417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28419 cat >conftest.$ac_ext <<_ACEOF
28420 #line $LINENO "configure"
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28426 #include <$ac_header>
28428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } >/dev/null; then
28436 if test -s conftest.err; then
28437 ac_cpp_err=$ac_c_preproc_warn_flag
28444 if test -z "$ac_cpp_err"; then
28445 ac_header_preproc=yes
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28450 ac_header_preproc=no
28452 rm -f conftest.err conftest.$ac_ext
28453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28454 echo "${ECHO_T}$ac_header_preproc" >&6
28456 # So? What about this header?
28457 case $ac_header_compiler:$ac_header_preproc in
28459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28465 ## ------------------------------------ ##
28466 ## Report this to bug-autoconf@gnu.org. ##
28467 ## ------------------------------------ ##
28470 sed "s/^/$as_me: WARNING: /" >&2
28473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28481 ## ------------------------------------ ##
28482 ## Report this to bug-autoconf@gnu.org. ##
28483 ## ------------------------------------ ##
28486 sed "s/^/$as_me: WARNING: /" >&2
28489 echo "$as_me:$LINENO: checking for $ac_header" >&5
28490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28492 echo $ECHO_N "(cached) $ECHO_C" >&6
28494 eval "$as_ac_Header=$ac_header_preproc"
28496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28510 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
28511 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
28512 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
28513 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28516 ac_check_lib_save_LIBS=$LIBS
28517 LIBS="-lsasl2 $LIBS"
28518 cat >conftest.$ac_ext <<_ACEOF
28519 #line $LINENO "configure"
28522 cat confdefs.h >>conftest.$ac_ext
28523 cat >>conftest.$ac_ext <<_ACEOF
28524 /* end confdefs.h. */
28526 /* Override any gcc2 internal prototype to avoid an error. */
28530 /* We use char because int might match the return type of a gcc2
28531 builtin and then its argument prototype would still apply. */
28532 char sasl_client_init ();
28536 sasl_client_init ();
28541 rm -f conftest.$ac_objext conftest$ac_exeext
28542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28543 (eval $ac_link) 2>&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
28547 { ac_try='test -s conftest$ac_exeext'
28548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549 (eval $ac_try) 2>&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; }; then
28553 ac_cv_lib_sasl2_sasl_client_init=yes
28555 echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28558 ac_cv_lib_sasl2_sasl_client_init=no
28560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28561 LIBS=$ac_check_lib_save_LIBS
28563 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
28564 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
28565 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
28566 ol_link_sasl="-lsasl2"
28568 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
28569 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
28570 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 ac_check_lib_save_LIBS=$LIBS
28574 LIBS="-lsasl $LIBS"
28575 cat >conftest.$ac_ext <<_ACEOF
28576 #line $LINENO "configure"
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28583 /* Override any gcc2 internal prototype to avoid an error. */
28587 /* We use char because int might match the return type of a gcc2
28588 builtin and then its argument prototype would still apply. */
28589 char sasl_client_init ();
28593 sasl_client_init ();
28598 rm -f conftest.$ac_objext conftest$ac_exeext
28599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28600 (eval $ac_link) 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
28604 { ac_try='test -s conftest$ac_exeext'
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_lib_sasl_sasl_client_init=yes
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_cv_lib_sasl_sasl_client_init=no
28617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28618 LIBS=$ac_check_lib_save_LIBS
28620 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
28621 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
28622 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
28623 ol_link_sasl="-lsasl"
28630 if test $ol_link_sasl = no ; then
28631 if test $ol_with_cyrus_sasl != auto ; then
28632 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
28633 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
28634 { (exit 1); exit 1; }; }
28636 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
28637 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
28639 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
28640 if test $ol_link_tls = no ; then
28641 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
28642 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
28646 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
28647 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
28648 if test "${ol_cv_sasl_compat+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28652 cat >conftest.$ac_ext <<_ACEOF
28653 #line $LINENO "configure"
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28660 #ifdef HAVE_SASL_SASL_H
28661 #include <sasl/sasl.h>
28666 /* require 2.1.3 or later */
28667 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
28668 char *__sasl_compat = "1.5.x okay";
28669 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
28670 __sasl_compat "2.2+ or better okay (we guess)";
28671 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
28672 && SASL_VERSION_STEP >=3
28673 __sasl_compat = "2.1.3+ or better okay";
28677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28678 $EGREP "__sasl_compat" >/dev/null 2>&1; then
28679 ol_cv_sasl_compat=yes
28681 ol_cv_sasl_compat=no
28686 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
28687 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
28689 if test $ol_cv_sasl_compat = no ; then
28691 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but incompatible" >&5
28692 echo "$as_me: error: Cyrus SASL library located but incompatible" >&2;}
28693 { (exit 1); exit 1; }; }
28697 cat >>confdefs.h <<\_ACEOF
28698 #define HAVE_CYRUS_SASL 1
28701 SASL_LIBS="$ol_link_sasl"
28702 if test $ol_enable_spasswd != no ; then
28703 ol_link_spasswd=yes
28706 ac_save_LIBS="$LIBS"
28707 LIBS="$LIBS $ol_link_sasl"
28708 echo "$as_me:$LINENO: checking for sasl_version" >&5
28709 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
28710 if test "${ac_cv_func_sasl_version+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28713 cat >conftest.$ac_ext <<_ACEOF
28714 #line $LINENO "configure"
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28720 /* System header to define __stub macros and hopefully few prototypes,
28721 which can conflict with char sasl_version (); below.
28722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28723 <limits.h> exists even on freestanding compilers. */
28725 # include <limits.h>
28727 # include <assert.h>
28729 /* Override any gcc2 internal prototype to avoid an error. */
28734 /* We use char because int might match the return type of a gcc2
28735 builtin and then its argument prototype would still apply. */
28736 char sasl_version ();
28737 /* The GNU C library defines this for functions which it implements
28738 to always fail with ENOSYS. Some functions are actually named
28739 something starting with __ and the normal name is an alias. */
28740 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
28743 char (*f) () = sasl_version;
28752 return f != sasl_version;
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28759 (eval $ac_link) 2>&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -s conftest$ac_exeext'
28764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765 (eval $ac_try) 2>&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; }; then
28769 ac_cv_func_sasl_version=yes
28771 echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28774 ac_cv_func_sasl_version=no
28776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28778 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
28779 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
28780 if test $ac_cv_func_sasl_version = yes; then
28782 cat >>confdefs.h <<\_ACEOF
28783 #define HAVE_SASL_VERSION 1
28788 LIBS="$ac_save_LIBS"
28792 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
28793 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
28794 if test $ol_link_tls = no ; then
28795 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
28796 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
28800 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
28802 if test -r /dev/urandom ; then
28803 dev="/dev/urandom";
28804 elif test -r /idev/urandom ; then
28805 dev="/idev/urandom";
28806 elif test -r /dev/srandom ; then
28807 dev="/dev/srandom";
28808 elif test -r /dev/random ; then
28810 elif test -r /idev/random ; then
28811 dev="/idev/random";
28814 if test $dev != no ; then
28816 cat >>confdefs.h <<_ACEOF
28817 #define URANDOM_DEVICE "$dev"
28824 if test $ol_with_fetch != no ; then
28826 LIBS="-lfetch -lcom_err $LIBS"
28827 echo "$as_me:$LINENO: checking fetch(3) library" >&5
28828 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
28829 if test "${ol_cv_lib_fetch+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28833 cat >conftest.$ac_ext <<_ACEOF
28834 #line $LINENO "configure"
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h. */
28841 #include <sys/param.h>
28847 struct url *u = fetchParseURL("file:///");
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28854 (eval $ac_link) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } &&
28858 { ac_try='test -s conftest$ac_exeext'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28864 ol_cv_lib_fetch=yes
28866 echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28873 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
28874 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
28876 if test $ol_cv_lib_fetch != no ; then
28877 ol_link_fetch="-lfetch -lcom_err"
28879 cat >>confdefs.h <<\_ACEOF
28880 #define HAVE_FETCH 1
28886 if test $ol_cv_lib_fetch != no ; then
28887 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
28888 ol_link_fetch=freebsd
28890 elif test $ol_with_fetch != auto ; then
28891 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
28892 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
28893 { (exit 1); exit 1; }; }
28897 ol_link_readline=no
28898 if test $ol_with_readline != no ; then
28901 for ac_header in readline/readline.h readline/history.h
28903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28905 echo "$as_me:$LINENO: checking for $ac_header" >&5
28906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28913 # Is the header compilable?
28914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28916 cat >conftest.$ac_ext <<_ACEOF
28917 #line $LINENO "configure"
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 $ac_includes_default
28924 #include <$ac_header>
28926 rm -f conftest.$ac_objext
28927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28928 (eval $ac_compile) 2>&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
28932 { ac_try='test -s conftest.$ac_objext'
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; }; then
28938 ac_header_compiler=yes
28940 echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28943 ac_header_compiler=no
28945 rm -f conftest.$ac_objext conftest.$ac_ext
28946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947 echo "${ECHO_T}$ac_header_compiler" >&6
28949 # Is the header present?
28950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28952 cat >conftest.$ac_ext <<_ACEOF
28953 #line $LINENO "configure"
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 #include <$ac_header>
28961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28964 grep -v '^ *+' conftest.er1 >conftest.err
28966 cat conftest.err >&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } >/dev/null; then
28969 if test -s conftest.err; then
28970 ac_cpp_err=$ac_c_preproc_warn_flag
28977 if test -z "$ac_cpp_err"; then
28978 ac_header_preproc=yes
28980 echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28983 ac_header_preproc=no
28985 rm -f conftest.err conftest.$ac_ext
28986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28987 echo "${ECHO_T}$ac_header_preproc" >&6
28989 # So? What about this header?
28990 case $ac_header_compiler:$ac_header_preproc in
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28998 ## ------------------------------------ ##
28999 ## Report this to bug-autoconf@gnu.org. ##
29000 ## ------------------------------------ ##
29003 sed "s/^/$as_me: WARNING: /" >&2
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29014 ## ------------------------------------ ##
29015 ## Report this to bug-autoconf@gnu.org. ##
29016 ## ------------------------------------ ##
29019 sed "s/^/$as_me: WARNING: /" >&2
29022 echo "$as_me:$LINENO: checking for $ac_header" >&5
29023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 eval "$as_ac_Header=$ac_header_preproc"
29029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29034 cat >>confdefs.h <<_ACEOF
29035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29043 if test $ac_cv_header_readline_readline_h = yes ; then
29045 LIBS="$TERMCAP_LIBS $LIBS"
29046 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29047 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29048 if test "${ac_cv_lib_readline_readline+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 ac_check_lib_save_LIBS=$LIBS
29052 LIBS="-lreadline $LIBS"
29053 cat >conftest.$ac_ext <<_ACEOF
29054 #line $LINENO "configure"
29057 cat confdefs.h >>conftest.$ac_ext
29058 cat >>conftest.$ac_ext <<_ACEOF
29059 /* end confdefs.h. */
29061 /* Override any gcc2 internal prototype to avoid an error. */
29065 /* We use char because int might match the return type of a gcc2
29066 builtin and then its argument prototype would still apply. */
29076 rm -f conftest.$ac_objext conftest$ac_exeext
29077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29078 (eval $ac_link) 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
29082 { ac_try='test -s conftest$ac_exeext'
29083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084 (eval $ac_try) 2>&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; }; then
29088 ac_cv_lib_readline_readline=yes
29090 echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29093 ac_cv_lib_readline_readline=no
29095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29098 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29099 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29100 if test $ac_cv_lib_readline_readline = yes; then
29108 if test $have_readline = yes ; then
29109 ol_with_readline=found
29110 ol_link_readline=yes
29112 READLINE_LIBS="-lreadline"
29117 if test $ol_link_readline = yes ; then
29119 cat >>confdefs.h <<\_ACEOF
29120 #define HAVE_READLINE 1
29126 if test $ol_enable_crypt != no ; then
29128 LIBS="$TLS_LIBS $LIBS"
29130 echo "$as_me:$LINENO: checking for crypt" >&5
29131 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
29132 if test "${ac_cv_func_crypt+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29135 cat >conftest.$ac_ext <<_ACEOF
29136 #line $LINENO "configure"
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29142 /* System header to define __stub macros and hopefully few prototypes,
29143 which can conflict with char crypt (); below.
29144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29145 <limits.h> exists even on freestanding compilers. */
29147 # include <limits.h>
29149 # include <assert.h>
29151 /* Override any gcc2 internal prototype to avoid an error. */
29156 /* We use char because int might match the return type of a gcc2
29157 builtin and then its argument prototype would still apply. */
29159 /* The GNU C library defines this for functions which it implements
29160 to always fail with ENOSYS. Some functions are actually named
29161 something starting with __ and the normal name is an alias. */
29162 #if defined (__stub_crypt) || defined (__stub___crypt)
29165 char (*f) () = crypt;
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29181 (eval $ac_link) 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } &&
29185 { ac_try='test -s conftest$ac_exeext'
29186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_func_crypt=yes
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29196 ac_cv_func_crypt=no
29198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29200 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
29201 echo "${ECHO_T}$ac_cv_func_crypt" >&6
29202 if test $ac_cv_func_crypt = yes; then
29207 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
29208 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
29209 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29212 ac_check_lib_save_LIBS=$LIBS
29213 LIBS="-lcrypt $LIBS"
29214 cat >conftest.$ac_ext <<_ACEOF
29215 #line $LINENO "configure"
29218 cat confdefs.h >>conftest.$ac_ext
29219 cat >>conftest.$ac_ext <<_ACEOF
29220 /* end confdefs.h. */
29222 /* Override any gcc2 internal prototype to avoid an error. */
29226 /* We use char because int might match the return type of a gcc2
29227 builtin and then its argument prototype would still apply. */
29237 rm -f conftest.$ac_objext conftest$ac_exeext
29238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29239 (eval $ac_link) 2>&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
29243 { ac_try='test -s conftest$ac_exeext'
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; }; then
29249 ac_cv_lib_crypt_crypt=yes
29251 echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29254 ac_cv_lib_crypt_crypt=no
29256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29257 LIBS=$ac_check_lib_save_LIBS
29259 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
29260 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
29261 if test $ac_cv_lib_crypt_crypt = yes; then
29262 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
29273 if test $have_crypt = yes ; then
29275 cat >>confdefs.h <<\_ACEOF
29276 #define HAVE_CRYPT 1
29280 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
29281 echo "$as_me: WARNING: could not find crypt" >&2;}
29282 if test $ol_enable_crypt = yes ; then
29283 { { echo "$as_me:$LINENO: error: could not find crypt" >&5
29284 echo "$as_me: error: could not find crypt" >&2;}
29285 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29288 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
29289 echo "$as_me: WARNING: disabling crypt support" >&2;}
29294 if test $ol_enable_proctitle != no ; then
29295 echo "$as_me:$LINENO: checking for setproctitle" >&5
29296 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
29297 if test "${ac_cv_func_setproctitle+set}" = set; then
29298 echo $ECHO_N "(cached) $ECHO_C" >&6
29300 cat >conftest.$ac_ext <<_ACEOF
29301 #line $LINENO "configure"
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29307 /* System header to define __stub macros and hopefully few prototypes,
29308 which can conflict with char setproctitle (); below.
29309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29310 <limits.h> exists even on freestanding compilers. */
29312 # include <limits.h>
29314 # include <assert.h>
29316 /* Override any gcc2 internal prototype to avoid an error. */
29321 /* We use char because int might match the return type of a gcc2
29322 builtin and then its argument prototype would still apply. */
29323 char setproctitle ();
29324 /* The GNU C library defines this for functions which it implements
29325 to always fail with ENOSYS. Some functions are actually named
29326 something starting with __ and the normal name is an alias. */
29327 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
29330 char (*f) () = setproctitle;
29339 return f != setproctitle;
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29346 (eval $ac_link) 2>&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -s conftest$ac_exeext'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_cv_func_setproctitle=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 ac_cv_func_setproctitle=no
29363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29365 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
29366 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
29367 if test $ac_cv_func_setproctitle = yes; then
29368 have_setproctitle=yes
29371 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
29372 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
29373 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29376 ac_check_lib_save_LIBS=$LIBS
29377 LIBS="-lutil $LIBS"
29378 cat >conftest.$ac_ext <<_ACEOF
29379 #line $LINENO "configure"
29382 cat confdefs.h >>conftest.$ac_ext
29383 cat >>conftest.$ac_ext <<_ACEOF
29384 /* end confdefs.h. */
29386 /* Override any gcc2 internal prototype to avoid an error. */
29390 /* We use char because int might match the return type of a gcc2
29391 builtin and then its argument prototype would still apply. */
29392 char setproctitle ();
29401 rm -f conftest.$ac_objext conftest$ac_exeext
29402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29403 (eval $ac_link) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -s conftest$ac_exeext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_lib_util_setproctitle=yes
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ac_cv_lib_util_setproctitle=no
29420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29421 LIBS=$ac_check_lib_save_LIBS
29423 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
29424 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
29425 if test $ac_cv_lib_util_setproctitle = yes; then
29426 have_setproctitle=yes
29427 LUTIL_LIBS="$LUTIL_LIBS -lutil"
29429 have_setproctitle=no
29430 LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
29431 LIBSRCS="$LIBSRCS setproctitle.c"
29437 if test $have_setproctitle = yes ; then
29439 cat >>confdefs.h <<\_ACEOF
29440 #define HAVE_SETPROCTITLE 1
29446 if test $ol_enable_slp != no ; then
29448 for ac_header in slp.h
29450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29452 echo "$as_me:$LINENO: checking for $ac_header" >&5
29453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29460 # Is the header compilable?
29461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29463 cat >conftest.$ac_ext <<_ACEOF
29464 #line $LINENO "configure"
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470 $ac_includes_default
29471 #include <$ac_header>
29473 rm -f conftest.$ac_objext
29474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29475 (eval $ac_compile) 2>&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } &&
29479 { ac_try='test -s conftest.$ac_objext'
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; }; then
29485 ac_header_compiler=yes
29487 echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29490 ac_header_compiler=no
29492 rm -f conftest.$ac_objext conftest.$ac_ext
29493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29494 echo "${ECHO_T}$ac_header_compiler" >&6
29496 # Is the header present?
29497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29499 cat >conftest.$ac_ext <<_ACEOF
29500 #line $LINENO "configure"
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29506 #include <$ac_header>
29508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29511 grep -v '^ *+' conftest.er1 >conftest.err
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } >/dev/null; then
29516 if test -s conftest.err; then
29517 ac_cpp_err=$ac_c_preproc_warn_flag
29524 if test -z "$ac_cpp_err"; then
29525 ac_header_preproc=yes
29527 echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29530 ac_header_preproc=no
29532 rm -f conftest.err conftest.$ac_ext
29533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29534 echo "${ECHO_T}$ac_header_preproc" >&6
29536 # So? What about this header?
29537 case $ac_header_compiler:$ac_header_preproc in
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29545 ## ------------------------------------ ##
29546 ## Report this to bug-autoconf@gnu.org. ##
29547 ## ------------------------------------ ##
29550 sed "s/^/$as_me: WARNING: /" >&2
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29561 ## ------------------------------------ ##
29562 ## Report this to bug-autoconf@gnu.org. ##
29563 ## ------------------------------------ ##
29566 sed "s/^/$as_me: WARNING: /" >&2
29569 echo "$as_me:$LINENO: checking for $ac_header" >&5
29570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29574 eval "$as_ac_Header=$ac_header_preproc"
29576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29581 cat >>confdefs.h <<_ACEOF
29582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29590 if test $ac_cv_header_slp_h = yes ; then
29591 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
29592 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
29593 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 ac_check_lib_save_LIBS=$LIBS
29598 cat >conftest.$ac_ext <<_ACEOF
29599 #line $LINENO "configure"
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29606 /* Override any gcc2 internal prototype to avoid an error. */
29610 /* We use char because int might match the return type of a gcc2
29611 builtin and then its argument prototype would still apply. */
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623 (eval $ac_link) 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } &&
29627 { ac_try='test -s conftest$ac_exeext'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ac_cv_lib_slp_SLPOpen=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_cv_lib_slp_SLPOpen=no
29640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29641 LIBS=$ac_check_lib_save_LIBS
29643 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
29644 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
29645 if test $ac_cv_lib_slp_SLPOpen = yes; then
29651 if test $have_slp = yes ; then
29653 cat >>confdefs.h <<\_ACEOF
29657 SLAPD_SLP_LIBS=-lslp
29660 elif test $ol_enable_slp = yes ; then
29661 { { echo "$as_me:$LINENO: error: SLP not found" >&5
29662 echo "$as_me: error: SLP not found" >&2;}
29663 { (exit 1); exit 1; }; }
29667 echo "$as_me:$LINENO: checking for mode_t" >&5
29668 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29669 if test "${ac_cv_type_mode_t+set}" = set; then
29670 echo $ECHO_N "(cached) $ECHO_C" >&6
29672 cat >conftest.$ac_ext <<_ACEOF
29673 #line $LINENO "configure"
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29679 $ac_includes_default
29685 if (sizeof (mode_t))
29691 rm -f conftest.$ac_objext
29692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29693 (eval $ac_compile) 2>&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } &&
29697 { ac_try='test -s conftest.$ac_objext'
29698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699 (eval $ac_try) 2>&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; }; then
29703 ac_cv_type_mode_t=yes
29705 echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29708 ac_cv_type_mode_t=no
29710 rm -f conftest.$ac_objext conftest.$ac_ext
29712 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29713 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29714 if test $ac_cv_type_mode_t = yes; then
29718 cat >>confdefs.h <<_ACEOF
29724 echo "$as_me:$LINENO: checking for off_t" >&5
29725 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29726 if test "${ac_cv_type_off_t+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 cat >conftest.$ac_ext <<_ACEOF
29730 #line $LINENO "configure"
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h. */
29736 $ac_includes_default
29742 if (sizeof (off_t))
29748 rm -f conftest.$ac_objext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29750 (eval $ac_compile) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -s conftest.$ac_objext'
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_cv_type_off_t=yes
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_cv_type_off_t=no
29767 rm -f conftest.$ac_objext conftest.$ac_ext
29769 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29770 echo "${ECHO_T}$ac_cv_type_off_t" >&6
29771 if test $ac_cv_type_off_t = yes; then
29775 cat >>confdefs.h <<_ACEOF
29781 echo "$as_me:$LINENO: checking for pid_t" >&5
29782 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29783 if test "${ac_cv_type_pid_t+set}" = set; then
29784 echo $ECHO_N "(cached) $ECHO_C" >&6
29786 cat >conftest.$ac_ext <<_ACEOF
29787 #line $LINENO "configure"
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 $ac_includes_default
29799 if (sizeof (pid_t))
29805 rm -f conftest.$ac_objext
29806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29807 (eval $ac_compile) 2>&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } &&
29811 { ac_try='test -s conftest.$ac_objext'
29812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813 (eval $ac_try) 2>&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; }; then
29817 ac_cv_type_pid_t=yes
29819 echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29822 ac_cv_type_pid_t=no
29824 rm -f conftest.$ac_objext conftest.$ac_ext
29826 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29827 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29828 if test $ac_cv_type_pid_t = yes; then
29832 cat >>confdefs.h <<_ACEOF
29838 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
29839 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
29840 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
29841 echo $ECHO_N "(cached) $ECHO_C" >&6
29843 cat >conftest.$ac_ext <<_ACEOF
29844 #line $LINENO "configure"
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h. */
29850 $ac_includes_default
29854 if ((ptrdiff_t *) 0)
29856 if (sizeof (ptrdiff_t))
29862 rm -f conftest.$ac_objext
29863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29864 (eval $ac_compile) 2>&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } &&
29868 { ac_try='test -s conftest.$ac_objext'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; }; then
29874 ac_cv_type_ptrdiff_t=yes
29876 echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29879 ac_cv_type_ptrdiff_t=no
29881 rm -f conftest.$ac_objext conftest.$ac_ext
29883 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29884 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
29885 if test $ac_cv_type_ptrdiff_t = yes; then
29887 cat >>confdefs.h <<_ACEOF
29888 #define HAVE_PTRDIFF_T 1
29893 echo "$as_me:$LINENO: checking for uintmax_t" >&5
29894 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
29895 if test "${ac_cv_type_uintmax_t+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29898 cat >conftest.$ac_ext <<_ACEOF
29899 #line $LINENO "configure"
29902 cat confdefs.h >>conftest.$ac_ext
29903 cat >>conftest.$ac_ext <<_ACEOF
29904 /* end confdefs.h. */
29905 $ac_includes_default
29909 if ((uintmax_t *) 0)
29911 if (sizeof (uintmax_t))
29917 rm -f conftest.$ac_objext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29919 (eval $ac_compile) 2>&5
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); } &&
29923 { ac_try='test -s conftest.$ac_objext'
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
29929 ac_cv_type_uintmax_t=yes
29931 echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 ac_cv_type_uintmax_t=no
29936 rm -f conftest.$ac_objext conftest.$ac_ext
29938 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
29939 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
29940 if test $ac_cv_type_uintmax_t = yes; then
29942 cat >>confdefs.h <<_ACEOF
29943 #define HAVE_UINTMAX_T 1
29949 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29950 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29951 if test "${ac_cv_type_signal+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 cat >conftest.$ac_ext <<_ACEOF
29955 #line $LINENO "configure"
29958 cat confdefs.h >>conftest.$ac_ext
29959 cat >>conftest.$ac_ext <<_ACEOF
29960 /* end confdefs.h. */
29961 #include <sys/types.h>
29962 #include <signal.h>
29967 extern "C" void (*signal (int, void (*)(int)))(int);
29969 void (*signal ()) ();
29980 rm -f conftest.$ac_objext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29982 (eval $ac_compile) 2>&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } &&
29986 { ac_try='test -s conftest.$ac_objext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_type_signal=void
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_cv_type_signal=int
29999 rm -f conftest.$ac_objext conftest.$ac_ext
30001 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30002 echo "${ECHO_T}$ac_cv_type_signal" >&6
30004 cat >>confdefs.h <<_ACEOF
30005 #define RETSIGTYPE $ac_cv_type_signal
30009 echo "$as_me:$LINENO: checking for size_t" >&5
30010 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30011 if test "${ac_cv_type_size_t+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30014 cat >conftest.$ac_ext <<_ACEOF
30015 #line $LINENO "configure"
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h. */
30021 $ac_includes_default
30027 if (sizeof (size_t))
30033 rm -f conftest.$ac_objext
30034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30035 (eval $ac_compile) 2>&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); } &&
30039 { ac_try='test -s conftest.$ac_objext'
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; }; then
30045 ac_cv_type_size_t=yes
30047 echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30050 ac_cv_type_size_t=no
30052 rm -f conftest.$ac_objext conftest.$ac_ext
30054 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30055 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30056 if test $ac_cv_type_size_t = yes; then
30060 cat >>confdefs.h <<_ACEOF
30061 #define size_t unsigned
30067 echo "$as_me:$LINENO: checking for ssize_t" >&5
30068 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30069 if test "${ac_cv_type_ssize_t+set}" = set; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 cat >conftest.$ac_ext <<_ACEOF
30073 #line $LINENO "configure"
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 $ac_includes_default
30085 if (sizeof (ssize_t))
30091 rm -f conftest.$ac_objext
30092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30093 (eval $ac_compile) 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
30097 { ac_try='test -s conftest.$ac_objext'
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_type_ssize_t=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_type_ssize_t=no
30110 rm -f conftest.$ac_objext conftest.$ac_ext
30112 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30113 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30114 if test $ac_cv_type_ssize_t = yes; then
30116 cat >>confdefs.h <<_ACEOF
30117 #define HAVE_SSIZE_T 1
30122 echo "$as_me:$LINENO: checking for signed int" >&5
30123 echo $ECHO_N "checking for signed int... $ECHO_C" >&6
30124 if test "${ac_cv_type_signed_int+set}" = set; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 cat >conftest.$ac_ext <<_ACEOF
30128 #line $LINENO "configure"
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 $ac_includes_default
30138 if ((signed int *) 0)
30140 if (sizeof (signed int))
30146 rm -f conftest.$ac_objext
30147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30148 (eval $ac_compile) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
30152 { ac_try='test -s conftest.$ac_objext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_cv_type_signed_int=yes
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30163 ac_cv_type_signed_int=no
30165 rm -f conftest.$ac_objext conftest.$ac_ext
30167 echo "$as_me:$LINENO: result: $ac_cv_type_signed_int" >&5
30168 echo "${ECHO_T}$ac_cv_type_signed_int" >&6
30169 if test $ac_cv_type_signed_int = yes; then
30171 cat >>confdefs.h <<_ACEOF
30172 #define HAVE_SIGNED_INT 1
30178 echo "$as_me:$LINENO: checking for caddr_t" >&5
30179 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
30180 if test "${ac_cv_type_caddr_t+set}" = set; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30183 cat >conftest.$ac_ext <<_ACEOF
30184 #line $LINENO "configure"
30187 cat confdefs.h >>conftest.$ac_ext
30188 cat >>conftest.$ac_ext <<_ACEOF
30189 /* end confdefs.h. */
30190 $ac_includes_default
30196 if (sizeof (caddr_t))
30202 rm -f conftest.$ac_objext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30204 (eval $ac_compile) 2>&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
30208 { ac_try='test -s conftest.$ac_objext'
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
30214 ac_cv_type_caddr_t=yes
30216 echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30219 ac_cv_type_caddr_t=no
30221 rm -f conftest.$ac_objext conftest.$ac_ext
30223 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
30224 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
30225 if test $ac_cv_type_caddr_t = yes; then
30227 cat >>confdefs.h <<_ACEOF
30228 #define HAVE_CADDR_T 1
30233 echo "$as_me:$LINENO: checking for char *" >&5
30234 echo $ECHO_N "checking for char *... $ECHO_C" >&6
30235 if test "${ac_cv_type_char_p+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 cat >conftest.$ac_ext <<_ACEOF
30239 #line $LINENO "configure"
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 $ac_includes_default
30251 if (sizeof (char *))
30257 rm -f conftest.$ac_objext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30259 (eval $ac_compile) 2>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } &&
30263 { ac_try='test -s conftest.$ac_objext'
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; }; then
30269 ac_cv_type_char_p=yes
30271 echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30274 ac_cv_type_char_p=no
30276 rm -f conftest.$ac_objext conftest.$ac_ext
30278 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
30279 echo "${ECHO_T}$ac_cv_type_char_p" >&6
30280 if test $ac_cv_type_char_p = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283 #define HAVE_CHAR_P 1
30290 echo "$as_me:$LINENO: checking for socklen_t" >&5
30291 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
30292 if test "${ol_cv_type_socklen_t+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30295 cat >conftest.$ac_ext <<_ACEOF
30296 #line $LINENO "configure"
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h. */
30303 #ifdef HAVE_SYS_TYPES_H
30304 #include <sys/types.h>
30306 #ifdef HAVE_SYS_SOCKET_H
30307 #include <sys/socket.h>
30318 rm -f conftest.$ac_objext
30319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30320 (eval $ac_compile) 2>&5
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } &&
30324 { ac_try='test -s conftest.$ac_objext'
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; }; then
30330 ol_cv_type_socklen_t=yes
30332 echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30335 ol_cv_type_socklen_t=no
30337 rm -f conftest.$ac_objext conftest.$ac_ext
30339 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
30340 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
30341 if test $ol_cv_type_socklen_t = no; then
30343 cat >>confdefs.h <<\_ACEOF
30344 #define socklen_t int
30350 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
30351 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
30352 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 cat >conftest.$ac_ext <<_ACEOF
30356 #line $LINENO "configure"
30359 cat confdefs.h >>conftest.$ac_ext
30360 cat >>conftest.$ac_ext <<_ACEOF
30361 /* end confdefs.h. */
30362 $ac_includes_default
30366 static struct stat ac_aggr;
30367 if (ac_aggr.st_blksize)
30373 rm -f conftest.$ac_objext
30374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30375 (eval $ac_compile) 2>&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_cv_member_struct_stat_st_blksize=yes
30387 echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30390 cat >conftest.$ac_ext <<_ACEOF
30391 #line $LINENO "configure"
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30397 $ac_includes_default
30401 static struct stat ac_aggr;
30402 if (sizeof ac_aggr.st_blksize)
30408 rm -f conftest.$ac_objext
30409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30410 (eval $ac_compile) 2>&5
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); } &&
30414 { ac_try='test -s conftest.$ac_objext'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; }; then
30420 ac_cv_member_struct_stat_st_blksize=yes
30422 echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30425 ac_cv_member_struct_stat_st_blksize=no
30427 rm -f conftest.$ac_objext conftest.$ac_ext
30429 rm -f conftest.$ac_objext conftest.$ac_ext
30431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
30432 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
30433 if test $ac_cv_member_struct_stat_st_blksize = yes; then
30435 cat >>confdefs.h <<_ACEOF
30436 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
30440 cat >>confdefs.h <<\_ACEOF
30441 #define HAVE_ST_BLKSIZE 1
30447 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
30448 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
30449 if test "${ac_cv_header_time+set}" = set; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30452 cat >conftest.$ac_ext <<_ACEOF
30453 #line $LINENO "configure"
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30459 #include <sys/types.h>
30460 #include <sys/time.h>
30466 if ((struct tm *) 0)
30472 rm -f conftest.$ac_objext
30473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30474 (eval $ac_compile) 2>&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } &&
30478 { ac_try='test -s conftest.$ac_objext'
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; }; then
30484 ac_cv_header_time=yes
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_cv_header_time=no
30491 rm -f conftest.$ac_objext conftest.$ac_ext
30493 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30494 echo "${ECHO_T}$ac_cv_header_time" >&6
30495 if test $ac_cv_header_time = yes; then
30497 cat >>confdefs.h <<\_ACEOF
30498 #define TIME_WITH_SYS_TIME 1
30503 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30504 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30505 if test "${ac_cv_struct_tm+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30508 cat >conftest.$ac_ext <<_ACEOF
30509 #line $LINENO "configure"
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h. */
30515 #include <sys/types.h>
30521 struct tm *tp; tp->tm_sec;
30526 rm -f conftest.$ac_objext
30527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30528 (eval $ac_compile) 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); } &&
30532 { ac_try='test -s conftest.$ac_objext'
30533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 (eval $ac_try) 2>&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; }; then
30538 ac_cv_struct_tm=time.h
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ac_cv_struct_tm=sys/time.h
30545 rm -f conftest.$ac_objext conftest.$ac_ext
30547 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30548 echo "${ECHO_T}$ac_cv_struct_tm" >&6
30549 if test $ac_cv_struct_tm = sys/time.h; then
30551 cat >>confdefs.h <<\_ACEOF
30552 #define TM_IN_SYS_TIME 1
30557 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30558 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30559 if test "${ac_cv_type_uid_t+set}" = set; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 cat >conftest.$ac_ext <<_ACEOF
30563 #line $LINENO "configure"
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h. */
30569 #include <sys/types.h>
30572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30573 $EGREP "uid_t" >/dev/null 2>&1; then
30574 ac_cv_type_uid_t=yes
30576 ac_cv_type_uid_t=no
30581 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30582 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30583 if test $ac_cv_type_uid_t = no; then
30585 cat >>confdefs.h <<\_ACEOF
30590 cat >>confdefs.h <<\_ACEOF
30596 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
30597 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
30598 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30601 cat >conftest.$ac_ext <<_ACEOF
30602 #line $LINENO "configure"
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h. */
30608 #include <signal.h>
30612 sig_atomic_t atomic;
30617 rm -f conftest.$ac_objext
30618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30619 (eval $ac_compile) 2>&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
30623 { ac_try='test -s conftest.$ac_objext'
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; }; then
30629 ol_cv_type_sig_atomic_t=yes
30631 echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30634 ol_cv_type_sig_atomic_t=no
30636 rm -f conftest.$ac_objext conftest.$ac_ext
30638 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
30639 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
30640 if test $ol_cv_type_sig_atomic_t = no; then
30642 cat >>confdefs.h <<\_ACEOF
30643 #define sig_atomic_t int
30650 # test for pw_gecos in struct passwd
30651 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
30652 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
30653 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 cat >conftest.$ac_ext <<_ACEOF
30657 #line $LINENO "configure"
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h. */
30668 static struct passwd ac_aggr;
30669 if (ac_aggr.pw_gecos)
30675 rm -f conftest.$ac_objext
30676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30677 (eval $ac_compile) 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
30681 { ac_try='test -s conftest.$ac_objext'
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; }; then
30687 ac_cv_member_struct_passwd_pw_gecos=yes
30689 echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30692 cat >conftest.$ac_ext <<_ACEOF
30693 #line $LINENO "configure"
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h. */
30704 static struct passwd ac_aggr;
30705 if (sizeof ac_aggr.pw_gecos)
30711 rm -f conftest.$ac_objext
30712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30713 (eval $ac_compile) 2>&5
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); } &&
30717 { ac_try='test -s conftest.$ac_objext'
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; }; then
30723 ac_cv_member_struct_passwd_pw_gecos=yes
30725 echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30728 ac_cv_member_struct_passwd_pw_gecos=no
30730 rm -f conftest.$ac_objext conftest.$ac_ext
30732 rm -f conftest.$ac_objext conftest.$ac_ext
30734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
30735 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
30737 if test $ac_cv_member_struct_passwd_pw_gecos = "yes" ; then
30739 cat >>confdefs.h <<\_ACEOF
30740 #define HAVE_PW_GECOS 1
30745 # test for pw_passwd in struct passwd
30746 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
30747 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
30748 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
30749 echo $ECHO_N "(cached) $ECHO_C" >&6
30751 cat >conftest.$ac_ext <<_ACEOF
30752 #line $LINENO "configure"
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30763 static struct passwd ac_aggr;
30764 if (ac_aggr.pw_passwd)
30770 rm -f conftest.$ac_objext
30771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30772 (eval $ac_compile) 2>&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } &&
30776 { ac_try='test -s conftest.$ac_objext'
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 ac_cv_member_struct_passwd_pw_passwd=yes
30784 echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 cat >conftest.$ac_ext <<_ACEOF
30788 #line $LINENO "configure"
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30799 static struct passwd ac_aggr;
30800 if (sizeof ac_aggr.pw_passwd)
30806 rm -f conftest.$ac_objext
30807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30808 (eval $ac_compile) 2>&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
30812 { ac_try='test -s conftest.$ac_objext'
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; }; then
30818 ac_cv_member_struct_passwd_pw_passwd=yes
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30823 ac_cv_member_struct_passwd_pw_passwd=no
30825 rm -f conftest.$ac_objext conftest.$ac_ext
30827 rm -f conftest.$ac_objext conftest.$ac_ext
30829 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
30830 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
30832 if test $ac_cv_member_struct_passwd_pw_passwd = "yes" ; then
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_PW_PASSWD 1
30841 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
30842 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
30843 if test "${ol_cv_c_upper_lower+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 if test "$cross_compiling" = yes; then
30848 ol_cv_c_upper_lower=safe
30850 cat >conftest.$ac_ext <<_ACEOF
30851 #line $LINENO "configure"
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h. */
30861 if ('C' == toupper('C'))
30867 rm -f conftest$ac_exeext
30868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30869 (eval $ac_link) 2>&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30874 (eval $ac_try) 2>&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; }; then
30878 ol_cv_c_upper_lower=no
30880 echo "$as_me: program exited with status $ac_status" >&5
30881 echo "$as_me: failed program was:" >&5
30882 sed 's/^/| /' conftest.$ac_ext >&5
30884 ( exit $ac_status )
30885 ol_cv_c_upper_lower=yes
30887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30890 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
30891 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
30892 if test $ol_cv_c_upper_lower != no ; then
30894 cat >>confdefs.h <<\_ACEOF
30895 #define C_UPPER_LOWER 1
30900 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30901 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30902 if test "${ac_cv_c_const+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30905 cat >conftest.$ac_ext <<_ACEOF
30906 #line $LINENO "configure"
30909 cat confdefs.h >>conftest.$ac_ext
30910 cat >>conftest.$ac_ext <<_ACEOF
30911 /* end confdefs.h. */
30916 /* FIXME: Include the comments suggested by Paul. */
30917 #ifndef __cplusplus
30918 /* Ultrix mips cc rejects this. */
30919 typedef int charset[2];
30921 /* SunOS 4.1.1 cc rejects this. */
30922 char const *const *ccp;
30924 /* NEC SVR4.0.2 mips cc rejects this. */
30925 struct point {int x, y;};
30926 static struct point const zero = {0,0};
30927 /* AIX XL C 1.02.0.0 rejects this.
30928 It does not let you subtract one const X* pointer from another in
30929 an arm of an if-expression whose if-part is not a constant
30931 const char *g = "string";
30932 ccp = &g + (g ? g-g : 0);
30933 /* HPUX 7.0 cc rejects these. */
30936 ccp = (char const *const *) p;
30937 { /* SCO 3.2v4 cc rejects this. */
30939 char const *s = 0 ? (char *) 0 : (char const *) 0;
30943 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
30944 int x[] = {25, 17};
30945 const int *foo = &x[0];
30948 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30949 typedef const int *iptr;
30953 { /* AIX XL C 1.02.0.0 rejects this saying
30954 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30955 struct s { int j; const int *ap[3]; };
30956 struct s *b; b->j = 5;
30958 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30959 const int foo = 10;
30967 rm -f conftest.$ac_objext
30968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30969 (eval $ac_compile) 2>&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } &&
30973 { ac_try='test -s conftest.$ac_objext'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30986 rm -f conftest.$ac_objext conftest.$ac_ext
30988 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30989 echo "${ECHO_T}$ac_cv_c_const" >&6
30990 if test $ac_cv_c_const = no; then
30992 cat >>confdefs.h <<\_ACEOF
30998 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
30999 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
31000 if test "${ol_cv_c_volatile+set}" = set; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31003 cat >conftest.$ac_ext <<_ACEOF
31004 #line $LINENO "configure"
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h. */
31014 volatile int a; int * volatile b = x ? &y : &z;
31015 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
31021 rm -f conftest.$ac_objext
31022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31023 (eval $ac_compile) 2>&5
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); } &&
31027 { ac_try='test -s conftest.$ac_objext'
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ol_cv_c_volatile=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ol_cv_c_volatile=no
31040 rm -f conftest.$ac_objext conftest.$ac_ext
31042 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
31043 echo "${ECHO_T}$ol_cv_c_volatile" >&6
31044 if test $ol_cv_c_volatile = yes; then
31048 cat >>confdefs.h <<\_ACEOF
31055 if test $cross_compiling = yes ; then
31057 cat >>confdefs.h <<\_ACEOF
31058 #define CROSS_COMPILING 1
31062 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31063 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
31064 if test "${ac_cv_c_bigendian+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 # See if sys/param.h defines the BYTE_ORDER macro.
31068 cat >conftest.$ac_ext <<_ACEOF
31069 #line $LINENO "configure"
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h. */
31075 #include <sys/types.h>
31076 #include <sys/param.h>
31081 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
31082 bogus endian macros
31089 rm -f conftest.$ac_objext
31090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31091 (eval $ac_compile) 2>&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try='test -s conftest.$ac_objext'
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; }; then
31101 # It does; now see whether it defined to BIG_ENDIAN or not.
31102 cat >conftest.$ac_ext <<_ACEOF
31103 #line $LINENO "configure"
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h. */
31109 #include <sys/types.h>
31110 #include <sys/param.h>
31115 #if BYTE_ORDER != BIG_ENDIAN
31123 rm -f conftest.$ac_objext
31124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31125 (eval $ac_compile) 2>&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } &&
31129 { ac_try='test -s conftest.$ac_objext'
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
31135 ac_cv_c_bigendian=yes
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31140 ac_cv_c_bigendian=no
31142 rm -f conftest.$ac_objext conftest.$ac_ext
31144 echo "$as_me: failed program was:" >&5
31145 sed 's/^/| /' conftest.$ac_ext >&5
31147 # It does not; compile a test program.
31148 if test "$cross_compiling" = yes; then
31149 # try to guess the endianness by grepping values into an object file
31150 ac_cv_c_bigendian=unknown
31151 cat >conftest.$ac_ext <<_ACEOF
31152 #line $LINENO "configure"
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h. */
31158 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31159 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31160 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
31161 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31162 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31163 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
31167 _ascii (); _ebcdic ();
31172 rm -f conftest.$ac_objext
31173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31174 (eval $ac_compile) 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); } &&
31178 { ac_try='test -s conftest.$ac_objext'
31179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180 (eval $ac_try) 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31185 ac_cv_c_bigendian=yes
31187 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31188 if test "$ac_cv_c_bigendian" = unknown; then
31189 ac_cv_c_bigendian=no
31191 # finding both strings is unlikely to happen, but who knows?
31192 ac_cv_c_bigendian=unknown
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31200 rm -f conftest.$ac_objext conftest.$ac_ext
31202 cat >conftest.$ac_ext <<_ACEOF
31203 #line $LINENO "configure"
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h. */
31212 /* Are we little or big endian? From Harbison&Steele. */
31216 char c[sizeof (long)];
31219 exit (u.c[sizeof (long) - 1] == 1);
31222 rm -f conftest$ac_exeext
31223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31224 (eval $ac_link) 2>&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229 (eval $ac_try) 2>&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
31233 ac_cv_c_bigendian=no
31235 echo "$as_me: program exited with status $ac_status" >&5
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ( exit $ac_status )
31240 ac_cv_c_bigendian=yes
31242 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31245 rm -f conftest.$ac_objext conftest.$ac_ext
31247 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
31248 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
31249 case $ac_cv_c_bigendian in
31252 cat >>confdefs.h <<\_ACEOF
31253 #define WORDS_BIGENDIAN 1
31259 { { echo "$as_me:$LINENO: error: unknown endianness
31260 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
31261 echo "$as_me: error: unknown endianness
31262 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
31263 { (exit 1); exit 1; }; } ;;
31268 echo "$as_me:$LINENO: checking for short" >&5
31269 echo $ECHO_N "checking for short... $ECHO_C" >&6
31270 if test "${ac_cv_type_short+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31273 cat >conftest.$ac_ext <<_ACEOF
31274 #line $LINENO "configure"
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h. */
31280 $ac_includes_default
31286 if (sizeof (short))
31292 rm -f conftest.$ac_objext
31293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31294 (eval $ac_compile) 2>&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
31298 { ac_try='test -s conftest.$ac_objext'
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
31304 ac_cv_type_short=yes
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31309 ac_cv_type_short=no
31311 rm -f conftest.$ac_objext conftest.$ac_ext
31313 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
31314 echo "${ECHO_T}$ac_cv_type_short" >&6
31316 echo "$as_me:$LINENO: checking size of short" >&5
31317 echo $ECHO_N "checking size of short... $ECHO_C" >&6
31318 if test "${ac_cv_sizeof_short+set}" = set; then
31319 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 if test "$ac_cv_type_short" = yes; then
31322 # The cast to unsigned long works around a bug in the HP C Compiler
31323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31325 # This bug is HP SR number 8606223364.
31326 if test "$cross_compiling" = yes; then
31327 # Depending upon the size, compute the lo and hi bounds.
31328 cat >conftest.$ac_ext <<_ACEOF
31329 #line $LINENO "configure"
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h. */
31335 $ac_includes_default
31339 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
31346 rm -f conftest.$ac_objext
31347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31348 (eval $ac_compile) 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); } &&
31352 { ac_try='test -s conftest.$ac_objext'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
31360 cat >conftest.$ac_ext <<_ACEOF
31361 #line $LINENO "configure"
31364 cat confdefs.h >>conftest.$ac_ext
31365 cat >>conftest.$ac_ext <<_ACEOF
31366 /* end confdefs.h. */
31367 $ac_includes_default
31371 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
31378 rm -f conftest.$ac_objext
31379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31380 (eval $ac_compile) 2>&5
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); } &&
31384 { ac_try='test -s conftest.$ac_objext'
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 ac_hi=$ac_mid; break
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31395 ac_lo=`expr $ac_mid + 1`
31396 if test $ac_lo -le $ac_mid; then
31400 ac_mid=`expr 2 '*' $ac_mid + 1`
31402 rm -f conftest.$ac_objext conftest.$ac_ext
31405 echo "$as_me: failed program was:" >&5
31406 sed 's/^/| /' conftest.$ac_ext >&5
31408 cat >conftest.$ac_ext <<_ACEOF
31409 #line $LINENO "configure"
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31415 $ac_includes_default
31419 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
31426 rm -f conftest.$ac_objext
31427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31428 (eval $ac_compile) 2>&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
31432 { ac_try='test -s conftest.$ac_objext'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31440 cat >conftest.$ac_ext <<_ACEOF
31441 #line $LINENO "configure"
31444 cat confdefs.h >>conftest.$ac_ext
31445 cat >>conftest.$ac_ext <<_ACEOF
31446 /* end confdefs.h. */
31447 $ac_includes_default
31451 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
31458 rm -f conftest.$ac_objext
31459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31460 (eval $ac_compile) 2>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } &&
31464 { ac_try='test -s conftest.$ac_objext'
31465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466 (eval $ac_try) 2>&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); }; }; then
31470 ac_lo=$ac_mid; break
31472 echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31475 ac_hi=`expr '(' $ac_mid ')' - 1`
31476 if test $ac_mid -le $ac_hi; then
31480 ac_mid=`expr 2 '*' $ac_mid`
31482 rm -f conftest.$ac_objext conftest.$ac_ext
31485 echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31490 rm -f conftest.$ac_objext conftest.$ac_ext
31492 rm -f conftest.$ac_objext conftest.$ac_ext
31493 # Binary search between lo and hi bounds.
31494 while test "x$ac_lo" != "x$ac_hi"; do
31495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31496 cat >conftest.$ac_ext <<_ACEOF
31497 #line $LINENO "configure"
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h. */
31503 $ac_includes_default
31507 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
31514 rm -f conftest.$ac_objext
31515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31516 (eval $ac_compile) 2>&5
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); } &&
31520 { ac_try='test -s conftest.$ac_objext'
31521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31522 (eval $ac_try) 2>&5
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; }; then
31528 echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31531 ac_lo=`expr '(' $ac_mid ')' + 1`
31533 rm -f conftest.$ac_objext conftest.$ac_ext
31536 ?*) ac_cv_sizeof_short=$ac_lo;;
31537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
31538 See \`config.log' for more details." >&5
31539 echo "$as_me: error: cannot compute sizeof (short), 77
31540 See \`config.log' for more details." >&2;}
31541 { (exit 1); exit 1; }; } ;;
31544 if test "$cross_compiling" = yes; then
31545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31546 See \`config.log' for more details." >&5
31547 echo "$as_me: error: cannot run test program while cross compiling
31548 See \`config.log' for more details." >&2;}
31549 { (exit 1); exit 1; }; }
31551 cat >conftest.$ac_ext <<_ACEOF
31552 #line $LINENO "configure"
31555 cat confdefs.h >>conftest.$ac_ext
31556 cat >>conftest.$ac_ext <<_ACEOF
31557 /* end confdefs.h. */
31558 $ac_includes_default
31559 long longval () { return (long) (sizeof (short)); }
31560 unsigned long ulongval () { return (long) (sizeof (short)); }
31562 #include <stdlib.h>
31567 FILE *f = fopen ("conftest.val", "w");
31570 if (((long) (sizeof (short))) < 0)
31572 long i = longval ();
31573 if (i != ((long) (sizeof (short))))
31575 fprintf (f, "%ld\n", i);
31579 unsigned long i = ulongval ();
31580 if (i != ((long) (sizeof (short))))
31582 fprintf (f, "%lu\n", i);
31584 exit (ferror (f) || fclose (f) != 0);
31590 rm -f conftest$ac_exeext
31591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31592 (eval $ac_link) 2>&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; }; then
31601 ac_cv_sizeof_short=`cat conftest.val`
31603 echo "$as_me: program exited with status $ac_status" >&5
31604 echo "$as_me: failed program was:" >&5
31605 sed 's/^/| /' conftest.$ac_ext >&5
31607 ( exit $ac_status )
31608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
31609 See \`config.log' for more details." >&5
31610 echo "$as_me: error: cannot compute sizeof (short), 77
31611 See \`config.log' for more details." >&2;}
31612 { (exit 1); exit 1; }; }
31614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31619 ac_cv_sizeof_short=0
31622 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
31623 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
31624 cat >>confdefs.h <<_ACEOF
31625 #define SIZEOF_SHORT $ac_cv_sizeof_short
31629 echo "$as_me:$LINENO: checking for int" >&5
31630 echo $ECHO_N "checking for int... $ECHO_C" >&6
31631 if test "${ac_cv_type_int+set}" = set; then
31632 echo $ECHO_N "(cached) $ECHO_C" >&6
31634 cat >conftest.$ac_ext <<_ACEOF
31635 #line $LINENO "configure"
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 $ac_includes_default
31653 rm -f conftest.$ac_objext
31654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31655 (eval $ac_compile) 2>&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); } &&
31659 { ac_try='test -s conftest.$ac_objext'
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; }; then
31667 echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31672 rm -f conftest.$ac_objext conftest.$ac_ext
31674 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
31675 echo "${ECHO_T}$ac_cv_type_int" >&6
31677 echo "$as_me:$LINENO: checking size of int" >&5
31678 echo $ECHO_N "checking size of int... $ECHO_C" >&6
31679 if test "${ac_cv_sizeof_int+set}" = set; then
31680 echo $ECHO_N "(cached) $ECHO_C" >&6
31682 if test "$ac_cv_type_int" = yes; then
31683 # The cast to unsigned long works around a bug in the HP C Compiler
31684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31686 # This bug is HP SR number 8606223364.
31687 if test "$cross_compiling" = yes; then
31688 # Depending upon the size, compute the lo and hi bounds.
31689 cat >conftest.$ac_ext <<_ACEOF
31690 #line $LINENO "configure"
31693 cat confdefs.h >>conftest.$ac_ext
31694 cat >>conftest.$ac_ext <<_ACEOF
31695 /* end confdefs.h. */
31696 $ac_includes_default
31700 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
31707 rm -f conftest.$ac_objext
31708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31709 (eval $ac_compile) 2>&5
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); } &&
31713 { ac_try='test -s conftest.$ac_objext'
31714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31715 (eval $ac_try) 2>&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); }; }; then
31721 cat >conftest.$ac_ext <<_ACEOF
31722 #line $LINENO "configure"
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31728 $ac_includes_default
31732 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
31739 rm -f conftest.$ac_objext
31740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31741 (eval $ac_compile) 2>&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); } &&
31745 { ac_try='test -s conftest.$ac_objext'
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; }; then
31751 ac_hi=$ac_mid; break
31753 echo "$as_me: failed program was:" >&5
31754 sed 's/^/| /' conftest.$ac_ext >&5
31756 ac_lo=`expr $ac_mid + 1`
31757 if test $ac_lo -le $ac_mid; then
31761 ac_mid=`expr 2 '*' $ac_mid + 1`
31763 rm -f conftest.$ac_objext conftest.$ac_ext
31766 echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31769 cat >conftest.$ac_ext <<_ACEOF
31770 #line $LINENO "configure"
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31776 $ac_includes_default
31780 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
31787 rm -f conftest.$ac_objext
31788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31789 (eval $ac_compile) 2>&5
31791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792 (exit $ac_status); } &&
31793 { ac_try='test -s conftest.$ac_objext'
31794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795 (eval $ac_try) 2>&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; }; then
31801 cat >conftest.$ac_ext <<_ACEOF
31802 #line $LINENO "configure"
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h. */
31808 $ac_includes_default
31812 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
31819 rm -f conftest.$ac_objext
31820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31821 (eval $ac_compile) 2>&5
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); } &&
31825 { ac_try='test -s conftest.$ac_objext'
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }; then
31831 ac_lo=$ac_mid; break
31833 echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31836 ac_hi=`expr '(' $ac_mid ')' - 1`
31837 if test $ac_mid -le $ac_hi; then
31841 ac_mid=`expr 2 '*' $ac_mid`
31843 rm -f conftest.$ac_objext conftest.$ac_ext
31846 echo "$as_me: failed program was:" >&5
31847 sed 's/^/| /' conftest.$ac_ext >&5
31851 rm -f conftest.$ac_objext conftest.$ac_ext
31853 rm -f conftest.$ac_objext conftest.$ac_ext
31854 # Binary search between lo and hi bounds.
31855 while test "x$ac_lo" != "x$ac_hi"; do
31856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31857 cat >conftest.$ac_ext <<_ACEOF
31858 #line $LINENO "configure"
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 $ac_includes_default
31868 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
31875 rm -f conftest.$ac_objext
31876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31877 (eval $ac_compile) 2>&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -s conftest.$ac_objext'
31882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31883 (eval $ac_try) 2>&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); }; }; then
31889 echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31892 ac_lo=`expr '(' $ac_mid ')' + 1`
31894 rm -f conftest.$ac_objext conftest.$ac_ext
31897 ?*) ac_cv_sizeof_int=$ac_lo;;
31898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
31899 See \`config.log' for more details." >&5
31900 echo "$as_me: error: cannot compute sizeof (int), 77
31901 See \`config.log' for more details." >&2;}
31902 { (exit 1); exit 1; }; } ;;
31905 if test "$cross_compiling" = yes; then
31906 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31907 See \`config.log' for more details." >&5
31908 echo "$as_me: error: cannot run test program while cross compiling
31909 See \`config.log' for more details." >&2;}
31910 { (exit 1); exit 1; }; }
31912 cat >conftest.$ac_ext <<_ACEOF
31913 #line $LINENO "configure"
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31919 $ac_includes_default
31920 long longval () { return (long) (sizeof (int)); }
31921 unsigned long ulongval () { return (long) (sizeof (int)); }
31923 #include <stdlib.h>
31928 FILE *f = fopen ("conftest.val", "w");
31931 if (((long) (sizeof (int))) < 0)
31933 long i = longval ();
31934 if (i != ((long) (sizeof (int))))
31936 fprintf (f, "%ld\n", i);
31940 unsigned long i = ulongval ();
31941 if (i != ((long) (sizeof (int))))
31943 fprintf (f, "%lu\n", i);
31945 exit (ferror (f) || fclose (f) != 0);
31951 rm -f conftest$ac_exeext
31952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31953 (eval $ac_link) 2>&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31958 (eval $ac_try) 2>&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 ac_cv_sizeof_int=`cat conftest.val`
31964 echo "$as_me: program exited with status $ac_status" >&5
31965 echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31968 ( exit $ac_status )
31969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
31970 See \`config.log' for more details." >&5
31971 echo "$as_me: error: cannot compute sizeof (int), 77
31972 See \`config.log' for more details." >&2;}
31973 { (exit 1); exit 1; }; }
31975 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
31984 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
31985 cat >>confdefs.h <<_ACEOF
31986 #define SIZEOF_INT $ac_cv_sizeof_int
31990 echo "$as_me:$LINENO: checking for long" >&5
31991 echo $ECHO_N "checking for long... $ECHO_C" >&6
31992 if test "${ac_cv_type_long+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 cat >conftest.$ac_ext <<_ACEOF
31996 #line $LINENO "configure"
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32002 $ac_includes_default
32014 rm -f conftest.$ac_objext
32015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32016 (eval $ac_compile) 2>&5
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); } &&
32020 { ac_try='test -s conftest.$ac_objext'
32021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32022 (eval $ac_try) 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; }; then
32026 ac_cv_type_long=yes
32028 echo "$as_me: failed program was:" >&5
32029 sed 's/^/| /' conftest.$ac_ext >&5
32033 rm -f conftest.$ac_objext conftest.$ac_ext
32035 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32036 echo "${ECHO_T}$ac_cv_type_long" >&6
32038 echo "$as_me:$LINENO: checking size of long" >&5
32039 echo $ECHO_N "checking size of long... $ECHO_C" >&6
32040 if test "${ac_cv_sizeof_long+set}" = set; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32043 if test "$ac_cv_type_long" = yes; then
32044 # The cast to unsigned long works around a bug in the HP C Compiler
32045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32047 # This bug is HP SR number 8606223364.
32048 if test "$cross_compiling" = yes; then
32049 # Depending upon the size, compute the lo and hi bounds.
32050 cat >conftest.$ac_ext <<_ACEOF
32051 #line $LINENO "configure"
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h. */
32057 $ac_includes_default
32061 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
32068 rm -f conftest.$ac_objext
32069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32070 (eval $ac_compile) 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); } &&
32074 { ac_try='test -s conftest.$ac_objext'
32075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076 (eval $ac_try) 2>&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; }; then
32082 cat >conftest.$ac_ext <<_ACEOF
32083 #line $LINENO "configure"
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32089 $ac_includes_default
32093 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
32100 rm -f conftest.$ac_objext
32101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32102 (eval $ac_compile) 2>&5
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
32106 { ac_try='test -s conftest.$ac_objext'
32107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108 (eval $ac_try) 2>&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; }; then
32112 ac_hi=$ac_mid; break
32114 echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32117 ac_lo=`expr $ac_mid + 1`
32118 if test $ac_lo -le $ac_mid; then
32122 ac_mid=`expr 2 '*' $ac_mid + 1`
32124 rm -f conftest.$ac_objext conftest.$ac_ext
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32130 cat >conftest.$ac_ext <<_ACEOF
32131 #line $LINENO "configure"
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h. */
32137 $ac_includes_default
32141 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
32148 rm -f conftest.$ac_objext
32149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32150 (eval $ac_compile) 2>&5
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); } &&
32154 { ac_try='test -s conftest.$ac_objext'
32155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32156 (eval $ac_try) 2>&5
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
32162 cat >conftest.$ac_ext <<_ACEOF
32163 #line $LINENO "configure"
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h. */
32169 $ac_includes_default
32173 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
32180 rm -f conftest.$ac_objext
32181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32182 (eval $ac_compile) 2>&5
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); } &&
32186 { ac_try='test -s conftest.$ac_objext'
32187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32188 (eval $ac_try) 2>&5
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; }; then
32192 ac_lo=$ac_mid; break
32194 echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32197 ac_hi=`expr '(' $ac_mid ')' - 1`
32198 if test $ac_mid -le $ac_hi; then
32202 ac_mid=`expr 2 '*' $ac_mid`
32204 rm -f conftest.$ac_objext conftest.$ac_ext
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32212 rm -f conftest.$ac_objext conftest.$ac_ext
32214 rm -f conftest.$ac_objext conftest.$ac_ext
32215 # Binary search between lo and hi bounds.
32216 while test "x$ac_lo" != "x$ac_hi"; do
32217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32218 cat >conftest.$ac_ext <<_ACEOF
32219 #line $LINENO "configure"
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h. */
32225 $ac_includes_default
32229 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
32236 rm -f conftest.$ac_objext
32237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32238 (eval $ac_compile) 2>&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } &&
32242 { ac_try='test -s conftest.$ac_objext'
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; }; then
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 ac_lo=`expr '(' $ac_mid ')' + 1`
32255 rm -f conftest.$ac_objext conftest.$ac_ext
32258 ?*) ac_cv_sizeof_long=$ac_lo;;
32259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
32260 See \`config.log' for more details." >&5
32261 echo "$as_me: error: cannot compute sizeof (long), 77
32262 See \`config.log' for more details." >&2;}
32263 { (exit 1); exit 1; }; } ;;
32266 if test "$cross_compiling" = yes; then
32267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32268 See \`config.log' for more details." >&5
32269 echo "$as_me: error: cannot run test program while cross compiling
32270 See \`config.log' for more details." >&2;}
32271 { (exit 1); exit 1; }; }
32273 cat >conftest.$ac_ext <<_ACEOF
32274 #line $LINENO "configure"
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h. */
32280 $ac_includes_default
32281 long longval () { return (long) (sizeof (long)); }
32282 unsigned long ulongval () { return (long) (sizeof (long)); }
32284 #include <stdlib.h>
32289 FILE *f = fopen ("conftest.val", "w");
32292 if (((long) (sizeof (long))) < 0)
32294 long i = longval ();
32295 if (i != ((long) (sizeof (long))))
32297 fprintf (f, "%ld\n", i);
32301 unsigned long i = ulongval ();
32302 if (i != ((long) (sizeof (long))))
32304 fprintf (f, "%lu\n", i);
32306 exit (ferror (f) || fclose (f) != 0);
32312 rm -f conftest$ac_exeext
32313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32314 (eval $ac_link) 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 ac_cv_sizeof_long=`cat conftest.val`
32325 echo "$as_me: program exited with status $ac_status" >&5
32326 echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32329 ( exit $ac_status )
32330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
32331 See \`config.log' for more details." >&5
32332 echo "$as_me: error: cannot compute sizeof (long), 77
32333 See \`config.log' for more details." >&2;}
32334 { (exit 1); exit 1; }; }
32336 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32341 ac_cv_sizeof_long=0
32344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
32345 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
32346 cat >>confdefs.h <<_ACEOF
32347 #define SIZEOF_LONG $ac_cv_sizeof_long
32352 if test "$ac_cv_sizeof_int" -lt 4 ; then
32353 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
32354 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
32356 cat >>confdefs.h <<\_ACEOF
32357 #define LBER_INT_T long
32361 cat >>confdefs.h <<\_ACEOF
32362 #define LBER_INT_T int
32367 cat >>confdefs.h <<\_ACEOF
32368 #define LBER_LEN_T long
32371 cat >>confdefs.h <<\_ACEOF
32372 #define LBER_SOCKET_T int
32375 cat >>confdefs.h <<\_ACEOF
32376 #define LBER_TAG_T long
32380 echo "$as_me:$LINENO: checking for working memcmp" >&5
32381 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
32382 if test "${ac_cv_func_memcmp_working+set}" = set; then
32383 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 if test "$cross_compiling" = yes; then
32386 ac_cv_func_memcmp_working=no
32388 cat >conftest.$ac_ext <<_ACEOF
32389 #line $LINENO "configure"
32392 cat confdefs.h >>conftest.$ac_ext
32393 cat >>conftest.$ac_ext <<_ACEOF
32394 /* end confdefs.h. */
32400 /* Some versions of memcmp are not 8-bit clean. */
32401 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
32402 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
32405 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
32406 or more and with at least one buffer not starting on a 4-byte boundary.
32407 William Lewis provided this test program. */
32412 for (i = 0; i < 4; i++)
32416 strcpy (a, "--------01111111");
32417 strcpy (b, "--------10000000");
32418 if (memcmp (a, b, 16) >= 0)
32428 rm -f conftest$ac_exeext
32429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32430 (eval $ac_link) 2>&5
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; }; then
32439 ac_cv_func_memcmp_working=yes
32441 echo "$as_me: program exited with status $ac_status" >&5
32442 echo "$as_me: failed program was:" >&5
32443 sed 's/^/| /' conftest.$ac_ext >&5
32445 ( exit $ac_status )
32446 ac_cv_func_memcmp_working=no
32448 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32451 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
32452 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
32453 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
32456 for ac_func in strftime
32458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32459 echo "$as_me:$LINENO: checking for $ac_func" >&5
32460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32461 if eval "test \"\${$as_ac_var+set}\" = set"; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 cat >conftest.$ac_ext <<_ACEOF
32465 #line $LINENO "configure"
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h. */
32471 /* System header to define __stub macros and hopefully few prototypes,
32472 which can conflict with char $ac_func (); below.
32473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32474 <limits.h> exists even on freestanding compilers. */
32476 # include <limits.h>
32478 # include <assert.h>
32480 /* Override any gcc2 internal prototype to avoid an error. */
32485 /* We use char because int might match the return type of a gcc2
32486 builtin and then its argument prototype would still apply. */
32488 /* The GNU C library defines this for functions which it implements
32489 to always fail with ENOSYS. Some functions are actually named
32490 something starting with __ and the normal name is an alias. */
32491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32494 char (*f) () = $ac_func;
32503 return f != $ac_func;
32508 rm -f conftest.$ac_objext conftest$ac_exeext
32509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32510 (eval $ac_link) 2>&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } &&
32514 { ac_try='test -s conftest$ac_exeext'
32515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516 (eval $ac_try) 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 eval "$as_ac_var=yes"
32522 echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32525 eval "$as_ac_var=no"
32527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32531 if test `eval echo '${'$as_ac_var'}'` = yes; then
32532 cat >>confdefs.h <<_ACEOF
32533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32537 # strftime is in -lintl on SCO UNIX.
32538 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32539 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
32540 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32541 echo $ECHO_N "(cached) $ECHO_C" >&6
32543 ac_check_lib_save_LIBS=$LIBS
32544 LIBS="-lintl $LIBS"
32545 cat >conftest.$ac_ext <<_ACEOF
32546 #line $LINENO "configure"
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h. */
32553 /* Override any gcc2 internal prototype to avoid an error. */
32557 /* We use char because int might match the return type of a gcc2
32558 builtin and then its argument prototype would still apply. */
32568 rm -f conftest.$ac_objext conftest$ac_exeext
32569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32570 (eval $ac_link) 2>&5
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); } &&
32574 { ac_try='test -s conftest$ac_exeext'
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; }; then
32580 ac_cv_lib_intl_strftime=yes
32582 echo "$as_me: failed program was:" >&5
32583 sed 's/^/| /' conftest.$ac_ext >&5
32585 ac_cv_lib_intl_strftime=no
32587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32588 LIBS=$ac_check_lib_save_LIBS
32590 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32591 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
32592 if test $ac_cv_lib_intl_strftime = yes; then
32593 cat >>confdefs.h <<\_ACEOF
32594 #define HAVE_STRFTIME 1
32597 LIBS="-lintl $LIBS"
32604 echo "$as_me:$LINENO: checking for inet_aton()" >&5
32605 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
32606 if test "${ol_cv_func_inet_aton+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32609 cat >conftest.$ac_ext <<_ACEOF
32610 #line $LINENO "configure"
32613 cat confdefs.h >>conftest.$ac_ext
32614 cat >>conftest.$ac_ext <<_ACEOF
32615 /* end confdefs.h. */
32617 #ifdef HAVE_SYS_TYPES_H
32618 # include <sys/types.h>
32620 #ifdef HAVE_SYS_SOCKET_H
32621 # include <sys/socket.h>
32622 # ifdef HAVE_SYS_SELECT_H
32623 # include <sys/select.h>
32625 # include <netinet/in.h>
32626 # ifdef HAVE_ARPA_INET_H
32627 # include <arpa/inet.h>
32635 int rc = inet_aton( "255.255.255.255", &in );
32640 rm -f conftest.$ac_objext conftest$ac_exeext
32641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32642 (eval $ac_link) 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } &&
32646 { ac_try='test -s conftest$ac_exeext'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 ol_cv_func_inet_aton=yes
32654 echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.$ac_ext >&5
32657 ol_cv_func_inet_aton=no
32659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32661 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
32662 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
32663 if test $ol_cv_func_inet_aton != no; then
32665 cat >>confdefs.h <<\_ACEOF
32666 #define HAVE_INET_ATON 1
32672 echo "$as_me:$LINENO: checking for _spawnlp" >&5
32673 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
32674 if test "${ac_cv_func__spawnlp+set}" = set; then
32675 echo $ECHO_N "(cached) $ECHO_C" >&6
32677 cat >conftest.$ac_ext <<_ACEOF
32678 #line $LINENO "configure"
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32684 /* System header to define __stub macros and hopefully few prototypes,
32685 which can conflict with char _spawnlp (); below.
32686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32687 <limits.h> exists even on freestanding compilers. */
32689 # include <limits.h>
32691 # include <assert.h>
32693 /* Override any gcc2 internal prototype to avoid an error. */
32698 /* We use char because int might match the return type of a gcc2
32699 builtin and then its argument prototype would still apply. */
32701 /* The GNU C library defines this for functions which it implements
32702 to always fail with ENOSYS. Some functions are actually named
32703 something starting with __ and the normal name is an alias. */
32704 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
32707 char (*f) () = _spawnlp;
32716 return f != _spawnlp;
32721 rm -f conftest.$ac_objext conftest$ac_exeext
32722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32723 (eval $ac_link) 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
32727 { ac_try='test -s conftest$ac_exeext'
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733 ac_cv_func__spawnlp=yes
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32738 ac_cv_func__spawnlp=no
32740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32742 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
32743 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
32744 if test $ac_cv_func__spawnlp = yes; then
32746 cat >>confdefs.h <<\_ACEOF
32747 #define HAVE_SPAWNLP 1
32753 echo "$as_me:$LINENO: checking for _snprintf" >&5
32754 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
32755 if test "${ac_cv_func__snprintf+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 cat >conftest.$ac_ext <<_ACEOF
32759 #line $LINENO "configure"
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32765 /* System header to define __stub macros and hopefully few prototypes,
32766 which can conflict with char _snprintf (); below.
32767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32768 <limits.h> exists even on freestanding compilers. */
32770 # include <limits.h>
32772 # include <assert.h>
32774 /* Override any gcc2 internal prototype to avoid an error. */
32779 /* We use char because int might match the return type of a gcc2
32780 builtin and then its argument prototype would still apply. */
32782 /* The GNU C library defines this for functions which it implements
32783 to always fail with ENOSYS. Some functions are actually named
32784 something starting with __ and the normal name is an alias. */
32785 #if defined (__stub__snprintf) || defined (__stub____snprintf)
32788 char (*f) () = _snprintf;
32797 return f != _snprintf;
32802 rm -f conftest.$ac_objext conftest$ac_exeext
32803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32804 (eval $ac_link) 2>&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
32808 { ac_try='test -s conftest$ac_exeext'
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; }; then
32814 ac_cv_func__snprintf=yes
32816 echo "$as_me: failed program was:" >&5
32817 sed 's/^/| /' conftest.$ac_ext >&5
32819 ac_cv_func__snprintf=no
32821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32823 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
32824 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
32825 if test $ac_cv_func__snprintf = yes; then
32826 ac_cv_func_snprintf=yes
32828 cat >>confdefs.h <<\_ACEOF
32829 #define snprintf _snprintf
32836 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
32837 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
32838 if test "${ac_cv_func__vsnprintf+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32841 cat >conftest.$ac_ext <<_ACEOF
32842 #line $LINENO "configure"
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h. */
32848 /* System header to define __stub macros and hopefully few prototypes,
32849 which can conflict with char _vsnprintf (); below.
32850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32851 <limits.h> exists even on freestanding compilers. */
32853 # include <limits.h>
32855 # include <assert.h>
32857 /* Override any gcc2 internal prototype to avoid an error. */
32862 /* We use char because int might match the return type of a gcc2
32863 builtin and then its argument prototype would still apply. */
32864 char _vsnprintf ();
32865 /* The GNU C library defines this for functions which it implements
32866 to always fail with ENOSYS. Some functions are actually named
32867 something starting with __ and the normal name is an alias. */
32868 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
32871 char (*f) () = _vsnprintf;
32880 return f != _vsnprintf;
32885 rm -f conftest.$ac_objext conftest$ac_exeext
32886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32887 (eval $ac_link) 2>&5
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); } &&
32891 { ac_try='test -s conftest$ac_exeext'
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897 ac_cv_func__vsnprintf=yes
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 ac_cv_func__vsnprintf=no
32904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32906 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
32907 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
32908 if test $ac_cv_func__vsnprintf = yes; then
32909 ac_cv_func_vsnprintf=yes
32911 cat >>confdefs.h <<\_ACEOF
32912 #define vsnprintf _vsnprintf
32920 for ac_func in vprintf
32922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32923 echo "$as_me:$LINENO: checking for $ac_func" >&5
32924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32925 if eval "test \"\${$as_ac_var+set}\" = set"; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32928 cat >conftest.$ac_ext <<_ACEOF
32929 #line $LINENO "configure"
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32935 /* System header to define __stub macros and hopefully few prototypes,
32936 which can conflict with char $ac_func (); below.
32937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32938 <limits.h> exists even on freestanding compilers. */
32940 # include <limits.h>
32942 # include <assert.h>
32944 /* Override any gcc2 internal prototype to avoid an error. */
32949 /* We use char because int might match the return type of a gcc2
32950 builtin and then its argument prototype would still apply. */
32952 /* The GNU C library defines this for functions which it implements
32953 to always fail with ENOSYS. Some functions are actually named
32954 something starting with __ and the normal name is an alias. */
32955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32958 char (*f) () = $ac_func;
32967 return f != $ac_func;
32972 rm -f conftest.$ac_objext conftest$ac_exeext
32973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32974 (eval $ac_link) 2>&5
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); } &&
32978 { ac_try='test -s conftest$ac_exeext'
32979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980 (eval $ac_try) 2>&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984 eval "$as_ac_var=yes"
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32989 eval "$as_ac_var=no"
32991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32995 if test `eval echo '${'$as_ac_var'}'` = yes; then
32996 cat >>confdefs.h <<_ACEOF
32997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33000 echo "$as_me:$LINENO: checking for _doprnt" >&5
33001 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
33002 if test "${ac_cv_func__doprnt+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33005 cat >conftest.$ac_ext <<_ACEOF
33006 #line $LINENO "configure"
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33012 /* System header to define __stub macros and hopefully few prototypes,
33013 which can conflict with char _doprnt (); below.
33014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33015 <limits.h> exists even on freestanding compilers. */
33017 # include <limits.h>
33019 # include <assert.h>
33021 /* Override any gcc2 internal prototype to avoid an error. */
33026 /* We use char because int might match the return type of a gcc2
33027 builtin and then its argument prototype would still apply. */
33029 /* The GNU C library defines this for functions which it implements
33030 to always fail with ENOSYS. Some functions are actually named
33031 something starting with __ and the normal name is an alias. */
33032 #if defined (__stub__doprnt) || defined (__stub____doprnt)
33035 char (*f) () = _doprnt;
33044 return f != _doprnt;
33049 rm -f conftest.$ac_objext conftest$ac_exeext
33050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33051 (eval $ac_link) 2>&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
33055 { ac_try='test -s conftest$ac_exeext'
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 ac_cv_func__doprnt=yes
33063 echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33066 ac_cv_func__doprnt=no
33068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33070 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
33071 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
33072 if test $ac_cv_func__doprnt = yes; then
33074 cat >>confdefs.h <<\_ACEOF
33075 #define HAVE_DOPRNT 1
33085 if test $ac_cv_func_vprintf = yes ; then
33088 for ac_func in snprintf vsnprintf
33090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33091 echo "$as_me:$LINENO: checking for $ac_func" >&5
33092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33093 if eval "test \"\${$as_ac_var+set}\" = set"; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
33096 cat >conftest.$ac_ext <<_ACEOF
33097 #line $LINENO "configure"
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 /* System header to define __stub macros and hopefully few prototypes,
33104 which can conflict with char $ac_func (); below.
33105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33106 <limits.h> exists even on freestanding compilers. */
33108 # include <limits.h>
33110 # include <assert.h>
33112 /* Override any gcc2 internal prototype to avoid an error. */
33117 /* We use char because int might match the return type of a gcc2
33118 builtin and then its argument prototype would still apply. */
33120 /* The GNU C library defines this for functions which it implements
33121 to always fail with ENOSYS. Some functions are actually named
33122 something starting with __ and the normal name is an alias. */
33123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33126 char (*f) () = $ac_func;
33135 return f != $ac_func;
33140 rm -f conftest.$ac_objext conftest$ac_exeext
33141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142 (eval $ac_link) 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); } &&
33146 { ac_try='test -s conftest$ac_exeext'
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; }; then
33152 eval "$as_ac_var=yes"
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33157 eval "$as_ac_var=no"
33159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33163 if test `eval echo '${'$as_ac_var'}'` = yes; then
33164 cat >>confdefs.h <<_ACEOF
33165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33283 echo "$as_me:$LINENO: checking for $ac_func" >&5
33284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33285 if eval "test \"\${$as_ac_var+set}\" = set"; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33288 cat >conftest.$ac_ext <<_ACEOF
33289 #line $LINENO "configure"
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h. */
33295 /* System header to define __stub macros and hopefully few prototypes,
33296 which can conflict with char $ac_func (); below.
33297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33298 <limits.h> exists even on freestanding compilers. */
33300 # include <limits.h>
33302 # include <assert.h>
33304 /* Override any gcc2 internal prototype to avoid an error. */
33309 /* We use char because int might match the return type of a gcc2
33310 builtin and then its argument prototype would still apply. */
33312 /* The GNU C library defines this for functions which it implements
33313 to always fail with ENOSYS. Some functions are actually named
33314 something starting with __ and the normal name is an alias. */
33315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33318 char (*f) () = $ac_func;
33327 return f != $ac_func;
33332 rm -f conftest.$ac_objext conftest$ac_exeext
33333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33334 (eval $ac_link) 2>&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } &&
33338 { ac_try='test -s conftest$ac_exeext'
33339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33340 (eval $ac_try) 2>&5
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); }; }; then
33344 eval "$as_ac_var=yes"
33346 echo "$as_me: failed program was:" >&5
33347 sed 's/^/| /' conftest.$ac_ext >&5
33349 eval "$as_ac_var=no"
33351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33355 if test `eval echo '${'$as_ac_var'}'` = yes; then
33356 cat >>confdefs.h <<_ACEOF
33357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33366 for ac_func in getopt getpeereid
33368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33369 echo "$as_me:$LINENO: checking for $ac_func" >&5
33370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33371 if eval "test \"\${$as_ac_var+set}\" = set"; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 cat >conftest.$ac_ext <<_ACEOF
33375 #line $LINENO "configure"
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33381 /* System header to define __stub macros and hopefully few prototypes,
33382 which can conflict with char $ac_func (); below.
33383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33384 <limits.h> exists even on freestanding compilers. */
33386 # include <limits.h>
33388 # include <assert.h>
33390 /* Override any gcc2 internal prototype to avoid an error. */
33395 /* We use char because int might match the return type of a gcc2
33396 builtin and then its argument prototype would still apply. */
33398 /* The GNU C library defines this for functions which it implements
33399 to always fail with ENOSYS. Some functions are actually named
33400 something starting with __ and the normal name is an alias. */
33401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33404 char (*f) () = $ac_func;
33413 return f != $ac_func;
33418 rm -f conftest.$ac_objext conftest$ac_exeext
33419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33420 (eval $ac_link) 2>&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); } &&
33424 { ac_try='test -s conftest$ac_exeext'
33425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426 (eval $ac_try) 2>&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); }; }; then
33430 eval "$as_ac_var=yes"
33432 echo "$as_me: failed program was:" >&5
33433 sed 's/^/| /' conftest.$ac_ext >&5
33435 eval "$as_ac_var=no"
33437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33441 if test `eval echo '${'$as_ac_var'}'` = yes; then
33442 cat >>confdefs.h <<_ACEOF
33443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33447 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33453 if test "$ac_cv_func_getopt" != yes; then
33454 LIBSRCS="$LIBSRCS getopt.c"
33456 if test "$ac_cv_func_getpeereid" != yes; then
33457 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
33458 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
33459 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
33460 echo $ECHO_N "(cached) $ECHO_C" >&6
33462 cat >conftest.$ac_ext <<_ACEOF
33463 #line $LINENO "configure"
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33469 #include <sys/socket.h>
33474 static struct msghdr ac_aggr;
33475 if (ac_aggr.msg_accrights)
33481 rm -f conftest.$ac_objext
33482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33483 (eval $ac_compile) 2>&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); } &&
33487 { ac_try='test -s conftest.$ac_objext'
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; }; then
33493 ac_cv_member_struct_msghdr_msg_accrights=yes
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33498 cat >conftest.$ac_ext <<_ACEOF
33499 #line $LINENO "configure"
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33505 #include <sys/socket.h>
33510 static struct msghdr ac_aggr;
33511 if (sizeof ac_aggr.msg_accrights)
33517 rm -f conftest.$ac_objext
33518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33519 (eval $ac_compile) 2>&5
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
33523 { ac_try='test -s conftest.$ac_objext'
33524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525 (eval $ac_try) 2>&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; }; then
33529 ac_cv_member_struct_msghdr_msg_accrights=yes
33531 echo "$as_me: failed program was:" >&5
33532 sed 's/^/| /' conftest.$ac_ext >&5
33534 ac_cv_member_struct_msghdr_msg_accrights=no
33536 rm -f conftest.$ac_objext conftest.$ac_ext
33538 rm -f conftest.$ac_objext conftest.$ac_ext
33540 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
33541 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
33543 if test $ac_cv_member_struct_msghdr_msg_accrights = "yes" ; then
33545 cat >>confdefs.h <<\_ACEOF
33546 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
33551 LIBSRCS="$LIBSRCS getpeereid.c"
33553 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
33554 if test "$ac_cv_func_snprintf" != yes; then
33556 cat >>confdefs.h <<\_ACEOF
33557 #define snprintf ber_pvt_snprintf
33561 if test "$ac_cv_func_vsnprintf" != yes; then
33563 cat >>confdefs.h <<\_ACEOF
33564 #define vsnprintf ber_pvt_vsnprintf
33570 # Check Configuration
33571 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
33572 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
33573 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33577 cat >conftest.$ac_ext <<_ACEOF
33578 #line $LINENO "configure"
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33586 #include <sys/types.h>
33589 #include <stdlib.h>
33594 char *c = (char *) *sys_errlist
33599 rm -f conftest.$ac_objext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33601 (eval $ac_compile) 2>&5
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); } &&
33605 { ac_try='test -s conftest.$ac_objext'
33606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607 (eval $ac_try) 2>&5
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; }; then
33611 ol_cv_dcl_sys_errlist=yes
33612 ol_cv_have_sys_errlist=yes
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 ol_cv_dcl_sys_errlist=no
33619 rm -f conftest.$ac_objext conftest.$ac_ext
33621 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
33622 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
33624 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
33625 if test $ol_cv_dcl_sys_errlist = no ; then
33627 cat >>confdefs.h <<\_ACEOF
33628 #define DECL_SYS_ERRLIST 1
33632 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
33633 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
33634 if test "${ol_cv_have_sys_errlist+set}" = set; then
33635 echo $ECHO_N "(cached) $ECHO_C" >&6
33638 cat >conftest.$ac_ext <<_ACEOF
33639 #line $LINENO "configure"
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h. */
33649 char *c = (char *) *sys_errlist
33654 rm -f conftest.$ac_objext conftest$ac_exeext
33655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33656 (eval $ac_link) 2>&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); } &&
33660 { ac_try='test -s conftest$ac_exeext'
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; }; then
33666 ol_cv_have_sys_errlist=yes
33668 echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33671 ol_cv_have_sys_errlist=no
33673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33675 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
33676 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
33678 if test $ol_cv_have_sys_errlist = yes ; then
33680 cat >>confdefs.h <<\_ACEOF
33681 #define HAVE_SYS_ERRLIST 1
33688 if test "$ol_enable_slapi" != no ; then
33690 for ac_header in ltdl.h
33692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33694 echo "$as_me:$LINENO: checking for $ac_header" >&5
33695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33702 # Is the header compilable?
33703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33705 cat >conftest.$ac_ext <<_ACEOF
33706 #line $LINENO "configure"
33709 cat confdefs.h >>conftest.$ac_ext
33710 cat >>conftest.$ac_ext <<_ACEOF
33711 /* end confdefs.h. */
33712 $ac_includes_default
33713 #include <$ac_header>
33715 rm -f conftest.$ac_objext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33717 (eval $ac_compile) 2>&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } &&
33721 { ac_try='test -s conftest.$ac_objext'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; }; then
33727 ac_header_compiler=yes
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33732 ac_header_compiler=no
33734 rm -f conftest.$ac_objext conftest.$ac_ext
33735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33736 echo "${ECHO_T}$ac_header_compiler" >&6
33738 # Is the header present?
33739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33741 cat >conftest.$ac_ext <<_ACEOF
33742 #line $LINENO "configure"
33745 cat confdefs.h >>conftest.$ac_ext
33746 cat >>conftest.$ac_ext <<_ACEOF
33747 /* end confdefs.h. */
33748 #include <$ac_header>
33750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33753 grep -v '^ *+' conftest.er1 >conftest.err
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } >/dev/null; then
33758 if test -s conftest.err; then
33759 ac_cpp_err=$ac_c_preproc_warn_flag
33766 if test -z "$ac_cpp_err"; then
33767 ac_header_preproc=yes
33769 echo "$as_me: failed program was:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33772 ac_header_preproc=no
33774 rm -f conftest.err conftest.$ac_ext
33775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33776 echo "${ECHO_T}$ac_header_preproc" >&6
33778 # So? What about this header?
33779 case $ac_header_compiler:$ac_header_preproc in
33781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33787 ## ------------------------------------ ##
33788 ## Report this to bug-autoconf@gnu.org. ##
33789 ## ------------------------------------ ##
33792 sed "s/^/$as_me: WARNING: /" >&2
33795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33803 ## ------------------------------------ ##
33804 ## Report this to bug-autoconf@gnu.org. ##
33805 ## ------------------------------------ ##
33808 sed "s/^/$as_me: WARNING: /" >&2
33811 echo "$as_me:$LINENO: checking for $ac_header" >&5
33812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33814 echo $ECHO_N "(cached) $ECHO_C" >&6
33816 eval "$as_ac_Header=$ac_header_preproc"
33818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33823 cat >>confdefs.h <<_ACEOF
33824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33832 if test $ac_cv_header_ltdl_h != yes ; then
33833 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
33834 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
33835 { (exit 1); exit 1; }; }
33837 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
33838 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
33839 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
33840 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 ac_check_lib_save_LIBS=$LIBS
33843 LIBS="-lltdl $LIBS"
33844 cat >conftest.$ac_ext <<_ACEOF
33845 #line $LINENO "configure"
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h. */
33852 /* Override any gcc2 internal prototype to avoid an error. */
33856 /* We use char because int might match the return type of a gcc2
33857 builtin and then its argument prototype would still apply. */
33867 rm -f conftest.$ac_objext conftest$ac_exeext
33868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33869 (eval $ac_link) 2>&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
33873 { ac_try='test -s conftest$ac_exeext'
33874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875 (eval $ac_try) 2>&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; }; then
33879 ac_cv_lib_ltdl_lt_dlinit=yes
33881 echo "$as_me: failed program was:" >&5
33882 sed 's/^/| /' conftest.$ac_ext >&5
33884 ac_cv_lib_ltdl_lt_dlinit=no
33886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33887 LIBS=$ac_check_lib_save_LIBS
33889 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
33890 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
33891 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
33894 LIBSLAPI=./libslapi.a
33895 LIBSLAPITOOLS=../libslapi.a
33897 cat >>confdefs.h <<\_ACEOF
33898 #define HAVE_LIBLTDL 1
33903 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
33904 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
33905 { (exit 1); exit 1; }; }
33910 cat >>confdefs.h <<\_ACEOF
33911 #define LDAP_SLAPI 1
33916 if test "$ol_enable_debug" != no ; then
33918 cat >>confdefs.h <<\_ACEOF
33919 #define LDAP_DEBUG 1
33923 if test "$ol_enable_syslog" = yes ; then
33925 cat >>confdefs.h <<\_ACEOF
33926 #define LDAP_SYSLOG 1
33930 if test "$ol_link_kbind" != no ; then
33931 cat >>confdefs.h <<\_ACEOF
33932 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
33936 if test "$ol_enable_proctitle" != no ; then
33938 cat >>confdefs.h <<\_ACEOF
33939 #define LDAP_PROCTITLE 1
33943 if test "$ol_enable_referrals" != no ; then
33944 cat >>confdefs.h <<\_ACEOF
33945 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
33949 if test "$ol_enable_local" != no; then
33951 cat >>confdefs.h <<\_ACEOF
33952 #define LDAP_PF_LOCAL 1
33956 if test "$ol_link_ipv6" != no; then
33958 cat >>confdefs.h <<\_ACEOF
33959 #define LDAP_PF_INET6 1
33963 if test "$ol_enable_cleartext" != no ; then
33965 cat >>confdefs.h <<\_ACEOF
33966 #define SLAPD_CLEARTEXT 1
33970 if test "$ol_enable_crypt" != no ; then
33972 cat >>confdefs.h <<\_ACEOF
33973 #define SLAPD_CRYPT 1
33977 if test "$ol_link_kpasswd" != no ; then
33979 cat >>confdefs.h <<\_ACEOF
33980 #define SLAPD_KPASSWD 1
33984 if test "$ol_link_spasswd" != no ; then
33986 cat >>confdefs.h <<\_ACEOF
33987 #define SLAPD_SPASSWD 1
33991 if test "$ol_enable_multimaster" != no ; then
33993 cat >>confdefs.h <<\_ACEOF
33994 #define SLAPD_MULTIMASTER 1
33998 if test "$ol_enable_phonetic" != no ; then
34000 cat >>confdefs.h <<\_ACEOF
34001 #define SLAPD_PHONETIC 1
34005 if test "$ol_enable_rlookups" != no ; then
34007 cat >>confdefs.h <<\_ACEOF
34008 #define SLAPD_RLOOKUPS 1
34012 if test "$ol_enable_aci" != no ; then
34014 cat >>confdefs.h <<\_ACEOF
34015 #define SLAPD_ACI_ENABLED 1
34020 if test "$ol_link_modules" != no ; then
34022 cat >>confdefs.h <<\_ACEOF
34023 #define SLAPD_MODULES 1
34027 SLAPD_MODULES_LDFLAGS="-dlopen self"
34030 if test "$ol_enable_bdb" != no ; then
34032 cat >>confdefs.h <<\_ACEOF
34033 #define SLAPD_BDB 1
34038 if test "$ol_with_bdb_module" != static ; then
34040 cat >>confdefs.h <<\_ACEOF
34041 #define SLAPD_BDB_DYNAMIC 1
34045 BUILD_BDB_DYNAMIC=shared
34046 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
34048 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
34052 if test "$ol_link_dnssrv" != no ; then
34054 cat >>confdefs.h <<\_ACEOF
34055 #define SLAPD_DNSSRV 1
34060 if test "$ol_with_dnssrv_module" != static ; then
34062 cat >>confdefs.h <<\_ACEOF
34063 #define SLAPD_DNSSRV_DYNAMIC 1
34067 BUILD_DNSSRV_DYNAMIC=shared
34068 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
34070 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
34074 if test "$ol_enable_ldap" != no ; then
34076 cat >>confdefs.h <<\_ACEOF
34077 #define SLAPD_LDAP 1
34082 if test "$ol_with_ldap_module" != static ; then
34084 cat >>confdefs.h <<\_ACEOF
34085 #define SLAPD_LDAP_DYNAMIC 1
34089 BUILD_LDAP_DYNAMIC=shared
34090 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
34092 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
34096 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
34098 cat >>confdefs.h <<\_ACEOF
34099 #define SLAPD_LDBM 1
34104 if test "$ol_with_ldbm_module" != static ; then
34106 cat >>confdefs.h <<\_ACEOF
34107 #define SLAPD_LDBM_DYNAMIC 1
34111 BUILD_LDBM_DYNAMIC=shared
34112 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
34114 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
34118 if test "$ol_enable_meta" != no ; then
34119 if test "$ol_enable_ldap" = no ; then
34120 { { echo "$as_me:$LINENO: error: need --enable-ldap to use --enable-meta" >&5
34121 echo "$as_me: error: need --enable-ldap to use --enable-meta" >&2;}
34122 { (exit 1); exit 1; }; }
34124 if test "$ol_enable_rewrite" = no ; then
34125 { { echo "$as_me:$LINENO: error: need --enable-rewrite to use --enable-meta" >&5
34126 echo "$as_me: error: need --enable-rewrite to use --enable-meta" >&2;}
34127 { (exit 1); exit 1; }; }
34130 cat >>confdefs.h <<\_ACEOF
34131 #define SLAPD_META 1
34138 if test "$ol_with_meta_module" != static ; then
34140 cat >>confdefs.h <<\_ACEOF
34141 #define SLAPD_META_DYNAMIC 1
34145 BUILD_META_DYNAMIC=shared
34146 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
34148 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
34152 if test "$ol_enable_monitor" != no ; then
34154 cat >>confdefs.h <<\_ACEOF
34155 #define SLAPD_MONITOR 1
34160 if test "$ol_with_monitor_module" != static ; then
34162 cat >>confdefs.h <<\_ACEOF
34163 #define SLAPD_MONITOR_DYNAMIC 1
34167 BUILD_MONITOR_DYNAMIC=shared
34168 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
34170 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
34174 if test "$ol_enable_null" != no ; then
34176 cat >>confdefs.h <<\_ACEOF
34177 #define SLAPD_NULL 1
34182 if test "$ol_with_null_module" != static ; then
34184 cat >>confdefs.h <<\_ACEOF
34185 #define SLAPD_NULL_DYNAMIC 1
34189 BUILD_NULL_DYNAMIC=shared
34190 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
34192 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
34196 if test "$ol_enable_passwd" != no ; then
34198 cat >>confdefs.h <<\_ACEOF
34199 #define SLAPD_PASSWD 1
34204 if test "$ol_with_passwd_module" != static ; then
34206 cat >>confdefs.h <<\_ACEOF
34207 #define SLAPD_PASSWD_DYNAMIC 1
34211 BUILD_PASSWD_DYNAMIC=shared
34212 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
34214 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
34218 if test "$ol_link_perl" != no ; then
34220 cat >>confdefs.h <<\_ACEOF
34221 #define SLAPD_PERL 1
34226 if test "$ol_with_perl_module" != static ; then
34228 cat >>confdefs.h <<\_ACEOF
34229 #define SLAPD_PERL_DYNAMIC 1
34233 BUILD_PERL_DYNAMIC=shared
34234 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
34236 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
34240 if test "$ol_enable_shell" != no ; then
34241 if test "$ol_link_thread" != no ; then
34242 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
34243 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
34246 cat >>confdefs.h <<\_ACEOF
34247 #define SLAPD_SHELL 1
34252 if test "$ol_with_shell_module" != static ; then
34254 cat >>confdefs.h <<\_ACEOF
34255 #define SLAPD_SHELL_DYNAMIC 1
34259 BUILD_SHELL_DYNAMIC=shared
34260 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
34262 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
34266 if test "$ol_enable_tcl" != no ; then
34268 cat >>confdefs.h <<\_ACEOF
34269 #define SLAPD_TCL 1
34274 if test "$ol_with_tcl_module" != static; then
34276 cat >>confdefs.h <<\_ACEOF
34277 #define SLAPD_TCL_DYNAMIC 1
34281 BUILD_TCL_DYNAMIC=shared
34282 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
34284 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
34288 if test "$ol_link_sql" != no ; then
34290 cat >>confdefs.h <<\_ACEOF
34291 #define SLAPD_SQL 1
34296 if test "$ol_with_sql_module" != static; then
34298 cat >>confdefs.h <<\_ACEOF
34299 #define SLAPD_SQL_DYNAMIC 1
34303 BUILD_SQL_DYNAMIC=shared
34304 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
34306 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
34310 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
34311 $BUILD_SLAPD = yes ; then
34315 if test "$ol_enable_rewrite" != no ; then
34317 cat >>confdefs.h <<\_ACEOF
34318 #define ENABLE_REWRITE 1
34324 if test "$ol_enable_slapi" != no ; then
34326 cat >>confdefs.h <<\_ACEOF
34327 #define ENABLE_SLAPI 1
34331 SLAPD_SLAPI_DEPEND=libslapi.a
34336 if test "$ac_cv_mingw32" = yes ; then
34338 SLAPD_MODULES_LDFLAGS=
34343 if test -z "$SLAPD_STATIC_BACKENDS"; then
34344 SLAPD_NO_STATIC='#'
34422 # Check whether --with-xxinstall or --without-xxinstall was given.
34423 if test "${with_xxinstall+set}" = set; then
34424 withval="$with_xxinstall"
34428 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk"
34430 ac_config_files="$ac_config_files doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk"
34432 ac_config_files="$ac_config_files doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk"
34434 ac_config_files="$ac_config_files doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk"
34436 ac_config_files="$ac_config_files doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk"
34438 ac_config_files="$ac_config_files doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk"
34440 ac_config_files="$ac_config_files doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk"
34442 ac_config_files="$ac_config_files clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk"
34444 ac_config_files="$ac_config_files clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk"
34446 ac_config_files="$ac_config_files include/Makefile:build/top.mk:include/Makefile.in"
34448 ac_config_files="$ac_config_files libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk"
34450 ac_config_files="$ac_config_files libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk"
34452 ac_config_files="$ac_config_files libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk"
34454 ac_config_files="$ac_config_files libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk"
34456 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"
34458 ac_config_files="$ac_config_files libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk"
34460 ac_config_files="$ac_config_files libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk"
34462 ac_config_files="$ac_config_files libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk"
34464 ac_config_files="$ac_config_files libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk"
34466 ac_config_files="$ac_config_files libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk"
34468 ac_config_files="$ac_config_files servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk"
34470 ac_config_files="$ac_config_files servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk"
34472 ac_config_files="$ac_config_files servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk"
34474 ac_config_files="$ac_config_files servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk"
34476 ac_config_files="$ac_config_files servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk"
34478 ac_config_files="$ac_config_files servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk"
34480 ac_config_files="$ac_config_files servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk"
34482 ac_config_files="$ac_config_files servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk"
34484 ac_config_files="$ac_config_files servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk"
34486 ac_config_files="$ac_config_files servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk"
34488 ac_config_files="$ac_config_files servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk"
34490 ac_config_files="$ac_config_files servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk"
34492 ac_config_files="$ac_config_files servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk"
34494 ac_config_files="$ac_config_files servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk"
34496 ac_config_files="$ac_config_files servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk"
34498 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"
34500 ac_config_files="$ac_config_files servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in"
34502 ac_config_files="$ac_config_files servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk"
34504 ac_config_files="$ac_config_files tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk"
34506 ac_config_files="$ac_config_files tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
34509 ac_config_commands="$ac_config_commands time-stamp"
34511 cat >confcache <<\_ACEOF
34512 # This file is a shell script that caches the results of configure
34513 # tests run on this system so they can be shared between configure
34514 # scripts and configure runs, see configure's option --config-cache.
34515 # It is not useful on other systems. If it contains results you don't
34516 # want to keep, you may remove or edit it.
34518 # config.status only pays attention to the cache file if you give it
34519 # the --recheck option to rerun configure.
34521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34523 # following values.
34527 # The following way of writing the cache mishandles newlines in values,
34528 # but we know of no workaround that is simple, portable, and efficient.
34529 # So, don't put newlines in cache variables' values.
34530 # Ultrix sh set writes to stderr and can't be redirected directly,
34531 # and sets the high bit in the cache file unless we assign to the vars.
34534 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34536 # `set' does not quote correctly, so add quotes (double-quote
34537 # substitution turns \\\\ into \\, and sed turns \\ into \).
34540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34543 # `set' quotes correctly as required by POSIX, so do not add quotes.
34545 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34554 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34556 if diff $cache_file confcache >/dev/null 2>&1; then :; else
34557 if test -w $cache_file; then
34558 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34559 cat confcache >$cache_file
34561 echo "not updating unwritable cache $cache_file"
34566 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34567 # Let make expand exec_prefix.
34568 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34572 # trailing colons and then remove the whole line if VPATH becomes empty
34573 # (actually we leave an empty line to preserve line numbers).
34574 if test "x$srcdir" = x.; then
34575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34576 s/:*\$(srcdir):*/:/;
34577 s/:*\${srcdir}:*/:/;
34579 s/^\([^=]*=[ ]*\):*/\1/;
34585 DEFS=-DHAVE_CONFIG_H
34589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34590 # 1. Remove the extension, and $U if already installed.
34591 ac_i=`echo "$ac_i" |
34592 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34594 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34595 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34597 LIBOBJS=$ac_libobjs
34599 LTLIBOBJS=$ac_ltlibobjs
34603 : ${CONFIG_STATUS=./config.status}
34604 ac_clean_files_save=$ac_clean_files
34605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34608 cat >$CONFIG_STATUS <<_ACEOF
34610 # Generated by $as_me.
34611 # Run this file to recreate the current configuration.
34612 # Compiler output produced by configure, useful for debugging
34613 # configure, is in config.log if it exists.
34616 ac_cs_recheck=false
34618 SHELL=\${CONFIG_SHELL-$SHELL}
34621 cat >>$CONFIG_STATUS <<\_ACEOF
34622 ## --------------------- ##
34623 ## M4sh Initialization. ##
34624 ## --------------------- ##
34626 # Be Bourne compatible
34627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34630 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34631 # is contrary to our usage. Disable this feature.
34632 alias -g '${1+"$@"}'='"$@"'
34633 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34637 # Support unset when possible.
34638 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34645 # Work around bugs in pre-3.0 UWIN ksh.
34646 $as_unset ENV MAIL MAILPATH
34653 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34654 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34655 LC_TELEPHONE LC_TIME
34657 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34658 eval $as_var=C; export $as_var
34664 # Required to use basename.
34665 if expr a : '\(a\)' >/dev/null 2>&1; then
34671 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34672 as_basename=basename
34678 # Name of the executable.
34679 as_me=`$as_basename "$0" ||
34680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34681 X"$0" : 'X\(//\)$' \| \
34682 X"$0" : 'X\(/\)$' \| \
34683 . : '\(.\)' 2>/dev/null ||
34685 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34686 /^X\/\(\/\/\)$/{ s//\1/; q; }
34687 /^X\/\(\/\).*/{ s//\1/; q; }
34691 # PATH needs CR, and LINENO needs CR and PATH.
34692 # Avoid depending upon Character Ranges.
34693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34696 as_cr_digits='0123456789'
34697 as_cr_alnum=$as_cr_Letters$as_cr_digits
34699 # The user is always right.
34700 if test "${PATH_SEPARATOR+set}" != set; then
34701 echo "#! /bin/sh" >conf$$.sh
34702 echo "exit 0" >>conf$$.sh
34704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34713 as_lineno_1=$LINENO
34714 as_lineno_2=$LINENO
34715 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34716 test "x$as_lineno_1" != "x$as_lineno_2" &&
34717 test "x$as_lineno_3" = "x$as_lineno_2" || {
34718 # Find who we are. Look in the path if we contain no path at all
34721 *[\\/]* ) as_myself=$0 ;;
34722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34723 for as_dir in $PATH
34726 test -z "$as_dir" && as_dir=.
34727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34732 # We did not find ourselves, most probably we were run as `sh COMMAND'
34733 # in which case we are not to be found in the path.
34734 if test "x$as_myself" = x; then
34737 if test ! -f "$as_myself"; then
34738 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34739 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34740 { (exit 1); exit 1; }; }
34742 case $CONFIG_SHELL in
34744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34745 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34748 test -z "$as_dir" && as_dir=.
34749 for as_base in sh bash ksh sh5; do
34752 if ("$as_dir/$as_base" -c '
34753 as_lineno_1=$LINENO
34754 as_lineno_2=$LINENO
34755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34756 test "x$as_lineno_1" != "x$as_lineno_2" &&
34757 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34758 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34759 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34760 CONFIG_SHELL=$as_dir/$as_base
34761 export CONFIG_SHELL
34762 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34770 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34771 # uniformly replaced by the line number. The first 'sed' inserts a
34772 # line-number line before each line; the second 'sed' does the real
34773 # work. The second script uses 'N' to pair each line-number line
34774 # with the numbered line, and appends trailing '-' during
34775 # substitution so that $LINENO is not a special case at line end.
34776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34777 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
34778 sed '=' <$as_myself |
34783 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34786 s,^['$as_cr_digits']*\n,,
34787 ' >$as_me.lineno &&
34788 chmod +x $as_me.lineno ||
34789 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34790 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34791 { (exit 1); exit 1; }; }
34793 # Don't try to exec as it changes $[0], causing all sort of problems
34794 # (the dirname of $[0] is not the place where we might find the
34795 # original and so on. Autoconf is especially sensible to this).
34797 # Exit status is that of the last command.
34802 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34803 *c*,-n*) ECHO_N= ECHO_C='
34805 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34806 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
34809 if expr a : '\(a\)' >/dev/null 2>&1; then
34815 rm -f conf$$ conf$$.exe conf$$.file
34817 if ln -s conf$$.file conf$$ 2>/dev/null; then
34818 # We could just check for DJGPP; but this test a) works b) is more generic
34819 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34820 if test -f conf$$.exe; then
34821 # Don't use ln at all; we don't have any links
34826 elif ln conf$$.file conf$$ 2>/dev/null; then
34831 rm -f conf$$ conf$$.exe conf$$.file
34833 if mkdir -p . 2>/dev/null; then
34839 as_executable_p="test -f"
34841 # Sed expression to map a string onto a valid CPP name.
34842 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34844 # Sed expression to map a string onto a valid variable name.
34845 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34849 # We need space, tab and new line, in precisely that order.
34859 # Open the log real soon, to keep \$[0] and so on meaningful, and to
34860 # report actual input values of CONFIG_FILES etc. instead of their
34861 # values after options handling. Logging --version etc. is OK.
34865 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34866 ## Running $as_me. ##
34871 This file was extended by $as_me, which was
34872 generated by GNU Autoconf 2.57. Invocation command line was
34874 CONFIG_FILES = $CONFIG_FILES
34875 CONFIG_HEADERS = $CONFIG_HEADERS
34876 CONFIG_LINKS = $CONFIG_LINKS
34877 CONFIG_COMMANDS = $CONFIG_COMMANDS
34881 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
34885 # Files that config.status was made for.
34886 if test -n "$ac_config_files"; then
34887 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
34890 if test -n "$ac_config_headers"; then
34891 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
34894 if test -n "$ac_config_links"; then
34895 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
34898 if test -n "$ac_config_commands"; then
34899 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
34902 cat >>$CONFIG_STATUS <<\_ACEOF
34905 \`$as_me' instantiates files from templates according to the
34906 current configuration.
34908 Usage: $0 [OPTIONS] [FILE]...
34910 -h, --help print this help, then exit
34911 -V, --version print version number, then exit
34912 -q, --quiet do not print progress messages
34913 -d, --debug don't remove temporary files
34914 --recheck update $as_me by reconfiguring in the same conditions
34915 --file=FILE[:TEMPLATE]
34916 instantiate the configuration file FILE
34917 --header=FILE[:TEMPLATE]
34918 instantiate the configuration header FILE
34920 Configuration files:
34923 Configuration headers:
34926 Configuration commands:
34929 Report bugs to <bug-autoconf@gnu.org>."
34932 cat >>$CONFIG_STATUS <<_ACEOF
34935 configured by $0, generated by GNU Autoconf 2.57,
34936 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
34938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
34939 Free Software Foundation, Inc.
34940 This config.status script is free software; the Free Software Foundation
34941 gives unlimited permission to copy, distribute and modify it."
34946 cat >>$CONFIG_STATUS <<\_ACEOF
34947 # If no file are specified by the user, then we need to provide default
34948 # value. By we need to know if files were specified by the user.
34954 ac_option=`expr "x$1" : 'x\([^=]*\)='`
34955 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
34963 *) # This is not an option, so the user has probably given explicit
34966 ac_need_defaults=false;;
34970 # Handling of the options.
34972 cat >>$CONFIG_STATUS <<\_ACEOF
34973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34975 --version | --vers* | -V )
34976 echo "$ac_cs_version"; exit 0 ;;
34978 # Conflict between --help and --header
34979 { { echo "$as_me:$LINENO: error: ambiguous option: $1
34980 Try \`$0 --help' for more information." >&5
34981 echo "$as_me: error: ambiguous option: $1
34982 Try \`$0 --help' for more information." >&2;}
34983 { (exit 1); exit 1; }; };;
34984 --help | --hel | -h )
34985 echo "$ac_cs_usage"; exit 0 ;;
34986 --debug | --d* | -d )
34988 --file | --fil | --fi | --f )
34990 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34991 ac_need_defaults=false;;
34992 --header | --heade | --head | --hea )
34994 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34995 ac_need_defaults=false;;
34996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35000 # This is an error.
35001 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35002 Try \`$0 --help' for more information." >&5
35003 echo "$as_me: error: unrecognized option: $1
35004 Try \`$0 --help' for more information." >&2;}
35005 { (exit 1); exit 1; }; } ;;
35007 *) ac_config_targets="$ac_config_targets $1" ;;
35013 ac_configure_extra_args=
35015 if $ac_cs_silent; then
35017 ac_configure_extra_args="$ac_configure_extra_args --silent"
35021 cat >>$CONFIG_STATUS <<_ACEOF
35022 if \$ac_cs_recheck; then
35023 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35024 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35033 cat >>$CONFIG_STATUS <<\_ACEOF
35034 for ac_config_target in $ac_config_targets
35036 case "$ac_config_target" in
35037 # Handling of arguments.
35038 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
35039 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
35040 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
35041 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
35042 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
35043 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
35044 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
35045 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
35046 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
35047 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
35048 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
35049 "libraries/libavl/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35050 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
35051 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
35052 "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" ;;
35053 "libraries/libldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35054 "libraries/libldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35055 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35056 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35057 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
35058 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
35059 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
35060 "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" ;;
35061 "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" ;;
35062 "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" ;;
35063 "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" ;;
35064 "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" ;;
35065 "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" ;;
35066 "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" ;;
35067 "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" ;;
35068 "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" ;;
35069 "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" ;;
35070 "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" ;;
35071 "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" ;;
35072 "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" ;;
35073 "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" ;;
35074 "servers/slapd/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in" ;;
35075 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
35076 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
35077 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
35078 "time-stamp" ) CONFIG_COMMANDS="$CONFIG_COMMANDS time-stamp" ;;
35079 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
35080 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
35081 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
35082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35084 { (exit 1); exit 1; }; };;
35088 # If the user did not use the arguments to specify the items to instantiate,
35089 # then the envvar interface is used. Set only those that are not.
35090 # We use the long form for the default assignment because of an extremely
35091 # bizarre bug on SunOS 4.1.3.
35092 if $ac_need_defaults; then
35093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35098 # Have a temporary directory for convenience. Make it in the build tree
35099 # simply because there is no reason to put it here, and in addition,
35100 # creating and moving files from /tmp can sometimes cause problems.
35101 # Create a temporary directory, and hook for its removal unless debugging.
35104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35105 trap '{ (exit 1); exit 1; }' 1 2 13 15
35108 # Create a (secure) tmp directory for tmp files.
35111 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35112 test -n "$tmp" && test -d "$tmp"
35115 tmp=./confstat$$-$RANDOM
35116 (umask 077 && mkdir $tmp)
35119 echo "$me: cannot create a temporary directory in ." >&2
35120 { (exit 1); exit 1; }
35125 cat >>$CONFIG_STATUS <<_ACEOF
35128 # CONFIG_FILES section.
35131 # No need to generate the scripts if there are no CONFIG_FILES.
35132 # This happens for instance when ./config.status config.h
35133 if test -n "\$CONFIG_FILES"; then
35134 # Protect against being on the right side of a sed subst in config.status.
35135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35137 s,@SHELL@,$SHELL,;t t
35138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35144 s,@exec_prefix@,$exec_prefix,;t t
35145 s,@prefix@,$prefix,;t t
35146 s,@program_transform_name@,$program_transform_name,;t t
35147 s,@bindir@,$bindir,;t t
35148 s,@sbindir@,$sbindir,;t t
35149 s,@libexecdir@,$libexecdir,;t t
35150 s,@datadir@,$datadir,;t t
35151 s,@sysconfdir@,$sysconfdir,;t t
35152 s,@sharedstatedir@,$sharedstatedir,;t t
35153 s,@localstatedir@,$localstatedir,;t t
35154 s,@libdir@,$libdir,;t t
35155 s,@includedir@,$includedir,;t t
35156 s,@oldincludedir@,$oldincludedir,;t t
35157 s,@infodir@,$infodir,;t t
35158 s,@mandir@,$mandir,;t t
35159 s,@build_alias@,$build_alias,;t t
35160 s,@host_alias@,$host_alias,;t t
35161 s,@target_alias@,$target_alias,;t t
35162 s,@DEFS@,$DEFS,;t t
35163 s,@ECHO_C@,$ECHO_C,;t t
35164 s,@ECHO_N@,$ECHO_N,;t t
35165 s,@ECHO_T@,$ECHO_T,;t t
35166 s,@LIBS@,$LIBS,;t t
35167 s,@SHTOOL@,$SHTOOL,;t t
35168 s,@build@,$build,;t t
35169 s,@build_cpu@,$build_cpu,;t t
35170 s,@build_vendor@,$build_vendor,;t t
35171 s,@build_os@,$build_os,;t t
35172 s,@host@,$host,;t t
35173 s,@host_cpu@,$host_cpu,;t t
35174 s,@host_vendor@,$host_vendor,;t t
35175 s,@host_os@,$host_os,;t t
35176 s,@target@,$target,;t t
35177 s,@target_cpu@,$target_cpu,;t t
35178 s,@target_vendor@,$target_vendor,;t t
35179 s,@target_os@,$target_os,;t t
35180 s,@OPENLDAP_PACKAGE@,$OPENLDAP_PACKAGE,;t t
35181 s,@OPENLDAP_VERSION@,$OPENLDAP_VERSION,;t t
35182 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
35183 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
35184 s,@top_builddir@,$top_builddir,;t t
35185 s,@ldap_subdir@,$ldap_subdir,;t t
35186 s,@SET_MAKE@,$SET_MAKE,;t t
35187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35192 s,@CFLAGS@,$CFLAGS,;t t
35193 s,@LDFLAGS@,$LDFLAGS,;t t
35194 s,@CPPFLAGS@,$CPPFLAGS,;t t
35195 s,@ac_ct_CC@,$ac_ct_CC,;t t
35196 s,@EXEEXT@,$EXEEXT,;t t
35197 s,@OBJEXT@,$OBJEXT,;t t
35198 s,@LN_S@,$LN_S,;t t
35199 s,@ECHO@,$ECHO,;t t
35200 s,@RANLIB@,$RANLIB,;t t
35201 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35202 s,@STRIP@,$STRIP,;t t
35203 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
35205 s,@EGREP@,$EGREP,;t t
35206 s,@LIBTOOL@,$LIBTOOL,;t t
35207 s,@LN_H@,$LN_H,;t t
35208 s,@PERLBIN@,$PERLBIN,;t t
35209 s,@OL_MKDEP@,$OL_MKDEP,;t t
35210 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
35211 s,@LTSTATIC@,$LTSTATIC,;t t
35212 s,@LIBOBJS@,$LIBOBJS,;t t
35213 s,@LIBSRCS@,$LIBSRCS,;t t
35214 s,@PLAT@,$PLAT,;t t
35215 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
35216 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
35217 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
35218 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
35219 s,@BUILD_BDB@,$BUILD_BDB,;t t
35220 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
35221 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
35222 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
35223 s,@BUILD_META@,$BUILD_META,;t t
35224 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
35225 s,@BUILD_NULL@,$BUILD_NULL,;t t
35226 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
35227 s,@BUILD_PERL@,$BUILD_PERL,;t t
35228 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
35229 s,@BUILD_SQL@,$BUILD_SQL,;t t
35230 s,@BUILD_TCL@,$BUILD_TCL,;t t
35231 s,@BUILD_BDB_DYNAMIC@,$BUILD_BDB_DYNAMIC,;t t
35232 s,@BUILD_DNSSRV_DYNAMIC@,$BUILD_DNSSRV_DYNAMIC,;t t
35233 s,@BUILD_LDAP_DYNAMIC@,$BUILD_LDAP_DYNAMIC,;t t
35234 s,@BUILD_LDBM_DYNAMIC@,$BUILD_LDBM_DYNAMIC,;t t
35235 s,@BUILD_META_DYNAMIC@,$BUILD_META_DYNAMIC,;t t
35236 s,@BUILD_MONITOR_DYNAMIC@,$BUILD_MONITOR_DYNAMIC,;t t
35237 s,@BUILD_NULL_DYNAMIC@,$BUILD_NULL_DYNAMIC,;t t
35238 s,@BUILD_PASSWD_DYNAMIC@,$BUILD_PASSWD_DYNAMIC,;t t
35239 s,@BUILD_PERL_DYNAMIC@,$BUILD_PERL_DYNAMIC,;t t
35240 s,@BUILD_SHELL_DYNAMIC@,$BUILD_SHELL_DYNAMIC,;t t
35241 s,@BUILD_SQL_DYNAMIC@,$BUILD_SQL_DYNAMIC,;t t
35242 s,@BUILD_TCL_DYNAMIC@,$BUILD_TCL_DYNAMIC,;t t
35243 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
35244 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
35245 s,@LDIF_LIBS@,$LDIF_LIBS,;t t
35246 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
35247 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
35248 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
35249 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
35250 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
35251 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
35252 s,@MOD_TCL_LIB@,$MOD_TCL_LIB,;t t
35253 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
35254 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
35255 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
35256 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
35257 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
35258 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
35259 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
35260 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
35261 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
35262 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
35263 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
35264 s,@SASL_LIBS@,$SASL_LIBS,;t t
35265 s,@TERMCAP_LIBS@,$TERMCAP_LIBS,;t t
35266 s,@TLS_LIBS@,$TLS_LIBS,;t t
35267 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
35268 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
35269 s,@LIBSLAPI@,$LIBSLAPI,;t t
35270 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
35271 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
35272 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
35273 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
35274 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
35275 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
35276 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35281 cat >>$CONFIG_STATUS <<\_ACEOF
35282 # Split the substitutions into bite-sized pieces for seds with
35283 # small command number limits, like on Digital OSF/1 and HP-UX.
35284 ac_max_sed_lines=48
35285 ac_sed_frag=1 # Number of current file.
35286 ac_beg=1 # First line for current file.
35287 ac_end=$ac_max_sed_lines # Line after last line for current file.
35290 while $ac_more_lines; do
35291 if test $ac_beg -gt 1; then
35292 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35294 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35296 if test ! -s $tmp/subs.frag; then
35297 ac_more_lines=false
35299 # The purpose of the label and of the branching condition is to
35300 # speed up the sed processing (if there are no `@' at all, there
35301 # is no need to browse any of the substitutions).
35302 # These are the two extra sed commands mentioned above.
35304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35305 if test -z "$ac_sed_cmds"; then
35306 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35308 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35310 ac_sed_frag=`expr $ac_sed_frag + 1`
35312 ac_end=`expr $ac_end + $ac_max_sed_lines`
35315 if test -z "$ac_sed_cmds"; then
35318 fi # test -n "$CONFIG_FILES"
35321 cat >>$CONFIG_STATUS <<\_ACEOF
35322 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35325 - | *:- | *:-:* ) # input from stdin
35327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35331 * ) ac_file_in=$ac_file.in ;;
35334 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35335 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35337 X"$ac_file" : 'X\(//\)[^/]' \| \
35338 X"$ac_file" : 'X\(//\)$' \| \
35339 X"$ac_file" : 'X\(/\)' \| \
35340 . : '\(.\)' 2>/dev/null ||
35342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35344 /^X\(\/\/\)$/{ s//\1/; q; }
35345 /^X\(\/\).*/{ s//\1/; q; }
35347 { if $as_mkdir_p; then
35352 while test ! -d "$as_dir"; do
35353 as_dirs="$as_dir $as_dirs"
35354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35356 X"$as_dir" : 'X\(//\)[^/]' \| \
35357 X"$as_dir" : 'X\(//\)$' \| \
35358 X"$as_dir" : 'X\(/\)' \| \
35359 . : '\(.\)' 2>/dev/null ||
35361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35363 /^X\(\/\/\)$/{ s//\1/; q; }
35364 /^X\(\/\).*/{ s//\1/; q; }
35367 test ! -n "$as_dirs" || mkdir $as_dirs
35368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35370 { (exit 1); exit 1; }; }; }
35374 if test "$ac_dir" != .; then
35375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35376 # A "../" for each directory in $ac_dir_suffix.
35377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35379 ac_dir_suffix= ac_top_builddir=
35383 .) # No --srcdir option. We are building in place.
35385 if test -z "$ac_top_builddir"; then
35388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35390 [\\/]* | ?:[\\/]* ) # Absolute path.
35391 ac_srcdir=$srcdir$ac_dir_suffix;
35392 ac_top_srcdir=$srcdir ;;
35393 *) # Relative path.
35394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35397 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35399 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35400 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35401 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35402 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35407 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35410 if test x"$ac_file" != x-; then
35411 { echo "$as_me:$LINENO: creating $ac_file" >&5
35412 echo "$as_me: creating $ac_file" >&6;}
35415 # Let's still pretend it is `configure' which instantiates (i.e., don't
35416 # use $as_me), people would be surprised to read:
35417 # /* config.h. Generated by config.status. */
35418 if test x"$ac_file" = x-; then
35421 configure_input="$ac_file. "
35423 configure_input=$configure_input"Generated from `echo $ac_file_in |
35424 sed 's,.*/,,'` by configure."
35426 # First look for the input files in the build tree, otherwise in the
35428 ac_file_inputs=`IFS=:
35429 for f in $ac_file_in; do
35431 -) echo $tmp/stdin ;;
35433 # Absolute (can't be DOS-style, as IFS=:)
35434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35435 echo "$as_me: error: cannot find input file: $f" >&2;}
35436 { (exit 1); exit 1; }; }
35439 if test -f "$f"; then
35442 elif test -f "$srcdir/$f"; then
35447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35448 echo "$as_me: error: cannot find input file: $f" >&2;}
35449 { (exit 1); exit 1; }; }
35452 done` || { (exit 1); exit 1; }
35454 cat >>$CONFIG_STATUS <<_ACEOF
35458 cat >>$CONFIG_STATUS <<\_ACEOF
35460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461 s,@configure_input@,$configure_input,;t t
35462 s,@srcdir@,$ac_srcdir,;t t
35463 s,@abs_srcdir@,$ac_abs_srcdir,;t t
35464 s,@top_srcdir@,$ac_top_srcdir,;t t
35465 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35466 s,@builddir@,$ac_builddir,;t t
35467 s,@abs_builddir@,$ac_abs_builddir,;t t
35468 s,@top_builddir@,$ac_top_builddir,;t t
35469 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35470 s,@INSTALL@,$ac_INSTALL,;t t
35471 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35473 if test x"$ac_file" != x-; then
35474 mv $tmp/out $ac_file
35482 cat >>$CONFIG_STATUS <<\_ACEOF
35485 # CONFIG_HEADER section.
35488 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35489 # NAME is the cpp macro being defined and VALUE is the value it is being given.
35491 # ac_d sets the value in "#define NAME VALUE" lines.
35492 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35493 ac_dB='[ ].*$,\1#\2'
35496 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35497 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35498 ac_uB='$,\1#\2define\3'
35502 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35503 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35505 - | *:- | *:-:* ) # input from stdin
35507 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35509 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35511 * ) ac_file_in=$ac_file.in ;;
35514 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35515 echo "$as_me: creating $ac_file" >&6;}
35517 # First look for the input files in the build tree, otherwise in the
35519 ac_file_inputs=`IFS=:
35520 for f in $ac_file_in; do
35522 -) echo $tmp/stdin ;;
35524 # Absolute (can't be DOS-style, as IFS=:)
35525 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35526 echo "$as_me: error: cannot find input file: $f" >&2;}
35527 { (exit 1); exit 1; }; }
35530 if test -f "$f"; then
35533 elif test -f "$srcdir/$f"; then
35538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35539 echo "$as_me: error: cannot find input file: $f" >&2;}
35540 { (exit 1); exit 1; }; }
35543 done` || { (exit 1); exit 1; }
35544 # Remove the trailing spaces.
35545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
35550 # `conftest.undefs', that substitutes the proper values into
35551 # config.h.in to produce config.h. The first handles `#define'
35552 # templates, and the second `#undef' templates.
35553 # And first: Protect against being on the right side of a sed subst in
35554 # config.status. Protect against being in an unquoted here document
35555 # in config.status.
35556 rm -f conftest.defines conftest.undefs
35557 # Using a here document instead of a string reduces the quoting nightmare.
35558 # Putting comments in sed scripts is not portable.
35560 # `end' is used to avoid that the second main sed command (meant for
35561 # 0-ary CPP macros) applies to n-ary macro definitions.
35562 # See the Autoconf documentation for `clear'.
35563 cat >confdef2sed.sed <<\_ACEOF
35568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35573 # If some macros were called several times there might be several times
35574 # the same #defines, which is useless. Nevertheless, we may not want to
35575 # sort them, since we want the *last* AC-DEFINE to be honored.
35576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35578 rm -f confdef2sed.sed
35580 # This sed command replaces #undef with comments. This is necessary, for
35581 # example, in the case of _POSIX_SOURCE, which is predefined and required
35582 # on some systems where configure will not decide to define it.
35583 cat >>conftest.undefs <<\_ACEOF
35584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35587 # Break up conftest.defines because some shells have a limit on the size
35588 # of here documents, and old seds have small limits too (100 cmds).
35589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35592 echo ' :' >>$CONFIG_STATUS
35593 rm -f conftest.tail
35594 while grep . conftest.defines >/dev/null
35596 # Write a limited-size here document to $tmp/defines.sed.
35597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35598 # Speed up: don't consider the non `#define' lines.
35599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35600 # Work around the forget-to-reset-the-flag bug.
35601 echo 't clr' >>$CONFIG_STATUS
35602 echo ': clr' >>$CONFIG_STATUS
35603 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35607 mv $tmp/out $tmp/in
35609 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35610 rm -f conftest.defines
35611 mv conftest.tail conftest.defines
35613 rm -f conftest.defines
35614 echo ' fi # grep' >>$CONFIG_STATUS
35615 echo >>$CONFIG_STATUS
35617 # Break up conftest.undefs because some shells have a limit on the size
35618 # of here documents, and old seds have small limits too (100 cmds).
35619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
35620 rm -f conftest.tail
35621 while grep . conftest.undefs >/dev/null
35623 # Write a limited-size here document to $tmp/undefs.sed.
35624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35625 # Speed up: don't consider the non `#undef'
35626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35627 # Work around the forget-to-reset-the-flag bug.
35628 echo 't clr' >>$CONFIG_STATUS
35629 echo ': clr' >>$CONFIG_STATUS
35630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35634 mv $tmp/out $tmp/in
35636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35637 rm -f conftest.undefs
35638 mv conftest.tail conftest.undefs
35640 rm -f conftest.undefs
35642 cat >>$CONFIG_STATUS <<\_ACEOF
35643 # Let's still pretend it is `configure' which instantiates (i.e., don't
35644 # use $as_me), people would be surprised to read:
35645 # /* config.h. Generated by config.status. */
35646 if test x"$ac_file" = x-; then
35647 echo "/* Generated by configure. */" >$tmp/config.h
35649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
35651 cat $tmp/in >>$tmp/config.h
35653 if test x"$ac_file" != x-; then
35654 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
35655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35656 echo "$as_me: $ac_file is unchanged" >&6;}
35658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35660 X"$ac_file" : 'X\(//\)[^/]' \| \
35661 X"$ac_file" : 'X\(//\)$' \| \
35662 X"$ac_file" : 'X\(/\)' \| \
35663 . : '\(.\)' 2>/dev/null ||
35665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35667 /^X\(\/\/\)$/{ s//\1/; q; }
35668 /^X\(\/\).*/{ s//\1/; q; }
35670 { if $as_mkdir_p; then
35675 while test ! -d "$as_dir"; do
35676 as_dirs="$as_dir $as_dirs"
35677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35679 X"$as_dir" : 'X\(//\)[^/]' \| \
35680 X"$as_dir" : 'X\(//\)$' \| \
35681 X"$as_dir" : 'X\(/\)' \| \
35682 . : '\(.\)' 2>/dev/null ||
35684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35686 /^X\(\/\/\)$/{ s//\1/; q; }
35687 /^X\(\/\).*/{ s//\1/; q; }
35690 test ! -n "$as_dirs" || mkdir $as_dirs
35691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35693 { (exit 1); exit 1; }; }; }
35696 mv $tmp/config.h $ac_file
35700 rm -f $tmp/config.h
35704 cat >>$CONFIG_STATUS <<\_ACEOF
35707 # CONFIG_COMMANDS section.
35709 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35710 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35711 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35712 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35713 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35714 X"$ac_dest" : 'X\(//\)[^/]' \| \
35715 X"$ac_dest" : 'X\(//\)$' \| \
35716 X"$ac_dest" : 'X\(/\)' \| \
35717 . : '\(.\)' 2>/dev/null ||
35719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35721 /^X\(\/\/\)$/{ s//\1/; q; }
35722 /^X\(\/\).*/{ s//\1/; q; }
35726 if test "$ac_dir" != .; then
35727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35728 # A "../" for each directory in $ac_dir_suffix.
35729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35731 ac_dir_suffix= ac_top_builddir=
35735 .) # No --srcdir option. We are building in place.
35737 if test -z "$ac_top_builddir"; then
35740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35742 [\\/]* | ?:[\\/]* ) # Absolute path.
35743 ac_srcdir=$srcdir$ac_dir_suffix;
35744 ac_top_srcdir=$srcdir ;;
35745 *) # Relative path.
35746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35749 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35751 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35752 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35753 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35754 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35757 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35758 echo "$as_me: executing $ac_dest commands" >&6;}
35760 time-stamp ) date >stamp-h
35761 echo Please run \"make depend\" to build dependencies ;;
35766 cat >>$CONFIG_STATUS <<\_ACEOF
35768 { (exit 0); exit 0; }
35770 chmod +x $CONFIG_STATUS
35771 ac_clean_files=$ac_clean_files_save
35774 # configure is writing to config.log, and then calls config.status.
35775 # config.status does its own redirection, appending to config.log.
35776 # Unfortunately, on DOS this fails, as config.log is still kept open
35777 # by configure, so config.status won't be able to write to it; its
35778 # output is simply discarded. So we exec the FD to /dev/null,
35779 # effectively closing config.log, so it can be properly (re)opened and
35780 # appended to by config.status. When coming back to configure, we
35781 # need to make the FD available again.
35782 if test "$no_create" != yes; then
35784 ac_config_status_args=
35785 test "$silent" = yes &&
35786 ac_config_status_args="$ac_config_status_args --quiet"
35788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35791 # would make configure fail if this is the last instruction.
35792 $ac_cs_success || { (exit 1); exit 1; }