2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.671 2008/10/09 08:51:28 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC MYSQL LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS GSSAPI_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-meta enable metadirectory backend no|yes|mod [no]
1038 --enable-monitor enable monitor backend no|yes|mod [yes]
1039 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1040 --enable-null enable null backend no|yes|mod [no]
1041 --enable-passwd enable passwd backend no|yes|mod [no]
1042 --enable-perl enable perl backend no|yes|mod [no]
1043 --enable-relay enable relay backend no|yes|mod [yes]
1044 --enable-shell enable shell backend no|yes|mod [no]
1045 --enable-sock enable sock backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-collect Collect overlay no|yes|mod [no]
1053 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1054 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1055 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1056 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1057 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1058 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1059 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1060 --enable-refint Referential Integrity overlay no|yes|mod [no]
1061 --enable-retcode Return Code testing overlay no|yes|mod [no]
1062 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1063 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1064 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1065 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1066 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1067 --enable-valsort Value Sorting overlay no|yes|mod [no]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-gssapi with GSSAPI support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559 for ac_dir in build $srcdir/build; do
1560 if test -f $ac_dir/install-sh; then
1562 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 elif test -f $ac_dir/install.sh; then
1566 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 elif test -f $ac_dir/shtool; then
1570 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 if test -z "$ac_aux_dir"; then
1575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577 { (exit 1); exit 1; }; }
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587 { (exit 1); exit 1; }; }
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591 ac_cv_shtool="$ac_aux_dir/shtool"
1593 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595 { (exit 1); exit 1; }; }
1598 SHTOOL="$ac_cv_shtool"
1602 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1607 if test -d $ac_aux_dir/CVS; then
1608 OPENLDAP_CVS="(from CVS sources) "
1611 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1613 # Make sure we can run config.sub.
1614 $ac_config_sub sun4 >/dev/null 2>&1 ||
1615 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1616 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1617 { (exit 1); exit 1; }; }
1619 echo "$as_me:$LINENO: checking build system type" >&5
1620 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1621 if test "${ac_cv_build+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 ac_cv_build_alias=$build_alias
1625 test -z "$ac_cv_build_alias" &&
1626 ac_cv_build_alias=`$ac_config_guess`
1627 test -z "$ac_cv_build_alias" &&
1628 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1629 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1630 { (exit 1); exit 1; }; }
1631 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1638 echo "${ECHO_T}$ac_cv_build" >&6
1640 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645 echo "$as_me:$LINENO: checking host system type" >&5
1646 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1647 if test "${ac_cv_host+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 ac_cv_host_alias=$host_alias
1651 test -z "$ac_cv_host_alias" &&
1652 ac_cv_host_alias=$ac_cv_build_alias
1653 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1660 echo "${ECHO_T}$ac_cv_host" >&6
1662 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667 echo "$as_me:$LINENO: checking target system type" >&5
1668 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1669 if test "${ac_cv_target+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 ac_cv_target_alias=$target_alias
1673 test "x$ac_cv_target_alias" = "x" &&
1674 ac_cv_target_alias=$ac_cv_host_alias
1675 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1676 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1677 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1678 { (exit 1); exit 1; }; }
1681 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1682 echo "${ECHO_T}$ac_cv_target" >&6
1683 target=$ac_cv_target
1684 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689 # The aliases save the names the user supplied, while $host etc.
1690 # will get canonicalized.
1691 test -n "$target_alias" &&
1692 test "$program_prefix$program_suffix$program_transform_name" = \
1694 program_prefix=${target_alias}-
1696 am__api_version="1.9"
1697 # Find a good install program. We prefer a C program (faster),
1698 # so one script is as good as another. But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # OS/2's system install, which has a completely different semantic
1709 # ./install, which can be erroneously created by make from ./install.sh.
1710 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712 if test -z "$INSTALL"; then
1713 if test "${ac_cv_path_install+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 # Account for people who put trailing slashes in PATH elements.
1723 ./ | .// | /cC/* | \
1724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1728 # OSF1 and SCO ODT 3.0 have their own names for install.
1729 # Don't use installbsd from OSF since it installs stuff as root
1731 for ac_prog in ginstall scoinst install; do
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734 if test $ac_prog = install &&
1735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # AIX install. It has an incompatible calling convention.
1738 elif test $ac_prog = install &&
1739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740 # program-specific install script used by HP pwplus--don't use.
1743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1755 if test "${ac_cv_path_install+set}" = set; then
1756 INSTALL=$ac_cv_path_install
1758 # As a last resort, use the slow shell script. We don't cache a
1759 # path for INSTALL within a source directory, because that will
1760 # break other packages using the cache if that directory is
1761 # removed, or if the path is relative.
1762 INSTALL=$ac_install_sh
1765 echo "$as_me:$LINENO: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1776 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1777 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1780 echo timestamp > conftest.file
1781 # Do `set' in a subshell so we don't clobber the current shell's
1782 # arguments. Must try -L first in case configure is actually a
1783 # symlink; some systems play weird games with the mod time of symlinks
1784 # (eg FreeBSD returns the mod time of the symlink's containing
1787 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1788 if test "$*" = "X"; then
1790 set X `ls -t $srcdir/configure conftest.file`
1793 if test "$*" != "X $srcdir/configure conftest.file" \
1794 && test "$*" != "X conftest.file $srcdir/configure"; then
1796 # If neither matched, then we have a broken ls. This can happen
1797 # if, for instance, CONFIG_SHELL is bash and it inherits a
1798 # broken ls alias from the environment. This has actually
1799 # happened. Such a system could not be considered "sane".
1800 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1801 alias in your environment" >&5
1802 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1803 alias in your environment" >&2;}
1804 { (exit 1); exit 1; }; }
1807 test "$2" = conftest.file
1813 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1814 Check your system clock" >&5
1815 echo "$as_me: error: newly created file is older than distributed files!
1816 Check your system clock" >&2;}
1817 { (exit 1); exit 1; }; }
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 test "$program_prefix" != NONE &&
1822 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1823 # Use a double $ so make ignores it.
1824 test "$program_suffix" != NONE &&
1825 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1826 # Double any \ or $. echo might interpret backslashes.
1827 # By default was `s,x,x', remove it if useless.
1828 cat <<\_ACEOF >conftest.sed
1829 s/[\\$]/&&/g;s/;s,x,x,$//
1831 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1834 # expand $ac_aux_dir to an absolute path
1835 am_aux_dir=`cd $ac_aux_dir && pwd`
1837 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1838 # Use eval to expand $SHELL
1839 if eval "$MISSING --run true"; then
1840 am_missing_run="$MISSING --run "
1843 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1844 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1847 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1848 # We used to keeping the `.' as first argument, in order to
1849 # allow $(mkdir_p) to be used without argument. As in
1850 # $(mkdir_p) $(somedir)
1851 # where $(somedir) is conditionally defined. However this is wrong
1853 # 1. if the package is installed by a user who cannot write `.'
1854 # make install will fail,
1855 # 2. the above comment should most certainly read
1856 # $(mkdir_p) $(DESTDIR)$(somedir)
1857 # so it does not work when $(somedir) is undefined and
1858 # $(DESTDIR) is not.
1859 # To support the latter case, we have to write
1860 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1861 # so the `.' trick is pointless.
1862 mkdir_p='mkdir -p --'
1864 # On NextStep and OpenStep, the `mkdir' command does not
1865 # recognize any option. It will interpret all options as
1866 # directories to create, and then abort because `.' already
1868 for d in ./-p ./--version;
1870 test -d $d && rmdir $d
1872 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873 if test -f "$ac_aux_dir/mkinstalldirs"; then
1874 mkdir_p='$(mkinstalldirs)'
1876 mkdir_p='$(install_sh) -d'
1880 for ac_prog in gawk mawk nawk awk
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_AWK+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$AWK"; then
1890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_AWK="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$AWK"; then
1910 echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$AWK" && break
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 cat >conftest.make <<\_ACEOF
1928 @echo 'ac_maketemp="$(MAKE)"'
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933 eval ac_cv_prog_make_${ac_make}_set=yes
1935 eval ac_cv_prog_make_${ac_make}_set=no
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 SET_MAKE="MAKE=${MAKE-make}"
1949 rm -rf .tst 2>/dev/null
1950 mkdir .tst 2>/dev/null
1951 if test -d .tst; then
1956 rmdir .tst 2>/dev/null
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960 test -f $srcdir/config.status; then
1961 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968 if (cygpath --version) >/dev/null 2>/dev/null; then
1969 CYGPATH_W='cygpath -w'
1976 # Define the identity of the package.
1981 # Some tools Automake needs.
1983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1997 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1999 # Installed binaries are usually stripped using `strip' when the user
2000 # run `make install-strip'. However `strip' might not be the right
2001 # tool to use in cross-compilation environments, therefore Automake
2002 # will honor the `STRIP' environment variable to overrule this program.
2003 if test "$cross_compiling" != no; then
2004 if test -n "$ac_tool_prefix"; then
2005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2006 set dummy ${ac_tool_prefix}strip; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_STRIP+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$STRIP"; then
2013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 STRIP=$ac_cv_prog_STRIP
2032 if test -n "$STRIP"; then
2033 echo "$as_me:$LINENO: result: $STRIP" >&5
2034 echo "${ECHO_T}$STRIP" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$ac_cv_prog_STRIP"; then
2043 # Extract the first word of "strip", so it can be a program name with args.
2044 set dummy strip; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$ac_ct_STRIP"; then
2051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_ac_ct_STRIP="strip"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2071 if test -n "$ac_ct_STRIP"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2073 echo "${ECHO_T}$ac_ct_STRIP" >&6
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2081 STRIP="$ac_cv_prog_STRIP"
2085 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2087 # We need awk for the "check" target. The system "awk" is bad on
2089 # Always define AMTAR for backward compatibility.
2091 AMTAR=${AMTAR-"${am_missing_run}tar"}
2093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 cat >>confdefs.h <<_ACEOF
2105 #define OPENLDAP_VERSION "$VERSION"
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 cat >>confdefs.h <<_ACEOF
2126 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2132 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2134 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2142 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2144 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2146 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2149 echo "$as_me:$LINENO: checking configure arguments" >&5
2150 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2155 ldap_subdir="/openldap"
2158 # Check whether --with-subdir or --without-subdir was given.
2159 if test "${with_subdir+set}" = set; then
2160 withval="$with_subdir"
2167 ldap_subdir="$withval"
2170 ldap_subdir="/$withval"
2176 # OpenLDAP --enable-debug
2178 # Check whether --enable-debug or --disable-debug was given.
2179 if test "${enable_debug+set}" = set; then
2180 enableval="$enable_debug"
2183 for ol_val in no yes traditional ; do
2184 if test "$enableval" = "$ol_val" ; then
2188 if test "$ol_arg" = "invalid" ; then
2189 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2190 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2191 { (exit 1); exit 1; }; }
2193 ol_enable_debug="$ol_arg"
2198 # end --enable-debug
2199 # OpenLDAP --enable-dynamic
2201 # Check whether --enable-dynamic or --disable-dynamic was given.
2202 if test "${enable_dynamic+set}" = set; then
2203 enableval="$enable_dynamic"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2214 { (exit 1); exit 1; }; }
2216 ol_enable_dynamic="$ol_arg"
2219 ol_enable_dynamic=no
2221 # end --enable-dynamic
2222 # OpenLDAP --enable-syslog
2224 # Check whether --enable-syslog or --disable-syslog was given.
2225 if test "${enable_syslog+set}" = set; then
2226 enableval="$enable_syslog"
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-syslog" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2237 { (exit 1); exit 1; }; }
2239 ol_enable_syslog="$ol_arg"
2242 ol_enable_syslog=auto
2244 # end --enable-syslog
2245 # OpenLDAP --enable-proctitle
2247 # Check whether --enable-proctitle or --disable-proctitle was given.
2248 if test "${enable_proctitle+set}" = set; then
2249 enableval="$enable_proctitle"
2252 for ol_val in auto yes no ; do
2253 if test "$enableval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2259 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2260 { (exit 1); exit 1; }; }
2262 ol_enable_proctitle="$ol_arg"
2265 ol_enable_proctitle=yes
2267 # end --enable-proctitle
2268 ol_enable_referrals=${ol_enable_referrals-no}
2269 # OpenLDAP --enable-ipv6
2271 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273 enableval="$enable_ipv6"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284 { (exit 1); exit 1; }; }
2286 ol_enable_ipv6="$ol_arg"
2292 # OpenLDAP --enable-local
2294 # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296 enableval="$enable_local"
2299 for ol_val in auto yes no ; do
2300 if test "$enableval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307 { (exit 1); exit 1; }; }
2309 ol_enable_local="$ol_arg"
2312 ol_enable_local=auto
2314 # end --enable-local
2316 # OpenLDAP --with-cyrus_sasl
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320 withval="$with_cyrus_sasl"
2323 for ol_val in auto yes no ; do
2324 if test "$withval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331 { (exit 1); exit 1; }; }
2333 ol_with_cyrus_sasl="$ol_arg"
2336 ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2339 # OpenLDAP --with-fetch
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343 withval="$with_fetch"
2346 for ol_val in auto yes no ; do
2347 if test "$withval" = "$ol_val" ; then
2351 if test "$ol_arg" = "invalid" ; then
2352 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354 { (exit 1); exit 1; }; }
2356 ol_with_fetch="$ol_arg"
2359 ol_with_fetch="auto"
2360 fi; # end --with-fetch
2362 # OpenLDAP --with-gssapi
2364 # Check whether --with-gssapi or --without-gssapi was given.
2365 if test "${with_gssapi+set}" = set; then
2366 withval="$with_gssapi"
2369 for ol_val in auto yes no ; do
2370 if test "$withval" = "$ol_val" ; then
2374 if test "$ol_arg" = "invalid" ; then
2375 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2376 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2377 { (exit 1); exit 1; }; }
2379 ol_with_gssapi="$ol_arg"
2382 ol_with_gssapi="auto"
2383 fi; # end --with-gssapi
2385 # OpenLDAP --with-threads
2387 # Check whether --with-threads or --without-threads was given.
2388 if test "${with_threads+set}" = set; then
2389 withval="$with_threads"
2392 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2393 if test "$withval" = "$ol_val" ; then
2397 if test "$ol_arg" = "invalid" ; then
2398 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2399 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2400 { (exit 1); exit 1; }; }
2402 ol_with_threads="$ol_arg"
2405 ol_with_threads="auto"
2406 fi; # end --with-threads
2408 # OpenLDAP --with-tls
2410 # Check whether --with-tls or --without-tls was given.
2411 if test "${with_tls+set}" = set; then
2415 for ol_val in auto openssl gnutls yes no ; do
2416 if test "$withval" = "$ol_val" ; then
2420 if test "$ol_arg" = "invalid" ; then
2421 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2422 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2423 { (exit 1); exit 1; }; }
2425 ol_with_tls="$ol_arg"
2429 fi; # end --with-tls
2431 # OpenLDAP --with-yielding_select
2433 # Check whether --with-yielding_select or --without-yielding_select was given.
2434 if test "${with_yielding_select+set}" = set; then
2435 withval="$with_yielding_select"
2438 for ol_val in auto yes no manual ; do
2439 if test "$withval" = "$ol_val" ; then
2443 if test "$ol_arg" = "invalid" ; then
2444 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2445 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2446 { (exit 1); exit 1; }; }
2448 ol_with_yielding_select="$ol_arg"
2451 ol_with_yielding_select="auto"
2452 fi; # end --with-yielding_select
2454 # OpenLDAP --with-mp
2456 # Check whether --with-mp or --without-mp was given.
2457 if test "${with_mp+set}" = set; then
2461 for ol_val in auto longlong long bignum gmp yes no ; do
2462 if test "$withval" = "$ol_val" ; then
2466 if test "$ol_arg" = "invalid" ; then
2467 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2468 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2469 { (exit 1); exit 1; }; }
2471 ol_with_mp="$ol_arg"
2477 # OpenLDAP --with-odbc
2479 # Check whether --with-odbc or --without-odbc was given.
2480 if test "${with_odbc+set}" = set; then
2481 withval="$with_odbc"
2484 for ol_val in auto iodbc unixodbc odbc32 ; do
2485 if test "$withval" = "$ol_val" ; then
2489 if test "$ol_arg" = "invalid" ; then
2490 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2491 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2492 { (exit 1); exit 1; }; }
2494 ol_with_odbc="$ol_arg"
2498 fi; # end --with-odbc
2502 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2503 if test "${enable_xxslapdoptions+set}" = set; then
2504 enableval="$enable_xxslapdoptions"
2507 # OpenLDAP --enable-slapd
2509 # Check whether --enable-slapd or --disable-slapd was given.
2510 if test "${enable_slapd+set}" = set; then
2511 enableval="$enable_slapd"
2514 for ol_val in auto yes no ; do
2515 if test "$enableval" = "$ol_val" ; then
2519 if test "$ol_arg" = "invalid" ; then
2520 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2522 { (exit 1); exit 1; }; }
2524 ol_enable_slapd="$ol_arg"
2529 # end --enable-slapd
2530 # OpenLDAP --enable-dynacl
2532 # Check whether --enable-dynacl or --disable-dynacl was given.
2533 if test "${enable_dynacl+set}" = set; then
2534 enableval="$enable_dynacl"
2537 for ol_val in auto yes no ; do
2538 if test "$enableval" = "$ol_val" ; then
2542 if test "$ol_arg" = "invalid" ; then
2543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2544 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2545 { (exit 1); exit 1; }; }
2547 ol_enable_dynacl="$ol_arg"
2552 # end --enable-dynacl
2553 # OpenLDAP --enable-aci
2555 # Check whether --enable-aci or --disable-aci was given.
2556 if test "${enable_aci+set}" = set; then
2557 enableval="$enable_aci"
2560 for ol_val in no yes mod ; do
2561 if test "$enableval" = "$ol_val" ; then
2565 if test "$ol_arg" = "invalid" ; then
2566 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2567 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2568 { (exit 1); exit 1; }; }
2570 ol_enable_aci="$ol_arg"
2576 # OpenLDAP --enable-cleartext
2578 # Check whether --enable-cleartext or --disable-cleartext was given.
2579 if test "${enable_cleartext+set}" = set; then
2580 enableval="$enable_cleartext"
2583 for ol_val in auto yes no ; do
2584 if test "$enableval" = "$ol_val" ; then
2588 if test "$ol_arg" = "invalid" ; then
2589 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2590 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2591 { (exit 1); exit 1; }; }
2593 ol_enable_cleartext="$ol_arg"
2596 ol_enable_cleartext=yes
2598 # end --enable-cleartext
2599 # OpenLDAP --enable-crypt
2601 # Check whether --enable-crypt or --disable-crypt was given.
2602 if test "${enable_crypt+set}" = set; then
2603 enableval="$enable_crypt"
2606 for ol_val in auto yes no ; do
2607 if test "$enableval" = "$ol_val" ; then
2611 if test "$ol_arg" = "invalid" ; then
2612 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2613 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2614 { (exit 1); exit 1; }; }
2616 ol_enable_crypt="$ol_arg"
2621 # end --enable-crypt
2622 # OpenLDAP --enable-lmpasswd
2624 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2625 if test "${enable_lmpasswd+set}" = set; then
2626 enableval="$enable_lmpasswd"
2629 for ol_val in auto yes no ; do
2630 if test "$enableval" = "$ol_val" ; then
2634 if test "$ol_arg" = "invalid" ; then
2635 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2637 { (exit 1); exit 1; }; }
2639 ol_enable_lmpasswd="$ol_arg"
2642 ol_enable_lmpasswd=no
2644 # end --enable-lmpasswd
2645 # OpenLDAP --enable-spasswd
2647 # Check whether --enable-spasswd or --disable-spasswd was given.
2648 if test "${enable_spasswd+set}" = set; then
2649 enableval="$enable_spasswd"
2652 for ol_val in auto yes no ; do
2653 if test "$enableval" = "$ol_val" ; then
2657 if test "$ol_arg" = "invalid" ; then
2658 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_spasswd="$ol_arg"
2665 ol_enable_spasswd=no
2667 # end --enable-spasswd
2668 # OpenLDAP --enable-modules
2670 # Check whether --enable-modules or --disable-modules was given.
2671 if test "${enable_modules+set}" = set; then
2672 enableval="$enable_modules"
2675 for ol_val in auto yes no ; do
2676 if test "$enableval" = "$ol_val" ; then
2680 if test "$ol_arg" = "invalid" ; then
2681 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2683 { (exit 1); exit 1; }; }
2685 ol_enable_modules="$ol_arg"
2688 ol_enable_modules=no
2690 # end --enable-modules
2691 # OpenLDAP --enable-rewrite
2693 # Check whether --enable-rewrite or --disable-rewrite was given.
2694 if test "${enable_rewrite+set}" = set; then
2695 enableval="$enable_rewrite"
2698 for ol_val in auto yes no ; do
2699 if test "$enableval" = "$ol_val" ; then
2703 if test "$ol_arg" = "invalid" ; then
2704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2706 { (exit 1); exit 1; }; }
2708 ol_enable_rewrite="$ol_arg"
2711 ol_enable_rewrite=auto
2713 # end --enable-rewrite
2714 # OpenLDAP --enable-rlookups
2716 # Check whether --enable-rlookups or --disable-rlookups was given.
2717 if test "${enable_rlookups+set}" = set; then
2718 enableval="$enable_rlookups"
2721 for ol_val in auto yes no ; do
2722 if test "$enableval" = "$ol_val" ; then
2726 if test "$ol_arg" = "invalid" ; then
2727 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2729 { (exit 1); exit 1; }; }
2731 ol_enable_rlookups="$ol_arg"
2734 ol_enable_rlookups=no
2736 # end --enable-rlookups
2737 # OpenLDAP --enable-slapi
2739 # Check whether --enable-slapi or --disable-slapi was given.
2740 if test "${enable_slapi+set}" = set; then
2741 enableval="$enable_slapi"
2744 for ol_val in auto yes no ; do
2745 if test "$enableval" = "$ol_val" ; then
2749 if test "$ol_arg" = "invalid" ; then
2750 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2752 { (exit 1); exit 1; }; }
2754 ol_enable_slapi="$ol_arg"
2759 # end --enable-slapi
2760 # OpenLDAP --enable-slp
2762 # Check whether --enable-slp or --disable-slp was given.
2763 if test "${enable_slp+set}" = set; then
2764 enableval="$enable_slp"
2767 for ol_val in auto yes no ; do
2768 if test "$enableval" = "$ol_val" ; then
2772 if test "$ol_arg" = "invalid" ; then
2773 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2774 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2775 { (exit 1); exit 1; }; }
2777 ol_enable_slp="$ol_arg"
2783 # OpenLDAP --enable-wrappers
2785 # Check whether --enable-wrappers or --disable-wrappers was given.
2786 if test "${enable_wrappers+set}" = set; then
2787 enableval="$enable_wrappers"
2790 for ol_val in auto yes no ; do
2791 if test "$enableval" = "$ol_val" ; then
2795 if test "$ol_arg" = "invalid" ; then
2796 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2797 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2798 { (exit 1); exit 1; }; }
2800 ol_enable_wrappers="$ol_arg"
2803 ol_enable_wrappers=no
2805 # end --enable-wrappers
2822 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2823 if test "${enable_xxslapbackends+set}" = set; then
2824 enableval="$enable_xxslapbackends"
2828 # OpenLDAP --enable-backends
2830 # Check whether --enable-backends or --disable-backends was given.
2831 if test "${enable_backends+set}" = set; then
2832 enableval="$enable_backends"
2835 for ol_val in no yes mod ; do
2836 if test "$enableval" = "$ol_val" ; then
2840 if test "$ol_arg" = "invalid" ; then
2841 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2842 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2843 { (exit 1); exit 1; }; }
2845 ol_enable_backends="$ol_arg"
2848 # end --enable-backends
2849 # OpenLDAP --enable-bdb
2851 # Check whether --enable-bdb or --disable-bdb was given.
2852 if test "${enable_bdb+set}" = set; then
2853 enableval="$enable_bdb"
2856 for ol_val in no yes mod ; do
2857 if test "$enableval" = "$ol_val" ; then
2861 if test "$ol_arg" = "invalid" ; then
2862 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2864 { (exit 1); exit 1; }; }
2866 ol_enable_bdb="$ol_arg"
2869 ol_enable_bdb=${ol_enable_backends:-no}
2872 # OpenLDAP --enable-dnssrv
2874 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2875 if test "${enable_dnssrv+set}" = set; then
2876 enableval="$enable_dnssrv"
2879 for ol_val in no yes mod ; do
2880 if test "$enableval" = "$ol_val" ; then
2884 if test "$ol_arg" = "invalid" ; then
2885 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2887 { (exit 1); exit 1; }; }
2889 ol_enable_dnssrv="$ol_arg"
2892 ol_enable_dnssrv=${ol_enable_backends:-no}
2894 # end --enable-dnssrv
2895 # OpenLDAP --enable-hdb
2897 # Check whether --enable-hdb or --disable-hdb was given.
2898 if test "${enable_hdb+set}" = set; then
2899 enableval="$enable_hdb"
2902 for ol_val in no yes mod ; do
2903 if test "$enableval" = "$ol_val" ; then
2907 if test "$ol_arg" = "invalid" ; then
2908 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2910 { (exit 1); exit 1; }; }
2912 ol_enable_hdb="$ol_arg"
2915 ol_enable_hdb=${ol_enable_backends:-yes}
2918 # OpenLDAP --enable-ldap
2920 # Check whether --enable-ldap or --disable-ldap was given.
2921 if test "${enable_ldap+set}" = set; then
2922 enableval="$enable_ldap"
2925 for ol_val in no yes mod ; do
2926 if test "$enableval" = "$ol_val" ; then
2930 if test "$ol_arg" = "invalid" ; then
2931 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2932 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2933 { (exit 1); exit 1; }; }
2935 ol_enable_ldap="$ol_arg"
2938 ol_enable_ldap=${ol_enable_backends:-no}
2941 # OpenLDAP --enable-meta
2943 # Check whether --enable-meta or --disable-meta was given.
2944 if test "${enable_meta+set}" = set; then
2945 enableval="$enable_meta"
2948 for ol_val in no yes mod ; do
2949 if test "$enableval" = "$ol_val" ; then
2953 if test "$ol_arg" = "invalid" ; then
2954 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2955 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2956 { (exit 1); exit 1; }; }
2958 ol_enable_meta="$ol_arg"
2961 ol_enable_meta=${ol_enable_backends:-no}
2964 # OpenLDAP --enable-monitor
2966 # Check whether --enable-monitor or --disable-monitor was given.
2967 if test "${enable_monitor+set}" = set; then
2968 enableval="$enable_monitor"
2971 for ol_val in no yes mod ; do
2972 if test "$enableval" = "$ol_val" ; then
2976 if test "$ol_arg" = "invalid" ; then
2977 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2979 { (exit 1); exit 1; }; }
2981 ol_enable_monitor="$ol_arg"
2984 ol_enable_monitor=${ol_enable_backends:-yes}
2986 # end --enable-monitor
2987 # OpenLDAP --enable-ndb
2989 # Check whether --enable-ndb or --disable-ndb was given.
2990 if test "${enable_ndb+set}" = set; then
2991 enableval="$enable_ndb"
2994 for ol_val in no yes mod ; do
2995 if test "$enableval" = "$ol_val" ; then
2999 if test "$ol_arg" = "invalid" ; then
3000 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3001 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3002 { (exit 1); exit 1; }; }
3004 ol_enable_ndb="$ol_arg"
3007 ol_enable_ndb=${ol_enable_backends:-no}
3010 # OpenLDAP --enable-null
3012 # Check whether --enable-null or --disable-null was given.
3013 if test "${enable_null+set}" = set; then
3014 enableval="$enable_null"
3017 for ol_val in no yes mod ; do
3018 if test "$enableval" = "$ol_val" ; then
3022 if test "$ol_arg" = "invalid" ; then
3023 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3024 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3025 { (exit 1); exit 1; }; }
3027 ol_enable_null="$ol_arg"
3030 ol_enable_null=${ol_enable_backends:-no}
3033 # OpenLDAP --enable-passwd
3035 # Check whether --enable-passwd or --disable-passwd was given.
3036 if test "${enable_passwd+set}" = set; then
3037 enableval="$enable_passwd"
3040 for ol_val in no yes mod ; do
3041 if test "$enableval" = "$ol_val" ; then
3045 if test "$ol_arg" = "invalid" ; then
3046 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3047 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3048 { (exit 1); exit 1; }; }
3050 ol_enable_passwd="$ol_arg"
3053 ol_enable_passwd=${ol_enable_backends:-no}
3055 # end --enable-passwd
3056 # OpenLDAP --enable-perl
3058 # Check whether --enable-perl or --disable-perl was given.
3059 if test "${enable_perl+set}" = set; then
3060 enableval="$enable_perl"
3063 for ol_val in no yes mod ; do
3064 if test "$enableval" = "$ol_val" ; then
3068 if test "$ol_arg" = "invalid" ; then
3069 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3070 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3071 { (exit 1); exit 1; }; }
3073 ol_enable_perl="$ol_arg"
3076 ol_enable_perl=${ol_enable_backends:-no}
3079 # OpenLDAP --enable-relay
3081 # Check whether --enable-relay or --disable-relay was given.
3082 if test "${enable_relay+set}" = set; then
3083 enableval="$enable_relay"
3086 for ol_val in no yes mod ; do
3087 if test "$enableval" = "$ol_val" ; then
3091 if test "$ol_arg" = "invalid" ; then
3092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3094 { (exit 1); exit 1; }; }
3096 ol_enable_relay="$ol_arg"
3099 ol_enable_relay=${ol_enable_backends:-yes}
3101 # end --enable-relay
3102 # OpenLDAP --enable-shell
3104 # Check whether --enable-shell or --disable-shell was given.
3105 if test "${enable_shell+set}" = set; then
3106 enableval="$enable_shell"
3109 for ol_val in no yes mod ; do
3110 if test "$enableval" = "$ol_val" ; then
3114 if test "$ol_arg" = "invalid" ; then
3115 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3116 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3117 { (exit 1); exit 1; }; }
3119 ol_enable_shell="$ol_arg"
3122 ol_enable_shell=${ol_enable_backends:-no}
3124 # end --enable-shell
3125 # OpenLDAP --enable-sock
3127 # Check whether --enable-sock or --disable-sock was given.
3128 if test "${enable_sock+set}" = set; then
3129 enableval="$enable_sock"
3132 for ol_val in no yes mod ; do
3133 if test "$enableval" = "$ol_val" ; then
3137 if test "$ol_arg" = "invalid" ; then
3138 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3139 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3140 { (exit 1); exit 1; }; }
3142 ol_enable_sock="$ol_arg"
3145 ol_enable_sock=${ol_enable_backends:-no}
3148 # OpenLDAP --enable-sql
3150 # Check whether --enable-sql or --disable-sql was given.
3151 if test "${enable_sql+set}" = set; then
3152 enableval="$enable_sql"
3155 for ol_val in no yes mod ; do
3156 if test "$enableval" = "$ol_val" ; then
3160 if test "$ol_arg" = "invalid" ; then
3161 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3162 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3163 { (exit 1); exit 1; }; }
3165 ol_enable_sql="$ol_arg"
3168 ol_enable_sql=${ol_enable_backends:-no}
3172 Overlays="accesslog \
3191 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3192 if test "${enable_xxslapoverlays+set}" = set; then
3193 enableval="$enable_xxslapoverlays"
3197 # OpenLDAP --enable-overlays
3199 # Check whether --enable-overlays or --disable-overlays was given.
3200 if test "${enable_overlays+set}" = set; then
3201 enableval="$enable_overlays"
3204 for ol_val in no yes mod ; do
3205 if test "$enableval" = "$ol_val" ; then
3209 if test "$ol_arg" = "invalid" ; then
3210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3211 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3212 { (exit 1); exit 1; }; }
3214 ol_enable_overlays="$ol_arg"
3217 # end --enable-overlays
3218 # OpenLDAP --enable-accesslog
3220 # Check whether --enable-accesslog or --disable-accesslog was given.
3221 if test "${enable_accesslog+set}" = set; then
3222 enableval="$enable_accesslog"
3225 for ol_val in no yes mod ; do
3226 if test "$enableval" = "$ol_val" ; then
3230 if test "$ol_arg" = "invalid" ; then
3231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3233 { (exit 1); exit 1; }; }
3235 ol_enable_accesslog="$ol_arg"
3238 ol_enable_accesslog=${ol_enable_overlays:-no}
3240 # end --enable-accesslog
3242 # OpenLDAP --enable-auditlog
3244 # Check whether --enable-auditlog or --disable-auditlog was given.
3245 if test "${enable_auditlog+set}" = set; then
3246 enableval="$enable_auditlog"
3249 for ol_val in no yes mod ; do
3250 if test "$enableval" = "$ol_val" ; then
3254 if test "$ol_arg" = "invalid" ; then
3255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3257 { (exit 1); exit 1; }; }
3259 ol_enable_auditlog="$ol_arg"
3262 ol_enable_auditlog=${ol_enable_overlays:-no}
3264 # end --enable-auditlog
3266 # OpenLDAP --enable-collect
3268 # Check whether --enable-collect or --disable-collect was given.
3269 if test "${enable_collect+set}" = set; then
3270 enableval="$enable_collect"
3273 for ol_val in no yes mod ; do
3274 if test "$enableval" = "$ol_val" ; then
3278 if test "$ol_arg" = "invalid" ; then
3279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3281 { (exit 1); exit 1; }; }
3283 ol_enable_collect="$ol_arg"
3286 ol_enable_collect=${ol_enable_overlays:-no}
3288 # end --enable-collect
3290 # OpenLDAP --enable-constraint
3292 # Check whether --enable-constraint or --disable-constraint was given.
3293 if test "${enable_constraint+set}" = set; then
3294 enableval="$enable_constraint"
3297 for ol_val in no yes mod ; do
3298 if test "$enableval" = "$ol_val" ; then
3302 if test "$ol_arg" = "invalid" ; then
3303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3305 { (exit 1); exit 1; }; }
3307 ol_enable_constraint="$ol_arg"
3310 ol_enable_constraint=${ol_enable_overlays:-no}
3312 # end --enable-constraint
3314 # OpenLDAP --enable-dds
3316 # Check whether --enable-dds or --disable-dds was given.
3317 if test "${enable_dds+set}" = set; then
3318 enableval="$enable_dds"
3321 for ol_val in no yes mod ; do
3322 if test "$enableval" = "$ol_val" ; then
3326 if test "$ol_arg" = "invalid" ; then
3327 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3329 { (exit 1); exit 1; }; }
3331 ol_enable_dds="$ol_arg"
3334 ol_enable_dds=${ol_enable_overlays:-no}
3338 # OpenLDAP --enable-dyngroup
3340 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3341 if test "${enable_dyngroup+set}" = set; then
3342 enableval="$enable_dyngroup"
3345 for ol_val in no yes mod ; do
3346 if test "$enableval" = "$ol_val" ; then
3350 if test "$ol_arg" = "invalid" ; then
3351 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3353 { (exit 1); exit 1; }; }
3355 ol_enable_dyngroup="$ol_arg"
3358 ol_enable_dyngroup=${ol_enable_overlays:-no}
3360 # end --enable-dyngroup
3362 # OpenLDAP --enable-dynlist
3364 # Check whether --enable-dynlist or --disable-dynlist was given.
3365 if test "${enable_dynlist+set}" = set; then
3366 enableval="$enable_dynlist"
3369 for ol_val in no yes mod ; do
3370 if test "$enableval" = "$ol_val" ; then
3374 if test "$ol_arg" = "invalid" ; then
3375 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3377 { (exit 1); exit 1; }; }
3379 ol_enable_dynlist="$ol_arg"
3382 ol_enable_dynlist=${ol_enable_overlays:-no}
3384 # end --enable-dynlist
3386 # OpenLDAP --enable-memberof
3388 # Check whether --enable-memberof or --disable-memberof was given.
3389 if test "${enable_memberof+set}" = set; then
3390 enableval="$enable_memberof"
3393 for ol_val in no yes mod ; do
3394 if test "$enableval" = "$ol_val" ; then
3398 if test "$ol_arg" = "invalid" ; then
3399 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3401 { (exit 1); exit 1; }; }
3403 ol_enable_memberof="$ol_arg"
3406 ol_enable_memberof=${ol_enable_overlays:-no}
3408 # end --enable-memberof
3410 # OpenLDAP --enable-ppolicy
3412 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3413 if test "${enable_ppolicy+set}" = set; then
3414 enableval="$enable_ppolicy"
3417 for ol_val in no yes mod ; do
3418 if test "$enableval" = "$ol_val" ; then
3422 if test "$ol_arg" = "invalid" ; then
3423 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3425 { (exit 1); exit 1; }; }
3427 ol_enable_ppolicy="$ol_arg"
3430 ol_enable_ppolicy=${ol_enable_overlays:-no}
3432 # end --enable-ppolicy
3434 # OpenLDAP --enable-proxycache
3436 # Check whether --enable-proxycache or --disable-proxycache was given.
3437 if test "${enable_proxycache+set}" = set; then
3438 enableval="$enable_proxycache"
3441 for ol_val in no yes mod ; do
3442 if test "$enableval" = "$ol_val" ; then
3446 if test "$ol_arg" = "invalid" ; then
3447 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3449 { (exit 1); exit 1; }; }
3451 ol_enable_proxycache="$ol_arg"
3454 ol_enable_proxycache=${ol_enable_overlays:-no}
3456 # end --enable-proxycache
3458 # OpenLDAP --enable-refint
3460 # Check whether --enable-refint or --disable-refint was given.
3461 if test "${enable_refint+set}" = set; then
3462 enableval="$enable_refint"
3465 for ol_val in no yes mod ; do
3466 if test "$enableval" = "$ol_val" ; then
3470 if test "$ol_arg" = "invalid" ; then
3471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3473 { (exit 1); exit 1; }; }
3475 ol_enable_refint="$ol_arg"
3478 ol_enable_refint=${ol_enable_overlays:-no}
3480 # end --enable-refint
3482 # OpenLDAP --enable-retcode
3484 # Check whether --enable-retcode or --disable-retcode was given.
3485 if test "${enable_retcode+set}" = set; then
3486 enableval="$enable_retcode"
3489 for ol_val in no yes mod ; do
3490 if test "$enableval" = "$ol_val" ; then
3494 if test "$ol_arg" = "invalid" ; then
3495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3497 { (exit 1); exit 1; }; }
3499 ol_enable_retcode="$ol_arg"
3502 ol_enable_retcode=${ol_enable_overlays:-no}
3504 # end --enable-retcode
3506 # OpenLDAP --enable-rwm
3508 # Check whether --enable-rwm or --disable-rwm was given.
3509 if test "${enable_rwm+set}" = set; then
3510 enableval="$enable_rwm"
3513 for ol_val in no yes mod ; do
3514 if test "$enableval" = "$ol_val" ; then
3518 if test "$ol_arg" = "invalid" ; then
3519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3521 { (exit 1); exit 1; }; }
3523 ol_enable_rwm="$ol_arg"
3526 ol_enable_rwm=${ol_enable_overlays:-no}
3530 # OpenLDAP --enable-seqmod
3532 # Check whether --enable-seqmod or --disable-seqmod was given.
3533 if test "${enable_seqmod+set}" = set; then
3534 enableval="$enable_seqmod"
3537 for ol_val in no yes mod ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3545 { (exit 1); exit 1; }; }
3547 ol_enable_seqmod="$ol_arg"
3550 ol_enable_seqmod=${ol_enable_overlays:-yes}
3552 # end --enable-seqmod
3554 # OpenLDAP --enable-syncprov
3556 # Check whether --enable-syncprov or --disable-syncprov was given.
3557 if test "${enable_syncprov+set}" = set; then
3558 enableval="$enable_syncprov"
3561 for ol_val in no yes mod ; do
3562 if test "$enableval" = "$ol_val" ; then
3566 if test "$ol_arg" = "invalid" ; then
3567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3569 { (exit 1); exit 1; }; }
3571 ol_enable_syncprov="$ol_arg"
3574 ol_enable_syncprov=${ol_enable_overlays:-yes}
3576 # end --enable-syncprov
3578 # OpenLDAP --enable-translucent
3580 # Check whether --enable-translucent or --disable-translucent was given.
3581 if test "${enable_translucent+set}" = set; then
3582 enableval="$enable_translucent"
3585 for ol_val in no yes mod ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_translucent="$ol_arg"
3598 ol_enable_translucent=${ol_enable_overlays:-no}
3600 # end --enable-translucent
3602 # OpenLDAP --enable-unique
3604 # Check whether --enable-unique or --disable-unique was given.
3605 if test "${enable_unique+set}" = set; then
3606 enableval="$enable_unique"
3609 for ol_val in no yes mod ; do
3610 if test "$enableval" = "$ol_val" ; then
3614 if test "$ol_arg" = "invalid" ; then
3615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3617 { (exit 1); exit 1; }; }
3619 ol_enable_unique="$ol_arg"
3622 ol_enable_unique=${ol_enable_overlays:-no}
3624 # end --enable-unique
3626 # OpenLDAP --enable-valsort
3628 # Check whether --enable-valsort or --disable-valsort was given.
3629 if test "${enable_valsort+set}" = set; then
3630 enableval="$enable_valsort"
3633 for ol_val in no yes mod ; do
3634 if test "$enableval" = "$ol_val" ; then
3638 if test "$ol_arg" = "invalid" ; then
3639 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3641 { (exit 1); exit 1; }; }
3643 ol_enable_valsort="$ol_arg"
3646 ol_enable_valsort=${ol_enable_overlays:-no}
3648 # end --enable-valsort
3651 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3652 if test "${enable_xxliboptions+set}" = set; then
3653 enableval="$enable_xxliboptions"
3656 # Check whether --enable-static or --disable-static was given.
3657 if test "${enable_static+set}" = set; then
3658 enableval="$enable_static"
3659 p=${PACKAGE-default}
3661 yes) enable_static=yes ;;
3662 no) enable_static=no ;;
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3680 # Check whether --enable-shared or --disable-shared was given.
3681 if test "${enable_shared+set}" = set; then
3682 enableval="$enable_shared"
3683 p=${PACKAGE-default}
3685 yes) enable_shared=yes ;;
3686 no) enable_shared=no ;;
3689 # Look at the argument we got. We use all the common list separators.
3690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691 for pkg in $enableval; do
3693 if test "X$pkg" = "X$p"; then
3707 if test $ol_enable_slapd = no ; then
3708 if test $ol_enable_slapi = yes ; then
3709 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3712 case "$ol_enable_backends" in yes | mod)
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3716 for i in $Backends; do
3717 eval "ol_tmp=\$ol_enable_$i"
3718 if test $ol_tmp != no ; then
3719 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721 eval "ol_enable_$i=no"
3724 if test $ol_enable_modules = yes ; then
3725 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3726 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3728 if test $ol_enable_wrappers = yes ; then
3729 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3730 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3732 if test $ol_enable_rlookups = yes ; then
3733 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3734 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3736 if test $ol_enable_dynacl = yes ; then
3737 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3740 if test $ol_enable_aci != no ; then
3741 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3744 if test $ol_enable_rewrite = yes ; then
3745 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3746 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3748 case "$ol_enable_overlays" in yes | mod)
3749 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3750 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3752 for i in $Overlays; do
3753 eval "ol_tmp=\$ol_enable_$i"
3754 if test $ol_tmp != no ; then
3755 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3756 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3757 eval "ol_enable_$i=no"
3761 # force settings to no
3766 ol_enable_modules=no
3767 ol_enable_rlookups=no
3770 ol_enable_wrappers=no
3772 ol_enable_rewrite=no
3774 elif test $ol_enable_modules != yes &&
3775 test $ol_enable_bdb = no &&
3776 test $ol_enable_dnssrv = no &&
3777 test $ol_enable_hdb = no &&
3778 test $ol_enable_ldap = no &&
3779 test $ol_enable_meta = no &&
3780 test $ol_enable_monitor = no &&
3781 test $ol_enable_ndb = no &&
3782 test $ol_enable_null = no &&
3783 test $ol_enable_passwd = no &&
3784 test $ol_enable_perl = no &&
3785 test $ol_enable_relay = no &&
3786 test $ol_enable_shell = no &&
3787 test $ol_enable_sock = no &&
3788 test $ol_enable_sql = no ; then
3790 if test $ol_enable_slapd = yes ; then
3791 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3792 echo "$as_me: error: slapd requires a backend" >&2;}
3793 { (exit 1); exit 1; }; }
3795 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3796 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3801 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3802 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3803 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3804 { (exit 1); exit 1; }; }
3807 if test $ol_enable_lmpasswd = yes ; then
3808 if test $ol_with_tls = no ; then
3809 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811 { (exit 1); exit 1; }; }
3815 if test $ol_enable_spasswd = yes ; then
3816 if test $ol_with_cyrus_sasl = no ; then
3817 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3818 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3819 { (exit 1); exit 1; }; }
3821 ol_with_cyrus_sasl=yes
3824 echo "$as_me:$LINENO: result: done" >&5
3825 echo "${ECHO_T}done" >&6
3874 BUILD_TRANSLUCENT=no
3878 SLAPD_STATIC_OVERLAYS=
3879 SLAPD_DYNAMIC_OVERLAYS=
3881 SLAPD_MODULES_LDFLAGS=
3882 SLAPD_MODULES_CPPFLAGS=
3884 SLAPD_STATIC_BACKENDS=back-ldif
3885 SLAPD_DYNAMIC_BACKENDS=
3912 cat >>confdefs.h <<\_ACEOF
3913 #define HAVE_MKVERSION 1
3921 *-*-aix*) if test -z "$CC" ; then
3922 case "$ol_with_threads" in
3923 auto | yes | posix) ol_aix_threads=yes ;;
3929 if test $ol_aix_threads = yes ; then
3930 if test -z "${CC}" ; then
3931 for ac_prog in cc_r xlc_r cc
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_prog_CC+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_CC="$ac_prog"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CC"; then
3961 echo "$as_me:$LINENO: result: $CC" >&5
3962 echo "${ECHO_T}$CC" >&6
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3968 test -n "$CC" && break
3972 if test "$CC" = cc ; then
3973 if test $ol_with_threads != auto ; then
3974 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3975 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3976 { (exit 1); exit 1; }; }
3978 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3979 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3985 case ${CC} in cc_r | xlc_r)
3986 ol_with_threads=posix
3987 ol_cv_pthread_create=yes
3992 if test -z "${CC}"; then
3993 for ac_prog in cc gcc
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_CC+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$CC"; then
4003 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_CC="$ac_prog"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 if test -n "$CC"; then
4023 echo "$as_me:$LINENO: result: $CC" >&5
4024 echo "${ECHO_T}$CC" >&6
4026 echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4030 test -n "$CC" && break
4032 test -n "$CC" || CC="missing"
4035 if test "${CC}" = "missing" ; then
4036 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4037 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4038 { (exit 1); exit 1; }; }
4042 if test -z "${AR}"; then
4043 for ac_prog in ar gar
4045 # Extract the first word of "$ac_prog", so it can be a program name with args.
4046 set dummy $ac_prog; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_AR+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$AR"; then
4053 ac_cv_prog_AR="$AR" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_AR="$ac_prog"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$AR"; then
4073 echo "$as_me:$LINENO: result: $AR" >&5
4074 echo "${ECHO_T}$AR" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4080 test -n "$AR" && break
4082 test -n "$AR" || AR="missing"
4085 if test "${AR}" = "missing" ; then
4086 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4087 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4088 { (exit 1); exit 1; }; }
4096 # Check whether --enable-fast-install or --disable-fast-install was given.
4097 if test "${enable_fast_install+set}" = set; then
4098 enableval="$enable_fast_install"
4099 p=${PACKAGE-default}
4101 yes) enable_fast_install=yes ;;
4102 no) enable_fast_install=no ;;
4104 enable_fast_install=no
4105 # Look at the argument we got. We use all the common list separators.
4106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4107 for pkg in $enableval; do
4109 if test "X$pkg" = "X$p"; then
4110 enable_fast_install=yes
4117 enable_fast_install=yes
4120 DEPDIR="${am__leading_dot}deps"
4122 ac_config_commands="$ac_config_commands depfiles"
4125 am_make=${MAKE-make}
4126 cat > confinc << 'END'
4131 # If we don't find an include directive, just comment out the code.
4132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4137 # First try GNU make style include.
4138 echo "include confinc" > confmf
4139 # We grep out `Entering directory' and `Leaving directory'
4140 # messages which can occur if `w' ends up in MAKEFLAGS.
4141 # In particular we don't look at `^make:' because GNU make might
4142 # be invoked under some other name (usually "gmake"), in which
4143 # case it prints its new name instead of `make'.
4144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4149 # Now try BSD make style include.
4150 if test "$am__include" = "#"; then
4151 echo '.include "confinc"' > confmf
4152 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4153 am__include=.include
4160 echo "$as_me:$LINENO: result: $_am_result" >&5
4161 echo "${ECHO_T}$_am_result" >&6
4162 rm -f confinc confmf
4164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4165 if test "${enable_dependency_tracking+set}" = set; then
4166 enableval="$enable_dependency_tracking"
4169 if test "x$enable_dependency_tracking" != xno; then
4170 am_depcomp="$ac_aux_dir/depcomp"
4175 if test "x$enable_dependency_tracking" != xno; then
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_prog_CC+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 if test -n "$CC"; then
4219 echo "$as_me:$LINENO: result: $CC" >&5
4220 echo "${ECHO_T}$CC" >&6
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4227 if test -z "$ac_cv_prog_CC"; then
4229 # Extract the first word of "gcc", so it can be a program name with args.
4230 set dummy gcc; ac_word=$2
4231 echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 if test -n "$ac_ct_CC"; then
4237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_ac_ct_CC="gcc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256 if test -n "$ac_ct_CC"; then
4257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4258 echo "${ECHO_T}$ac_ct_CC" >&6
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4269 if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}cc; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="${ac_tool_prefix}cc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 if test -n "$CC"; then
4299 echo "$as_me:$LINENO: result: $CC" >&5
4300 echo "${ECHO_T}$CC" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4307 if test -z "$ac_cv_prog_CC"; then
4309 # Extract the first word of "cc", so it can be a program name with args.
4310 set dummy cc; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$ac_ct_CC"; then
4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_ac_ct_CC="cc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336 if test -n "$ac_ct_CC"; then
4337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4338 echo "${ECHO_T}$ac_ct_CC" >&6
4340 echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4350 if test -z "$CC"; then
4351 # Extract the first word of "cc", so it can be a program name with args.
4352 set dummy cc; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$CC"; then
4359 ac_cv_prog_CC="$CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4370 ac_prog_rejected=yes
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test $ac_prog_rejected = yes; then
4381 # We found a bogon in the path, so make sure we never use it.
4382 set dummy $ac_cv_prog_CC
4384 if test $# != 0; then
4385 # We chose a different compiler from the bogus one.
4386 # However, it has the same basename, so the bogon will be chosen
4387 # first if we set CC to just the basename; use the full file name.
4389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4395 if test -n "$CC"; then
4396 echo "$as_me:$LINENO: result: $CC" >&5
4397 echo "${ECHO_T}$CC" >&6
4399 echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4404 if test -z "$CC"; then
4405 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_CC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 if test -n "$CC"; then
4436 echo "$as_me:$LINENO: result: $CC" >&5
4437 echo "${ECHO_T}$CC" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4443 test -n "$CC" && break
4446 if test -z "$CC"; then
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if test -n "$ac_ct_CC"; then
4458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_CC="$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4477 if test -n "$ac_ct_CC"; then
4478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4479 echo "${ECHO_T}$ac_ct_CC" >&6
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4485 test -n "$ac_ct_CC" && break
4494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4495 See \`config.log' for more details." >&5
4496 echo "$as_me: error: no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details." >&2;}
4498 { (exit 1); exit 1; }; }
4500 # Provide some information about the compiler.
4501 echo "$as_me:$LINENO:" \
4502 "checking for C compiler version" >&5
4503 ac_compiler=`set X $ac_compile; echo $2`
4504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4505 (eval $ac_compiler --version </dev/null >&5) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }
4509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4510 (eval $ac_compiler -v </dev/null >&5) 2>&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }
4514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4515 (eval $ac_compiler -V </dev/null >&5) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4544 (eval $ac_link_default) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 # Find the output, starting from the most likely. This scheme is
4549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4552 # Be careful to initialize this variable, since it used to be cached.
4553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4555 # b.out is created by i960 compilers.
4556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4558 test -f "$ac_file" || continue
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4563 # This is the source file.
4566 # We found the default executable, but exeext='' is most
4570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571 # FIXME: I believe we export ac_cv_exeext for Libtool,
4572 # but it would be cool to find out if it's true. Does anybody
4573 # maintain Libtool? --akim.
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: C compiler cannot create executables
4587 See \`config.log' for more details." >&2;}
4588 { (exit 77); exit 77; }; }
4591 ac_exeext=$ac_cv_exeext
4592 echo "$as_me:$LINENO: result: $ac_file" >&5
4593 echo "${ECHO_T}$ac_file" >&6
4595 # Check the compiler produces executables we can run. If not, either
4596 # the compiler is broken, or we cross compile.
4597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4600 # If not cross compiling, check that we can run a simple program.
4601 if test "$cross_compiling" != yes; then
4602 if { ac_try='./$ac_file'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4610 if test "$cross_compiling" = maybe; then
4613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4614 If you meant to cross compile, use \`--host'.
4615 See \`config.log' for more details." >&5
4616 echo "$as_me: error: cannot run C compiled programs.
4617 If you meant to cross compile, use \`--host'.
4618 See \`config.log' for more details." >&2;}
4619 { (exit 1); exit 1; }; }
4623 echo "$as_me:$LINENO: result: yes" >&5
4624 echo "${ECHO_T}yes" >&6
4626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4627 ac_clean_files=$ac_clean_files_save
4628 # Check the compiler produces executables we can run. If not, either
4629 # the compiler is broken, or we cross compile.
4630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4633 echo "${ECHO_T}$cross_compiling" >&6
4635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; then
4642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4644 # work properly (i.e., refer to `conftest.exe'), while it won't with
4646 for ac_file in conftest.exe conftest conftest.*; do
4647 test -f "$ac_file" || continue
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; }
4664 rm -f conftest$ac_cv_exeext
4665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4666 echo "${ECHO_T}$ac_cv_exeext" >&6
4668 rm -f conftest.$ac_ext
4669 EXEEXT=$ac_cv_exeext
4671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4673 if test "${ac_cv_objext+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 cat >conftest.$ac_ext <<_ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4691 rm -f conftest.o conftest.obj
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 (eval $ac_compile) 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; then
4697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4718 echo "${ECHO_T}$ac_cv_objext" >&6
4719 OBJEXT=$ac_cv_objext
4721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag"
4754 || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4779 GCC=`test $ac_compiler_gnu = yes && echo yes`
4780 ac_test_CFLAGS=${CFLAGS+set}
4781 ac_save_CFLAGS=$CFLAGS
4783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4785 if test "${ac_cv_prog_cc_g+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4836 if test "$ac_test_CFLAGS" = set; then
4837 CFLAGS=$ac_save_CFLAGS
4838 elif test $ac_cv_prog_cc_g = yes; then
4839 if test "$GCC" = yes; then
4845 if test "$GCC" = yes; then
4851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 ac_cv_prog_cc_stdc=no
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4866 #include <sys/types.h>
4867 #include <sys/stat.h>
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4882 s = g (p, va_arg (v,int));
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std1 is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std1. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896 int test (int i, double x);
4897 struct s1 {int (*f) (int a);};
4898 struct s2 {int (*f) (double a);};
4899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4910 # Don't try gcc -ansi; that turns off useful extensions and
4911 # breaks some systems' header files.
4912 # AIX -qlanglvl=ansi
4913 # Ultrix and OSF/1 -std1
4914 # HP-UX 10.20 and later -Ae
4915 # HP-UX older versions -Aa -D_HPUX_SOURCE
4916 # SVR4 -Xc -D__EXTENSIONS__
4917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4919 CC="$ac_save_CC $ac_arg"
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4924 grep -v '^ *+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_prog_cc_stdc=$ac_arg
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4949 rm -f conftest.err conftest.$ac_objext
4951 rm -f conftest.$ac_ext conftest.$ac_objext
4956 case "x$ac_cv_prog_cc_stdc" in
4958 echo "$as_me:$LINENO: result: none needed" >&5
4959 echo "${ECHO_T}none needed" >&6 ;;
4961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4963 CC="$CC $ac_cv_prog_cc_stdc" ;;
4966 # Some people use a C++ compiler to compile C. Since we use `exit',
4967 # in C++ we need to declare it. In case someone uses the same compiler
4968 # for both compiling C and C++ we need to have the C++ compiler decide
4969 # the declaration of exit, since it's the most demanding environment.
4970 cat >conftest.$ac_ext <<_ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 for ac_declaration in \
4999 'extern "C" void std::exit (int) throw (); using std::exit;' \
5000 'extern "C" void std::exit (int); using std::exit;' \
5001 'extern "C" void exit (int) throw ();' \
5002 'extern "C" void exit (int);' \
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1 >conftest.err
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 if test -n "$ac_declaration"; then
5098 echo '#ifdef __cplusplus' >>confdefs.h
5099 echo $ac_declaration >>confdefs.h
5100 echo '#endif' >>confdefs.h
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 depcc="$CC" am_compiler_list=
5117 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5119 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5123 # We make a subdir and do the tests there. Otherwise we can end up
5124 # making bogus files that we don't know about and never remove. For
5125 # instance it was reported that on HP-UX the gcc test will end up
5126 # making a dummy file named `D' -- because `-MD' means `put the output
5129 # Copy depcomp to subdir because otherwise we won't find it if we're
5130 # using a relative directory.
5131 cp "$am_depcomp" conftest.dir
5133 # We will build objects and dependencies in a subdirectory because
5134 # it helps to detect inapplicable dependency modes. For instance
5135 # both Tru64's cc and ICC support -MD to output dependencies as a
5136 # side effect of compilation, but ICC will put the dependencies in
5137 # the current directory while Tru64 will put them in the object
5141 am_cv_CC_dependencies_compiler_type=none
5142 if test "$am_compiler_list" = ""; then
5143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5145 for depmode in $am_compiler_list; do
5146 # Setup a source with many dependencies, because some compilers
5147 # like to wrap large dependency lists on column 80 (with \), and
5148 # we should not choose a depcomp mode which is confused by this.
5150 # We need to recreate these files for each test, as the compiler may
5151 # overwrite some of them when testing with obscure command lines.
5152 # This happens at least with the AIX C compiler.
5154 for i in 1 2 3 4 5 6; do
5155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5157 # Solaris 8's {/usr,}/bin/sh.
5158 touch sub/conftst$i.h
5160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5164 # after this tag, mechanisms are not by side-effect, so they'll
5165 # only be used when explicitly requested
5166 if test "x$enable_dependency_tracking" = xyes; then
5174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5175 # mode. It turns out that the SunPro C++ compiler does not properly
5176 # handle `-M -o', and we need to detect this.
5177 if depmode=$depmode \
5178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5181 >/dev/null 2>conftest.err &&
5182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5185 # icc doesn't choke on unknown options, it will just issue warnings
5186 # or remarks (even with -Werror). So we grep stderr for any message
5187 # that says an option was ignored or not supported.
5188 # When given -MP, icc 7.0 and 7.1 complain thusly:
5189 # icc: Command line warning: ignoring option '-M'; no argument required
5190 # The diagnosis changed in icc 8.0:
5191 # icc: Command line remark: option '-MP' not supported
5192 if (grep 'ignoring option' conftest.err ||
5193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5194 am_cv_CC_dependencies_compiler_type=$depmode
5203 am_cv_CC_dependencies_compiler_type=none
5207 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5214 test "x$enable_dependency_tracking" != xno \
5215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5217 am__fastdepCC_FALSE='#'
5219 am__fastdepCC_TRUE='#'
5220 am__fastdepCC_FALSE=
5224 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5225 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5226 if test "${lt_cv_path_SED+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 # Loop through the user's path and test for sed and gsed.
5230 # Then use that list of sed's as ones to test for truncation.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for lt_ac_prog in sed gsed; do
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5239 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5246 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5247 # along with /bin/sed that truncates output.
5248 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5249 test ! -f $lt_ac_sed && continue
5250 cat /dev/null > conftest.in
5252 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5253 # Check for GNU sed and select it if it is found.
5254 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5255 lt_cv_path_SED=$lt_ac_sed
5259 cat conftest.in conftest.in >conftest.tmp
5260 mv conftest.tmp conftest.in
5261 cp conftest.in conftest.nl
5263 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5264 cmp -s conftest.out conftest.nl || break
5265 # 10000 chars as input seems more than enough
5266 test $lt_ac_count -gt 10 && break
5267 lt_ac_count=`expr $lt_ac_count + 1`
5268 if test $lt_ac_count -gt $lt_ac_max; then
5269 lt_ac_max=$lt_ac_count
5270 lt_cv_path_SED=$lt_ac_sed
5278 echo "$as_me:$LINENO: result: $SED" >&5
5279 echo "${ECHO_T}$SED" >&6
5281 echo "$as_me:$LINENO: checking for egrep" >&5
5282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5283 if test "${ac_cv_prog_egrep+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5287 then ac_cv_prog_egrep='grep -E'
5288 else ac_cv_prog_egrep='egrep'
5291 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5292 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5293 EGREP=$ac_cv_prog_egrep
5297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5298 if test "${with_gnu_ld+set}" = set; then
5299 withval="$with_gnu_ld"
5300 test "$withval" = no || with_gnu_ld=yes
5305 if test "$GCC" = yes; then
5306 # Check if gcc -print-prog-name=ld gives a path.
5307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5311 # gcc leaves a trailing carriage return which upsets mingw
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5317 # Accept absolute paths.
5319 re_direlt='/[^/][^/]*/\.\./'
5320 # Canonicalize the pathname of ld
5321 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5323 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5325 test -z "$LD" && LD="$ac_prog"
5328 # If it fails, then pretend we aren't using GCC.
5332 # If it is relative, then search for the first ld in PATH.
5336 elif test "$with_gnu_ld" = yes; then
5337 echo "$as_me:$LINENO: checking for GNU ld" >&5
5338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5343 if test "${lt_cv_path_LD+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 if test -z "$LD"; then
5347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD="$ac_dir/$ac_prog"
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test "$with_gnu_ld" != no && break
5361 test "$with_gnu_ld" != yes && break
5368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5373 if test -n "$LD"; then
5374 echo "$as_me:$LINENO: result: $LD" >&5
5375 echo "${ECHO_T}$LD" >&6
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5382 { (exit 1); exit 1; }; }
5383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5389 case `$LD -v 2>&1 </dev/null` in
5390 *GNU* | *'with BFD'*)
5391 lt_cv_prog_gnu_ld=yes
5394 lt_cv_prog_gnu_ld=no
5398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5400 with_gnu_ld=$lt_cv_prog_gnu_ld
5403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5405 if test "${lt_cv_ld_reload_flag+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 lt_cv_ld_reload_flag='-r'
5410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5412 reload_flag=$lt_cv_ld_reload_flag
5413 case $reload_flag in
5415 *) reload_flag=" $reload_flag" ;;
5417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5420 if test "$GCC" = yes; then
5421 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5428 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5429 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5430 if test "${lt_cv_path_NM+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 if test -n "$NM"; then
5434 # Let the user override the test.
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5440 test -z "$ac_dir" && ac_dir=.
5441 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5442 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5443 # Check to see if the nm accepts a BSD-compat flag.
5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445 # nm: unknown option "B" ignored
5446 # Tru64's nm complains that /dev/null is an invalid object file
5447 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5448 */dev/null* | *'Invalid file or object type'*)
5449 lt_cv_path_NM="$tmp_nm -B"
5453 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5455 lt_cv_path_NM="$tmp_nm -p"
5459 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5460 continue # so that we can try to find one that supports BSD flags
5467 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5470 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5471 echo "${ECHO_T}$lt_cv_path_NM" >&6
5474 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5475 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5477 if test "$LN_S" = "ln -s"; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479 echo "${ECHO_T}yes" >&6
5481 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5482 echo "${ECHO_T}no, using $LN_S" >&6
5485 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5486 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5487 if test "${lt_cv_deplibs_check_method+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 lt_cv_file_magic_cmd='$MAGIC_CMD'
5491 lt_cv_file_magic_test_file=
5492 lt_cv_deplibs_check_method='unknown'
5493 # Need to set the preceding variable on all platforms that support
5494 # interlibrary dependencies.
5495 # 'none' -- dependencies not supported.
5496 # `unknown' -- same as none, but documents that we really don't know.
5497 # 'pass_all' -- all dependencies passed with no checks.
5498 # 'test_compile' -- check by making test program.
5499 # 'file_magic [[regex]]' -- check by looking for files in library path
5500 # which responds to the $file_magic_cmd with a given extended regex.
5501 # If you have `file' or equivalent on your system and you're not sure
5502 # whether `pass_all' will *always* work, you probably want this one.
5506 lt_cv_deplibs_check_method=pass_all
5510 lt_cv_deplibs_check_method=pass_all
5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5515 lt_cv_file_magic_cmd='/usr/bin/file -L'
5516 lt_cv_file_magic_test_file=/shlib/libc.so
5520 # func_win32_libid is a shell function defined in ltmain.sh
5521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522 lt_cv_file_magic_cmd='func_win32_libid'
5526 # Base MSYS/MinGW do not provide the 'file' command needed by
5527 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5528 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5529 lt_cv_file_magic_cmd='$OBJDUMP -f'
5532 darwin* | rhapsody*)
5533 lt_cv_deplibs_check_method=pass_all
5536 freebsd* | kfreebsd*-gnu | dragonfly*)
5537 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5540 # Not sure whether the presence of OpenBSD here was a mistake.
5541 # Let's accept both of them until this is cleared up.
5542 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5543 lt_cv_file_magic_cmd=/usr/bin/file
5544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5548 lt_cv_deplibs_check_method=pass_all
5553 lt_cv_deplibs_check_method=pass_all
5556 hpux10.20* | hpux11*)
5557 lt_cv_file_magic_cmd=/usr/bin/file
5560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5561 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5565 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5569 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5574 irix5* | irix6* | nonstopux*)
5576 *-32|*"-32 ") libmagic=32-bit;;
5577 *-n32|*"-n32 ") libmagic=N32;;
5578 *-64|*"-64 ") libmagic=64-bit;;
5579 *) libmagic=never-match;;
5581 lt_cv_deplibs_check_method=pass_all
5584 # This must be Linux ELF.
5586 lt_cv_deplibs_check_method=pass_all
5590 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5599 lt_cv_file_magic_cmd=/usr/bin/file
5600 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5604 lt_cv_deplibs_check_method=unknown
5608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5615 osf3* | osf4* | osf5*)
5616 lt_cv_deplibs_check_method=pass_all
5620 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_deplibs_check_method=pass_all
5627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5628 case $host_vendor in
5630 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]'
5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5634 lt_cv_deplibs_check_method=pass_all
5637 lt_cv_file_magic_cmd='/bin/file'
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5641 lt_cv_file_magic_cmd='/bin/file'
5642 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5643 lt_cv_file_magic_test_file=/lib/libc.so
5646 lt_cv_deplibs_check_method=pass_all
5651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5652 lt_cv_deplibs_check_method=pass_all
5657 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5659 file_magic_cmd=$lt_cv_file_magic_cmd
5660 deplibs_check_method=$lt_cv_deplibs_check_method
5661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5666 # If no C compiler was specified, use CC.
5669 # Allow CC to be a program name with arguments.
5673 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5674 if test "${enable_libtool_lock+set}" = set; then
5675 enableval="$enable_libtool_lock"
5678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5680 # Some flags need to be propagated to the compiler or linker for good
5684 # Find out which ABI we are using.
5685 echo 'int i;' > conftest.$ac_ext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; then
5691 case `/usr/bin/file conftest.$ac_objext` in
5703 # Find out which ABI we are using.
5704 echo '#line 5704 "configure"' > conftest.$ac_ext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; then
5710 if test "$lt_cv_prog_gnu_ld" = yes; then
5711 case `/usr/bin/file conftest.$ac_objext` in
5713 LD="${LD-ld} -melf32bsmip"
5716 LD="${LD-ld} -melf32bmipn32"
5719 LD="${LD-ld} -melf64bmip"
5723 case `/usr/bin/file conftest.$ac_objext` in
5739 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5740 # Find out which ABI we are using.
5741 echo 'int i;' > conftest.$ac_ext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 (eval $ac_compile) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; then
5747 case `/usr/bin/file conftest.o` in
5751 LD="${LD-ld} -m elf_i386"
5753 ppc64-*linux*|powerpc64-*linux*)
5754 LD="${LD-ld} -m elf32ppclinux"
5757 LD="${LD-ld} -m elf_s390"
5760 LD="${LD-ld} -m elf32_sparc"
5767 LD="${LD-ld} -m elf_x86_64"
5769 ppc*-*linux*|powerpc*-*linux*)
5770 LD="${LD-ld} -m elf64ppc"
5773 LD="${LD-ld} -m elf64_s390"
5776 LD="${LD-ld} -m elf64_sparc"
5786 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5787 SAVE_CFLAGS="$CFLAGS"
5788 CFLAGS="$CFLAGS -belf"
5789 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5790 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5791 if test "${lt_cv_cc_needs_belf+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 lt_cv_cc_needs_belf=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 lt_cv_cc_needs_belf=no
5844 rm -f conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5854 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5855 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5856 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5857 CFLAGS="$SAVE_CFLAGS"
5860 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$DLLTOOL"; then
5870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 DLLTOOL=$ac_cv_prog_DLLTOOL
5889 if test -n "$DLLTOOL"; then
5890 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5891 echo "${ECHO_T}$DLLTOOL" >&6
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5898 if test -z "$ac_cv_prog_DLLTOOL"; then
5899 ac_ct_DLLTOOL=$DLLTOOL
5900 # Extract the first word of "dlltool", so it can be a program name with args.
5901 set dummy dlltool; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 if test -n "$ac_ct_DLLTOOL"; then
5908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5928 if test -n "$ac_ct_DLLTOOL"; then
5929 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5930 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5936 DLLTOOL=$ac_ct_DLLTOOL
5938 DLLTOOL="$ac_cv_prog_DLLTOOL"
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}as; ac_word=$2
5944 echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5946 if test "${ac_cv_prog_AS+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test -n "$AS"; then
5950 ac_cv_prog_AS="$AS" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_AS="${ac_tool_prefix}as"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 if test -n "$AS"; then
5970 echo "$as_me:$LINENO: result: $AS" >&5
5971 echo "${ECHO_T}$AS" >&6
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5978 if test -z "$ac_cv_prog_AS"; then
5980 # Extract the first word of "as", so it can be a program name with args.
5981 set dummy as; ac_word=$2
5982 echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 if test -n "$ac_ct_AS"; then
5988 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_ac_ct_AS="as"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6007 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6008 if test -n "$ac_ct_AS"; then
6009 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6010 echo "${ECHO_T}$ac_ct_AS" >&6
6012 echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6024 echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 if test -n "$OBJDUMP"; then
6030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 OBJDUMP=$ac_cv_prog_OBJDUMP
6049 if test -n "$OBJDUMP"; then
6050 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6051 echo "${ECHO_T}$OBJDUMP" >&6
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6058 if test -z "$ac_cv_prog_OBJDUMP"; then
6059 ac_ct_OBJDUMP=$OBJDUMP
6060 # Extract the first word of "objdump", so it can be a program name with args.
6061 set dummy objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 if test -n "$ac_ct_OBJDUMP"; then
6068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6088 if test -n "$ac_ct_OBJDUMP"; then
6089 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6090 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6092 echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6096 OBJDUMP=$ac_ct_OBJDUMP
6098 OBJDUMP="$ac_cv_prog_OBJDUMP"
6105 need_locks="$enable_libtool_lock"
6109 ac_cpp='$CPP $CPPFLAGS'
6110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6114 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6115 # On Suns, sometimes $CPP names a directory.
6116 if test -n "$CPP" && test -d "$CPP"; then
6119 if test -z "$CPP"; then
6120 if test "${ac_cv_prog_CPP+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 # Double quotes because CPP needs to be expanded
6124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6127 for ac_c_preproc_warn_flag in '' yes
6129 # Use a header file that comes with gcc, so configuring glibc
6130 # with a fresh cross-compiler works.
6131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132 # <limits.h> exists even on freestanding compilers.
6133 # On the NeXT, cc -E runs the code through the compiler's parser,
6134 # not just through cpp. "Syntax error" is here to catch this case.
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6142 # include <limits.h>
6144 # include <assert.h>
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null; then
6156 if test -s conftest.err; then
6157 ac_cpp_err=$ac_c_preproc_warn_flag
6158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6165 if test -z "$ac_cpp_err"; then
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 # Broken: fails on valid input.
6174 rm -f conftest.err conftest.$ac_ext
6176 # OK, works on sane cases. Now check whether non-existent headers
6177 # can be detected and how.
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <ac_nonexistent.h>
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null; then
6194 if test -s conftest.err; then
6195 ac_cpp_err=$ac_c_preproc_warn_flag
6196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203 if test -z "$ac_cpp_err"; then
6204 # Broken: success on invalid input.
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 # Passes both tests.
6214 rm -f conftest.err conftest.$ac_ext
6217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6218 rm -f conftest.err conftest.$ac_ext
6219 if $ac_preproc_ok; then
6231 echo "$as_me:$LINENO: result: $CPP" >&5
6232 echo "${ECHO_T}$CPP" >&6
6234 for ac_c_preproc_warn_flag in '' yes
6236 # Use a header file that comes with gcc, so configuring glibc
6237 # with a fresh cross-compiler works.
6238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 # <limits.h> exists even on freestanding compilers.
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp. "Syntax error" is here to catch this case.
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6249 # include <limits.h>
6251 # include <assert.h>
6255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } >/dev/null; then
6263 if test -s conftest.err; then
6264 ac_cpp_err=$ac_c_preproc_warn_flag
6265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6272 if test -z "$ac_cpp_err"; then
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 # Broken: fails on valid input.
6281 rm -f conftest.err conftest.$ac_ext
6283 # OK, works on sane cases. Now check whether non-existent headers
6284 # can be detected and how.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <ac_nonexistent.h>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310 if test -z "$ac_cpp_err"; then
6311 # Broken: success on invalid input.
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 # Passes both tests.
6321 rm -f conftest.err conftest.$ac_ext
6324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok; then
6329 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6330 See \`config.log' for more details." >&5
6331 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6332 See \`config.log' for more details." >&2;}
6333 { (exit 1); exit 1; }; }
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6345 if test "${ac_cv_header_stdc+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6367 rm -f conftest.$ac_objext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>conftest.er1
6371 grep -v '^ *+' conftest.er1 >conftest.err
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_header_stdc=yes
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 ac_cv_header_stdc=no
6396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398 if test $ac_cv_header_stdc = yes; then
6399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "memchr" >/dev/null 2>&1; then
6413 ac_cv_header_stdc=no
6419 if test $ac_cv_header_stdc = yes; then
6420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "free" >/dev/null 2>&1; then
6434 ac_cv_header_stdc=no
6440 if test $ac_cv_header_stdc = yes; then
6441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6442 if test "$cross_compiling" = yes; then
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 #if ((' ' & 0x0FF) == 0x020)
6453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6456 # define ISLOWER(c) \
6457 (('a' <= (c) && (c) <= 'i') \
6458 || ('j' <= (c) && (c) <= 'r') \
6459 || ('s' <= (c) && (c) <= 'z'))
6460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6468 for (i = 0; i < 256; i++)
6469 if (XOR (islower (i), ISLOWER (i))
6470 || toupper (i) != TOUPPER (i))
6475 rm -f conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477 (eval $ac_link) 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6488 echo "$as_me: program exited with status $ac_status" >&5
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_cv_header_stdc=no
6495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6501 if test $ac_cv_header_stdc = yes; then
6503 cat >>confdefs.h <<\_ACEOF
6504 #define STDC_HEADERS 1
6509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6520 inttypes.h stdint.h unistd.h
6522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6536 #include <$ac_header>
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_c_werror_flag"
6548 || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 eval "$as_ac_Header=yes"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 eval "$as_ac_Header=no"
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582 for ac_header in dlfcn.h
6584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 # Is the header compilable?
6595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6604 #include <$ac_header>
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_header_compiler=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_compiler=no
6635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6637 echo "${ECHO_T}$ac_header_compiler" >&6
6639 # Is the header present?
6640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 #include <$ac_header>
6650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } >/dev/null; then
6658 if test -s conftest.err; then
6659 ac_cpp_err=$ac_c_preproc_warn_flag
6660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6667 if test -z "$ac_cpp_err"; then
6668 ac_header_preproc=yes
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_header_preproc=no
6675 rm -f conftest.err conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6677 echo "${ECHO_T}$ac_header_preproc" >&6
6679 # So? What about this header?
6680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6686 ac_header_preproc=yes
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6703 ## --------------------------------------------- ##
6704 ## Report this to <http://www.openldap.org/its/> ##
6705 ## --------------------------------------------- ##
6708 sed "s/^/$as_me: WARNING: /" >&2
6711 echo "$as_me:$LINENO: checking for $ac_header" >&5
6712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 eval "$as_ac_Header=\$ac_header_preproc"
6718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6723 cat >>confdefs.h <<_ACEOF
6724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6734 # find the maximum length of command line arguments
6735 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 # On DJGPP, this test can blow up pretty badly due to problems in libc
6746 # (any single argument exceeding 2000 bytes causes a buffer overrun
6747 # during glob expansion). Even if it were fixed, the result of this
6748 # check would be larger than it should be.
6749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6753 # Under GNU Hurd, this test is not required because there is
6754 # no limit to the length of command line arguments.
6755 # Libtool will interpret -1 as no limit whatsoever
6756 lt_cv_sys_max_cmd_len=-1;
6760 # On Win9x/ME, this test blows up -- it succeeds, but takes
6761 # about 5 minutes as the teststring grows exponentially.
6762 # Worse, since 9x/ME are not pre-emptively multitasking,
6763 # you end up with a "frozen" computer, even though with patience
6764 # the test eventually succeeds (with a max line length of 256k).
6765 # Instead, let's just punt: use the minimum linelength reported by
6766 # all of the supported platforms: 8192 (on NT/2K/XP).
6767 lt_cv_sys_max_cmd_len=8192;
6771 # On AmigaOS with pdksh, this test takes hours, literally.
6772 # So we just punt and use a minimum line length of 8192.
6773 lt_cv_sys_max_cmd_len=8192;
6776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6777 # This has been around since 386BSD, at least. Likely further.
6778 if test -x /sbin/sysctl; then
6779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6780 elif test -x /usr/sbin/sysctl; then
6781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6785 # And add a safety zone
6786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6792 # nice to cause kernel panics so lets avoid the loop below.
6793 # First set a reasonable default.
6794 lt_cv_sys_max_cmd_len=16384
6796 if test -x /sbin/sysconfig; then
6797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6803 # If test is not a shell built-in, we'll probably end up computing a
6804 # maximum length that is only half of the actual maximum length, but
6806 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6807 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6808 = "XX$teststring") >/dev/null 2>&1 &&
6809 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6810 lt_cv_sys_max_cmd_len=$new_result &&
6811 test $i != 17 # 1/2 MB should be enough
6814 teststring=$teststring$teststring
6817 # Add a significant safety factor because C++ compilers can tack on massive
6818 # amounts of additional arguments before passing them to the linker.
6819 # It appears as though 1/2 is a usable value.
6820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6826 if test -n $lt_cv_sys_max_cmd_len ; then
6827 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6828 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6830 echo "$as_me:$LINENO: result: none" >&5
6831 echo "${ECHO_T}none" >&6
6837 # Check for command to grab the raw symbol name followed by C symbol from nm.
6838 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6839 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6840 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 # These are sane defaults that work on at least a few old systems.
6845 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6847 # Character class describing NM global symbol codes.
6848 symcode='[BCDEGRST]'
6850 # Regexp to match symbols that can be accessed directly from C.
6851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6853 # Transform an extracted symbol line into a proper C declaration
6854 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6856 # Transform an extracted symbol line into symbol name and symbol address
6857 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6859 # Define system-specific variables.
6864 cygwin* | mingw* | pw32*)
6865 symcode='[ABCDGISTW]'
6867 hpux*) # Its linker distinguishes data from code symbols
6868 if test "$host_cpu" = ia64; then
6869 symcode='[ABCDEGRST]'
6871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6872 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6875 if test "$host_cpu" = ia64; then
6876 symcode='[ABCDGIRSTW]'
6877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6878 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6882 symcode='[BCDEGRST]'
6885 symcode='[BCDEGQRST]'
6895 # Handle CRLF in mingw tool chain
6899 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6903 # If we're using GNU nm, then use its standard symbol codes.
6904 case `$NM -V 2>&1` in
6905 *GNU* | *'with BFD'*)
6906 symcode='[ABCDGIRSTW]' ;;
6909 # Try without a prefix undercore, then with it.
6910 for ac_symprfx in "" "_"; do
6912 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6913 symxfrm="\\1 $ac_symprfx\\2 \\2"
6915 # Write the raw and C identifiers.
6916 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6918 # Check to see that the pipe works correctly.
6922 cat > conftest.$ac_ext <<EOF
6927 void nm_test_func(){}
6931 int main(){nm_test_var='a';nm_test_func();return(0);}
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; then
6939 # Now try to grab the symbols.
6941 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6942 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && test -s "$nlist"; then
6946 # Try sorting and uniquifying the output.
6947 if sort "$nlist" | uniq > "$nlist"T; then
6948 mv -f "$nlist"T "$nlist"
6953 # Make sure that we snagged all the symbols we need.
6954 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6955 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6956 cat <<EOF > conftest.$ac_ext
6962 # Now generate the symbol file.
6963 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6965 cat <<EOF >> conftest.$ac_ext
6966 #if defined (__STDC__) && __STDC__
6967 # define lt_ptr_t void *
6969 # define lt_ptr_t char *
6973 /* The mapping between symbol names and symbols. */
6978 lt_preloaded_symbols[] =
6981 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6982 cat <<\EOF >> conftest.$ac_ext
6990 # Now try linking the two files.
6991 mv conftest.$ac_objext conftstm.$ac_objext
6992 lt_save_LIBS="$LIBS"
6993 lt_save_CFLAGS="$CFLAGS"
6994 LIBS="conftstm.$ac_objext"
6995 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7003 LIBS="$lt_save_LIBS"
7004 CFLAGS="$lt_save_CFLAGS"
7006 echo "cannot find nm_test_func in $nlist" >&5
7009 echo "cannot find nm_test_var in $nlist" >&5
7012 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7015 echo "$progname: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7018 rm -f conftest* conftst*
7020 # Do not use the global_symbol_pipe unless it works.
7021 if test "$pipe_works" = yes; then
7024 lt_cv_sys_global_symbol_pipe=
7030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031 lt_cv_sys_global_symbol_to_cdecl=
7033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034 echo "$as_me:$LINENO: result: failed" >&5
7035 echo "${ECHO_T}failed" >&6
7037 echo "$as_me:$LINENO: result: ok" >&5
7038 echo "${ECHO_T}ok" >&6
7041 echo "$as_me:$LINENO: checking for objdir" >&5
7042 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7043 if test "${lt_cv_objdir+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 rm -f .libs 2>/dev/null
7047 mkdir .libs 2>/dev/null
7048 if test -d .libs; then
7051 # MS-DOS does not allow filenames that begin with a dot.
7054 rmdir .libs 2>/dev/null
7056 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7057 echo "${ECHO_T}$lt_cv_objdir" >&6
7058 objdir=$lt_cv_objdir
7066 # AIX sometimes has problems with the GCC collect2 program. For some
7067 # reason, if we set the COLLECT_NAMES environment variable, the problems
7068 # vanish in a puff of smoke.
7069 if test "X${COLLECT_NAMES+set}" != Xset; then
7071 export COLLECT_NAMES
7076 # Sed substitution that helps us do robust quoting. It backslashifies
7077 # metacharacters that are still active within double-quoted strings.
7078 Xsed='sed -e 1s/^X//'
7079 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7081 # Same as above, but do not quote variable references.
7082 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7084 # Sed substitution to delay expansion of an escaped shell variable in a
7085 # double_quote_subst'ed string.
7086 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7088 # Sed substitution to avoid accidental globbing in evaled expressions
7089 no_glob_subst='s/\*/\\\*/g'
7095 default_ofile=libtool
7096 can_build_shared=yes
7098 # All known linkers require a `.a' archive for static linking (except MSVC,
7099 # which needs '.lib').
7101 ltmain="$ac_aux_dir/ltmain.sh"
7102 ofile="$default_ofile"
7103 with_gnu_ld="$lt_cv_prog_gnu_ld"
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}ar; ac_word=$2
7108 echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110 if test "${ac_cv_prog_AR+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 if test -n "$AR"; then
7114 ac_cv_prog_AR="$AR" # Let the user override the test.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_AR="${ac_tool_prefix}ar"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 if test -n "$AR"; then
7134 echo "$as_me:$LINENO: result: $AR" >&5
7135 echo "${ECHO_T}$AR" >&6
7137 echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7142 if test -z "$ac_cv_prog_AR"; then
7144 # Extract the first word of "ar", so it can be a program name with args.
7145 set dummy ar; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 if test -n "$ac_ct_AR"; then
7152 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_AR="ar"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7171 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7172 if test -n "$ac_ct_AR"; then
7173 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7174 echo "${ECHO_T}$ac_ct_AR" >&6
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7188 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190 if test "${ac_cv_prog_RANLIB+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 if test -n "$RANLIB"; then
7194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 RANLIB=$ac_cv_prog_RANLIB
7213 if test -n "$RANLIB"; then
7214 echo "$as_me:$LINENO: result: $RANLIB" >&5
7215 echo "${ECHO_T}$RANLIB" >&6
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7222 if test -z "$ac_cv_prog_RANLIB"; then
7223 ac_ct_RANLIB=$RANLIB
7224 # Extract the first word of "ranlib", so it can be a program name with args.
7225 set dummy ranlib; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 if test -n "$ac_ct_RANLIB"; then
7232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_RANLIB="ranlib"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7252 if test -n "$ac_ct_RANLIB"; then
7253 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7260 RANLIB=$ac_ct_RANLIB
7262 RANLIB="$ac_cv_prog_RANLIB"
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}strip; ac_word=$2
7268 echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_prog_STRIP+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 if test -n "$STRIP"; then
7274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 STRIP=$ac_cv_prog_STRIP
7293 if test -n "$STRIP"; then
7294 echo "$as_me:$LINENO: result: $STRIP" >&5
7295 echo "${ECHO_T}$STRIP" >&6
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7302 if test -z "$ac_cv_prog_STRIP"; then
7304 # Extract the first word of "strip", so it can be a program name with args.
7305 set dummy strip; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test -n "$ac_ct_STRIP"; then
7312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_ac_ct_STRIP="strip"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7332 if test -n "$ac_ct_STRIP"; then
7333 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7334 echo "${ECHO_T}$ac_ct_STRIP" >&6
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7342 STRIP="$ac_cv_prog_STRIP"
7347 old_CFLAGS="$CFLAGS"
7349 # Set sane defaults for various variables
7350 test -z "$AR" && AR=ar
7351 test -z "$AR_FLAGS" && AR_FLAGS=cru
7352 test -z "$AS" && AS=as
7353 test -z "$CC" && CC=cc
7354 test -z "$LTCC" && LTCC=$CC
7355 test -z "$DLLTOOL" && DLLTOOL=dlltool
7356 test -z "$LD" && LD=ld
7357 test -z "$LN_S" && LN_S="ln -s"
7358 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7359 test -z "$NM" && NM=nm
7360 test -z "$SED" && SED=sed
7361 test -z "$OBJDUMP" && OBJDUMP=objdump
7362 test -z "$RANLIB" && RANLIB=:
7363 test -z "$STRIP" && STRIP=:
7364 test -z "$ac_objext" && ac_objext=o
7366 # Determine commands to create old-style static archives.
7367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7368 old_postinstall_cmds='chmod 644 $oldlib'
7369 old_postuninstall_cmds=
7371 if test -n "$RANLIB"; then
7374 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7377 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7380 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7383 for cc_temp in $compiler""; do
7385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7394 # Only perform the check for file, if the check method requires it
7395 case $deplibs_check_method in
7397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7398 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7399 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408 lt_save_MAGIC_CMD="$MAGIC_CMD"
7409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411 for ac_dir in $ac_dummy; do
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f $ac_dir/${ac_tool_prefix}file; then
7415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7416 if test -n "$file_magic_test_file"; then
7417 case $deplibs_check_method in
7419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422 $EGREP "$file_magic_regex" > /dev/null; then
7427 *** Warning: the command libtool uses to detect shared libraries,
7428 *** $file_magic_cmd, produces output that libtool cannot recognize.
7429 *** The result is that libtool may fail to recognize shared libraries
7430 *** as such. This will affect the creation of libtool libraries that
7431 *** depend on shared libraries, but programs linked with such libtool
7432 *** libraries will work regardless of this problem. Nevertheless, you
7433 *** may want to report the problem to your system manager and/or to
7434 *** bug-libtool@gnu.org
7444 MAGIC_CMD="$lt_save_MAGIC_CMD"
7449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450 if test -n "$MAGIC_CMD"; then
7451 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7452 echo "${ECHO_T}$MAGIC_CMD" >&6
7454 echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6
7458 if test -z "$lt_cv_path_MAGIC_CMD"; then
7459 if test -n "$ac_tool_prefix"; then
7460 echo "$as_me:$LINENO: checking for file" >&5
7461 echo $ECHO_N "checking for file... $ECHO_C" >&6
7462 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7470 lt_save_MAGIC_CMD="$MAGIC_CMD"
7471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7473 for ac_dir in $ac_dummy; do
7475 test -z "$ac_dir" && ac_dir=.
7476 if test -f $ac_dir/file; then
7477 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7478 if test -n "$file_magic_test_file"; then
7479 case $deplibs_check_method in
7481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7484 $EGREP "$file_magic_regex" > /dev/null; then
7489 *** Warning: the command libtool uses to detect shared libraries,
7490 *** $file_magic_cmd, produces output that libtool cannot recognize.
7491 *** The result is that libtool may fail to recognize shared libraries
7492 *** as such. This will affect the creation of libtool libraries that
7493 *** depend on shared libraries, but programs linked with such libtool
7494 *** libraries will work regardless of this problem. Nevertheless, you
7495 *** may want to report the problem to your system manager and/or to
7496 *** bug-libtool@gnu.org
7506 MAGIC_CMD="$lt_save_MAGIC_CMD"
7511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512 if test -n "$MAGIC_CMD"; then
7513 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7514 echo "${ECHO_T}$MAGIC_CMD" >&6
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7530 enable_win32_dll=yes
7532 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7533 if test "${enable_libtool_lock+set}" = set; then
7534 enableval="$enable_libtool_lock"
7537 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7540 # Check whether --with-pic or --without-pic was given.
7541 if test "${with_pic+set}" = set; then
7547 test -z "$pic_mode" && pic_mode=default
7549 # Use C for the default configuration in the libtool script
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 # Source file extension for C test sources.
7562 # Object file extension for compiled C test sources.
7566 # Code to be used in simple compile tests
7567 lt_simple_compile_test_code="int some_variable = 0;\n"
7569 # Code to be used in simple link tests
7570 lt_simple_link_test_code='int main(){return(0);}\n'
7573 # If no C compiler was specified, use CC.
7576 # Allow CC to be a program name with arguments.
7580 # save warnings/boilerplate of simple test code
7581 ac_outfile=conftest.$ac_objext
7582 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7584 _lt_compiler_boilerplate=`cat conftest.err`
7587 ac_outfile=conftest.$ac_objext
7588 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7590 _lt_linker_boilerplate=`cat conftest.err`
7595 # Check for any special shared library compilation flags.
7598 if test "$GCC" = no; then
7601 lt_prog_cc_shlib='-belf'
7605 if test -n "$lt_prog_cc_shlib"; then
7606 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7607 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7608 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7610 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7611 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7612 lt_cv_prog_cc_can_build_shared=no
7618 # Check to make sure the static flag actually works.
7620 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7621 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7622 if test "${lt_prog_compiler_static_works+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 lt_prog_compiler_static_works=no
7626 save_LDFLAGS="$LDFLAGS"
7627 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7630 # The linker can only warn and ignore the option if not recognized
7631 # So say no if there are warnings
7632 if test -s conftest.err; then
7633 # Append any errors to the config.log.
7634 cat conftest.err 1>&5
7635 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7636 $SED '/^$/d' conftest.err >conftest.er2
7637 if diff conftest.exp conftest.er2 >/dev/null; then
7638 lt_prog_compiler_static_works=yes
7641 lt_prog_compiler_static_works=yes
7645 LDFLAGS="$save_LDFLAGS"
7648 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7649 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7651 if test x"$lt_prog_compiler_static_works" = xyes; then
7654 lt_prog_compiler_static=
7660 lt_prog_compiler_no_builtin_flag=
7662 if test "$GCC" = yes; then
7663 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7666 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7667 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7668 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 lt_cv_prog_compiler_rtti_exceptions=no
7672 ac_outfile=conftest.$ac_objext
7673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7674 lt_compiler_flag="-fno-rtti -fno-exceptions"
7675 # Insert the option either (1) after the last *FLAGS variable, or
7676 # (2) before a word containing "conftest.", or (3) at the end.
7677 # Note that $ac_compile itself does not contain backslashes and begins
7678 # with a dollar sign (not a hyphen), so the echo should work correctly.
7679 # The option is referenced via a variable to avoid confusing sed.
7680 lt_compile=`echo "$ac_compile" | $SED \
7681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7683 -e 's:$: $lt_compiler_flag:'`
7684 (eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
7685 (eval "$lt_compile" 2>conftest.err)
7687 cat conftest.err >&5
7688 echo "$as_me:7688: \$? = $ac_status" >&5
7689 if (exit $ac_status) && test -s "$ac_outfile"; then
7690 # The compiler can only warn and ignore the option if not recognized
7691 # So say no if there are warnings other than the usual output.
7692 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7693 $SED '/^$/d' conftest.err >conftest.er2
7694 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7695 lt_cv_prog_compiler_rtti_exceptions=yes
7701 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7702 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7704 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7705 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7712 lt_prog_compiler_wl=
7713 lt_prog_compiler_pic=
7714 lt_prog_compiler_static=
7716 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7719 if test "$GCC" = yes; then
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_static='-static'
7725 # All AIX code is PIC.
7726 if test "$host_cpu" = ia64; then
7727 # AIX 5 now supports IA64 processor
7728 lt_prog_compiler_static='-Bstatic'
7733 # FIXME: we need at least 68020 code to build shared libraries, but
7734 # adding the `-m68020' flag to GCC prevents building anything better,
7736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7739 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7740 # PIC is the default for these OSes.
7743 mingw* | pw32* | os2*)
7744 # This hack is so that the source file can tell whether it is being
7745 # built for inclusion in a dll (and should export symbols for example).
7746 lt_prog_compiler_pic='-DDLL_EXPORT'
7749 darwin* | rhapsody*)
7750 # PIC is the default on this platform
7751 # Common symbols not allowed in MH_DYLIB files
7752 lt_prog_compiler_pic='-fno-common'
7756 # Just because we use GCC doesn't mean we suddenly get shared libraries
7757 # on systems that don't support them.
7758 lt_prog_compiler_can_build_shared=no
7763 if test -d /usr/nec; then
7764 lt_prog_compiler_pic=-Kconform_pic
7769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776 lt_prog_compiler_pic='-fPIC'
7782 lt_prog_compiler_pic='-fPIC'
7786 # PORTME Check for flag to pass linker flags through the system compiler.
7789 lt_prog_compiler_wl='-Wl,'
7790 if test "$host_cpu" = ia64; then
7791 # AIX 5 now supports IA64 processor
7792 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7798 # PIC is the default on this platform
7799 # Common symbols not allowed in MH_DYLIB files
7800 case $cc_basename in
7802 lt_prog_compiler_pic='-qnocommon'
7803 lt_prog_compiler_wl='-Wl,'
7808 mingw* | pw32* | os2*)
7809 # This hack is so that the source file can tell whether it is being
7810 # built for inclusion in a dll (and should export symbols for example).
7811 lt_prog_compiler_pic='-DDLL_EXPORT'
7814 hpux9* | hpux10* | hpux11*)
7815 lt_prog_compiler_wl='-Wl,'
7816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7823 lt_prog_compiler_pic='+Z'
7826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7827 lt_prog_compiler_static='${wl}-a ${wl}archive'
7830 irix5* | irix6* | nonstopux*)
7831 lt_prog_compiler_wl='-Wl,'
7832 # PIC (with -KPIC) is the default.
7833 lt_prog_compiler_static='-non_shared'
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7842 case $cc_basename in
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-static'
7848 pgcc* | pgf77* | pgf90* | pgf95*)
7849 # Portland Group compilers (*not* the Pentium gcc compiler,
7850 # which looks to be a dead project)
7851 lt_prog_compiler_wl='-Wl,'
7852 lt_prog_compiler_pic='-fpic'
7853 lt_prog_compiler_static='-Bstatic'
7856 lt_prog_compiler_wl='-Wl,'
7857 # All Alpha code is PIC.
7858 lt_prog_compiler_static='-non_shared'
7863 osf3* | osf4* | osf5*)
7864 lt_prog_compiler_wl='-Wl,'
7865 # All OSF/1 code is PIC.
7866 lt_prog_compiler_static='-non_shared'
7870 lt_prog_compiler_pic='-Kpic'
7871 lt_prog_compiler_static='-dn'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7877 case $cc_basename in
7879 lt_prog_compiler_wl='-Qoption ld ';;
7881 lt_prog_compiler_wl='-Wl,';;
7886 lt_prog_compiler_wl='-Qoption ld '
7887 lt_prog_compiler_pic='-PIC'
7888 lt_prog_compiler_static='-Bstatic'
7891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7898 if test -d /usr/nec ;then
7899 lt_prog_compiler_pic='-Kconform_pic'
7900 lt_prog_compiler_static='-Bstatic'
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_can_build_shared=no
7910 lt_prog_compiler_pic='-pic'
7911 lt_prog_compiler_static='-Bstatic'
7915 lt_prog_compiler_can_build_shared=no
7920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7921 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7924 # Check to make sure the PIC flag actually works.
7926 if test -n "$lt_prog_compiler_pic"; then
7928 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7929 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7930 if test "${lt_prog_compiler_pic_works+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 lt_prog_compiler_pic_works=no
7934 ac_outfile=conftest.$ac_objext
7935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7936 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7937 # Insert the option either (1) after the last *FLAGS variable, or
7938 # (2) before a word containing "conftest.", or (3) at the end.
7939 # Note that $ac_compile itself does not contain backslashes and begins
7940 # with a dollar sign (not a hyphen), so the echo should work correctly.
7941 # The option is referenced via a variable to avoid confusing sed.
7942 lt_compile=`echo "$ac_compile" | $SED \
7943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945 -e 's:$: $lt_compiler_flag:'`
7946 (eval echo "\"\$as_me:7946: $lt_compile\"" >&5)
7947 (eval "$lt_compile" 2>conftest.err)
7949 cat conftest.err >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 if (exit $ac_status) && test -s "$ac_outfile"; then
7952 # The compiler can only warn and ignore the option if not recognized
7953 # So say no if there are warnings other than the usual output.
7954 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7955 $SED '/^$/d' conftest.err >conftest.er2
7956 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7957 lt_prog_compiler_pic_works=yes
7963 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7964 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7966 if test x"$lt_prog_compiler_pic_works" = xyes; then
7967 case $lt_prog_compiler_pic in
7969 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7972 lt_prog_compiler_pic=
7973 lt_prog_compiler_can_build_shared=no
7978 # For platforms which do not support PIC, -DPIC is meaningless:
7980 lt_prog_compiler_pic=
7983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7987 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7988 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 lt_cv_prog_compiler_c_o=no
7993 $rm -r conftest 2>/dev/null
7997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7999 lt_compiler_flag="-o out/conftest2.$ac_objext"
8000 # Insert the option either (1) after the last *FLAGS variable, or
8001 # (2) before a word containing "conftest.", or (3) at the end.
8002 # Note that $ac_compile itself does not contain backslashes and begins
8003 # with a dollar sign (not a hyphen), so the echo should work correctly.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
8008 (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
8009 (eval "$lt_compile" 2>out/conftest.err)
8011 cat out/conftest.err >&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8015 # The compiler can only warn and ignore the option if not recognized
8016 # So say no if there are warnings
8017 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8018 $SED '/^$/d' out/conftest.err >out/conftest.er2
8019 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020 lt_cv_prog_compiler_c_o=yes
8025 # SGI C++ compiler will create directory out/ii_files/ for
8026 # template instantiation
8027 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8028 $rm out/* && rmdir out
8034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8038 hard_links="nottested"
8039 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8040 # do not overwrite the value of need_locks provided by the user
8041 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8042 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8047 ln conftest.a conftest.b 2>&5 || hard_links=no
8048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8049 echo "$as_me:$LINENO: result: $hard_links" >&5
8050 echo "${ECHO_T}$hard_links" >&6
8051 if test "$hard_links" = no; then
8052 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8053 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8060 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8061 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8064 allow_undefined_flag=
8065 enable_shared_with_static_runtimes=no
8067 archive_expsym_cmds=
8068 old_archive_From_new_cmds=
8069 old_archive_from_expsyms_cmds=
8070 export_dynamic_flag_spec=
8071 whole_archive_flag_spec=
8072 thread_safe_flag_spec=
8073 hardcode_libdir_flag_spec=
8074 hardcode_libdir_flag_spec_ld=
8075 hardcode_libdir_separator=
8078 hardcode_shlibpath_var=unsupported
8079 link_all_deplibs=unknown
8080 hardcode_automatic=no
8083 always_export_symbols=no
8084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8085 # include_expsyms should be a list of space-separated symbols to be *always*
8086 # included in the symbol list
8088 # exclude_expsyms can be an extended regexp of symbols to exclude
8089 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8090 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8091 # as well as any symbol that contains `d'.
8092 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8093 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8094 # platforms (ab)use it in PIC code, but their linkers get confused if
8095 # the symbol is explicitly referenced. Since portable code cannot
8096 # rely on this symbol name, it's probably fine to never include it in
8097 # preloaded symbol tables.
8098 extract_expsyms_cmds=
8099 # Just being paranoid about ensuring that cc_basename is set.
8100 for cc_temp in $compiler""; do
8102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8111 cygwin* | mingw* | pw32*)
8112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8113 # When not using gcc, we currently assume that we are using
8114 # Microsoft Visual C++.
8115 if test "$GCC" != yes; then
8125 if test "$with_gnu_ld" = yes; then
8126 # If archive_cmds runs LD, not CC, wlarc should be empty
8129 # Set some defaults for GNU ld with shared library support. These
8130 # are reset later if shared libraries are not supported. Putting them
8131 # here allows them to be overridden if necessary.
8132 runpath_var=LD_RUN_PATH
8133 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8134 export_dynamic_flag_spec='${wl}--export-dynamic'
8135 # ancient GNU ld didn't support --whole-archive et. al.
8136 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8139 whole_archive_flag_spec=
8141 supports_anon_versioning=no
8142 case `$LD -v 2>/dev/null` in
8143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8146 *\ 2.11.*) ;; # other 2.11 versions
8147 *) supports_anon_versioning=yes ;;
8150 # See if GNU ld supports shared libraries.
8152 aix3* | aix4* | aix5*)
8153 # On AIX/PPC, the GNU linker is very broken
8154 if test "$host_cpu" != ia64; then
8158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8159 *** to be unable to reliably create shared libraries on AIX.
8160 *** Therefore, libtool is disabling shared libraries support. If you
8161 *** really care for shared libraries, you may want to modify your PATH
8162 *** so that a non-GNU linker is found, and then restart.
8169 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)'
8170 hardcode_libdir_flag_spec='-L$libdir'
8171 hardcode_minus_L=yes
8173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174 # that the semantics of dynamic libraries on AmigaOS, at least up
8175 # to version 4, is to share data among multiple programs linked
8176 # with the same dynamic library. Since this doesn't match the
8177 # behavior of shared libraries on other platforms, we can't use
8183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184 allow_undefined_flag=unsupported
8185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186 # support --undefined. This deserves some investigation. FIXME
8187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193 cygwin* | mingw* | pw32*)
8194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195 # as there is no search path for DLLs.
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 allow_undefined_flag=unsupported
8198 always_export_symbols=no
8199 enable_shared_with_static_runtimes=yes
8200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8204 # If the export-symbols file already is a .def file (1st line
8205 # is EXPORTS), use it as is; otherwise, prepend...
8206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207 cp $export_symbols $output_objdir/$soname.def;
8209 echo EXPORTS > $output_objdir/$soname.def;
8210 cat $export_symbols >> $output_objdir/$soname.def;
8212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8221 case $cc_basename,$host_cpu in
8222 pgcc*) # Portland Group C compiler
8223 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8224 tmp_addflag=' $pic_flag'
8226 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8227 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8228 tmp_addflag=' $pic_flag -Mnomain' ;;
8229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8230 tmp_addflag=' -i_dynamic' ;;
8231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8232 tmp_addflag=' -i_dynamic -nofor_main' ;;
8233 ifc* | ifort*) # Intel Fortran compiler
8234 tmp_addflag=' -nofor_main' ;;
8236 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238 if test $supports_anon_versioning = yes; then
8239 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8241 $echo "local: *; };" >> $output_objdir/$libname.ver~
8242 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8265 *** create shared libraries on Solaris systems. Therefore, libtool
8266 *** is disabling shared libraries support. We urge you to upgrade GNU
8267 *** binutils to release 2.9.1 or newer. Another option is to modify
8268 *** your PATH or compiler configuration so that the native linker is
8269 *** used, and then restart.
8272 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_shlibpath_var=no
8288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297 if test "$ld_shlibs" = no; then
8299 hardcode_libdir_flag_spec=
8300 export_dynamic_flag_spec=
8301 whole_archive_flag_spec=
8304 # PORTME fill in a description of your system's linker (not GNU ld)
8307 allow_undefined_flag=unsupported
8308 always_export_symbols=yes
8309 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'
8310 # Note: this linker hardcodes the directories in LIBPATH if there
8311 # are no directories specified by -L.
8312 hardcode_minus_L=yes
8313 if test "$GCC" = yes && test -z "$link_static_flag"; then
8314 # Neither direct hardcoding nor static linking is supported with a
8316 hardcode_direct=unsupported
8321 if test "$host_cpu" = ia64; then
8322 # On IA64, the linker does run time linking by default, so we don't
8323 # have to do anything special.
8324 aix_use_runtimelinking=no
8325 exp_sym_flag='-Bexport'
8328 # If we're using GNU nm, then we don't want the "-C" option.
8329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8331 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8333 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8335 aix_use_runtimelinking=no
8337 # Test if we are trying to use run time linking or normal
8338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8339 # need to do runtime linking.
8340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8341 for ld_flag in $LDFLAGS; do
8342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8343 aix_use_runtimelinking=yes
8349 exp_sym_flag='-bexport'
8350 no_entry_flag='-bnoentry'
8353 # When large executables or shared objects are built, AIX ld can
8354 # have problems creating the table of contents. If linking a library
8355 # or program results in "error TOC overflow" add -mminimal-toc to
8356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8361 hardcode_libdir_separator=':'
8362 link_all_deplibs=yes
8364 if test "$GCC" = yes; then
8365 case $host_os in aix4.[012]|aix4.[012].*)
8366 # We only want to do this on AIX 4.2 and lower, the check
8367 # below for broken collect2 doesn't work under 4.3+
8368 collect2name=`${CC} -print-prog-name=collect2`
8369 if test -f "$collect2name" && \
8370 strings "$collect2name" | grep resolve_lib_name >/dev/null
8372 # We have reworked collect2
8375 # We have old collect2
8376 hardcode_direct=unsupported
8377 # It fails to find uninstalled libraries when the uninstalled
8378 # path is not listed in the libpath. Setting hardcode_minus_L
8379 # to unsupported forces relinking
8380 hardcode_minus_L=yes
8381 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_libdir_separator=
8385 shared_flag='-shared'
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag="$shared_flag "'${wl}-G'
8391 if test "$host_cpu" = ia64; then
8392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8393 # chokes on -Wl,-G. The following line is correct:
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag='${wl}-G'
8399 shared_flag='${wl}-bM:SRE'
8404 # It seems that -bexpall does not export symbols beginning with
8405 # underscore (_), so it is better to generate a list of symbols to export.
8406 always_export_symbols=yes
8407 if test "$aix_use_runtimelinking" = yes; then
8408 # Warning - without using the other runtime loading flags (-brtl),
8409 # -berok will link without error, but may produce a broken library.
8410 allow_undefined_flag='-berok'
8411 # Determine the default libpath from the value encoded in an empty executable.
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8452 # Check for a 64-bit object if we didn't find anything.
8453 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8460 rm -f conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8465 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"
8467 if test "$host_cpu" = ia64; then
8468 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8469 allow_undefined_flag="-z nodefs"
8470 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8472 # Determine the default libpath from the value encoded in an empty executable.
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8513 # Check for a 64-bit object if we didn't find anything.
8514 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526 # Warning - without using the other run time loading flags,
8527 # -berok will link without error, but may produce a broken library.
8528 no_undefined_flag=' ${wl}-bernotok'
8529 allow_undefined_flag=' ${wl}-berok'
8530 # -bexpall does not export symbols beginning with underscore (_)
8531 always_export_symbols=yes
8532 # Exported symbols can be pulled into shared objects from archives
8533 whole_archive_flag_spec=' '
8534 archive_cmds_need_lc=yes
8535 # This is similar to how AIX traditionally builds its shared libraries.
8536 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8542 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)'
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_minus_L=yes
8545 # see comment about different semantics on the GNU ld section
8550 export_dynamic_flag_spec=-rdynamic
8553 cygwin* | mingw* | pw32*)
8554 # When not using gcc, we currently assume that we are using
8555 # Microsoft Visual C++.
8556 # hardcode_libdir_flag_spec is actually meaningless, as there is
8557 # no search path for DLLs.
8558 hardcode_libdir_flag_spec=' '
8559 allow_undefined_flag=unsupported
8560 # Tell ltmain to make .lib files, not .a files.
8562 # Tell ltmain to make .dll files, not .so files.
8564 # FIXME: Setting linknames here is a bad hack.
8565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8566 # The linker will automatically build a .lib file if we build a DLL.
8567 old_archive_From_new_cmds='true'
8568 # FIXME: Should let the user specify the lib program.
8569 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8570 fix_srcfile_path='`cygpath -w "$srcfile"`'
8571 enable_shared_with_static_runtimes=yes
8574 darwin* | rhapsody*)
8576 rhapsody* | darwin1.[012])
8577 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8581 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8583 case ${MACOSX_DEPLOYMENT_TARGET} in
8585 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8588 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8594 archive_cmds_need_lc=no
8596 hardcode_automatic=yes
8597 hardcode_shlibpath_var=unsupported
8598 whole_archive_flag_spec=''
8599 link_all_deplibs=yes
8600 if test "$GCC" = yes ; then
8601 output_verbose_link_cmd='echo'
8602 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8603 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8608 case $cc_basename in
8610 output_verbose_link_cmd='echo'
8611 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8612 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8614 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8615 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_shlibpath_var=no
8634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8635 # support. Future versions do this automatically, but an explicit c++rt0.o
8636 # does not break anything, and helps significantly (at the cost of a little
8639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8640 hardcode_libdir_flag_spec='-R$libdir'
8642 hardcode_shlibpath_var=no
8645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_minus_L=yes
8650 hardcode_shlibpath_var=no
8653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8654 freebsd* | kfreebsd*-gnu | dragonfly*)
8655 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8656 hardcode_libdir_flag_spec='-R$libdir'
8658 hardcode_shlibpath_var=no
8662 if test "$GCC" = yes; then
8663 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8665 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'
8667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8668 hardcode_libdir_separator=:
8671 # hardcode_minus_L: Not really in the search PATH,
8672 # but as the default location of the library.
8673 hardcode_minus_L=yes
8674 export_dynamic_flag_spec='${wl}-E'
8678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8681 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8690 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8697 if test "$with_gnu_ld" = no; then
8700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8701 hardcode_libdir_flag_spec_ld='+b $libdir'
8702 hardcode_libdir_separator=:
8704 hardcode_shlibpath_var=no
8707 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_shlibpath_var=no
8711 # hardcode_minus_L: Not really in the search PATH,
8712 # but as the default location of the library.
8713 hardcode_minus_L=yes
8716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717 hardcode_libdir_separator=:
8719 export_dynamic_flag_spec='${wl}-E'
8721 # hardcode_minus_L: Not really in the search PATH,
8722 # but as the default location of the library.
8723 hardcode_minus_L=yes
8729 irix5* | irix6* | nonstopux*)
8730 if test "$GCC" = yes; then
8731 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'
8733 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'
8734 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738 link_all_deplibs=yes
8742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8747 hardcode_libdir_flag_spec='-R$libdir'
8749 hardcode_shlibpath_var=no
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 hardcode_libdir_separator=:
8757 hardcode_shlibpath_var=no
8762 hardcode_shlibpath_var=no
8763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8765 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767 export_dynamic_flag_spec='${wl}-E'
8770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_libdir_flag_spec='-R$libdir'
8775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8783 hardcode_libdir_flag_spec='-L$libdir'
8784 hardcode_minus_L=yes
8785 allow_undefined_flag=unsupported
8786 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'
8787 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8791 if test "$GCC" = yes; then
8792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8793 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'
8795 allow_undefined_flag=' -expect_unresolved \*'
8796 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'
8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799 hardcode_libdir_separator=:
8802 osf4* | osf5*) # as osf3* with the addition of -msym flag
8803 if test "$GCC" = yes; then
8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805 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'
8806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 allow_undefined_flag=' -expect_unresolved \*'
8809 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'
8810 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8811 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8813 # Both c and cxx compiler support -rpath directly
8814 hardcode_libdir_flag_spec='-rpath $libdir'
8816 hardcode_libdir_separator=:
8820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_shlibpath_var=no
8822 export_dynamic_flag_spec='${wl}-Bexport'
8823 runpath_var=LD_RUN_PATH
8824 hardcode_runpath_var=yes
8828 no_undefined_flag=' -z text'
8829 if test "$GCC" = yes; then
8831 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8833 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8840 hardcode_libdir_flag_spec='-R$libdir'
8841 hardcode_shlibpath_var=no
8843 solaris2.[0-5] | solaris2.[0-5].*) ;;
8845 # The compiler driver will combine linker options so we
8846 # cannot just pass the convience library names through
8847 # without $wl, iff we do not link with $LD.
8848 # Luckily, gcc supports the same syntax we need for Sun Studio.
8849 # Supported since Solaris 2.6 (maybe 2.5.1?)
8852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8854 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8857 link_all_deplibs=yes
8861 if test "x$host_vendor" = xsequent; then
8862 # Use $CC to link under sequent, because it throws in some extra .o
8863 # files that make .init and .fini sections work.
8864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_minus_L=yes
8871 hardcode_shlibpath_var=no
8875 case $host_vendor in
8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_direct=yes # is this really true???
8881 ## LD is ld it makes a PLAMLIB
8882 ## CC just makes a GrossModule.
8883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8884 reload_cmds='$CC -r -o $output$reload_objs'
8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8892 runpath_var='LD_RUN_PATH'
8893 hardcode_shlibpath_var=no
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_shlibpath_var=no
8899 export_dynamic_flag_spec='-Bexport'
8903 if test -d /usr/nec; then
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8906 runpath_var=LD_RUN_PATH
8907 hardcode_runpath_var=yes
8913 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_shlibpath_var=no
8917 hardcode_runpath_var=yes
8918 runpath_var=LD_RUN_PATH
8921 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8922 no_undefined_flag='${wl}-z ${wl}text'
8923 if test "$GCC" = yes; then
8924 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 runpath_var='LD_RUN_PATH'
8929 hardcode_shlibpath_var=no
8933 no_undefined_flag=' -z text'
8934 # $CC -shared without GNU ld will not create a library from C++
8935 # object files and a static libstdc++, better avoid it by now
8936 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8938 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8939 hardcode_libdir_flag_spec=
8940 hardcode_shlibpath_var=no
8941 runpath_var='LD_RUN_PATH'
8945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_shlibpath_var=no
8956 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8957 echo "${ECHO_T}$ld_shlibs" >&6
8958 test "$ld_shlibs" = no && can_build_shared=no
8960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8961 if test "$GCC" = yes; then
8962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8966 # Do we need to explicitly link libc?
8968 case "x$archive_cmds_need_lc" in
8970 # Assume -lc should be added
8971 archive_cmds_need_lc=yes
8973 if test "$enable_shared" = yes && test "$GCC" = yes; then
8974 case $archive_cmds in
8976 # FIXME: we may have to deal with multi-command sequences.
8979 # Test whether the compiler implicitly links with -lc since on some
8980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8981 # to ld, don't add -lc before -lgcc.
8982 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8983 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } 2>conftest.err; then
8994 libobjs=conftest.$ac_objext
8996 wl=$lt_prog_compiler_wl
9002 lt_save_allow_undefined_flag=$allow_undefined_flag
9003 allow_undefined_flag=
9004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }
9010 archive_cmds_need_lc=no
9012 archive_cmds_need_lc=yes
9014 allow_undefined_flag=$lt_save_allow_undefined_flag
9016 cat conftest.err 1>&5
9019 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9030 libname_spec='lib$name'
9038 shlibpath_overrides_runpath=unknown
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042 if test "$GCC" = yes; then
9043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9045 # if the path contains ";" then we assume it to be the separator
9046 # otherwise default to the standard path separator (i.e. ":") - it is
9047 # assumed that no part of a normal pathname contains ";" but that should
9048 # okay in the real world where ";" in dirpaths is itself problematic.
9049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9056 need_lib_prefix=unknown
9057 hardcode_into_libs=no
9059 # when you set need_version to no, make sure it does not cause -set_version
9060 # flags to be left without arguments
9061 need_version=unknown
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9067 shlibpath_var=LIBPATH
9069 # AIX 3 has no versioning support, so we append a major version to the name.
9070 soname_spec='${libname}${release}${shared_ext}$major'
9077 hardcode_into_libs=yes
9078 if test "$host_cpu" = ia64; then
9079 # AIX 5 supports IA64
9080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9081 shlibpath_var=LD_LIBRARY_PATH
9083 # With GCC up to 2.95.x, collect2 would create an import file
9084 # for dependence libraries. The import file would start with
9085 # the line `#! .'. This would cause the generated library to
9086 # depend on `.', always an invalid library. This was fixed in
9087 # development snapshots of GCC prior to 3.0.
9089 aix4 | aix4.[01] | aix4.[01].*)
9090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9092 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9100 # soname into executable. Probably we can add versioning support to
9101 # collect2, so additional links can be useful in future.
9102 if test "$aix_use_runtimelinking" = yes; then
9103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9104 # instead of lib<name>.a to let people know that these are not
9105 # typical AIX shared libraries.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 # We preserve .a as extension for shared libraries through AIX4.2
9109 # and later when we are not doing run time linking.
9110 library_names_spec='${libname}${release}.a $libname.a'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LIBPATH
9118 library_names_spec='$libname.ixlibrary $libname.a'
9119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9120 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'
9124 library_names_spec='${libname}${shared_ext}'
9125 dynamic_linker="$host_os ld.so"
9126 shlibpath_var=LIBRARY_PATH
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9137 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9138 # the default ld.so.conf also contains /usr/contrib/lib and
9139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9140 # libtool to hard-code these into programs
9143 cygwin* | mingw* | pw32*)
9144 version_type=windows
9149 case $GCC,$host_os in
9150 yes,cygwin* | yes,mingw* | yes,pw32*)
9151 library_names_spec='$libname.dll.a'
9152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9153 postinstall_cmds='base_file=`basename \${file}`~
9154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9155 dldir=$destdir/`dirname \$dlpath`~
9156 test -d \$dldir || mkdir -p \$dldir~
9157 $install_prog $dir/$dlname \$dldir/$dlname~
9158 chmod a+x \$dldir/$dlname'
9159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9160 dlpath=$dir/\$dldll~
9162 shlibpath_overrides_runpath=yes
9166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9171 # MinGW DLLs use traditional 'lib' prefix
9172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9174 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9175 # It is most probably a Windows format PATH printed by
9176 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9177 # path with ; separators, and with drive letters. We can handle the
9178 # drive letters (cygwin fileutils understands them), so leave them,
9179 # especially as we might pass files found there to a mingw objdump,
9180 # which wouldn't understand a cygwinified path. Ahh.
9181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9187 # pw32 DLLs use 'pw' prefix rather than 'lib'
9188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9197 dynamic_linker='Win32 ld.exe'
9198 # FIXME: first we should search . and the directory the executable is in
9202 darwin* | rhapsody*)
9203 dynamic_linker="$host_os dyld"
9207 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9208 soname_spec='${libname}${release}${major}$shared_ext'
9209 shlibpath_overrides_runpath=yes
9210 shlibpath_var=DYLD_LIBRARY_PATH
9211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9212 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9213 if test "$GCC" = yes; then
9214 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9216 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 hardcode_into_libs=yes
9243 dynamic_linker='GNU ld.so'
9246 freebsd* | dragonfly*)
9247 # DragonFly does not have aout. When/if they implement a new
9248 # versioning mechanism, adjust this.
9249 if test -x /usr/bin/objformat; then
9250 objformat=`/usr/bin/objformat`
9253 freebsd[123]*) objformat=aout ;;
9257 version_type=freebsd-$objformat
9258 case $version_type in
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9269 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9274 freebsd3.[01]* | freebsdelf3.[01]*)
9275 shlibpath_overrides_runpath=yes
9276 hardcode_into_libs=yes
9279 shlibpath_overrides_runpath=no
9280 hardcode_into_libs=yes
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 hardcode_into_libs=yes
9295 hpux9* | hpux10* | hpux11*)
9296 # Give a soname corresponding to the major version so that dld.sl refuses to
9297 # link against other versions.
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.so"
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 if test "X$HPUX_IA64_MODE" = X32; then
9311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9319 hardcode_into_libs=yes
9320 dynamic_linker="$host_os dld.sl"
9321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9330 dynamic_linker="$host_os dld.sl"
9331 shlibpath_var=SHLIB_PATH
9332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9338 postinstall_cmds='chmod 555 $lib'
9341 irix5* | irix6* | nonstopux*)
9343 nonstopux*) version_type=nonstopux ;;
9345 if test "$lt_cv_prog_gnu_ld" = yes; then
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9356 irix5* | nonstopux*)
9360 case $LD in # libtool.m4 will add one of these switches to LD
9361 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9362 libsuff= shlibsuff= libmagic=32-bit;;
9363 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9364 libsuff=32 shlibsuff=N32 libmagic=N32;;
9365 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9366 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9367 *) libsuff= shlibsuff= libmagic=never-match;;
9371 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9372 shlibpath_overrides_runpath=no
9373 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9374 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9375 hardcode_into_libs=yes
9378 # No shared lib support for Linux oldld, aout, or coff.
9379 linux*oldld* | linux*aout* | linux*coff*)
9383 # This must be Linux ELF.
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=no
9393 # This implies no fast_install, which is unacceptable.
9394 # Some rework will be needed to allow for fast_install
9395 # before this can be enabled.
9396 hardcode_into_libs=yes
9398 # Append ld.so.conf contents to the search path
9399 if test -f /etc/ld.so.conf; then
9400 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9404 # We used to test for /lib/ld.so.1 and disable shared libraries on
9405 # powerpc, because MkLinux only supported shared libraries with the
9406 # GNU dynamic linker. Since this was broken with cross compilers,
9407 # most powerpc-linux boxes support dynamic linking these days and
9408 # people can always --disable-shared, the test was removed, and we
9409 # assume the GNU/Linux dynamic linker is in use.
9410 dynamic_linker='GNU/Linux ld.so'
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 hardcode_into_libs=yes
9422 dynamic_linker='GNU ld.so'
9429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9432 dynamic_linker='NetBSD (a.out) ld.so'
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 dynamic_linker='NetBSD ld.elf_so'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=yes
9440 hardcode_into_libs=yes
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 shlibpath_overrides_runpath=yes
9463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9465 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9466 *) need_version=no ;;
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9473 openbsd2.[89] | openbsd2.[89].*)
9474 shlibpath_overrides_runpath=no
9477 shlibpath_overrides_runpath=yes
9481 shlibpath_overrides_runpath=yes
9486 libname_spec='$name'
9489 library_names_spec='$libname${shared_ext} $libname.a'
9490 dynamic_linker='OS/2 ld.exe'
9491 shlibpath_var=LIBPATH
9494 osf3* | osf4* | osf5*)
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var=LD_LIBRARY_PATH
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=yes
9520 hardcode_into_libs=yes
9521 # ldd complains unless libraries are executable
9522 postinstall_cmds='chmod +x $lib'
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 shlibpath_overrides_runpath=yes
9531 if test "$with_gnu_ld" = yes; then
9537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 case $host_vendor in
9544 shlibpath_overrides_runpath=no
9546 export_dynamic_flag_spec='${wl}-Blargedynsym'
9547 runpath_var=LD_RUN_PATH
9555 shlibpath_overrides_runpath=no
9556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9562 if test -d /usr/nec ;then
9564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9565 soname_spec='$libname${shared_ext}.$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9582 echo "${ECHO_T}$dynamic_linker" >&6
9583 test "$dynamic_linker" = no && can_build_shared=no
9585 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9586 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9588 if test -n "$hardcode_libdir_flag_spec" || \
9589 test -n "$runpath_var" || \
9590 test "X$hardcode_automatic" = "Xyes" ; then
9592 # We can hardcode non-existant directories.
9593 if test "$hardcode_direct" != no &&
9594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9595 # have to relink, otherwise we might link with an installed library
9596 # when we should be linking with a yet-to-be-installed one
9597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9598 test "$hardcode_minus_L" != no; then
9599 # Linking always hardcodes the temporary library directory.
9600 hardcode_action=relink
9602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9603 hardcode_action=immediate
9606 # We cannot hardcode anything, or else we can only hardcode existing
9608 hardcode_action=unsupported
9610 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9611 echo "${ECHO_T}$hardcode_action" >&6
9613 if test "$hardcode_action" = relink; then
9614 # Fast installation is not supported
9615 enable_fast_install=no
9616 elif test "$shlibpath_overrides_runpath" = yes ||
9617 test "$enable_shared" = no; then
9618 # Fast installation is not necessary
9619 enable_fast_install=needless
9624 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9625 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9626 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9629 echo "$as_me:$LINENO: result: yes" >&5
9630 echo "${ECHO_T}yes" >&6
9632 # FIXME - insert some real tests, host_os isn't really good enough
9635 if test -n "$STRIP" ; then
9636 striplib="$STRIP -x"
9637 echo "$as_me:$LINENO: result: yes" >&5
9638 echo "${ECHO_T}yes" >&6
9640 echo "$as_me:$LINENO: result: no" >&5
9641 echo "${ECHO_T}no" >&6
9645 echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6
9651 if test "x$enable_dlopen" != xyes; then
9652 enable_dlopen=unknown
9653 enable_dlopen_self=unknown
9654 enable_dlopen_self_static=unknown
9661 lt_cv_dlopen="load_add_on"
9663 lt_cv_dlopen_self=yes
9667 lt_cv_dlopen="LoadLibrary"
9672 lt_cv_dlopen="dlopen"
9677 # if libdl is installed we need to link against it
9678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 ac_check_lib_save_LIBS=$LIBS
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 /* Override any gcc2 internal prototype to avoid an error. */
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag"
9717 || test ! -s conftest.err'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_lib_dl_dlopen=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_lib_dl_dlopen=no
9736 rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9742 if test $ac_cv_lib_dl_dlopen = yes; then
9743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9748 lt_cv_dlopen_self=yes
9755 echo "$as_me:$LINENO: checking for shl_load" >&5
9756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9757 if test "${ac_cv_func_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768 #define shl_load innocuous_shl_load
9770 /* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char shl_load (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9776 # include <limits.h>
9778 # include <assert.h>
9783 /* Override any gcc2 internal prototype to avoid an error. */
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9791 /* The GNU C library defines this for functions which it implements
9792 to always fail with ENOSYS. Some functions are actually named
9793 something starting with __ and the normal name is an alias. */
9794 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9797 char (*f) () = shl_load;
9806 return f != shl_load;
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag"
9821 || test ! -s conftest.err'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_func_shl_load=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_cv_func_shl_load=no
9840 rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9844 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9845 if test $ac_cv_func_shl_load = yes; then
9846 lt_cv_dlopen="shl_load"
9848 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9849 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9850 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 ac_check_lib_save_LIBS=$LIBS
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9862 /* Override any gcc2 internal prototype to avoid an error. */
9866 /* We use char because int might match the return type of a gcc2
9867 builtin and then its argument prototype would still apply. */
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag"
9887 || test ! -s conftest.err'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_lib_dld_shl_load=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_lib_dld_shl_load=no
9906 rm -f conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9912 if test $ac_cv_lib_dld_shl_load = yes; then
9913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9915 echo "$as_me:$LINENO: checking for dlopen" >&5
9916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9917 if test "${ac_cv_func_dlopen+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define dlopen innocuous_dlopen
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char dlopen (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9936 # include <limits.h>
9938 # include <assert.h>
9943 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9957 char (*f) () = dlopen;
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_func_dlopen=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_func_dlopen=no
10000 rm -f conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10005 if test $ac_cv_func_dlopen = yes; then
10006 lt_cv_dlopen="dlopen"
10008 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 ac_check_lib_save_LIBS=$LIBS
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10022 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_lib_dl_dlopen=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_cv_lib_dl_dlopen=no
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10072 if test $ac_cv_lib_dl_dlopen = yes; then
10073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10075 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lsvld $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10089 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_lib_svld_dlopen=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_lib_svld_dlopen=no
10133 rm -f conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10139 if test $ac_cv_lib_svld_dlopen = yes; then
10140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10142 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 ac_check_lib_save_LIBS=$LIBS
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10156 /* Override any gcc2 internal prototype to avoid an error. */
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -z "$ac_c_werror_flag"
10181 || test ! -s conftest.err'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 ac_cv_lib_dld_dld_link=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_cv_lib_dld_dld_link=no
10200 rm -f conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10204 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10205 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10206 if test $ac_cv_lib_dld_dld_link = yes; then
10207 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10228 if test "x$lt_cv_dlopen" != xno; then
10234 case $lt_cv_dlopen in
10236 save_CPPFLAGS="$CPPFLAGS"
10237 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10239 save_LDFLAGS="$LDFLAGS"
10240 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10243 LIBS="$lt_cv_dlopen_libs $LIBS"
10245 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10246 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10247 if test "${lt_cv_dlopen_self+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 if test "$cross_compiling" = yes; then :
10251 lt_cv_dlopen_self=cross
10253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10254 lt_status=$lt_dlunknown
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10256 "configure"
10257 #include "confdefs.h"
10266 # define LT_DLGLOBAL RTLD_GLOBAL
10269 # define LT_DLGLOBAL DL_GLOBAL
10271 # define LT_DLGLOBAL 0
10275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10276 find out it does not work in some platform. */
10277 #ifndef LT_DLLAZY_OR_NOW
10279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10282 # define LT_DLLAZY_OR_NOW DL_LAZY
10285 # define LT_DLLAZY_OR_NOW RTLD_NOW
10288 # define LT_DLLAZY_OR_NOW DL_NOW
10290 # define LT_DLLAZY_OR_NOW 0
10298 extern "C" void exit (int);
10301 void fnord() { int i=42;}
10304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10305 int status = $lt_dlunknown;
10309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10310 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10311 /* dlclose (self); */
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10322 (./conftest; exit; ) >&5 2>/dev/null
10324 case x$lt_status in
10325 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10326 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10327 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10330 # compilation failed
10331 lt_cv_dlopen_self=no
10338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10339 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10341 if test "x$lt_cv_dlopen_self" = xyes; then
10342 LDFLAGS="$LDFLAGS $link_static_flag"
10343 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10344 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10345 if test "${lt_cv_dlopen_self_static+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 if test "$cross_compiling" = yes; then :
10349 lt_cv_dlopen_self_static=cross
10351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10352 lt_status=$lt_dlunknown
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10354 "configure"
10355 #include "confdefs.h"
10364 # define LT_DLGLOBAL RTLD_GLOBAL
10367 # define LT_DLGLOBAL DL_GLOBAL
10369 # define LT_DLGLOBAL 0
10373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10374 find out it does not work in some platform. */
10375 #ifndef LT_DLLAZY_OR_NOW
10377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10380 # define LT_DLLAZY_OR_NOW DL_LAZY
10383 # define LT_DLLAZY_OR_NOW RTLD_NOW
10386 # define LT_DLLAZY_OR_NOW DL_NOW
10388 # define LT_DLLAZY_OR_NOW 0
10396 extern "C" void exit (int);
10399 void fnord() { int i=42;}
10402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10403 int status = $lt_dlunknown;
10407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10409 /* dlclose (self); */
10415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416 (eval $ac_link) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420 (./conftest; exit; ) >&5 2>/dev/null
10422 case x$lt_status in
10423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10425 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10428 # compilation failed
10429 lt_cv_dlopen_self_static=no
10436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10437 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10440 CPPFLAGS="$save_CPPFLAGS"
10441 LDFLAGS="$save_LDFLAGS"
10446 case $lt_cv_dlopen_self in
10447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10448 *) enable_dlopen_self=unknown ;;
10451 case $lt_cv_dlopen_self_static in
10452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10453 *) enable_dlopen_self_static=unknown ;;
10458 # Report which librarie types wil actually be built
10459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10462 echo "${ECHO_T}$can_build_shared" >&6
10464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10466 test "$can_build_shared" = "no" && enable_shared=no
10468 # On AIX, shared libraries and static libraries use the same namespace, and
10469 # are all built from PIC.
10472 test "$enable_shared" = yes && enable_static=no
10473 if test -n "$RANLIB"; then
10474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10475 postinstall_cmds='$RANLIB $lib'
10480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10481 test "$enable_shared" = yes && enable_static=no
10485 echo "$as_me:$LINENO: result: $enable_shared" >&5
10486 echo "${ECHO_T}$enable_shared" >&6
10488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10490 # Make sure either enable_shared or enable_static is yes.
10491 test "$enable_shared" = yes || enable_static=yes
10492 echo "$as_me:$LINENO: result: $enable_static" >&5
10493 echo "${ECHO_T}$enable_static" >&6
10495 # The else clause should only fire when bootstrapping the
10496 # libtool distribution, otherwise you forgot to ship ltmain.sh
10497 # with your package, and you will get complaints that there are
10498 # no rules to generate ltmain.sh.
10499 if test -f "$ltmain"; then
10500 # See if we are running on zsh, and set the options which allow our commands through
10501 # without removal of \ escapes.
10502 if test -n "${ZSH_VERSION+set}" ; then
10503 setopt NO_GLOB_SUBST
10505 # Now quote all the things that may contain metacharacters while being
10506 # careful not to overquote the AC_SUBSTed values. We take copies of the
10507 # variables and quote the copies for generation of the libtool script.
10508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10512 deplibs_check_method reload_flag reload_cmds need_locks \
10513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10514 lt_cv_sys_global_symbol_to_c_name_address \
10515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10516 old_postinstall_cmds old_postuninstall_cmds \
10520 lt_prog_compiler_wl \
10521 lt_prog_compiler_pic \
10522 lt_prog_compiler_static \
10523 lt_prog_compiler_no_builtin_flag \
10524 export_dynamic_flag_spec \
10525 thread_safe_flag_spec \
10526 whole_archive_flag_spec \
10527 enable_shared_with_static_runtimes \
10529 old_archive_from_new_cmds \
10534 compiler_lib_search_path \
10536 archive_expsym_cmds \
10538 postuninstall_cmds \
10539 old_archive_from_expsyms_cmds \
10540 allow_undefined_flag \
10541 no_undefined_flag \
10542 export_symbols_cmds \
10543 hardcode_libdir_flag_spec \
10544 hardcode_libdir_flag_spec_ld \
10545 hardcode_libdir_separator \
10546 hardcode_automatic \
10548 module_expsym_cmds \
10549 lt_cv_prog_compiler_c_o \
10551 include_expsyms; do
10554 old_archive_cmds | \
10555 old_archive_from_new_cmds | \
10557 archive_expsym_cmds | \
10559 module_expsym_cmds | \
10560 old_archive_from_expsyms_cmds | \
10561 export_symbols_cmds | \
10562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10563 postinstall_cmds | postuninstall_cmds | \
10564 old_postinstall_cmds | old_postuninstall_cmds | \
10565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10566 # Double-quote double-evaled strings.
10567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10576 *'\$0 --fallback-echo"')
10577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10581 cfgfile="${ofile}T"
10582 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10584 { echo "$as_me:$LINENO: creating $ofile" >&5
10585 echo "$as_me: creating $ofile" >&6;}
10587 cat <<__EOF__ >> "$cfgfile"
10590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10595 # Free Software Foundation, Inc.
10597 # This file is part of GNU Libtool:
10598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10600 # This program is free software; you can redistribute it and/or modify
10601 # it under the terms of the GNU General Public License as published by
10602 # the Free Software Foundation; either version 2 of the License, or
10603 # (at your option) any later version.
10605 # This program is distributed in the hope that it will be useful, but
10606 # WITHOUT ANY WARRANTY; without even the implied warranty of
10607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10608 # General Public License for more details.
10610 # You should have received a copy of the GNU General Public License
10611 # along with this program; if not, write to the Free Software
10612 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10614 # As a special exception to the GNU General Public License, if you
10615 # distribute this file as part of a program that contains a
10616 # configuration script generated by Autoconf, you may include it under
10617 # the same distribution terms that you use for the rest of that program.
10619 # A sed program that does not truncate output.
10622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10623 Xsed="$SED -e 1s/^X//"
10625 # The HP-UX ksh and POSIX shell print the target directory to stdout
10626 # if CDPATH is set.
10627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10629 # The names of the tagged configurations supported by this script.
10632 # ### BEGIN LIBTOOL CONFIG
10634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10636 # Shell to use when invoking shell scripts.
10639 # Whether or not to build shared libraries.
10640 build_libtool_libs=$enable_shared
10642 # Whether or not to build static libraries.
10643 build_old_libs=$enable_static
10645 # Whether or not to add -lc for building shared libraries.
10646 build_libtool_need_lc=$archive_cmds_need_lc
10648 # Whether or not to disallow shared libs when runtime libs are static
10649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10651 # Whether or not to optimize for fast installation.
10652 fast_install=$enable_fast_install
10655 host_alias=$host_alias
10659 # The build system.
10660 build_alias=$build_alias
10664 # An echo program that does not interpret backslashes.
10669 AR_FLAGS=$lt_AR_FLAGS
10674 # A language-specific compiler.
10677 # Is the compiler the GNU C compiler?
10683 # The linker used to build libraries.
10686 # Whether we need hard or soft links.
10689 # A BSD-compatible nm program.
10692 # A symbol stripping program
10695 # Used to examine libraries when file_magic_cmd begins "file"
10696 MAGIC_CMD=$MAGIC_CMD
10698 # Used on cygwin: DLL creation program.
10701 # Used on cygwin: object dumper.
10704 # Used on cygwin: assembler.
10707 # The name of the directory that contains temporary libtool files.
10710 # How to create reloadable object files.
10711 reload_flag=$lt_reload_flag
10712 reload_cmds=$lt_reload_cmds
10714 # How to pass a linker flag through the compiler.
10715 wl=$lt_lt_prog_compiler_wl
10717 # Object file suffix (normally "o").
10718 objext="$ac_objext"
10720 # Old archive suffix (normally "a").
10723 # Shared library suffix (normally ".so").
10724 shrext_cmds='$shrext_cmds'
10726 # Executable file suffix (normally "").
10729 # Additional compiler flags for building library objects.
10730 pic_flag=$lt_lt_prog_compiler_pic
10733 # What is the maximum length of a command?
10734 max_cmd_len=$lt_cv_sys_max_cmd_len
10736 # Does compiler simultaneously support -c and -o options?
10737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10739 # Must we lock files when doing compilation?
10740 need_locks=$lt_need_locks
10742 # Do we need the lib prefix for modules?
10743 need_lib_prefix=$need_lib_prefix
10745 # Do we need a version for libraries?
10746 need_version=$need_version
10748 # Whether dlopen is supported.
10749 dlopen_support=$enable_dlopen
10751 # Whether dlopen of programs is supported.
10752 dlopen_self=$enable_dlopen_self
10754 # Whether dlopen of statically linked programs is supported.
10755 dlopen_self_static=$enable_dlopen_self_static
10757 # Compiler flag to prevent dynamic linking.
10758 link_static_flag=$lt_lt_prog_compiler_static
10760 # Compiler flag to turn off builtin functions.
10761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10763 # Compiler flag to allow reflexive dlopens.
10764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10766 # Compiler flag to generate shared objects directly from archives.
10767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10769 # Compiler flag to generate thread-safe objects.
10770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10772 # Library versioning type.
10773 version_type=$version_type
10775 # Format of library name prefix.
10776 libname_spec=$lt_libname_spec
10778 # List of archive names. First name is the real one, the rest are links.
10779 # The last name is the one that the linker finds with -lNAME.
10780 library_names_spec=$lt_library_names_spec
10782 # The coded name of the library, if different from the real name.
10783 soname_spec=$lt_soname_spec
10785 # Commands used to build and install an old-style archive.
10787 old_archive_cmds=$lt_old_archive_cmds
10788 old_postinstall_cmds=$lt_old_postinstall_cmds
10789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10791 # Create an old-style archive from a shared archive.
10792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10794 # Create a temporary old-style archive to link instead of a shared archive.
10795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10797 # Commands used to build and install a shared archive.
10798 archive_cmds=$lt_archive_cmds
10799 archive_expsym_cmds=$lt_archive_expsym_cmds
10800 postinstall_cmds=$lt_postinstall_cmds
10801 postuninstall_cmds=$lt_postuninstall_cmds
10803 # Commands used to build a loadable module (assumed same as above if empty)
10804 module_cmds=$lt_module_cmds
10805 module_expsym_cmds=$lt_module_expsym_cmds
10807 # Commands to strip libraries.
10808 old_striplib=$lt_old_striplib
10809 striplib=$lt_striplib
10811 # Dependencies to place before the objects being linked to create a
10813 predep_objects=$lt_predep_objects
10815 # Dependencies to place after the objects being linked to create a
10817 postdep_objects=$lt_postdep_objects
10819 # Dependencies to place before the objects being linked to create a
10821 predeps=$lt_predeps
10823 # Dependencies to place after the objects being linked to create a
10825 postdeps=$lt_postdeps
10827 # The library search path used internally by the compiler when linking
10828 # a shared library.
10829 compiler_lib_search_path=$lt_compiler_lib_search_path
10831 # Method to check whether dependent libraries are shared objects.
10832 deplibs_check_method=$lt_deplibs_check_method
10834 # Command to use when deplibs_check_method == file_magic.
10835 file_magic_cmd=$lt_file_magic_cmd
10837 # Flag that allows shared libraries with undefined symbols to be built.
10838 allow_undefined_flag=$lt_allow_undefined_flag
10840 # Flag that forces no undefined symbols.
10841 no_undefined_flag=$lt_no_undefined_flag
10843 # Commands used to finish a libtool library installation in a directory.
10844 finish_cmds=$lt_finish_cmds
10846 # Same as above, but a single script fragment to be evaled but not shown.
10847 finish_eval=$lt_finish_eval
10849 # Take the output of nm and produce a listing of raw symbols and C names.
10850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10852 # Transform the output of nm in a proper C declaration
10853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10855 # Transform the output of nm in a C name address pair
10856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10858 # This is the shared library runtime path variable.
10859 runpath_var=$runpath_var
10861 # This is the shared library path variable.
10862 shlibpath_var=$shlibpath_var
10864 # Is shlibpath searched before the hard-coded library search path?
10865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10867 # How to hardcode a shared library path into an executable.
10868 hardcode_action=$hardcode_action
10870 # Whether we should hardcode library paths into libraries.
10871 hardcode_into_libs=$hardcode_into_libs
10873 # Flag to hardcode \$libdir into a binary during linking.
10874 # This must work even if \$libdir does not exist.
10875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10877 # If ld is used when linking, flag to hardcode \$libdir into
10878 # a binary during linking. This must work even if \$libdir does
10880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10882 # Whether we need a single -rpath flag with a separated argument.
10883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10886 # resulting binary.
10887 hardcode_direct=$hardcode_direct
10889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10890 # resulting binary.
10891 hardcode_minus_L=$hardcode_minus_L
10893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10894 # the resulting binary.
10895 hardcode_shlibpath_var=$hardcode_shlibpath_var
10897 # Set to yes if building a shared library automatically hardcodes DIR into the library
10898 # and all subsequent libraries and executables linked against it.
10899 hardcode_automatic=$hardcode_automatic
10901 # Variables whose values should be saved in libtool wrapper scripts and
10902 # restored at relink time.
10903 variables_saved_for_relink="$variables_saved_for_relink"
10905 # Whether libtool must link a program against all its dependency libraries.
10906 link_all_deplibs=$link_all_deplibs
10908 # Compile-time system search path for libraries
10909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10911 # Run-time system search path for libraries
10912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10914 # Fix the shell variable \$srcfile for the compiler.
10915 fix_srcfile_path="$fix_srcfile_path"
10917 # Set to yes if exported symbols are required.
10918 always_export_symbols=$always_export_symbols
10920 # The commands to list exported symbols.
10921 export_symbols_cmds=$lt_export_symbols_cmds
10923 # The commands to extract the exported symbol list from a shared archive.
10924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10926 # Symbols that should not be listed in the preloaded symbols.
10927 exclude_expsyms=$lt_exclude_expsyms
10929 # Symbols that must always be exported.
10930 include_expsyms=$lt_include_expsyms
10932 # ### END LIBTOOL CONFIG
10939 cat <<\EOF >> "$cfgfile"
10941 # AIX sometimes has problems with the GCC collect2 program. For some
10942 # reason, if we set the COLLECT_NAMES environment variable, the problems
10943 # vanish in a puff of smoke.
10944 if test "X${COLLECT_NAMES+set}" != Xset; then
10946 export COLLECT_NAMES
10952 # We use sed instead of cat because bash on DJGPP gets confused if
10953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10954 # text mode, it properly converts lines to CR/LF. This bash problem
10955 # is reportedly fixed, but why not run on old versions too?
10956 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10958 mv -f "$cfgfile" "$ofile" || \
10959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10963 # If there is no Makefile yet, we rely on a make rule to execute
10964 # `config.status --recheck' to rerun these tests and create the
10965 # libtool script then.
10966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10967 if test -f "$ltmain_in"; then
10968 test -f Makefile && make "$ltmain"
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10982 # Check whether --with-tags or --without-tags was given.
10983 if test "${with_tags+set}" = set; then
10984 withval="$with_tags"
10985 tagnames="$withval"
10988 if test -f "$ltmain" && test -n "$tagnames"; then
10989 if test ! -f "${ofile}"; then
10990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10994 if test -z "$LTCC"; then
10995 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10996 if test -z "$LTCC"; then
10997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11005 # Extract list of available tagged configurations in $ofile.
11006 # Note that this assumes the entire list is on one line.
11007 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11010 for tagname in $tagnames; do
11012 # Check whether tagname contains only valid characters
11013 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11015 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11016 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11017 { (exit 1); exit 1; }; }
11021 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11023 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11024 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11025 { (exit 1); exit 1; }; }
11028 # Update the list of available tags.
11029 if test -n "$tagname"; then
11030 echo appending configuration tag \"$tagname\" to $ofile
11034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11035 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11036 (test "X$CXX" != "Xg++"))) ; then
11044 if test -n "$F77" && test "X$F77" != "Xno"; then
11052 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11063 # Source file extension for RC test sources.
11066 # Object file extension for compiled RC test sources.
11070 # Code to be used in simple compile tests
11071 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11073 # Code to be used in simple link tests
11074 lt_simple_link_test_code="$lt_simple_compile_test_code"
11076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11078 # If no C compiler was specified, use CC.
11081 # Allow CC to be a program name with arguments.
11085 # save warnings/boilerplate of simple test code
11086 ac_outfile=conftest.$ac_objext
11087 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11089 _lt_compiler_boilerplate=`cat conftest.err`
11092 ac_outfile=conftest.$ac_objext
11093 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11095 _lt_linker_boilerplate=`cat conftest.err`
11099 # Allow CC to be a program name with arguments.
11104 for cc_temp in $compiler""; do
11106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11114 lt_cv_prog_compiler_c_o_RC=yes
11116 # The else clause should only fire when bootstrapping the
11117 # libtool distribution, otherwise you forgot to ship ltmain.sh
11118 # with your package, and you will get complaints that there are
11119 # no rules to generate ltmain.sh.
11120 if test -f "$ltmain"; then
11121 # See if we are running on zsh, and set the options which allow our commands through
11122 # without removal of \ escapes.
11123 if test -n "${ZSH_VERSION+set}" ; then
11124 setopt NO_GLOB_SUBST
11126 # Now quote all the things that may contain metacharacters while being
11127 # careful not to overquote the AC_SUBSTed values. We take copies of the
11128 # variables and quote the copies for generation of the libtool script.
11129 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11131 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11132 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11133 deplibs_check_method reload_flag reload_cmds need_locks \
11134 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11135 lt_cv_sys_global_symbol_to_c_name_address \
11136 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11137 old_postinstall_cmds old_postuninstall_cmds \
11141 lt_prog_compiler_wl_RC \
11142 lt_prog_compiler_pic_RC \
11143 lt_prog_compiler_static_RC \
11144 lt_prog_compiler_no_builtin_flag_RC \
11145 export_dynamic_flag_spec_RC \
11146 thread_safe_flag_spec_RC \
11147 whole_archive_flag_spec_RC \
11148 enable_shared_with_static_runtimes_RC \
11149 old_archive_cmds_RC \
11150 old_archive_from_new_cmds_RC \
11151 predep_objects_RC \
11152 postdep_objects_RC \
11155 compiler_lib_search_path_RC \
11157 archive_expsym_cmds_RC \
11158 postinstall_cmds_RC \
11159 postuninstall_cmds_RC \
11160 old_archive_from_expsyms_cmds_RC \
11161 allow_undefined_flag_RC \
11162 no_undefined_flag_RC \
11163 export_symbols_cmds_RC \
11164 hardcode_libdir_flag_spec_RC \
11165 hardcode_libdir_flag_spec_ld_RC \
11166 hardcode_libdir_separator_RC \
11167 hardcode_automatic_RC \
11169 module_expsym_cmds_RC \
11170 lt_cv_prog_compiler_c_o_RC \
11171 exclude_expsyms_RC \
11172 include_expsyms_RC; do
11175 old_archive_cmds_RC | \
11176 old_archive_from_new_cmds_RC | \
11177 archive_cmds_RC | \
11178 archive_expsym_cmds_RC | \
11180 module_expsym_cmds_RC | \
11181 old_archive_from_expsyms_cmds_RC | \
11182 export_symbols_cmds_RC | \
11183 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11184 postinstall_cmds | postuninstall_cmds | \
11185 old_postinstall_cmds | old_postuninstall_cmds | \
11186 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11187 # Double-quote double-evaled strings.
11188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11197 *'\$0 --fallback-echo"')
11198 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11204 cat <<__EOF__ >> "$cfgfile"
11205 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11209 # Shell to use when invoking shell scripts.
11212 # Whether or not to build shared libraries.
11213 build_libtool_libs=$enable_shared
11215 # Whether or not to build static libraries.
11216 build_old_libs=$enable_static
11218 # Whether or not to add -lc for building shared libraries.
11219 build_libtool_need_lc=$archive_cmds_need_lc_RC
11221 # Whether or not to disallow shared libs when runtime libs are static
11222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11224 # Whether or not to optimize for fast installation.
11225 fast_install=$enable_fast_install
11228 host_alias=$host_alias
11232 # The build system.
11233 build_alias=$build_alias
11237 # An echo program that does not interpret backslashes.
11242 AR_FLAGS=$lt_AR_FLAGS
11247 # A language-specific compiler.
11250 # Is the compiler the GNU C compiler?
11256 # The linker used to build libraries.
11259 # Whether we need hard or soft links.
11262 # A BSD-compatible nm program.
11265 # A symbol stripping program
11268 # Used to examine libraries when file_magic_cmd begins "file"
11269 MAGIC_CMD=$MAGIC_CMD
11271 # Used on cygwin: DLL creation program.
11274 # Used on cygwin: object dumper.
11277 # Used on cygwin: assembler.
11280 # The name of the directory that contains temporary libtool files.
11283 # How to create reloadable object files.
11284 reload_flag=$lt_reload_flag
11285 reload_cmds=$lt_reload_cmds
11287 # How to pass a linker flag through the compiler.
11288 wl=$lt_lt_prog_compiler_wl_RC
11290 # Object file suffix (normally "o").
11291 objext="$ac_objext"
11293 # Old archive suffix (normally "a").
11296 # Shared library suffix (normally ".so").
11297 shrext_cmds='$shrext_cmds'
11299 # Executable file suffix (normally "").
11302 # Additional compiler flags for building library objects.
11303 pic_flag=$lt_lt_prog_compiler_pic_RC
11306 # What is the maximum length of a command?
11307 max_cmd_len=$lt_cv_sys_max_cmd_len
11309 # Does compiler simultaneously support -c and -o options?
11310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11312 # Must we lock files when doing compilation?
11313 need_locks=$lt_need_locks
11315 # Do we need the lib prefix for modules?
11316 need_lib_prefix=$need_lib_prefix
11318 # Do we need a version for libraries?
11319 need_version=$need_version
11321 # Whether dlopen is supported.
11322 dlopen_support=$enable_dlopen
11324 # Whether dlopen of programs is supported.
11325 dlopen_self=$enable_dlopen_self
11327 # Whether dlopen of statically linked programs is supported.
11328 dlopen_self_static=$enable_dlopen_self_static
11330 # Compiler flag to prevent dynamic linking.
11331 link_static_flag=$lt_lt_prog_compiler_static_RC
11333 # Compiler flag to turn off builtin functions.
11334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11336 # Compiler flag to allow reflexive dlopens.
11337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11339 # Compiler flag to generate shared objects directly from archives.
11340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11342 # Compiler flag to generate thread-safe objects.
11343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11345 # Library versioning type.
11346 version_type=$version_type
11348 # Format of library name prefix.
11349 libname_spec=$lt_libname_spec
11351 # List of archive names. First name is the real one, the rest are links.
11352 # The last name is the one that the linker finds with -lNAME.
11353 library_names_spec=$lt_library_names_spec
11355 # The coded name of the library, if different from the real name.
11356 soname_spec=$lt_soname_spec
11358 # Commands used to build and install an old-style archive.
11360 old_archive_cmds=$lt_old_archive_cmds_RC
11361 old_postinstall_cmds=$lt_old_postinstall_cmds
11362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11364 # Create an old-style archive from a shared archive.
11365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11367 # Create a temporary old-style archive to link instead of a shared archive.
11368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11370 # Commands used to build and install a shared archive.
11371 archive_cmds=$lt_archive_cmds_RC
11372 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11373 postinstall_cmds=$lt_postinstall_cmds
11374 postuninstall_cmds=$lt_postuninstall_cmds
11376 # Commands used to build a loadable module (assumed same as above if empty)
11377 module_cmds=$lt_module_cmds_RC
11378 module_expsym_cmds=$lt_module_expsym_cmds_RC
11380 # Commands to strip libraries.
11381 old_striplib=$lt_old_striplib
11382 striplib=$lt_striplib
11384 # Dependencies to place before the objects being linked to create a
11386 predep_objects=$lt_predep_objects_RC
11388 # Dependencies to place after the objects being linked to create a
11390 postdep_objects=$lt_postdep_objects_RC
11392 # Dependencies to place before the objects being linked to create a
11394 predeps=$lt_predeps_RC
11396 # Dependencies to place after the objects being linked to create a
11398 postdeps=$lt_postdeps_RC
11400 # The library search path used internally by the compiler when linking
11401 # a shared library.
11402 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11404 # Method to check whether dependent libraries are shared objects.
11405 deplibs_check_method=$lt_deplibs_check_method
11407 # Command to use when deplibs_check_method == file_magic.
11408 file_magic_cmd=$lt_file_magic_cmd
11410 # Flag that allows shared libraries with undefined symbols to be built.
11411 allow_undefined_flag=$lt_allow_undefined_flag_RC
11413 # Flag that forces no undefined symbols.
11414 no_undefined_flag=$lt_no_undefined_flag_RC
11416 # Commands used to finish a libtool library installation in a directory.
11417 finish_cmds=$lt_finish_cmds
11419 # Same as above, but a single script fragment to be evaled but not shown.
11420 finish_eval=$lt_finish_eval
11422 # Take the output of nm and produce a listing of raw symbols and C names.
11423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11425 # Transform the output of nm in a proper C declaration
11426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11428 # Transform the output of nm in a C name address pair
11429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11431 # This is the shared library runtime path variable.
11432 runpath_var=$runpath_var
11434 # This is the shared library path variable.
11435 shlibpath_var=$shlibpath_var
11437 # Is shlibpath searched before the hard-coded library search path?
11438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11440 # How to hardcode a shared library path into an executable.
11441 hardcode_action=$hardcode_action_RC
11443 # Whether we should hardcode library paths into libraries.
11444 hardcode_into_libs=$hardcode_into_libs
11446 # Flag to hardcode \$libdir into a binary during linking.
11447 # This must work even if \$libdir does not exist.
11448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11450 # If ld is used when linking, flag to hardcode \$libdir into
11451 # a binary during linking. This must work even if \$libdir does
11453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11455 # Whether we need a single -rpath flag with a separated argument.
11456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11459 # resulting binary.
11460 hardcode_direct=$hardcode_direct_RC
11462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11463 # resulting binary.
11464 hardcode_minus_L=$hardcode_minus_L_RC
11466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11467 # the resulting binary.
11468 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11470 # Set to yes if building a shared library automatically hardcodes DIR into the library
11471 # and all subsequent libraries and executables linked against it.
11472 hardcode_automatic=$hardcode_automatic_RC
11474 # Variables whose values should be saved in libtool wrapper scripts and
11475 # restored at relink time.
11476 variables_saved_for_relink="$variables_saved_for_relink"
11478 # Whether libtool must link a program against all its dependency libraries.
11479 link_all_deplibs=$link_all_deplibs_RC
11481 # Compile-time system search path for libraries
11482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11484 # Run-time system search path for libraries
11485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11487 # Fix the shell variable \$srcfile for the compiler.
11488 fix_srcfile_path="$fix_srcfile_path_RC"
11490 # Set to yes if exported symbols are required.
11491 always_export_symbols=$always_export_symbols_RC
11493 # The commands to list exported symbols.
11494 export_symbols_cmds=$lt_export_symbols_cmds_RC
11496 # The commands to extract the exported symbol list from a shared archive.
11497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11499 # Symbols that should not be listed in the preloaded symbols.
11500 exclude_expsyms=$lt_exclude_expsyms_RC
11502 # Symbols that must always be exported.
11503 include_expsyms=$lt_include_expsyms_RC
11505 # ### END LIBTOOL TAG CONFIG: $tagname
11511 # If there is no Makefile yet, we rely on a make rule to execute
11512 # `config.status --recheck' to rerun these tests and create the
11513 # libtool script then.
11514 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11515 if test -f "$ltmain_in"; then
11516 test -f Makefile && make "$ltmain"
11522 ac_cpp='$CPP $CPPFLAGS'
11523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11532 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11533 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11534 { (exit 1); exit 1; }; }
11538 # Append the new tag name to the list of available tags.
11539 if test -n "$tagname" ; then
11540 available_tags="$available_tags $tagname"
11546 # Now substitute the updated list of available tags.
11547 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11548 mv "${ofile}T" "$ofile"
11552 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11553 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11554 { (exit 1); exit 1; }; }
11560 # This can be used to rebuild libtool when needed
11561 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11563 # Always use our own libtool.
11564 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11566 # Prevent multiple expansion
11578 if test $ol_enable_perl != no ; then
11579 # Extract the first word of "perl", so it can be a program name with args.
11580 set dummy perl; ac_word=$2
11581 echo "$as_me:$LINENO: checking for $ac_word" >&5
11582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11583 if test "${ac_cv_path_PERLBIN+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11609 PERLBIN=$ac_cv_path_PERLBIN
11611 if test -n "$PERLBIN"; then
11612 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11613 echo "${ECHO_T}$PERLBIN" >&6
11615 echo "$as_me:$LINENO: result: no" >&5
11616 echo "${ECHO_T}no" >&6
11620 if test "no$PERLBIN" = "no" ; then
11621 if test $ol_enable_perl = yes ; then
11622 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11623 echo "$as_me: error: could not locate perl" >&2;}
11624 { (exit 1); exit 1; }; }
11628 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11629 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11631 if test x"$ol_enable_perl" = "xyes" ; then
11632 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11634 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11647 # On Suns, sometimes $CPP names a directory.
11648 if test -n "$CPP" && test -d "$CPP"; then
11651 if test -z "$CPP"; then
11652 if test "${ac_cv_prog_CPP+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 # Double quotes because CPP needs to be expanded
11656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11658 ac_preproc_ok=false
11659 for ac_c_preproc_warn_flag in '' yes
11661 # Use a header file that comes with gcc, so configuring glibc
11662 # with a fresh cross-compiler works.
11663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664 # <limits.h> exists even on freestanding compilers.
11665 # On the NeXT, cc -E runs the code through the compiler's parser,
11666 # not just through cpp. "Syntax error" is here to catch this case.
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11674 # include <limits.h>
11676 # include <assert.h>
11680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } >/dev/null; then
11688 if test -s conftest.err; then
11689 ac_cpp_err=$ac_c_preproc_warn_flag
11690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11697 if test -z "$ac_cpp_err"; then
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 # Broken: fails on valid input.
11706 rm -f conftest.err conftest.$ac_ext
11708 # OK, works on sane cases. Now check whether non-existent headers
11709 # can be detected and how.
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 #include <ac_nonexistent.h>
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
11728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735 if test -z "$ac_cpp_err"; then
11736 # Broken: success on invalid input.
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 # Passes both tests.
11746 rm -f conftest.err conftest.$ac_ext
11749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11750 rm -f conftest.err conftest.$ac_ext
11751 if $ac_preproc_ok; then
11756 ac_cv_prog_CPP=$CPP
11759 CPP=$ac_cv_prog_CPP
11761 ac_cv_prog_CPP=$CPP
11763 echo "$as_me:$LINENO: result: $CPP" >&5
11764 echo "${ECHO_T}$CPP" >&6
11765 ac_preproc_ok=false
11766 for ac_c_preproc_warn_flag in '' yes
11768 # Use a header file that comes with gcc, so configuring glibc
11769 # with a fresh cross-compiler works.
11770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 # <limits.h> exists even on freestanding compilers.
11772 # On the NeXT, cc -E runs the code through the compiler's parser,
11773 # not just through cpp. "Syntax error" is here to catch this case.
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11781 # include <limits.h>
11783 # include <assert.h>
11787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11790 grep -v '^ *+' conftest.er1 >conftest.err
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } >/dev/null; then
11795 if test -s conftest.err; then
11796 ac_cpp_err=$ac_c_preproc_warn_flag
11797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11804 if test -z "$ac_cpp_err"; then
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 # Broken: fails on valid input.
11813 rm -f conftest.err conftest.$ac_ext
11815 # OK, works on sane cases. Now check whether non-existent headers
11816 # can be detected and how.
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 #include <ac_nonexistent.h>
11825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null; then
11833 if test -s conftest.err; then
11834 ac_cpp_err=$ac_c_preproc_warn_flag
11835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 if test -z "$ac_cpp_err"; then
11843 # Broken: success on invalid input.
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 # Passes both tests.
11853 rm -f conftest.err conftest.$ac_ext
11856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11857 rm -f conftest.err conftest.$ac_ext
11858 if $ac_preproc_ok; then
11861 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11862 See \`config.log' for more details." >&5
11863 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11864 See \`config.log' for more details." >&2;}
11865 { (exit 1); exit 1; }; }
11869 ac_cpp='$CPP $CPPFLAGS'
11870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 *mingw32* ) ac_cv_mingw32=yes ;;
11877 *cygwin* ) ac_cv_cygwin=yes ;;
11883 cat >>confdefs.h <<_ACEOF
11884 #define EXEEXT "${EXEEXT}"
11888 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11889 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11890 if test "${ac_cv_lib_be_be_app+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lbe -lroot -lnet $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11902 /* Override any gcc2 internal prototype to avoid an error. */
11906 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag"
11927 || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_be_be_app=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_cv_lib_be_be_app=no
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11951 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11952 if test $ac_cv_lib_be_be_app = yes; then
11953 LIBS="$LIBS -lbe -lroot -lnet"
11960 ac_cpp='$CPP $CPPFLAGS'
11961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964 if test -n "$ac_tool_prefix"; then
11965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11967 echo "$as_me:$LINENO: checking for $ac_word" >&5
11968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11969 if test "${ac_cv_prog_CC+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 if test -n "$CC"; then
11973 ac_cv_prog_CC="$CC" # Let the user override the test.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 if test -n "$CC"; then
11993 echo "$as_me:$LINENO: result: $CC" >&5
11994 echo "${ECHO_T}$CC" >&6
11996 echo "$as_me:$LINENO: result: no" >&5
11997 echo "${ECHO_T}no" >&6
12001 if test -z "$ac_cv_prog_CC"; then
12003 # Extract the first word of "gcc", so it can be a program name with args.
12004 set dummy gcc; ac_word=$2
12005 echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 if test -n "$ac_ct_CC"; then
12011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_ac_ct_CC="gcc"
12021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12030 if test -n "$ac_ct_CC"; then
12031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12032 echo "${ECHO_T}$ac_ct_CC" >&6
12034 echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6
12040 CC="$ac_cv_prog_CC"
12043 if test -z "$CC"; then
12044 if test -n "$ac_tool_prefix"; then
12045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12046 set dummy ${ac_tool_prefix}cc; ac_word=$2
12047 echo "$as_me:$LINENO: checking for $ac_word" >&5
12048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12049 if test "${ac_cv_prog_CC+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 if test -n "$CC"; then
12053 ac_cv_prog_CC="$CC" # Let the user override the test.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_prog_CC="${ac_tool_prefix}cc"
12063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 if test -n "$CC"; then
12073 echo "$as_me:$LINENO: result: $CC" >&5
12074 echo "${ECHO_T}$CC" >&6
12076 echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12081 if test -z "$ac_cv_prog_CC"; then
12083 # Extract the first word of "cc", so it can be a program name with args.
12084 set dummy cc; ac_word=$2
12085 echo "$as_me:$LINENO: checking for $ac_word" >&5
12086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 if test -n "$ac_ct_CC"; then
12091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_prog_ac_ct_CC="cc"
12101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12110 if test -n "$ac_ct_CC"; then
12111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12112 echo "${ECHO_T}$ac_ct_CC" >&6
12114 echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12120 CC="$ac_cv_prog_CC"
12124 if test -z "$CC"; then
12125 # Extract the first word of "cc", so it can be a program name with args.
12126 set dummy cc; ac_word=$2
12127 echo "$as_me:$LINENO: checking for $ac_word" >&5
12128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12129 if test "${ac_cv_prog_CC+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 if test -n "$CC"; then
12133 ac_cv_prog_CC="$CC" # Let the user override the test.
12135 ac_prog_rejected=no
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12144 ac_prog_rejected=yes
12148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 if test $ac_prog_rejected = yes; then
12155 # We found a bogon in the path, so make sure we never use it.
12156 set dummy $ac_cv_prog_CC
12158 if test $# != 0; then
12159 # We chose a different compiler from the bogus one.
12160 # However, it has the same basename, so the bogon will be chosen
12161 # first if we set CC to just the basename; use the full file name.
12163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12169 if test -n "$CC"; then
12170 echo "$as_me:$LINENO: result: $CC" >&5
12171 echo "${ECHO_T}$CC" >&6
12173 echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6
12178 if test -z "$CC"; then
12179 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12184 echo "$as_me:$LINENO: checking for $ac_word" >&5
12185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12186 if test "${ac_cv_prog_CC+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 if test -n "$CC"; then
12190 ac_cv_prog_CC="$CC" # Let the user override the test.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 if test -n "$CC"; then
12210 echo "$as_me:$LINENO: result: $CC" >&5
12211 echo "${ECHO_T}$CC" >&6
12213 echo "$as_me:$LINENO: result: no" >&5
12214 echo "${ECHO_T}no" >&6
12217 test -n "$CC" && break
12220 if test -z "$CC"; then
12224 # Extract the first word of "$ac_prog", so it can be a program name with args.
12225 set dummy $ac_prog; ac_word=$2
12226 echo "$as_me:$LINENO: checking for $ac_word" >&5
12227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 if test -n "$ac_ct_CC"; then
12232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_prog_ac_ct_CC="$ac_prog"
12242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12251 if test -n "$ac_ct_CC"; then
12252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12253 echo "${ECHO_T}$ac_ct_CC" >&6
12255 echo "$as_me:$LINENO: result: no" >&5
12256 echo "${ECHO_T}no" >&6
12259 test -n "$ac_ct_CC" && break
12268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12269 See \`config.log' for more details." >&5
12270 echo "$as_me: error: no acceptable C compiler found in \$PATH
12271 See \`config.log' for more details." >&2;}
12272 { (exit 1); exit 1; }; }
12274 # Provide some information about the compiler.
12275 echo "$as_me:$LINENO:" \
12276 "checking for C compiler version" >&5
12277 ac_compiler=`set X $ac_compile; echo $2`
12278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12279 (eval $ac_compiler --version </dev/null >&5) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }
12283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12284 (eval $ac_compiler -v </dev/null >&5) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }
12288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12289 (eval $ac_compiler -V </dev/null >&5) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }
12294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_compiler_gnu=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12352 GCC=`test $ac_compiler_gnu = yes && echo yes`
12353 ac_test_CFLAGS=${CFLAGS+set}
12354 ac_save_CFLAGS=$CFLAGS
12356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12358 if test "${ac_cv_prog_cc_g+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_prog_cc_g=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12409 if test "$ac_test_CFLAGS" = set; then
12410 CFLAGS=$ac_save_CFLAGS
12411 elif test $ac_cv_prog_cc_g = yes; then
12412 if test "$GCC" = yes; then
12418 if test "$GCC" = yes; then
12424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 ac_cv_prog_cc_stdc=no
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 #include <stdarg.h>
12439 #include <sys/types.h>
12440 #include <sys/stat.h>
12441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12442 struct buf { int x; };
12443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12444 static char *e (p, i)
12450 static char *f (char * (*g) (char **, int), char **p, ...)
12455 s = g (p, va_arg (v,int));
12460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12461 function prototypes and stuff, but not '\xHH' hex character constants.
12462 These don't provoke an error unfortunately, instead are silently treated
12463 as 'x'. The following induces an error, until -std1 is added to get
12464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12465 array size at least. It's necessary to write '\x00'==0 to get something
12466 that's true only with -std1. */
12467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12469 int test (int i, double x);
12470 struct s1 {int (*f) (int a);};
12471 struct s2 {int (*f) (double a);};
12472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12483 # Don't try gcc -ansi; that turns off useful extensions and
12484 # breaks some systems' header files.
12485 # AIX -qlanglvl=ansi
12486 # Ultrix and OSF/1 -std1
12487 # HP-UX 10.20 and later -Ae
12488 # HP-UX older versions -Aa -D_HPUX_SOURCE
12489 # SVR4 -Xc -D__EXTENSIONS__
12490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12492 CC="$ac_save_CC $ac_arg"
12493 rm -f conftest.$ac_objext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495 (eval $ac_compile) 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_prog_cc_stdc=$ac_arg
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12522 rm -f conftest.err conftest.$ac_objext
12524 rm -f conftest.$ac_ext conftest.$ac_objext
12529 case "x$ac_cv_prog_cc_stdc" in
12531 echo "$as_me:$LINENO: result: none needed" >&5
12532 echo "${ECHO_T}none needed" >&6 ;;
12534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12536 CC="$CC $ac_cv_prog_cc_stdc" ;;
12539 # Some people use a C++ compiler to compile C. Since we use `exit',
12540 # in C++ we need to declare it. In case someone uses the same compiler
12541 # for both compiling C and C++ we need to have the C++ compiler decide
12542 # the declaration of exit, since it's the most demanding environment.
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #ifndef __cplusplus
12548 rm -f conftest.$ac_objext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest.$ac_objext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 for ac_declaration in \
12572 'extern "C" void std::exit (int) throw (); using std::exit;' \
12573 'extern "C" void std::exit (int); using std::exit;' \
12574 'extern "C" void exit (int) throw ();' \
12575 'extern "C" void exit (int);' \
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12585 #include <stdlib.h>
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596 (eval $ac_compile) 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_c_werror_flag"
12604 || test ! -s conftest.err'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest.$ac_objext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670 if test -n "$ac_declaration"; then
12671 echo '#ifdef __cplusplus' >>confdefs.h
12672 echo $ac_declaration >>confdefs.h
12673 echo '#endif' >>confdefs.h
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688 depcc="$CC" am_compiler_list=
12690 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12691 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12696 # We make a subdir and do the tests there. Otherwise we can end up
12697 # making bogus files that we don't know about and never remove. For
12698 # instance it was reported that on HP-UX the gcc test will end up
12699 # making a dummy file named `D' -- because `-MD' means `put the output
12702 # Copy depcomp to subdir because otherwise we won't find it if we're
12703 # using a relative directory.
12704 cp "$am_depcomp" conftest.dir
12706 # We will build objects and dependencies in a subdirectory because
12707 # it helps to detect inapplicable dependency modes. For instance
12708 # both Tru64's cc and ICC support -MD to output dependencies as a
12709 # side effect of compilation, but ICC will put the dependencies in
12710 # the current directory while Tru64 will put them in the object
12714 am_cv_CC_dependencies_compiler_type=none
12715 if test "$am_compiler_list" = ""; then
12716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12718 for depmode in $am_compiler_list; do
12719 # Setup a source with many dependencies, because some compilers
12720 # like to wrap large dependency lists on column 80 (with \), and
12721 # we should not choose a depcomp mode which is confused by this.
12723 # We need to recreate these files for each test, as the compiler may
12724 # overwrite some of them when testing with obscure command lines.
12725 # This happens at least with the AIX C compiler.
12727 for i in 1 2 3 4 5 6; do
12728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12729 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12730 # Solaris 8's {/usr,}/bin/sh.
12731 touch sub/conftst$i.h
12733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12737 # after this tag, mechanisms are not by side-effect, so they'll
12738 # only be used when explicitly requested
12739 if test "x$enable_dependency_tracking" = xyes; then
12747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12748 # mode. It turns out that the SunPro C++ compiler does not properly
12749 # handle `-M -o', and we need to detect this.
12750 if depmode=$depmode \
12751 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12753 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12754 >/dev/null 2>conftest.err &&
12755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12756 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12758 # icc doesn't choke on unknown options, it will just issue warnings
12759 # or remarks (even with -Werror). So we grep stderr for any message
12760 # that says an option was ignored or not supported.
12761 # When given -MP, icc 7.0 and 7.1 complain thusly:
12762 # icc: Command line warning: ignoring option '-M'; no argument required
12763 # The diagnosis changed in icc 8.0:
12764 # icc: Command line remark: option '-MP' not supported
12765 if (grep 'ignoring option' conftest.err ||
12766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12767 am_cv_CC_dependencies_compiler_type=$depmode
12774 rm -rf conftest.dir
12776 am_cv_CC_dependencies_compiler_type=none
12780 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12781 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12782 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12787 test "x$enable_dependency_tracking" != xno \
12788 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12789 am__fastdepCC_TRUE=
12790 am__fastdepCC_FALSE='#'
12792 am__fastdepCC_TRUE='#'
12793 am__fastdepCC_FALSE=
12797 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12798 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12799 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12800 { (exit 1); exit 1; }; }
12803 # test for make depend flag
12806 if test -z "${MKDEP}"; then
12807 OL_MKDEP="${CC-cc}"
12808 if test -z "${MKDEP_FLAGS}"; then
12809 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12810 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12811 if test "${ol_cv_mkdep+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 for flag in "-M" "-xM"; do
12817 cat > conftest.c <<EOF
12820 if { ac_try='$OL_MKDEP $flag conftest.c'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } \
12826 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12828 if test ! -f conftest."${ac_object}" ; then
12830 OL_MKDEP_FLAGS="$flag"
12838 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12839 echo "${ECHO_T}$ol_cv_mkdep" >&6
12840 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12843 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12847 OL_MKDEP="${MKDEP}"
12848 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12853 if test "${ol_cv_mkdep}" = no ; then
12854 # this will soon become an error
12855 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12856 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12859 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12860 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12861 if test "${ac_cv_lib_s_afopen+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 ac_check_lib_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12873 /* Override any gcc2 internal prototype to avoid an error. */
12877 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890 (eval $ac_link) 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag"
12898 || test ! -s conftest.err'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_cv_lib_s_afopen=yes
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_cv_lib_s_afopen=no
12917 rm -f conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12921 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12922 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12923 if test $ac_cv_lib_s_afopen = yes; then
12927 cat >>confdefs.h <<\_ACEOF
12928 #define HAVE_AIX_SECURITY 1
12937 ac_cv_func_getopt=no
12939 cat >>confdefs.h <<\_ACEOF
12940 #define BOTH_STRINGS_H 1
12947 WITH_MODULES_ENABLED=no
12948 if test $ol_enable_modules != no ; then
12950 for ac_header in ltdl.h
12952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12954 echo "$as_me:$LINENO: checking for $ac_header" >&5
12955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12962 # Is the header compilable?
12963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #include <$ac_header>
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_header_compiler=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_header_compiler=no
13003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13005 echo "${ECHO_T}$ac_header_compiler" >&6
13007 # Is the header present?
13008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 #include <$ac_header>
13018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null; then
13026 if test -s conftest.err; then
13027 ac_cpp_err=$ac_c_preproc_warn_flag
13028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13035 if test -z "$ac_cpp_err"; then
13036 ac_header_preproc=yes
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_header_preproc=no
13043 rm -f conftest.err conftest.$ac_ext
13044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13045 echo "${ECHO_T}$ac_header_preproc" >&6
13047 # So? What about this header?
13048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13054 ac_header_preproc=yes
13057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13071 ## --------------------------------------------- ##
13072 ## Report this to <http://www.openldap.org/its/> ##
13073 ## --------------------------------------------- ##
13076 sed "s/^/$as_me: WARNING: /" >&2
13079 echo "$as_me:$LINENO: checking for $ac_header" >&5
13080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 eval "$as_ac_Header=\$ac_header_preproc"
13086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13091 cat >>confdefs.h <<_ACEOF
13092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13100 if test $ac_cv_header_ltdl_h = no ; then
13101 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13102 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13103 { (exit 1); exit 1; }; }
13106 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13107 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13108 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 ac_check_lib_save_LIBS=$LIBS
13112 LIBS="-lltdl $LIBS"
13113 cat >conftest.$ac_ext <<_ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13120 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -z "$ac_c_werror_flag"
13145 || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_ltdl_lt_dlinit=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_ltdl_lt_dlinit=no
13164 rm -f conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13168 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13169 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13170 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13172 MODULES_LIBS=-lltdl
13174 cat >>confdefs.h <<\_ACEOF
13175 #define HAVE_LIBLTDL 1
13182 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13183 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13184 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13185 { (exit 1); exit 1; }; }
13187 ol_link_modules=yes
13188 WITH_MODULES_ENABLED=yes
13191 for i in $Backends; do
13192 eval "ol_tmp=\$ol_enable_$i"
13193 if test $ol_tmp = mod ; then
13194 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13195 echo "$as_me: WARNING: building static $i backend" >&2;}
13196 eval "ol_enable_$i=yes"
13199 for i in $Overlays; do
13200 eval "ol_tmp=\$ol_enable_$i"
13201 if test $ol_tmp = mod ; then
13202 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13203 echo "$as_me: WARNING: building static $i overlay" >&2;}
13204 eval "ol_enable_$i=yes"
13210 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13211 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13212 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13224 #include <__ASCII__/generate_error.h>
13228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev/null; then
13236 if test -s conftest.err; then
13237 ac_cpp_err=$ac_c_preproc_warn_flag
13238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13245 if test -z "$ac_cpp_err"; then
13246 ol_cv_cpp_ebcdic=yes
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ol_cv_cpp_ebcdic=no
13253 rm -f conftest.err conftest.$ac_ext
13255 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13256 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13257 if test $ol_cv_cpp_ebcdic = yes ; then
13259 cat >>confdefs.h <<\_ACEOF
13260 #define HAVE_EBCDIC 1
13265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13267 if test "${ol_cv_header_stdc+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <stdlib.h>
13277 #include <stdarg.h>
13278 #include <string.h>
13281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13284 grep -v '^ *+' conftest.er1 >conftest.err
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } >/dev/null; then
13289 if test -s conftest.err; then
13290 ac_cpp_err=$ac_c_preproc_warn_flag
13291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13298 if test -z "$ac_cpp_err"; then
13299 ol_cv_header_stdc=yes
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ol_cv_header_stdc=no
13306 rm -f conftest.err conftest.$ac_ext
13308 if test $ol_cv_header_stdc = yes; then
13309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316 #include <string.h>
13319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13320 $EGREP "memchr" >/dev/null 2>&1; then
13323 ol_cv_header_stdc=no
13329 if test $ol_cv_header_stdc = yes; then
13330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <stdlib.h>
13340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13341 $EGREP "free" >/dev/null 2>&1; then
13344 ol_cv_header_stdc=no
13350 if test $ol_cv_header_stdc = yes; then
13351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13352 if test "$cross_compiling" = yes; then
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13362 #ifndef HAVE_EBCDIC
13363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13366 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13367 || ('j' <= (c) && (c) <= 'r') \
13368 || ('s' <= (c) && (c) <= 'z'))
13369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13372 int main () { int i; for (i = 0; i < 256; i++)
13373 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 ol_cv_header_stdc=no
13397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13402 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13403 if test $ol_cv_header_stdc = yes; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define STDC_HEADERS 1
13409 ac_cv_header_stdc=disable
13412 if test $ol_cv_header_stdc != yes; then
13413 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13414 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13422 ac_header_dirent=no
13423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13424 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13426 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <sys/types.h>
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 eval "$as_ac_Header=yes"
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 eval "$as_ac_Header=no"
13477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13482 cat >>confdefs.h <<_ACEOF
13483 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13486 ac_header_dirent=$ac_hdr; break
13490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13491 if test $ac_header_dirent = dirent.h; then
13492 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13493 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13494 if test "${ac_cv_search_opendir+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_func_search_save_LIBS=$LIBS
13498 ac_cv_search_opendir=no
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 /* Override any gcc2 internal prototype to avoid an error. */
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_search_opendir="none required"
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13549 rm -f conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13551 if test "$ac_cv_search_opendir" = no; then
13552 for ac_lib in dir; do
13553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any gcc2 internal prototype to avoid an error. */
13565 /* We use char because int might match the return type of a gcc2
13566 builtin and then its argument prototype would still apply. */
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_search_opendir="-l$ac_lib"
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13605 rm -f conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_func_search_save_LIBS
13611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13613 if test "$ac_cv_search_opendir" != no; then
13614 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13619 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13621 if test "${ac_cv_search_opendir+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_func_search_save_LIBS=$LIBS
13625 ac_cv_search_opendir=no
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 /* Override any gcc2 internal prototype to avoid an error. */
13637 /* We use char because int might match the return type of a gcc2
13638 builtin and then its argument prototype would still apply. */
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13650 (eval $ac_link) 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag"
13658 || test ! -s conftest.err'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest$ac_exeext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_cv_search_opendir="none required"
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13676 rm -f conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 if test "$ac_cv_search_opendir" = no; then
13679 for ac_lib in x; do
13680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 /* Override any gcc2 internal prototype to avoid an error. */
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705 (eval $ac_link) 2>conftest.er1
13707 grep -v '^ *+' conftest.er1 >conftest.err
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_search_opendir="-l$ac_lib"
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13732 rm -f conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13736 LIBS=$ac_func_search_save_LIBS
13738 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13739 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13740 if test "$ac_cv_search_opendir" != no; then
13741 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #include <sys/types.h>
13759 #include <sys/wait.h>
13760 #ifndef WEXITSTATUS
13761 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_header_sys_wait_h=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_header_sys_wait_h=no
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13808 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13810 if test $ac_cv_header_sys_wait_h = yes; then
13812 cat >>confdefs.h <<\_ACEOF
13813 #define HAVE_SYS_WAIT_H 1
13818 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13819 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13820 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 #include <sys/types.h>
13830 #include <termios.h>
13836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13837 $EGREP "yes" >/dev/null 2>&1; then
13838 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13840 ac_cv_sys_tiocgwinsz_in_termios_h=no
13845 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13846 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13848 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13849 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13850 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13851 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <sys/types.h>
13861 #include <sys/ioctl.h>
13867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13868 $EGREP "yes" >/dev/null 2>&1; then
13869 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13871 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13876 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13877 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13879 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13881 cat >>confdefs.h <<\_ACEOF
13882 #define GWINSZ_IN_SYS_IOCTL 1
13986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988 echo "$as_me:$LINENO: checking for $ac_header" >&5
13989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 # Is the header compilable?
13997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14006 #include <$ac_header>
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>conftest.er1
14012 grep -v '^ *+' conftest.er1 >conftest.err
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
14017 { ac_try='test -z "$ac_c_werror_flag"
14018 || test ! -s conftest.err'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_header_compiler=yes
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_header_compiler=no
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039 echo "${ECHO_T}$ac_header_compiler" >&6
14041 # Is the header present?
14042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 #include <$ac_header>
14052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } >/dev/null; then
14060 if test -s conftest.err; then
14061 ac_cpp_err=$ac_c_preproc_warn_flag
14062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14069 if test -z "$ac_cpp_err"; then
14070 ac_header_preproc=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_header_preproc=no
14077 rm -f conftest.err conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6
14081 # So? What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088 ac_header_preproc=yes
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105 ## --------------------------------------------- ##
14106 ## Report this to <http://www.openldap.org/its/> ##
14107 ## --------------------------------------------- ##
14110 sed "s/^/$as_me: WARNING: /" >&2
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 eval "$as_ac_Header=\$ac_header_preproc"
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134 if test "$ac_cv_mingw32" = yes ; then
14137 for ac_header in winsock.h winsock2.h
14139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo "$as_me:$LINENO: checking for $ac_header" >&5
14142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14149 # Is the header compilable?
14150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 $ac_includes_default
14159 #include <$ac_header>
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_header_compiler=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_header_compiler=no
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14192 echo "${ECHO_T}$ac_header_compiler" >&6
14194 # Is the header present?
14195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <$ac_header>
14205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } >/dev/null; then
14213 if test -s conftest.err; then
14214 ac_cpp_err=$ac_c_preproc_warn_flag
14215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14222 if test -z "$ac_cpp_err"; then
14223 ac_header_preproc=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_header_preproc=no
14230 rm -f conftest.err conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14232 echo "${ECHO_T}$ac_header_preproc" >&6
14234 # So? What about this header?
14235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14241 ac_header_preproc=yes
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14258 ## --------------------------------------------- ##
14259 ## Report this to <http://www.openldap.org/its/> ##
14260 ## --------------------------------------------- ##
14263 sed "s/^/$as_me: WARNING: /" >&2
14266 echo "$as_me:$LINENO: checking for $ac_header" >&5
14267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 eval "$as_ac_Header=\$ac_header_preproc"
14273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278 cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14289 for ac_header in resolv.h
14291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 $ac_includes_default
14304 #include <netinet/in.h>
14307 #include <$ac_header>
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 eval "$as_ac_Header=yes"
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 eval "$as_ac_Header=no"
14338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14343 cat >>confdefs.h <<_ACEOF
14344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14353 for ac_header in netinet/tcp.h
14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 $ac_includes_default
14368 #include <netinet/in.h>
14371 #include <$ac_header>
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag"
14383 || test ! -s conftest.err'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 eval "$as_ac_Header=yes"
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 eval "$as_ac_Header=no"
14402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14407 cat >>confdefs.h <<_ACEOF
14408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14417 for ac_header in sys/ucred.h
14419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14420 echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 $ac_includes_default
14432 #ifdef HAVE_SYS_PARAM_H
14433 #include <sys/param.h>
14437 #include <$ac_header>
14439 rm -f conftest.$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag"
14449 || test ! -s conftest.err'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; } &&
14455 { ac_try='test -s conftest.$ac_objext'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 eval "$as_ac_Header=yes"
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 eval "$as_ac_Header=no"
14468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14485 for ac_func in sigaction sigset
14487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14490 if eval "test \"\${$as_ac_var+set}\" = set"; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14509 # include <limits.h>
14511 # include <assert.h>
14516 /* Override any gcc2 internal prototype to avoid an error. */
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14524 /* The GNU C library defines this for functions which it implements
14525 to always fail with ENOSYS. Some functions are actually named
14526 something starting with __ and the normal name is an alias. */
14527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14530 char (*f) () = $ac_func;
14539 return f != $ac_func;
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546 (eval $ac_link) 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 eval "$as_ac_var=yes"
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 eval "$as_ac_var=no"
14573 rm -f conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14589 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14590 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14591 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 ac_check_lib_save_LIBS=$LIBS
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any gcc2 internal prototype to avoid an error. */
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_lib_V3_sigset=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ac_cv_lib_V3_sigset=no
14647 rm -f conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14651 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14652 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14653 if test $ac_cv_lib_V3_sigset = yes; then
14654 cat >>confdefs.h <<_ACEOF
14655 #define HAVE_LIBV3 1
14664 if test "$ac_cv_header_winsock_h" = yes; then
14665 echo "$as_me:$LINENO: checking for winsock" >&5
14666 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14667 if test "${ol_cv_winsock+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 for curlib in ws2_32 wsock32; do
14672 LIBS="$LIBS -l$curlib"
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <winsock.h>
14686 select(0,NULL,NULL,NULL,NULL);
14688 gethostname(NULL,0);
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696 (eval $ac_link) 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest$ac_exeext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14723 rm -f conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14726 if test $ol_cv_winsock = yes; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_WINSOCK 1
14732 ac_cv_func_socket=yes
14733 ac_cv_func_select=yes
14734 ac_cv_func_closesocket=yes
14735 ac_cv_func_gethostname=yes
14736 if test $curlib = ws2_32; then
14737 ol_cv_winsock=winsock2
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_WINSOCK2 1
14749 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14750 echo "${ECHO_T}$ol_cv_winsock" >&6
14754 echo "$as_me:$LINENO: checking for socket" >&5
14755 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14756 if test "${ac_cv_func_socket+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14767 #define socket innocuous_socket
14769 /* System header to define __stub macros and hopefully few prototypes,
14770 which can conflict with char socket (); below.
14771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772 <limits.h> exists even on freestanding compilers. */
14775 # include <limits.h>
14777 # include <assert.h>
14782 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14790 /* The GNU C library defines this for functions which it implements
14791 to always fail with ENOSYS. Some functions are actually named
14792 something starting with __ and the normal name is an alias. */
14793 #if defined (__stub_socket) || defined (__stub___socket)
14796 char (*f) () = socket;
14805 return f != socket;
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14812 (eval $ac_link) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_func_socket=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_cv_func_socket=no
14839 rm -f conftest.err conftest.$ac_objext \
14840 conftest$ac_exeext conftest.$ac_ext
14842 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14843 echo "${ECHO_T}$ac_cv_func_socket" >&6
14844 if test $ac_cv_func_socket = yes; then
14849 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14850 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14851 if test "${ac_cv_lib_socket_main+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_check_lib_save_LIBS=$LIBS
14855 LIBS="-lsocket $LIBS"
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_lib_socket_main=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_lib_socket_main=no
14901 rm -f conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LIBS=$ac_check_lib_save_LIBS
14905 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14906 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14907 if test $ac_cv_lib_socket_main = yes; then
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_LIBSOCKET 1
14912 LIBS="-lsocket $LIBS"
14917 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14918 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14919 if test "${ac_cv_lib_net_main+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 ac_check_lib_save_LIBS=$LIBS
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14942 (eval $ac_link) 2>conftest.er1
14944 grep -v '^ *+' conftest.er1 >conftest.err
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest$ac_exeext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_lib_net_main=yes
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_cv_lib_net_main=no
14969 rm -f conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14974 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14975 if test $ac_cv_lib_net_main = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define HAVE_LIBNET 1
14985 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14986 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14987 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 ac_check_lib_save_LIBS=$LIBS
14991 LIBS="-lnsl_s $LIBS"
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_lib_nsl_s_main=yes
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 ac_cv_lib_nsl_s_main=no
15037 rm -f conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15042 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15043 if test $ac_cv_lib_nsl_s_main = yes; then
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_LIBNSL_S 1
15048 LIBS="-lnsl_s $LIBS"
15053 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15054 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15055 if test "${ac_cv_lib_nsl_main+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 ac_check_lib_save_LIBS=$LIBS
15060 cat >conftest.$ac_ext <<_ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_lib_nsl_main=yes
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_lib_nsl_main=no
15105 rm -f conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15110 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15111 if test $ac_cv_lib_nsl_main = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBNSL 1
15121 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15122 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15123 if test "${ac_cv_lib_inet_socket+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-linet $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15135 /* Override any gcc2 internal prototype to avoid an error. */
15139 /* We use char because int might match the return type of a gcc2
15140 builtin and then its argument prototype would still apply. */
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152 (eval $ac_link) 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag"
15160 || test ! -s conftest.err'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest$ac_exeext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_lib_inet_socket=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_lib_inet_socket=no
15179 rm -f conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15183 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15184 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15185 if test $ac_cv_lib_inet_socket = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_LIBINET 1
15190 LIBS="-linet $LIBS"
15195 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15196 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15197 if test "${ac_cv_lib_gen_main+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_check_lib_save_LIBS=$LIBS
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_lib_gen_main=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_cv_lib_gen_main=no
15247 rm -f conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15252 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15253 if test $ac_cv_lib_gen_main = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBGEN 1
15266 echo "$as_me:$LINENO: checking for select" >&5
15267 echo $ECHO_N "checking for select... $ECHO_C" >&6
15268 if test "${ac_cv_func_select+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 /* Define select to an innocuous variant, in case <limits.h> declares select.
15278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15279 #define select innocuous_select
15281 /* System header to define __stub macros and hopefully few prototypes,
15282 which can conflict with char select (); below.
15283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15284 <limits.h> exists even on freestanding compilers. */
15287 # include <limits.h>
15289 # include <assert.h>
15294 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined (__stub_select) || defined (__stub___select)
15308 char (*f) () = select;
15317 return f != select;
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_func_select=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_func_select=no
15351 rm -f conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15355 echo "${ECHO_T}$ac_cv_func_select" >&6
15356 if test $ac_cv_func_select = yes; then
15359 { { echo "$as_me:$LINENO: error: select() required." >&5
15360 echo "$as_me: error: select() required." >&2;}
15361 { (exit 1); exit 1; }; }
15365 if test "${ac_cv_header_winsock_h}" != yes; then
15368 for ac_header in sys/select.h sys/socket.h
15370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15372 echo "$as_me:$LINENO: checking for $ac_header" >&5
15373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15380 # Is the header compilable?
15381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 #include <$ac_header>
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_c_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_header_compiler=no
15421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15423 echo "${ECHO_T}$ac_header_compiler" >&6
15425 # Is the header present?
15426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15428 cat >conftest.$ac_ext <<_ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 #include <$ac_header>
15436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15439 grep -v '^ *+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null; then
15444 if test -s conftest.err; then
15445 ac_cpp_err=$ac_c_preproc_warn_flag
15446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 if test -z "$ac_cpp_err"; then
15454 ac_header_preproc=yes
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_preproc=no
15461 rm -f conftest.err conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15489 ## --------------------------------------------- ##
15490 ## Report this to <http://www.openldap.org/its/> ##
15491 ## --------------------------------------------- ##
15494 sed "s/^/$as_me: WARNING: /" >&2
15497 echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 eval "$as_ac_Header=\$ac_header_preproc"
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15518 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15519 if test "${ac_cv_func_select_args+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15523 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15524 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 #if HAVE_SYS_SELECT_H
15533 # include <sys/select.h>
15535 #if HAVE_SYS_SOCKET_H
15536 # include <sys/socket.h>
15542 extern int select ($ac_arg1,
15543 $ac_arg234, $ac_arg234, $ac_arg234,
15549 rm -f conftest.$ac_objext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15551 (eval $ac_compile) 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -z "$ac_c_werror_flag"
15559 || test ! -s conftest.err'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; } &&
15565 { ac_try='test -s conftest.$ac_objext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 # Provide a safe default value.
15582 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15585 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15586 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15587 ac_save_IFS=$IFS; IFS=','
15588 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15592 cat >>confdefs.h <<_ACEOF
15593 #define SELECT_TYPE_ARG1 $1
15597 cat >>confdefs.h <<_ACEOF
15598 #define SELECT_TYPE_ARG234 ($2)
15602 cat >>confdefs.h <<_ACEOF
15603 #define SELECT_TYPE_ARG5 ($3)
15612 for ac_func in poll
15614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15615 echo "$as_me:$LINENO: checking for $ac_func" >&5
15616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_var+set}\" = set"; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15628 #define $ac_func innocuous_$ac_func
15630 /* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char $ac_func (); below.
15632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633 <limits.h> exists even on freestanding compilers. */
15636 # include <limits.h>
15638 # include <assert.h>
15643 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15651 /* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15657 char (*f) () = $ac_func;
15666 return f != $ac_func;
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest$ac_exeext'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 eval "$as_ac_var=yes"
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 eval "$as_ac_var=no"
15700 rm -f conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15705 if test `eval echo '${'$as_ac_var'}'` = yes; then
15706 cat >>confdefs.h <<_ACEOF
15707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15713 if test $ac_cv_func_poll = yes; then
15716 for ac_header in poll.h sys/poll.h
15718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720 echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15728 # Is the header compilable?
15729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 $ac_includes_default
15738 #include <$ac_header>
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_header_compiler=yes
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 ac_header_compiler=no
15769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6
15773 # Is the header present?
15774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <$ac_header>
15784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev/null; then
15792 if test -s conftest.err; then
15793 ac_cpp_err=$ac_c_preproc_warn_flag
15794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15801 if test -z "$ac_cpp_err"; then
15802 ac_header_preproc=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_header_preproc=no
15809 rm -f conftest.err conftest.$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 echo "${ECHO_T}$ac_header_preproc" >&6
15813 # So? What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15820 ac_header_preproc=yes
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837 ## --------------------------------------------- ##
15838 ## Report this to <http://www.openldap.org/its/> ##
15839 ## --------------------------------------------- ##
15842 sed "s/^/$as_me: WARNING: /" >&2
15845 echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 eval "$as_ac_Header=\$ac_header_preproc"
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15868 for ac_header in sys/epoll.h
15870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15872 echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15880 # Is the header compilable?
15881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 #include <$ac_header>
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag"
15902 || test ! -s conftest.err'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest.$ac_objext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_compiler=no
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15923 echo "${ECHO_T}$ac_header_compiler" >&6
15925 # Is the header present?
15926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <$ac_header>
15936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } >/dev/null; then
15944 if test -s conftest.err; then
15945 ac_cpp_err=$ac_c_preproc_warn_flag
15946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953 if test -z "$ac_cpp_err"; then
15954 ac_header_preproc=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_header_preproc=no
15961 rm -f conftest.err conftest.$ac_ext
15962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 echo "${ECHO_T}$ac_header_preproc" >&6
15965 # So? What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972 ac_header_preproc=yes
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15989 ## --------------------------------------------- ##
15990 ## Report this to <http://www.openldap.org/its/> ##
15991 ## --------------------------------------------- ##
15994 sed "s/^/$as_me: WARNING: /" >&2
15997 echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 eval "$as_ac_Header=\$ac_header_preproc"
16004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16009 cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16018 echo "$as_me:$LINENO: checking for epoll system call" >&5
16019 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16020 if test "$cross_compiling" = yes; then
16021 echo "$as_me:$LINENO: result: no" >&5
16022 echo "${ECHO_T}no" >&6
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 int main(int argc, char **argv)
16032 int epfd = epoll_create(256);
16033 exit (epfd == -1 ? 1 : 0);
16036 rm -f conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 echo "$as_me:$LINENO: result: yes" >&5
16048 echo "${ECHO_T}yes" >&6
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_EPOLL 1
16055 echo "$as_me: program exited with status $ac_status" >&5
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 ( exit $ac_status )
16060 echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16068 for ac_header in sys/devpoll.h
16070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16072 echo "$as_me:$LINENO: checking for $ac_header" >&5
16073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16080 # Is the header compilable?
16081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 $ac_includes_default
16090 #include <$ac_header>
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
16101 { ac_try='test -z "$ac_c_werror_flag"
16102 || test ! -s conftest.err'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_header_compiler=yes
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_header_compiler=no
16121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16123 echo "${ECHO_T}$ac_header_compiler" >&6
16125 # Is the header present?
16126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 #include <$ac_header>
16136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null; then
16144 if test -s conftest.err; then
16145 ac_cpp_err=$ac_c_preproc_warn_flag
16146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16153 if test -z "$ac_cpp_err"; then
16154 ac_header_preproc=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_header_preproc=no
16161 rm -f conftest.err conftest.$ac_ext
16162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16163 echo "${ECHO_T}$ac_header_preproc" >&6
16165 # So? What about this header?
16166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16172 ac_header_preproc=yes
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16189 ## --------------------------------------------- ##
16190 ## Report this to <http://www.openldap.org/its/> ##
16191 ## --------------------------------------------- ##
16194 sed "s/^/$as_me: WARNING: /" >&2
16197 echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 eval "$as_ac_Header=\$ac_header_preproc"
16204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16217 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16218 -a "${ac_cv_header_poll_h}" = yes ; \
16220 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16221 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16222 if test "$cross_compiling" = yes; then
16223 echo "$as_me:$LINENO: result: no" >&5
16224 echo "${ECHO_T}no" >&6
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 int main(int argc, char **argv)
16234 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16235 exit (devpollfd == -1 ? 1 : 0);
16238 rm -f conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 echo "$as_me:$LINENO: result: yes" >&5
16250 echo "${ECHO_T}yes" >&6
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_DEVPOLL 1
16257 echo "$as_me: program exited with status $ac_status" >&5
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ( exit $ac_status )
16262 echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6
16265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16270 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16284 #include <sys/types.h>
16287 #include <stdlib.h>
16292 char *c = (char *) *sys_errlist
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ol_cv_dcl_sys_errlist=yes
16320 ol_cv_have_sys_errlist=yes
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ol_cv_dcl_sys_errlist=no
16327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16330 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16332 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16333 if test $ol_cv_dcl_sys_errlist = no ; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define DECL_SYS_ERRLIST 1
16340 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16341 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16342 if test "${ol_cv_have_sys_errlist+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 cat >conftest.$ac_ext <<_ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16356 char *c = (char *) *sys_errlist
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>conftest.er1
16365 grep -v '^ *+' conftest.er1 >conftest.err
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ol_cv_have_sys_errlist=yes
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ol_cv_have_sys_errlist=no
16390 rm -f conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16393 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16394 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16396 if test $ol_cv_have_sys_errlist = yes ; then
16398 cat >>confdefs.h <<\_ACEOF
16399 #define HAVE_SYS_ERRLIST 1
16405 for ac_func in strerror strerror_r
16407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408 echo "$as_me:$LINENO: checking for $ac_func" >&5
16409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16410 if eval "test \"\${$as_ac_var+set}\" = set"; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16421 #define $ac_func innocuous_$ac_func
16423 /* System header to define __stub macros and hopefully few prototypes,
16424 which can conflict with char $ac_func (); below.
16425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426 <limits.h> exists even on freestanding compilers. */
16429 # include <limits.h>
16431 # include <assert.h>
16436 /* Override any gcc2 internal prototype to avoid an error. */
16441 /* We use char because int might match the return type of a gcc2
16442 builtin and then its argument prototype would still apply. */
16444 /* The GNU C library defines this for functions which it implements
16445 to always fail with ENOSYS. Some functions are actually named
16446 something starting with __ and the normal name is an alias. */
16447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450 char (*f) () = $ac_func;
16459 return f != $ac_func;
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 (eval $ac_link) 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 eval "$as_ac_var=yes"
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 eval "$as_ac_var=no"
16493 rm -f conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16498 if test `eval echo '${'$as_ac_var'}'` = yes; then
16499 cat >>confdefs.h <<_ACEOF
16500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16506 ol_cv_func_strerror_r=no
16507 if test "${ac_cv_func_strerror_r}" = yes ; then
16508 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16509 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16510 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <string.h>
16522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16523 $EGREP "strerror_r" >/dev/null 2>&1; then
16524 ol_decl_strerror_r=yes
16526 ol_decl_strerror_r=no
16530 if test $ol_decl_strerror_r = yes ; then
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <string.h>
16541 /* from autoconf 2.59 */
16543 char x = *strerror_r (0, buf, sizeof buf);
16544 char *p = strerror_r (0, buf, sizeof buf);
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ol_cv_nonposix_strerror_r=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ol_cv_nonposix_strerror_r=no
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 if test "$cross_compiling" = yes; then
16582 ol_cv_nonposix_strerror=no
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16594 strerror_r( 1, buf, sizeof buf );
16595 exit( buf[0] == 0 );
16599 rm -f conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ol_cv_nonposix_strerror_r=yes
16612 echo "$as_me: program exited with status $ac_status" >&5
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ( exit $ac_status )
16617 ol_cv_nonposix_strerror=no
16619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16625 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16626 if test $ol_cv_nonposix_strerror_r = yes ; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_NONPOSIX_STRERROR_R 1
16634 elif test "${ac_cv_func_strerror}" = no ; then
16635 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16636 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16637 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16649 #include <sys/types.h>
16652 #include <stdlib.h>
16657 char *c = (char *) *sys_errlist
16662 rm -f conftest.$ac_objext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16664 (eval $ac_compile) 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -z "$ac_c_werror_flag"
16672 || test ! -s conftest.err'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ol_cv_dcl_sys_errlist=yes
16685 ol_cv_have_sys_errlist=yes
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ol_cv_dcl_sys_errlist=no
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16695 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16697 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16698 if test $ol_cv_dcl_sys_errlist = no ; then
16700 cat >>confdefs.h <<\_ACEOF
16701 #define DECL_SYS_ERRLIST 1
16705 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16706 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16707 if test "${ol_cv_have_sys_errlist+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16721 char *c = (char *) *sys_errlist
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>conftest.er1
16730 grep -v '^ *+' conftest.er1 >conftest.err
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ol_cv_have_sys_errlist=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ol_cv_have_sys_errlist=no
16755 rm -f conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16758 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16759 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16761 if test $ol_cv_have_sys_errlist = yes ; then
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_SYS_ERRLIST 1
16773 for ac_header in regex.h
16775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776 echo "$as_me:$LINENO: checking for $ac_header" >&5
16777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 $ac_includes_default
16788 #ifdef HAVE_SYS_TYPES_H
16789 #include <sys/types.h>
16793 #include <$ac_header>
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797 (eval $ac_compile) 2>conftest.er1
16799 grep -v '^ *+' conftest.er1 >conftest.err
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -z "$ac_c_werror_flag"
16805 || test ! -s conftest.err'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; } &&
16811 { ac_try='test -s conftest.$ac_objext'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 eval "$as_ac_Header=yes"
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 eval "$as_ac_Header=no"
16824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 if test "$ac_cv_header_regex_h" != yes ; then
16839 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16840 echo "$as_me: error: POSIX regex.h required." >&2;}
16841 { (exit 1); exit 1; }; }
16843 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16844 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16845 if test "${ac_cv_search_regfree+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 ac_func_search_save_LIBS=$LIBS
16849 ac_cv_search_regfree=no
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16857 /* Override any gcc2 internal prototype to avoid an error. */
16861 /* We use char because int might match the return type of a gcc2
16862 builtin and then its argument prototype would still apply. */
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16874 (eval $ac_link) 2>conftest.er1
16876 grep -v '^ *+' conftest.er1 >conftest.err
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -z "$ac_c_werror_flag"
16882 || test ! -s conftest.err'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try='test -s conftest$ac_exeext'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_search_regfree="none required"
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16900 rm -f conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 if test "$ac_cv_search_regfree" = no; then
16903 for ac_lib in regex gnuregex; do
16904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_cv_search_regfree="-l$ac_lib"
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16956 rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_func_search_save_LIBS
16962 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16963 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16964 if test "$ac_cv_search_regfree" != no; then
16965 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16968 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16969 echo "$as_me: error: POSIX regex required." >&2;}
16970 { (exit 1); exit 1; }; }
16975 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16976 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16977 if test "${ol_cv_c_posix_regex+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 if test "$cross_compiling" = yes; then
16982 ol_cv_c_posix_regex=cross
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 #include <sys/types.h>
16993 static char *pattern, *string;
17001 if(regcomp(&re, pattern, 0)) {
17005 string = "ALL MATCH";
17007 rc = regexec(&re, string, 0, (void*)0, 0);
17014 rm -f conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ol_cv_c_posix_regex=yes
17027 echo "$as_me: program exited with status $ac_status" >&5
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ( exit $ac_status )
17032 ol_cv_c_posix_regex=no
17034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17037 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17038 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17040 if test "$ol_cv_c_posix_regex" = no ; then
17041 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17042 echo "$as_me: error: broken POSIX regex!" >&2;}
17043 { (exit 1); exit 1; }; }
17049 for ac_header in sys/uuid.h
17051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17053 echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17061 # Is the header compilable?
17062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 $ac_includes_default
17071 #include <$ac_header>
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075 (eval $ac_compile) 2>conftest.er1
17077 grep -v '^ *+' conftest.er1 >conftest.err
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag"
17083 || test ! -s conftest.err'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest.$ac_objext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_header_compiler=yes
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_header_compiler=no
17102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17104 echo "${ECHO_T}$ac_header_compiler" >&6
17106 # Is the header present?
17107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17109 cat >conftest.$ac_ext <<_ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 #include <$ac_header>
17117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } >/dev/null; then
17125 if test -s conftest.err; then
17126 ac_cpp_err=$ac_c_preproc_warn_flag
17127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17134 if test -z "$ac_cpp_err"; then
17135 ac_header_preproc=yes
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 ac_header_preproc=no
17142 rm -f conftest.err conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17144 echo "${ECHO_T}$ac_header_preproc" >&6
17146 # So? What about this header?
17147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17153 ac_header_preproc=yes
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17170 ## --------------------------------------------- ##
17171 ## Report this to <http://www.openldap.org/its/> ##
17172 ## --------------------------------------------- ##
17175 sed "s/^/$as_me: WARNING: /" >&2
17178 echo "$as_me:$LINENO: checking for $ac_header" >&5
17179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 eval "$as_ac_Header=\$ac_header_preproc"
17185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17198 if test $ac_cv_header_sys_uuid_h = yes ; then
17200 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17201 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17202 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 ac_func_search_save_LIBS=$LIBS
17206 ac_cv_search_uuid_to_str=no
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17214 /* Override any gcc2 internal prototype to avoid an error. */
17218 /* We use char because int might match the return type of a gcc2
17219 builtin and then its argument prototype would still apply. */
17220 char uuid_to_str ();
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231 (eval $ac_link) 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag"
17239 || test ! -s conftest.err'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_cv_search_uuid_to_str="none required"
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17257 rm -f conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 if test "$ac_cv_search_uuid_to_str" = no; then
17260 for ac_lib in uuid; do
17261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17269 /* Override any gcc2 internal prototype to avoid an error. */
17273 /* We use char because int might match the return type of a gcc2
17274 builtin and then its argument prototype would still apply. */
17275 char uuid_to_str ();
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag"
17294 || test ! -s conftest.err'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; } &&
17300 { ac_try='test -s conftest$ac_exeext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 ac_cv_search_uuid_to_str="-l$ac_lib"
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17313 rm -f conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17317 LIBS=$ac_func_search_save_LIBS
17319 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17320 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17321 if test "$ac_cv_search_uuid_to_str" != no; then
17322 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17330 if test have_uuid = yes ; then
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_UUID_TO_STR 1
17337 test "$ac_cv_search_uuid_to_str" = "none required" || \
17338 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17342 if test $have_uuid = no ; then
17344 for ac_header in uuid/uuid.h
17346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo "$as_me:$LINENO: checking for $ac_header" >&5
17349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17356 # Is the header compilable?
17357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 #include <$ac_header>
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest.$ac_objext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_header_compiler=yes
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 ac_header_compiler=no
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17399 echo "${ECHO_T}$ac_header_compiler" >&6
17401 # Is the header present?
17402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #include <$ac_header>
17412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } >/dev/null; then
17420 if test -s conftest.err; then
17421 ac_cpp_err=$ac_c_preproc_warn_flag
17422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17429 if test -z "$ac_cpp_err"; then
17430 ac_header_preproc=yes
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17435 ac_header_preproc=no
17437 rm -f conftest.err conftest.$ac_ext
17438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439 echo "${ECHO_T}$ac_header_preproc" >&6
17441 # So? What about this header?
17442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448 ac_header_preproc=yes
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17465 ## --------------------------------------------- ##
17466 ## Report this to <http://www.openldap.org/its/> ##
17467 ## --------------------------------------------- ##
17470 sed "s/^/$as_me: WARNING: /" >&2
17473 echo "$as_me:$LINENO: checking for $ac_header" >&5
17474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 eval "$as_ac_Header=\$ac_header_preproc"
17480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17485 cat >>confdefs.h <<_ACEOF
17486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17493 if test $ac_cv_header_uuid_uuid_h = yes ; then
17495 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17496 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17497 if test "${ac_cv_search_uuid_generate+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 ac_func_search_save_LIBS=$LIBS
17501 ac_cv_search_uuid_generate=no
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17509 /* Override any gcc2 internal prototype to avoid an error. */
17513 /* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17515 char uuid_generate ();
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526 (eval $ac_link) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag"
17534 || test ! -s conftest.err'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 ac_cv_search_uuid_generate="none required"
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554 if test "$ac_cv_search_uuid_generate" = no; then
17555 for ac_lib in uuid; do
17556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17557 cat >conftest.$ac_ext <<_ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17564 /* Override any gcc2 internal prototype to avoid an error. */
17568 /* We use char because int might match the return type of a gcc2
17569 builtin and then its argument prototype would still apply. */
17570 char uuid_generate ();
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_search_uuid_generate="-l$ac_lib"
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17608 rm -f conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17612 LIBS=$ac_func_search_save_LIBS
17614 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17615 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17616 if test "$ac_cv_search_uuid_generate" != no; then
17617 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17625 if test have_uuid = yes ; then
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_UUID_GENERATE 1
17632 test "$ac_cv_search_uuid_generate" = "none required" || \
17633 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17638 if test $have_uuid = no ; then
17639 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17640 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17642 LIBS="$LIBS -lrpcrt4"
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17650 int __stdcall UuidCreate(void *);
17651 int __stdcall UuidToStringA(void *,void **);
17658 UuidToStringA(0,0);
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag"
17674 || test ! -s conftest.err'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17693 rm -f conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 if test $need_rpcrt = yes; then
17696 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17699 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17700 echo "${ECHO_T}$need_rpcrt" >&6
17703 ol_cv_lib_resolver=no
17704 if test $ol_cv_lib_resolver = no ; then
17705 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17706 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17707 if test "${ol_cv_resolver_none+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 LIBS="$ol_RESOLVER_LIB $LIBS"
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17722 #ifdef HAVE_SYS_TYPES_H
17723 # include <sys/types.h>
17725 #include <netinet/in.h>
17726 #ifdef HAVE_ARPA_NAMESER_H
17727 # include <arpa/nameser.h>
17729 #ifdef HAVE_RESOLV_H
17730 # include <resolv.h>
17738 char *request = NULL;
17739 unsigned char reply[64*1024];
17740 unsigned char host[64*1024];
17744 /* Bind 8/9 interface */
17745 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17747 /* Bind 4 interface */
17751 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17755 /* Bind 8/9 interface */
17757 #elif defined(HFIXEDSZ)
17758 /* Bind 4 interface w/ HFIXEDSZ */
17761 /* Bind 4 interface w/o HFIXEDSZ */
17762 p += sizeof(HEADER);
17764 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest$ac_exeext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ol_cv_resolver_none=yes
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ol_cv_resolver_none=no
17799 rm -f conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17805 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17806 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17808 if test $ol_cv_resolver_none = yes ; then
17809 ol_cv_lib_resolver=yes
17813 if test $ol_cv_lib_resolver = no ; then
17814 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17815 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17816 if test "${ol_cv_resolver_resolv+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 ol_RESOLVER_LIB=-lresolv
17822 LIBS="$ol_RESOLVER_LIB $LIBS"
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17831 #ifdef HAVE_SYS_TYPES_H
17832 # include <sys/types.h>
17834 #include <netinet/in.h>
17835 #ifdef HAVE_ARPA_NAMESER_H
17836 # include <arpa/nameser.h>
17838 #ifdef HAVE_RESOLV_H
17839 # include <resolv.h>
17847 char *request = NULL;
17848 unsigned char reply[64*1024];
17849 unsigned char host[64*1024];
17853 /* Bind 8/9 interface */
17854 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17856 /* Bind 4 interface */
17860 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17864 /* Bind 8/9 interface */
17866 #elif defined(HFIXEDSZ)
17867 /* Bind 4 interface w/ HFIXEDSZ */
17870 /* Bind 4 interface w/o HFIXEDSZ */
17871 p += sizeof(HEADER);
17873 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881 (eval $ac_link) 2>conftest.er1
17883 grep -v '^ *+' conftest.er1 >conftest.err
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ol_cv_resolver_resolv=yes
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ol_cv_resolver_resolv=no
17908 rm -f conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17914 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17915 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17917 if test $ol_cv_resolver_resolv = yes ; then
17918 ol_cv_lib_resolver=-lresolv
17922 if test $ol_cv_lib_resolver = no ; then
17923 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17924 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17925 if test "${ol_cv_resolver_bind+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 ol_RESOLVER_LIB=-lbind
17931 LIBS="$ol_RESOLVER_LIB $LIBS"
17933 cat >conftest.$ac_ext <<_ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17940 #ifdef HAVE_SYS_TYPES_H
17941 # include <sys/types.h>
17943 #include <netinet/in.h>
17944 #ifdef HAVE_ARPA_NAMESER_H
17945 # include <arpa/nameser.h>
17947 #ifdef HAVE_RESOLV_H
17948 # include <resolv.h>
17956 char *request = NULL;
17957 unsigned char reply[64*1024];
17958 unsigned char host[64*1024];
17962 /* Bind 8/9 interface */
17963 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17965 /* Bind 4 interface */
17969 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17973 /* Bind 8/9 interface */
17975 #elif defined(HFIXEDSZ)
17976 /* Bind 4 interface w/ HFIXEDSZ */
17979 /* Bind 4 interface w/o HFIXEDSZ */
17980 p += sizeof(HEADER);
17982 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag"
17998 || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ol_cv_resolver_bind=yes
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 ol_cv_resolver_bind=no
18017 rm -f conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18023 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18024 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18026 if test $ol_cv_resolver_bind = yes ; then
18027 ol_cv_lib_resolver=-lbind
18034 if test "$ol_cv_lib_resolver" != no ; then
18036 cat >>confdefs.h <<\_ACEOF
18037 #define HAVE_RES_QUERY 1
18041 if test "$ol_enable_dnssrv" != no ; then
18045 if test "$ol_cv_lib_resolver" != yes ; then
18046 LIBS="$ol_cv_lib_resolver $LIBS"
18050 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18051 if test "$ol_link_dnssrv" = no ; then
18052 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18053 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18054 { (exit 1); exit 1; }; }
18057 ol_enable_dnssrv=no
18061 for ac_func in hstrerror
18063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18064 echo "$as_me:$LINENO: checking for $ac_func" >&5
18065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18066 if eval "test \"\${$as_ac_var+set}\" = set"; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18069 cat >conftest.$ac_ext <<_ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18077 #define $ac_func innocuous_$ac_func
18079 /* System header to define __stub macros and hopefully few prototypes,
18080 which can conflict with char $ac_func (); below.
18081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18082 <limits.h> exists even on freestanding compilers. */
18085 # include <limits.h>
18087 # include <assert.h>
18092 /* Override any gcc2 internal prototype to avoid an error. */
18097 /* We use char because int might match the return type of a gcc2
18098 builtin and then its argument prototype would still apply. */
18100 /* The GNU C library defines this for functions which it implements
18101 to always fail with ENOSYS. Some functions are actually named
18102 something starting with __ and the normal name is an alias. */
18103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18106 char (*f) () = $ac_func;
18115 return f != $ac_func;
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122 (eval $ac_link) 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag"
18130 || test ! -s conftest.err'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest$ac_exeext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 eval "$as_ac_var=yes"
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 eval "$as_ac_var=no"
18149 rm -f conftest.err conftest.$ac_objext \
18150 conftest$ac_exeext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18154 if test `eval echo '${'$as_ac_var'}'` = yes; then
18155 cat >>confdefs.h <<_ACEOF
18156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18167 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18172 if eval "test \"\${$as_ac_var+set}\" = set"; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183 #define $ac_func innocuous_$ac_func
18185 /* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char $ac_func (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18191 # include <limits.h>
18193 # include <assert.h>
18198 /* Override any gcc2 internal prototype to avoid an error. */
18203 /* We use char because int might match the return type of a gcc2
18204 builtin and then its argument prototype would still apply. */
18206 /* The GNU C library defines this for functions which it implements
18207 to always fail with ENOSYS. Some functions are actually named
18208 something starting with __ and the normal name is an alias. */
18209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18212 char (*f) () = $ac_func;
18221 return f != $ac_func;
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228 (eval $ac_link) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest$ac_exeext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 eval "$as_ac_var=yes"
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 eval "$as_ac_var=no"
18255 rm -f conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18270 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18271 if test $ol_enable_ipv6 = yes ; then
18272 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18273 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18274 { (exit 1); exit 1; }; }
18276 elif test $ol_enable_ipv6 != no ; then
18277 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18278 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18279 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18290 # include <netinet/in.h>
18291 # ifdef INET6_ADDRSTRLEN
18292 __has_inet6_addrstrlen__;
18296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18297 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18298 ol_cv_inet6_addrstrlen=yes
18300 ol_cv_inet6_addrstrlen=no
18305 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18306 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18309 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18310 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18311 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18322 #include <sys/types.h>
18323 #include <sys/socket.h>
18329 struct sockaddr_storage ss;
18335 rm -f conftest.$ac_objext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337 (eval $ac_compile) 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ol_cv_struct_sockaddr_storage=yes
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ol_cv_struct_sockaddr_storage=no
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18367 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18369 if test $ol_cv_inet6_addrstrlen = yes &&
18370 test $ol_cv_struct_sockaddr_storage = yes ; then
18372 elif test $ol_enable_ipv6 = yes &&
18373 test $ol_cv_inet6_addrstrlen = no ; then
18374 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18375 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18376 { (exit 1); exit 1; }; }
18377 elif test $ol_enable_ipv6 = yes &&
18378 test $ol_cv_struct_sockaddr_storage = no ; then
18379 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18380 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18381 { (exit 1); exit 1; }; }
18385 if test $ol_enable_local != no ; then
18387 for ac_header in sys/un.h
18389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18391 echo "$as_me:$LINENO: checking for $ac_header" >&5
18392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18399 # Is the header compilable?
18400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <$ac_header>
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413 (eval $ac_compile) 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag"
18421 || test ! -s conftest.err'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest.$ac_objext'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 ac_header_compiler=yes
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_header_compiler=no
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18442 echo "${ECHO_T}$ac_header_compiler" >&6
18444 # Is the header present?
18445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <$ac_header>
18455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } >/dev/null; then
18463 if test -s conftest.err; then
18464 ac_cpp_err=$ac_c_preproc_warn_flag
18465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18472 if test -z "$ac_cpp_err"; then
18473 ac_header_preproc=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_header_preproc=no
18480 rm -f conftest.err conftest.$ac_ext
18481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18482 echo "${ECHO_T}$ac_header_preproc" >&6
18484 # So? What about this header?
18485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18491 ac_header_preproc=yes
18494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18508 ## --------------------------------------------- ##
18509 ## Report this to <http://www.openldap.org/its/> ##
18510 ## --------------------------------------------- ##
18513 sed "s/^/$as_me: WARNING: /" >&2
18516 echo "$as_me:$LINENO: checking for $ac_header" >&5
18517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 eval "$as_ac_Header=\$ac_header_preproc"
18523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18537 if test $ol_enable_local = auto ; then
18538 ol_enable_local=$ac_cv_header_sys_un_h
18539 elif test $ac_cv_header_sys_un_h = no ; then
18540 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18541 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18542 { (exit 1); exit 1; }; }
18548 case $ol_with_gssapi in yes | auto)
18550 ol_header_gssapi=no
18552 for ac_header in gssapi/gssapi.h
18554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18556 echo "$as_me:$LINENO: checking for $ac_header" >&5
18557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18564 # Is the header compilable?
18565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 $ac_includes_default
18574 #include <$ac_header>
18576 rm -f conftest.$ac_objext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578 (eval $ac_compile) 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag"
18586 || test ! -s conftest.err'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest.$ac_objext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 ac_header_compiler=yes
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18603 ac_header_compiler=no
18605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18607 echo "${ECHO_T}$ac_header_compiler" >&6
18609 # Is the header present?
18610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <$ac_header>
18620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } >/dev/null; then
18628 if test -s conftest.err; then
18629 ac_cpp_err=$ac_c_preproc_warn_flag
18630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18637 if test -z "$ac_cpp_err"; then
18638 ac_header_preproc=yes
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_header_preproc=no
18645 rm -f conftest.err conftest.$ac_ext
18646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18647 echo "${ECHO_T}$ac_header_preproc" >&6
18649 # So? What about this header?
18650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18656 ac_header_preproc=yes
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18673 ## --------------------------------------------- ##
18674 ## Report this to <http://www.openldap.org/its/> ##
18675 ## --------------------------------------------- ##
18678 sed "s/^/$as_me: WARNING: /" >&2
18681 echo "$as_me:$LINENO: checking for $ac_header" >&5
18682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 eval "$as_ac_Header=\$ac_header_preproc"
18688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18701 if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18702 ol_header_gssapi=yes
18705 for ac_header in gssapi.h
18707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18709 echo "$as_me:$LINENO: checking for $ac_header" >&5
18710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18717 # Is the header compilable?
18718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18720 cat >conftest.$ac_ext <<_ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 $ac_includes_default
18727 #include <$ac_header>
18729 rm -f conftest.$ac_objext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18731 (eval $ac_compile) 2>conftest.er1
18733 grep -v '^ *+' conftest.er1 >conftest.err
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest.$ac_objext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_header_compiler=yes
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_header_compiler=no
18758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18760 echo "${ECHO_T}$ac_header_compiler" >&6
18762 # Is the header present?
18763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <$ac_header>
18773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } >/dev/null; then
18781 if test -s conftest.err; then
18782 ac_cpp_err=$ac_c_preproc_warn_flag
18783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18790 if test -z "$ac_cpp_err"; then
18791 ac_header_preproc=yes
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_header_preproc=no
18798 rm -f conftest.err conftest.$ac_ext
18799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18800 echo "${ECHO_T}$ac_header_preproc" >&6
18802 # So? What about this header?
18803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18809 ac_header_preproc=yes
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18826 ## --------------------------------------------- ##
18827 ## Report this to <http://www.openldap.org/its/> ##
18828 ## --------------------------------------------- ##
18831 sed "s/^/$as_me: WARNING: /" >&2
18834 echo "$as_me:$LINENO: checking for $ac_header" >&5
18835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 eval "$as_ac_Header=\$ac_header_preproc"
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18846 cat >>confdefs.h <<_ACEOF
18847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18854 if test $ac_cv_header_gssapi_h = yes ; then
18855 ol_header_gssapi=yes
18859 LIBS="$LIBS $GSSAPI_LIBS"
18861 for ac_func in gss_oid_to_str
18863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18864 echo "$as_me:$LINENO: checking for $ac_func" >&5
18865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18866 if eval "test \"\${$as_ac_var+set}\" = set"; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18885 # include <limits.h>
18887 # include <assert.h>
18892 /* Override any gcc2 internal prototype to avoid an error. */
18897 /* We use char because int might match the return type of a gcc2
18898 builtin and then its argument prototype would still apply. */
18900 /* The GNU C library defines this for functions which it implements
18901 to always fail with ENOSYS. Some functions are actually named
18902 something starting with __ and the normal name is an alias. */
18903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18906 char (*f) () = $ac_func;
18915 return f != $ac_func;
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922 (eval $ac_link) 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag"
18930 || test ! -s conftest.err'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; } &&
18936 { ac_try='test -s conftest$ac_exeext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 eval "$as_ac_var=yes"
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 eval "$as_ac_var=no"
18949 rm -f conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18965 if test $ol_header_gssapi = yes ; then
18966 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
18967 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
18968 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 ac_check_lib_save_LIBS=$LIBS
18972 LIBS="-lgssapi $LIBS"
18973 cat >conftest.$ac_ext <<_ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18980 /* Override any gcc2 internal prototype to avoid an error. */
18984 /* We use char because int might match the return type of a gcc2
18985 builtin and then its argument prototype would still apply. */
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997 (eval $ac_link) 2>conftest.er1
18999 grep -v '^ *+' conftest.er1 >conftest.err
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag"
19005 || test ! -s conftest.err'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gssapi_gss_wrap=yes
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_cv_lib_gssapi_gss_wrap=no
19024 rm -f conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19028 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19030 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19031 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19036 if test $ol_link_gssapi != yes ; then
19037 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19038 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19039 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 ac_check_lib_save_LIBS=$LIBS
19043 LIBS="-lgssapi_krb5 $LIBS"
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19051 /* Override any gcc2 internal prototype to avoid an error. */
19055 /* We use char because int might match the return type of a gcc2
19056 builtin and then its argument prototype would still apply. */
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19068 (eval $ac_link) 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag"
19076 || test ! -s conftest.err'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest$ac_exeext'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_lib_gssapi_krb5_gss_wrap=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_lib_gssapi_krb5_gss_wrap=no
19095 rm -f conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19100 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19101 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19102 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19114 if test $ol_link_gssapi = yes; then
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE_GSSAPI 1
19121 elif test $ol_with_gssapi = auto ; then
19122 { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19123 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19125 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19126 elif test $ol_with_gssapi = yes ; then
19127 { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19128 echo "$as_me: error: GSSAPI detection failed" >&2;}
19129 { (exit 1); exit 1; }; }
19133 if test $ol_with_tls = yes ; then
19138 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19140 for ac_header in openssl/ssl.h
19142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19144 echo "$as_me:$LINENO: checking for $ac_header" >&5
19145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19152 # Is the header compilable?
19153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 $ac_includes_default
19162 #include <$ac_header>
19164 rm -f conftest.$ac_objext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19166 (eval $ac_compile) 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest.$ac_objext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_header_compiler=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_header_compiler=no
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19195 echo "${ECHO_T}$ac_header_compiler" >&6
19197 # Is the header present?
19198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 #include <$ac_header>
19208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } >/dev/null; then
19216 if test -s conftest.err; then
19217 ac_cpp_err=$ac_c_preproc_warn_flag
19218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19225 if test -z "$ac_cpp_err"; then
19226 ac_header_preproc=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_header_preproc=no
19233 rm -f conftest.err conftest.$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6
19237 # So? What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244 ac_header_preproc=yes
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19261 ## --------------------------------------------- ##
19262 ## Report this to <http://www.openldap.org/its/> ##
19263 ## --------------------------------------------- ##
19266 sed "s/^/$as_me: WARNING: /" >&2
19269 echo "$as_me:$LINENO: checking for $ac_header" >&5
19270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 eval "$as_ac_Header=\$ac_header_preproc"
19276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19290 if test $ac_cv_header_openssl_ssl_h = yes ; then
19291 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19292 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19293 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 ac_check_lib_save_LIBS=$LIBS
19297 LIBS="-lssl -lcrypto $LIBS"
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19305 /* Override any gcc2 internal prototype to avoid an error. */
19309 /* We use char because int might match the return type of a gcc2
19310 builtin and then its argument prototype would still apply. */
19311 char SSL_library_init ();
19315 SSL_library_init ();
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322 (eval $ac_link) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest$ac_exeext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_lib_ssl_SSL_library_init=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_lib_ssl_SSL_library_init=no
19349 rm -f conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
19351 LIBS=$ac_check_lib_save_LIBS
19353 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19354 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19355 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19363 if test $have_openssl = no ; then
19364 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19365 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19366 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_check_lib_save_LIBS=$LIBS
19370 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19371 cat >conftest.$ac_ext <<_ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 /* Override any gcc2 internal prototype to avoid an error. */
19382 /* We use char because int might match the return type of a gcc2
19383 builtin and then its argument prototype would still apply. */
19384 char ssl3_accept ();
19393 rm -f conftest.$ac_objext conftest$ac_exeext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19395 (eval $ac_link) 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_c_werror_flag"
19403 || test ! -s conftest.err'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest$ac_exeext'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 ac_cv_lib_ssl_ssl3_accept=yes
19417 echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19420 ac_cv_lib_ssl_ssl3_accept=no
19422 rm -f conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
19424 LIBS=$ac_check_lib_save_LIBS
19426 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19427 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19428 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19437 if test $have_openssl = yes ; then
19438 ol_with_tls=openssl
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_OPENSSL 1
19447 if test $need_rsaref = yes; then
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_RSAREF 1
19454 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19456 TLS_LIBS="-lssl -lcrypto"
19459 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19460 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19461 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 cat >conftest.$ac_ext <<_ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 #ifdef HAVE_OPENSSL_SSL_H
19473 #include <openssl/ssl.h>
19476 /* Require 0.9.7d+ */
19477 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19478 char *__ssl_compat = "0.9.7d";
19482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19483 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19484 ol_cv_ssl_crl_compat=yes
19486 ol_cv_ssl_crl_compat=no
19491 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19492 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19494 if test $ol_cv_ssl_crl_compat = yes ; then
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_OPENSSL_CRL 1
19505 if test $ol_link_tls = no ; then
19506 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19508 for ac_header in gnutls/gnutls.h
19510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19512 echo "$as_me:$LINENO: checking for $ac_header" >&5
19513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19520 # Is the header compilable?
19521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 $ac_includes_default
19530 #include <$ac_header>
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_header_compiler=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_header_compiler=no
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19563 echo "${ECHO_T}$ac_header_compiler" >&6
19565 # Is the header present?
19566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <$ac_header>
19576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } >/dev/null; then
19584 if test -s conftest.err; then
19585 ac_cpp_err=$ac_c_preproc_warn_flag
19586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19593 if test -z "$ac_cpp_err"; then
19594 ac_header_preproc=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_header_preproc=no
19601 rm -f conftest.err conftest.$ac_ext
19602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603 echo "${ECHO_T}$ac_header_preproc" >&6
19605 # So? What about this header?
19606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19612 ac_header_preproc=yes
19615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19634 sed "s/^/$as_me: WARNING: /" >&2
19637 echo "$as_me:$LINENO: checking for $ac_header" >&5
19638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 eval "$as_ac_Header=\$ac_header_preproc"
19644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 /* Override any gcc2 internal prototype to avoid an error. */
19677 /* We use char because int might match the return type of a gcc2
19678 builtin and then its argument prototype would still apply. */
19679 char gnutls_init ();
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19690 (eval $ac_link) 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -z "$ac_c_werror_flag"
19698 || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest$ac_exeext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_cv_lib_gnutls_gnutls_init=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_lib_gnutls_gnutls_init=no
19717 rm -f conftest.err conftest.$ac_objext \
19718 conftest$ac_exeext conftest.$ac_ext
19719 LIBS=$ac_check_lib_save_LIBS
19721 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19722 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19723 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19730 if test $have_gnutls = yes ; then
19734 TLS_LIBS="-lgnutls"
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_GNUTLS 1
19747 if test $ol_link_tls = yes ; then
19749 cat >>confdefs.h <<\_ACEOF
19754 elif test $ol_with_tls = auto ; then
19755 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19756 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19758 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19759 elif test $ol_with_tls != no ; then
19760 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19761 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19762 { (exit 1); exit 1; }; }
19764 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19765 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19768 if test $ol_enable_lmpasswd != no; then
19769 if test $ol_link_tls != yes ; then
19770 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19771 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19772 { (exit 1); exit 1; }; }
19776 cat >>confdefs.h <<\_ACEOF
19777 #define SLAPD_LMHASH 1
19784 case $ol_with_threads in auto | yes | nt)
19787 echo "$as_me:$LINENO: checking for _beginthread" >&5
19788 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19789 if test "${ac_cv_func__beginthread+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19800 #define _beginthread innocuous__beginthread
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char _beginthread (); below.
19804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805 <limits.h> exists even on freestanding compilers. */
19808 # include <limits.h>
19810 # include <assert.h>
19813 #undef _beginthread
19815 /* Override any gcc2 internal prototype to avoid an error. */
19820 /* We use char because int might match the return type of a gcc2
19821 builtin and then its argument prototype would still apply. */
19822 char _beginthread ();
19823 /* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19829 char (*f) () = _beginthread;
19838 return f != _beginthread;
19843 rm -f conftest.$ac_objext conftest$ac_exeext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845 (eval $ac_link) 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_c_werror_flag"
19853 || test ! -s conftest.err'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest$ac_exeext'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 ac_cv_func__beginthread=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_cv_func__beginthread=no
19872 rm -f conftest.err conftest.$ac_objext \
19873 conftest$ac_exeext conftest.$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19876 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19879 if test $ac_cv_func__beginthread = yes ; then
19881 cat >>confdefs.h <<\_ACEOF
19882 #define HAVE_NT_THREADS 1
19885 ol_cv_nt_threads=yes
19889 if test "$ol_cv_nt_threads" = yes ; then
19891 ol_with_threads=found
19892 ol_with_yielding_select=yes
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_NT_SERVICE_MANAGER 1
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_NT_EVENT_LOG 1
19906 if test $ol_with_threads = nt ; then
19907 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19908 echo "$as_me: error: could not locate NT Threads" >&2;}
19909 { (exit 1); exit 1; }; }
19914 case $ol_with_threads in auto | yes | posix)
19917 for ac_header in pthread.h
19919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19921 echo "$as_me:$LINENO: checking for $ac_header" >&5
19922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19929 # Is the header compilable?
19930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 $ac_includes_default
19939 #include <$ac_header>
19941 rm -f conftest.$ac_objext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943 (eval $ac_compile) 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_header_compiler=yes
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19968 ac_header_compiler=no
19970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19972 echo "${ECHO_T}$ac_header_compiler" >&6
19974 # Is the header present?
19975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 #include <$ac_header>
19985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } >/dev/null; then
19993 if test -s conftest.err; then
19994 ac_cpp_err=$ac_c_preproc_warn_flag
19995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20002 if test -z "$ac_cpp_err"; then
20003 ac_header_preproc=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_header_preproc=no
20010 rm -f conftest.err conftest.$ac_ext
20011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20012 echo "${ECHO_T}$ac_header_preproc" >&6
20014 # So? What about this header?
20015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20021 ac_header_preproc=yes
20024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20038 ## --------------------------------------------- ##
20039 ## Report this to <http://www.openldap.org/its/> ##
20040 ## --------------------------------------------- ##
20043 sed "s/^/$as_me: WARNING: /" >&2
20046 echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 eval "$as_ac_Header=\$ac_header_preproc"
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20058 cat >>confdefs.h <<_ACEOF
20059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20067 if test $ac_cv_header_pthread_h = yes ; then
20068 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20069 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20070 if test "${ol_cv_pthread_version+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20081 # include <pthread.h>
20087 int i = PTHREAD_CREATE_JOINABLE;
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 #include <pthread.h>
20125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20126 $EGREP "pthread_detach" >/dev/null 2>&1; then
20127 ol_cv_pthread_version=10
20129 ol_cv_pthread_version=8
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20145 # include <pthread.h>
20146 # ifdef PTHREAD_CREATE_UNDETACHED
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "draft7" >/dev/null 2>&1; then
20153 ol_cv_pthread_version=7
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <pthread.h>
20165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20166 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20167 ol_cv_pthread_version=6
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20177 # include <pthread.h>
20178 #ifdef PTHREAD_MUTEX_INITIALIZER
20183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20184 $EGREP "draft5" >/dev/null 2>&1; then
20185 ol_cv_pthread_version=5
20187 ol_cv_pthread_version=4
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20201 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20202 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20205 if test $ol_cv_pthread_version != 0 ; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_PTHREADS $ol_cv_pthread_version
20212 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20213 echo "$as_me: error: unknown pthread version" >&2;}
20214 { (exit 1); exit 1; }; }
20217 # consider threads found
20218 ol_with_threads=found
20221 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20222 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20223 if test "${ol_cv_header_linux_threads+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 #include <pthread.h>
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20236 ol_cv_header_linux_threads=yes
20238 ol_cv_header_linux_threads=no
20244 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20245 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20246 if test $ol_cv_header_linux_threads = yes; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LINUX_THREADS 1
20255 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20256 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20257 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 #include <pthread.h>
20267 #ifdef _POSIX_THREAD_IS_GNU_PTH
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20274 ol_cv_header_gnu_pth_pthread_h=yes
20276 ol_cv_header_gnu_pth_pthread_h=no
20282 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20283 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20286 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20288 for ac_header in sched.h
20290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292 echo "$as_me:$LINENO: checking for $ac_header" >&5
20293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20300 # Is the header compilable?
20301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20310 #include <$ac_header>
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>conftest.er1
20316 grep -v '^ *+' conftest.er1 >conftest.err
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag"
20322 || test ! -s conftest.err'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; } &&
20328 { ac_try='test -s conftest.$ac_objext'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 ac_header_compiler=yes
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_compiler=no
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343 echo "${ECHO_T}$ac_header_compiler" >&6
20345 # Is the header present?
20346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 #include <$ac_header>
20356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } >/dev/null; then
20364 if test -s conftest.err; then
20365 ac_cpp_err=$ac_c_preproc_warn_flag
20366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20373 if test -z "$ac_cpp_err"; then
20374 ac_header_preproc=yes
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_header_preproc=no
20381 rm -f conftest.err conftest.$ac_ext
20382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383 echo "${ECHO_T}$ac_header_preproc" >&6
20385 # So? What about this header?
20386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392 ac_header_preproc=yes
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20409 ## --------------------------------------------- ##
20410 ## Report this to <http://www.openldap.org/its/> ##
20411 ## --------------------------------------------- ##
20414 sed "s/^/$as_me: WARNING: /" >&2
20417 echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 eval "$as_ac_Header=\$ac_header_preproc"
20424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20440 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20441 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20442 if test "${ol_cv_pthread_create+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 if test "$cross_compiling" = yes; then
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 /* pthread test headers */
20455 #include <pthread.h>
20456 #if HAVE_PTHREADS < 7
20460 #define NULL (void*)0
20463 static void *task(p)
20466 return (void *) (p == NULL);
20473 /* pthread test function */
20474 #ifndef PTHREAD_CREATE_DETACHED
20475 #define PTHREAD_CREATE_DETACHED 1
20479 int detach = PTHREAD_CREATE_DETACHED;
20481 #if HAVE_PTHREADS > 4
20482 /* Final pthreads */
20483 pthread_attr_t attr;
20485 status = pthread_attr_init(&attr);
20486 if( status ) return status;
20488 #if HAVE_PTHREADS < 7
20489 status = pthread_attr_setdetachstate(&attr, &detach);
20490 if( status < 0 ) status = errno;
20492 status = pthread_attr_setdetachstate(&attr, detach);
20494 if( status ) return status;
20495 status = pthread_create( &t, &attr, task, NULL );
20496 #if HAVE_PTHREADS < 7
20497 if( status < 0 ) status = errno;
20499 if( status ) return status;
20501 /* Draft 4 pthreads */
20502 status = pthread_create( &t, pthread_attr_default, task, NULL );
20503 if( status ) return errno;
20505 /* give thread a chance to complete */
20506 /* it should remain joinable and hence detachable */
20509 status = pthread_detach( &t );
20510 if( status ) return errno;
20513 #ifdef HAVE_LINUX_THREADS
20514 pthread_kill_other_threads_np();
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20525 (eval $ac_link) 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } &&
20532 { ac_try='test -z "$ac_c_werror_flag"
20533 || test ! -s conftest.err'
20534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535 (eval $ac_try) 2>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; } &&
20539 { ac_try='test -s conftest$ac_exeext'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 ol_cv_pthread_create=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ol_cv_pthread_create=no
20552 rm -f conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 /* pthread test headers */
20563 #include <pthread.h>
20564 #if HAVE_PTHREADS < 7
20568 #define NULL (void*)0
20571 static void *task(p)
20574 return (void *) (p == NULL);
20578 int main(argc, argv)
20583 /* pthread test function */
20584 #ifndef PTHREAD_CREATE_DETACHED
20585 #define PTHREAD_CREATE_DETACHED 1
20589 int detach = PTHREAD_CREATE_DETACHED;
20591 #if HAVE_PTHREADS > 4
20592 /* Final pthreads */
20593 pthread_attr_t attr;
20595 status = pthread_attr_init(&attr);
20596 if( status ) return status;
20598 #if HAVE_PTHREADS < 7
20599 status = pthread_attr_setdetachstate(&attr, &detach);
20600 if( status < 0 ) status = errno;
20602 status = pthread_attr_setdetachstate(&attr, detach);
20604 if( status ) return status;
20605 status = pthread_create( &t, &attr, task, NULL );
20606 #if HAVE_PTHREADS < 7
20607 if( status < 0 ) status = errno;
20609 if( status ) return status;
20611 /* Draft 4 pthreads */
20612 status = pthread_create( &t, pthread_attr_default, task, NULL );
20613 if( status ) return errno;
20615 /* give thread a chance to complete */
20616 /* it should remain joinable and hence detachable */
20619 status = pthread_detach( &t );
20620 if( status ) return errno;
20623 #ifdef HAVE_LINUX_THREADS
20624 pthread_kill_other_threads_np();
20632 rm -f conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ol_cv_pthread_create=yes
20645 echo "$as_me: program exited with status $ac_status" >&5
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ( exit $ac_status )
20650 ol_cv_pthread_create=no
20652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20655 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20656 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20658 if test $ol_cv_pthread_create != no ; then
20659 ol_link_threads=posix
20660 ol_link_pthreads=""
20663 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20664 if test "$ol_link_threads" = no ; then
20666 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20667 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20668 if test "${ol_cv_pthread_kthread+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 LIBS="-kthread $LIBS"
20676 if test "$cross_compiling" = yes; then
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 /* pthread test headers */
20685 #include <pthread.h>
20686 #if HAVE_PTHREADS < 7
20690 #define NULL (void*)0
20693 static void *task(p)
20696 return (void *) (p == NULL);
20703 /* pthread test function */
20704 #ifndef PTHREAD_CREATE_DETACHED
20705 #define PTHREAD_CREATE_DETACHED 1
20709 int detach = PTHREAD_CREATE_DETACHED;
20711 #if HAVE_PTHREADS > 4
20712 /* Final pthreads */
20713 pthread_attr_t attr;
20715 status = pthread_attr_init(&attr);
20716 if( status ) return status;
20718 #if HAVE_PTHREADS < 7
20719 status = pthread_attr_setdetachstate(&attr, &detach);
20720 if( status < 0 ) status = errno;
20722 status = pthread_attr_setdetachstate(&attr, detach);
20724 if( status ) return status;
20725 status = pthread_create( &t, &attr, task, NULL );
20726 #if HAVE_PTHREADS < 7
20727 if( status < 0 ) status = errno;
20729 if( status ) return status;
20731 /* Draft 4 pthreads */
20732 status = pthread_create( &t, pthread_attr_default, task, NULL );
20733 if( status ) return errno;
20735 /* give thread a chance to complete */
20736 /* it should remain joinable and hence detachable */
20739 status = pthread_detach( &t );
20740 if( status ) return errno;
20743 #ifdef HAVE_LINUX_THREADS
20744 pthread_kill_other_threads_np();
20753 rm -f conftest.$ac_objext conftest$ac_exeext
20754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20755 (eval $ac_link) 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try='test -z "$ac_c_werror_flag"
20763 || test ! -s conftest.err'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ol_cv_pthread_kthread=yes
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ol_cv_pthread_kthread=no
20782 rm -f conftest.err conftest.$ac_objext \
20783 conftest$ac_exeext conftest.$ac_ext
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20792 /* pthread test headers */
20793 #include <pthread.h>
20794 #if HAVE_PTHREADS < 7
20798 #define NULL (void*)0
20801 static void *task(p)
20804 return (void *) (p == NULL);
20808 int main(argc, argv)
20813 /* pthread test function */
20814 #ifndef PTHREAD_CREATE_DETACHED
20815 #define PTHREAD_CREATE_DETACHED 1
20819 int detach = PTHREAD_CREATE_DETACHED;
20821 #if HAVE_PTHREADS > 4
20822 /* Final pthreads */
20823 pthread_attr_t attr;
20825 status = pthread_attr_init(&attr);
20826 if( status ) return status;
20828 #if HAVE_PTHREADS < 7
20829 status = pthread_attr_setdetachstate(&attr, &detach);
20830 if( status < 0 ) status = errno;
20832 status = pthread_attr_setdetachstate(&attr, detach);
20834 if( status ) return status;
20835 status = pthread_create( &t, &attr, task, NULL );
20836 #if HAVE_PTHREADS < 7
20837 if( status < 0 ) status = errno;
20839 if( status ) return status;
20841 /* Draft 4 pthreads */
20842 status = pthread_create( &t, pthread_attr_default, task, NULL );
20843 if( status ) return errno;
20845 /* give thread a chance to complete */
20846 /* it should remain joinable and hence detachable */
20849 status = pthread_detach( &t );
20850 if( status ) return errno;
20853 #ifdef HAVE_LINUX_THREADS
20854 pthread_kill_other_threads_np();
20862 rm -f conftest$ac_exeext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864 (eval $ac_link) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ol_cv_pthread_kthread=yes
20875 echo "$as_me: program exited with status $ac_status" >&5
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ( exit $ac_status )
20880 ol_cv_pthread_kthread=no
20882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20889 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20890 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20892 if test $ol_cv_pthread_kthread = yes ; then
20893 ol_link_pthreads="-kthread"
20894 ol_link_threads=posix
20898 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20899 if test "$ol_link_threads" = no ; then
20901 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20902 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20903 if test "${ol_cv_pthread_pthread+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 LIBS="-pthread $LIBS"
20911 if test "$cross_compiling" = yes; then
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20919 /* pthread test headers */
20920 #include <pthread.h>
20921 #if HAVE_PTHREADS < 7
20925 #define NULL (void*)0
20928 static void *task(p)
20931 return (void *) (p == NULL);
20938 /* pthread test function */
20939 #ifndef PTHREAD_CREATE_DETACHED
20940 #define PTHREAD_CREATE_DETACHED 1
20944 int detach = PTHREAD_CREATE_DETACHED;
20946 #if HAVE_PTHREADS > 4
20947 /* Final pthreads */
20948 pthread_attr_t attr;
20950 status = pthread_attr_init(&attr);
20951 if( status ) return status;
20953 #if HAVE_PTHREADS < 7
20954 status = pthread_attr_setdetachstate(&attr, &detach);
20955 if( status < 0 ) status = errno;
20957 status = pthread_attr_setdetachstate(&attr, detach);
20959 if( status ) return status;
20960 status = pthread_create( &t, &attr, task, NULL );
20961 #if HAVE_PTHREADS < 7
20962 if( status < 0 ) status = errno;
20964 if( status ) return status;
20966 /* Draft 4 pthreads */
20967 status = pthread_create( &t, pthread_attr_default, task, NULL );
20968 if( status ) return errno;
20970 /* give thread a chance to complete */
20971 /* it should remain joinable and hence detachable */
20974 status = pthread_detach( &t );
20975 if( status ) return errno;
20978 #ifdef HAVE_LINUX_THREADS
20979 pthread_kill_other_threads_np();
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 (eval $ac_link) 2>conftest.er1
20992 grep -v '^ *+' conftest.er1 >conftest.err
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_c_werror_flag"
20998 || test ! -s conftest.err'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try='test -s conftest$ac_exeext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ol_cv_pthread_pthread=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ol_cv_pthread_pthread=no
21017 rm -f conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21027 /* pthread test headers */
21028 #include <pthread.h>
21029 #if HAVE_PTHREADS < 7
21033 #define NULL (void*)0
21036 static void *task(p)
21039 return (void *) (p == NULL);
21043 int main(argc, argv)
21048 /* pthread test function */
21049 #ifndef PTHREAD_CREATE_DETACHED
21050 #define PTHREAD_CREATE_DETACHED 1
21054 int detach = PTHREAD_CREATE_DETACHED;
21056 #if HAVE_PTHREADS > 4
21057 /* Final pthreads */
21058 pthread_attr_t attr;
21060 status = pthread_attr_init(&attr);
21061 if( status ) return status;
21063 #if HAVE_PTHREADS < 7
21064 status = pthread_attr_setdetachstate(&attr, &detach);
21065 if( status < 0 ) status = errno;
21067 status = pthread_attr_setdetachstate(&attr, detach);
21069 if( status ) return status;
21070 status = pthread_create( &t, &attr, task, NULL );
21071 #if HAVE_PTHREADS < 7
21072 if( status < 0 ) status = errno;
21074 if( status ) return status;
21076 /* Draft 4 pthreads */
21077 status = pthread_create( &t, pthread_attr_default, task, NULL );
21078 if( status ) return errno;
21080 /* give thread a chance to complete */
21081 /* it should remain joinable and hence detachable */
21084 status = pthread_detach( &t );
21085 if( status ) return errno;
21088 #ifdef HAVE_LINUX_THREADS
21089 pthread_kill_other_threads_np();
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ol_cv_pthread_pthread=yes
21110 echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ( exit $ac_status )
21115 ol_cv_pthread_pthread=no
21117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21124 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21125 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21127 if test $ol_cv_pthread_pthread = yes ; then
21128 ol_link_pthreads="-pthread"
21129 ol_link_threads=posix
21133 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21134 if test "$ol_link_threads" = no ; then
21136 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21137 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21138 if test "${ol_cv_pthread_pthreads+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 LIBS="-pthreads $LIBS"
21146 if test "$cross_compiling" = yes; then
21147 cat >conftest.$ac_ext <<_ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21154 /* pthread test headers */
21155 #include <pthread.h>
21156 #if HAVE_PTHREADS < 7
21160 #define NULL (void*)0
21163 static void *task(p)
21166 return (void *) (p == NULL);
21173 /* pthread test function */
21174 #ifndef PTHREAD_CREATE_DETACHED
21175 #define PTHREAD_CREATE_DETACHED 1
21179 int detach = PTHREAD_CREATE_DETACHED;
21181 #if HAVE_PTHREADS > 4
21182 /* Final pthreads */
21183 pthread_attr_t attr;
21185 status = pthread_attr_init(&attr);
21186 if( status ) return status;
21188 #if HAVE_PTHREADS < 7
21189 status = pthread_attr_setdetachstate(&attr, &detach);
21190 if( status < 0 ) status = errno;
21192 status = pthread_attr_setdetachstate(&attr, detach);
21194 if( status ) return status;
21195 status = pthread_create( &t, &attr, task, NULL );
21196 #if HAVE_PTHREADS < 7
21197 if( status < 0 ) status = errno;
21199 if( status ) return status;
21201 /* Draft 4 pthreads */
21202 status = pthread_create( &t, pthread_attr_default, task, NULL );
21203 if( status ) return errno;
21205 /* give thread a chance to complete */
21206 /* it should remain joinable and hence detachable */
21209 status = pthread_detach( &t );
21210 if( status ) return errno;
21213 #ifdef HAVE_LINUX_THREADS
21214 pthread_kill_other_threads_np();
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225 (eval $ac_link) 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try='test -z "$ac_c_werror_flag"
21233 || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest$ac_exeext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ol_cv_pthread_pthreads=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ol_cv_pthread_pthreads=no
21252 rm -f conftest.err conftest.$ac_objext \
21253 conftest$ac_exeext conftest.$ac_ext
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21262 /* pthread test headers */
21263 #include <pthread.h>
21264 #if HAVE_PTHREADS < 7
21268 #define NULL (void*)0
21271 static void *task(p)
21274 return (void *) (p == NULL);
21278 int main(argc, argv)
21283 /* pthread test function */
21284 #ifndef PTHREAD_CREATE_DETACHED
21285 #define PTHREAD_CREATE_DETACHED 1
21289 int detach = PTHREAD_CREATE_DETACHED;
21291 #if HAVE_PTHREADS > 4
21292 /* Final pthreads */
21293 pthread_attr_t attr;
21295 status = pthread_attr_init(&attr);
21296 if( status ) return status;
21298 #if HAVE_PTHREADS < 7
21299 status = pthread_attr_setdetachstate(&attr, &detach);
21300 if( status < 0 ) status = errno;
21302 status = pthread_attr_setdetachstate(&attr, detach);
21304 if( status ) return status;
21305 status = pthread_create( &t, &attr, task, NULL );
21306 #if HAVE_PTHREADS < 7
21307 if( status < 0 ) status = errno;
21309 if( status ) return status;
21311 /* Draft 4 pthreads */
21312 status = pthread_create( &t, pthread_attr_default, task, NULL );
21313 if( status ) return errno;
21315 /* give thread a chance to complete */
21316 /* it should remain joinable and hence detachable */
21319 status = pthread_detach( &t );
21320 if( status ) return errno;
21323 #ifdef HAVE_LINUX_THREADS
21324 pthread_kill_other_threads_np();
21332 rm -f conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ol_cv_pthread_pthreads=yes
21345 echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ( exit $ac_status )
21350 ol_cv_pthread_pthreads=no
21352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21359 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21360 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21362 if test $ol_cv_pthread_pthreads = yes ; then
21363 ol_link_pthreads="-pthreads"
21364 ol_link_threads=posix
21368 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21369 if test "$ol_link_threads" = no ; then
21371 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21372 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21373 if test "${ol_cv_pthread_mthreads+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 LIBS="-mthreads $LIBS"
21381 if test "$cross_compiling" = yes; then
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21389 /* pthread test headers */
21390 #include <pthread.h>
21391 #if HAVE_PTHREADS < 7
21395 #define NULL (void*)0
21398 static void *task(p)
21401 return (void *) (p == NULL);
21408 /* pthread test function */
21409 #ifndef PTHREAD_CREATE_DETACHED
21410 #define PTHREAD_CREATE_DETACHED 1
21414 int detach = PTHREAD_CREATE_DETACHED;
21416 #if HAVE_PTHREADS > 4
21417 /* Final pthreads */
21418 pthread_attr_t attr;
21420 status = pthread_attr_init(&attr);
21421 if( status ) return status;
21423 #if HAVE_PTHREADS < 7
21424 status = pthread_attr_setdetachstate(&attr, &detach);
21425 if( status < 0 ) status = errno;
21427 status = pthread_attr_setdetachstate(&attr, detach);
21429 if( status ) return status;
21430 status = pthread_create( &t, &attr, task, NULL );
21431 #if HAVE_PTHREADS < 7
21432 if( status < 0 ) status = errno;
21434 if( status ) return status;
21436 /* Draft 4 pthreads */
21437 status = pthread_create( &t, pthread_attr_default, task, NULL );
21438 if( status ) return errno;
21440 /* give thread a chance to complete */
21441 /* it should remain joinable and hence detachable */
21444 status = pthread_detach( &t );
21445 if( status ) return errno;
21448 #ifdef HAVE_LINUX_THREADS
21449 pthread_kill_other_threads_np();
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>conftest.er1
21462 grep -v '^ *+' conftest.er1 >conftest.err
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ol_cv_pthread_mthreads=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ol_cv_pthread_mthreads=no
21487 rm -f conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21497 /* pthread test headers */
21498 #include <pthread.h>
21499 #if HAVE_PTHREADS < 7
21503 #define NULL (void*)0
21506 static void *task(p)
21509 return (void *) (p == NULL);
21513 int main(argc, argv)
21518 /* pthread test function */
21519 #ifndef PTHREAD_CREATE_DETACHED
21520 #define PTHREAD_CREATE_DETACHED 1
21524 int detach = PTHREAD_CREATE_DETACHED;
21526 #if HAVE_PTHREADS > 4
21527 /* Final pthreads */
21528 pthread_attr_t attr;
21530 status = pthread_attr_init(&attr);
21531 if( status ) return status;
21533 #if HAVE_PTHREADS < 7
21534 status = pthread_attr_setdetachstate(&attr, &detach);
21535 if( status < 0 ) status = errno;
21537 status = pthread_attr_setdetachstate(&attr, detach);
21539 if( status ) return status;
21540 status = pthread_create( &t, &attr, task, NULL );
21541 #if HAVE_PTHREADS < 7
21542 if( status < 0 ) status = errno;
21544 if( status ) return status;
21546 /* Draft 4 pthreads */
21547 status = pthread_create( &t, pthread_attr_default, task, NULL );
21548 if( status ) return errno;
21550 /* give thread a chance to complete */
21551 /* it should remain joinable and hence detachable */
21554 status = pthread_detach( &t );
21555 if( status ) return errno;
21558 #ifdef HAVE_LINUX_THREADS
21559 pthread_kill_other_threads_np();
21567 rm -f conftest$ac_exeext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569 (eval $ac_link) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; }; then
21578 ol_cv_pthread_mthreads=yes
21580 echo "$as_me: program exited with status $ac_status" >&5
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ( exit $ac_status )
21585 ol_cv_pthread_mthreads=no
21587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21594 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21595 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21597 if test $ol_cv_pthread_mthreads = yes ; then
21598 ol_link_pthreads="-mthreads"
21599 ol_link_threads=posix
21603 # Pthread try link: -thread (ol_cv_pthread_thread)
21604 if test "$ol_link_threads" = no ; then
21606 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21607 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21608 if test "${ol_cv_pthread_thread+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 LIBS="-thread $LIBS"
21616 if test "$cross_compiling" = yes; then
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21624 /* pthread test headers */
21625 #include <pthread.h>
21626 #if HAVE_PTHREADS < 7
21630 #define NULL (void*)0
21633 static void *task(p)
21636 return (void *) (p == NULL);
21643 /* pthread test function */
21644 #ifndef PTHREAD_CREATE_DETACHED
21645 #define PTHREAD_CREATE_DETACHED 1
21649 int detach = PTHREAD_CREATE_DETACHED;
21651 #if HAVE_PTHREADS > 4
21652 /* Final pthreads */
21653 pthread_attr_t attr;
21655 status = pthread_attr_init(&attr);
21656 if( status ) return status;
21658 #if HAVE_PTHREADS < 7
21659 status = pthread_attr_setdetachstate(&attr, &detach);
21660 if( status < 0 ) status = errno;
21662 status = pthread_attr_setdetachstate(&attr, detach);
21664 if( status ) return status;
21665 status = pthread_create( &t, &attr, task, NULL );
21666 #if HAVE_PTHREADS < 7
21667 if( status < 0 ) status = errno;
21669 if( status ) return status;
21671 /* Draft 4 pthreads */
21672 status = pthread_create( &t, pthread_attr_default, task, NULL );
21673 if( status ) return errno;
21675 /* give thread a chance to complete */
21676 /* it should remain joinable and hence detachable */
21679 status = pthread_detach( &t );
21680 if( status ) return errno;
21683 #ifdef HAVE_LINUX_THREADS
21684 pthread_kill_other_threads_np();
21693 rm -f conftest.$ac_objext conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695 (eval $ac_link) 2>conftest.er1
21697 grep -v '^ *+' conftest.er1 >conftest.err
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } &&
21702 { ac_try='test -z "$ac_c_werror_flag"
21703 || test ! -s conftest.err'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest$ac_exeext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ol_cv_pthread_thread=yes
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ol_cv_pthread_thread=no
21722 rm -f conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21732 /* pthread test headers */
21733 #include <pthread.h>
21734 #if HAVE_PTHREADS < 7
21738 #define NULL (void*)0
21741 static void *task(p)
21744 return (void *) (p == NULL);
21748 int main(argc, argv)
21753 /* pthread test function */
21754 #ifndef PTHREAD_CREATE_DETACHED
21755 #define PTHREAD_CREATE_DETACHED 1
21759 int detach = PTHREAD_CREATE_DETACHED;
21761 #if HAVE_PTHREADS > 4
21762 /* Final pthreads */
21763 pthread_attr_t attr;
21765 status = pthread_attr_init(&attr);
21766 if( status ) return status;
21768 #if HAVE_PTHREADS < 7
21769 status = pthread_attr_setdetachstate(&attr, &detach);
21770 if( status < 0 ) status = errno;
21772 status = pthread_attr_setdetachstate(&attr, detach);
21774 if( status ) return status;
21775 status = pthread_create( &t, &attr, task, NULL );
21776 #if HAVE_PTHREADS < 7
21777 if( status < 0 ) status = errno;
21779 if( status ) return status;
21781 /* Draft 4 pthreads */
21782 status = pthread_create( &t, pthread_attr_default, task, NULL );
21783 if( status ) return errno;
21785 /* give thread a chance to complete */
21786 /* it should remain joinable and hence detachable */
21789 status = pthread_detach( &t );
21790 if( status ) return errno;
21793 #ifdef HAVE_LINUX_THREADS
21794 pthread_kill_other_threads_np();
21802 rm -f conftest$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804 (eval $ac_link) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ol_cv_pthread_thread=yes
21815 echo "$as_me: program exited with status $ac_status" >&5
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ( exit $ac_status )
21820 ol_cv_pthread_thread=no
21822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21829 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21830 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21832 if test $ol_cv_pthread_thread = yes ; then
21833 ol_link_pthreads="-thread"
21834 ol_link_threads=posix
21839 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21840 if test "$ol_link_threads" = no ; then
21841 # try -lpthread -lmach -lexc -lc_r
21842 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21843 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21844 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21852 if test "$cross_compiling" = yes; then
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21860 /* pthread test headers */
21861 #include <pthread.h>
21862 #if HAVE_PTHREADS < 7
21866 #define NULL (void*)0
21869 static void *task(p)
21872 return (void *) (p == NULL);
21879 /* pthread test function */
21880 #ifndef PTHREAD_CREATE_DETACHED
21881 #define PTHREAD_CREATE_DETACHED 1
21885 int detach = PTHREAD_CREATE_DETACHED;
21887 #if HAVE_PTHREADS > 4
21888 /* Final pthreads */
21889 pthread_attr_t attr;
21891 status = pthread_attr_init(&attr);
21892 if( status ) return status;
21894 #if HAVE_PTHREADS < 7
21895 status = pthread_attr_setdetachstate(&attr, &detach);
21896 if( status < 0 ) status = errno;
21898 status = pthread_attr_setdetachstate(&attr, detach);
21900 if( status ) return status;
21901 status = pthread_create( &t, &attr, task, NULL );
21902 #if HAVE_PTHREADS < 7
21903 if( status < 0 ) status = errno;
21905 if( status ) return status;
21907 /* Draft 4 pthreads */
21908 status = pthread_create( &t, pthread_attr_default, task, NULL );
21909 if( status ) return errno;
21911 /* give thread a chance to complete */
21912 /* it should remain joinable and hence detachable */
21915 status = pthread_detach( &t );
21916 if( status ) return errno;
21919 #ifdef HAVE_LINUX_THREADS
21920 pthread_kill_other_threads_np();
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21931 (eval $ac_link) 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } &&
21938 { ac_try='test -z "$ac_c_werror_flag"
21939 || test ! -s conftest.err'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } &&
21945 { ac_try='test -s conftest$ac_exeext'
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
21951 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21958 rm -f conftest.err conftest.$ac_objext \
21959 conftest$ac_exeext conftest.$ac_ext
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21968 /* pthread test headers */
21969 #include <pthread.h>
21970 #if HAVE_PTHREADS < 7
21974 #define NULL (void*)0
21977 static void *task(p)
21980 return (void *) (p == NULL);
21984 int main(argc, argv)
21989 /* pthread test function */
21990 #ifndef PTHREAD_CREATE_DETACHED
21991 #define PTHREAD_CREATE_DETACHED 1
21995 int detach = PTHREAD_CREATE_DETACHED;
21997 #if HAVE_PTHREADS > 4
21998 /* Final pthreads */
21999 pthread_attr_t attr;
22001 status = pthread_attr_init(&attr);
22002 if( status ) return status;
22004 #if HAVE_PTHREADS < 7
22005 status = pthread_attr_setdetachstate(&attr, &detach);
22006 if( status < 0 ) status = errno;
22008 status = pthread_attr_setdetachstate(&attr, detach);
22010 if( status ) return status;
22011 status = pthread_create( &t, &attr, task, NULL );
22012 #if HAVE_PTHREADS < 7
22013 if( status < 0 ) status = errno;
22015 if( status ) return status;
22017 /* Draft 4 pthreads */
22018 status = pthread_create( &t, pthread_attr_default, task, NULL );
22019 if( status ) return errno;
22021 /* give thread a chance to complete */
22022 /* it should remain joinable and hence detachable */
22025 status = pthread_detach( &t );
22026 if( status ) return errno;
22029 #ifdef HAVE_LINUX_THREADS
22030 pthread_kill_other_threads_np();
22038 rm -f conftest$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; }; then
22049 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22051 echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ( exit $ac_status )
22056 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22065 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22066 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22068 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22069 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22070 ol_link_threads=posix
22074 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22075 if test "$ol_link_threads" = no ; then
22076 # try -lpthread -lmach -lexc
22077 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22078 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22079 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 LIBS="-lpthread -lmach -lexc $LIBS"
22087 if test "$cross_compiling" = yes; then
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22095 /* pthread test headers */
22096 #include <pthread.h>
22097 #if HAVE_PTHREADS < 7
22101 #define NULL (void*)0
22104 static void *task(p)
22107 return (void *) (p == NULL);
22114 /* pthread test function */
22115 #ifndef PTHREAD_CREATE_DETACHED
22116 #define PTHREAD_CREATE_DETACHED 1
22120 int detach = PTHREAD_CREATE_DETACHED;
22122 #if HAVE_PTHREADS > 4
22123 /* Final pthreads */
22124 pthread_attr_t attr;
22126 status = pthread_attr_init(&attr);
22127 if( status ) return status;
22129 #if HAVE_PTHREADS < 7
22130 status = pthread_attr_setdetachstate(&attr, &detach);
22131 if( status < 0 ) status = errno;
22133 status = pthread_attr_setdetachstate(&attr, detach);
22135 if( status ) return status;
22136 status = pthread_create( &t, &attr, task, NULL );
22137 #if HAVE_PTHREADS < 7
22138 if( status < 0 ) status = errno;
22140 if( status ) return status;
22142 /* Draft 4 pthreads */
22143 status = pthread_create( &t, pthread_attr_default, task, NULL );
22144 if( status ) return errno;
22146 /* give thread a chance to complete */
22147 /* it should remain joinable and hence detachable */
22150 status = pthread_detach( &t );
22151 if( status ) return errno;
22154 #ifdef HAVE_LINUX_THREADS
22155 pthread_kill_other_threads_np();
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166 (eval $ac_link) 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } &&
22173 { ac_try='test -z "$ac_c_werror_flag"
22174 || test ! -s conftest.err'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; } &&
22180 { ac_try='test -s conftest$ac_exeext'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; }; then
22186 ol_cv_pthread_lpthread_lmach_lexc=yes
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ol_cv_pthread_lpthread_lmach_lexc=no
22193 rm -f conftest.err conftest.$ac_objext \
22194 conftest$ac_exeext conftest.$ac_ext
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22203 /* pthread test headers */
22204 #include <pthread.h>
22205 #if HAVE_PTHREADS < 7
22209 #define NULL (void*)0
22212 static void *task(p)
22215 return (void *) (p == NULL);
22219 int main(argc, argv)
22224 /* pthread test function */
22225 #ifndef PTHREAD_CREATE_DETACHED
22226 #define PTHREAD_CREATE_DETACHED 1
22230 int detach = PTHREAD_CREATE_DETACHED;
22232 #if HAVE_PTHREADS > 4
22233 /* Final pthreads */
22234 pthread_attr_t attr;
22236 status = pthread_attr_init(&attr);
22237 if( status ) return status;
22239 #if HAVE_PTHREADS < 7
22240 status = pthread_attr_setdetachstate(&attr, &detach);
22241 if( status < 0 ) status = errno;
22243 status = pthread_attr_setdetachstate(&attr, detach);
22245 if( status ) return status;
22246 status = pthread_create( &t, &attr, task, NULL );
22247 #if HAVE_PTHREADS < 7
22248 if( status < 0 ) status = errno;
22250 if( status ) return status;
22252 /* Draft 4 pthreads */
22253 status = pthread_create( &t, pthread_attr_default, task, NULL );
22254 if( status ) return errno;
22256 /* give thread a chance to complete */
22257 /* it should remain joinable and hence detachable */
22260 status = pthread_detach( &t );
22261 if( status ) return errno;
22264 #ifdef HAVE_LINUX_THREADS
22265 pthread_kill_other_threads_np();
22273 rm -f conftest$ac_exeext
22274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22275 (eval $ac_link) 2>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 ol_cv_pthread_lpthread_lmach_lexc=yes
22286 echo "$as_me: program exited with status $ac_status" >&5
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ( exit $ac_status )
22291 ol_cv_pthread_lpthread_lmach_lexc=no
22293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22300 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22301 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22303 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22304 ol_link_pthreads="-lpthread -lmach -lexc"
22305 ol_link_threads=posix
22310 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22311 if test "$ol_link_threads" = no ; then
22312 # try -lpthread -Wl,-woff,85
22313 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22314 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22315 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22323 if test "$cross_compiling" = yes; then
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22331 /* pthread test headers */
22332 #include <pthread.h>
22333 #if HAVE_PTHREADS < 7
22337 #define NULL (void*)0
22340 static void *task(p)
22343 return (void *) (p == NULL);
22350 /* pthread test function */
22351 #ifndef PTHREAD_CREATE_DETACHED
22352 #define PTHREAD_CREATE_DETACHED 1
22356 int detach = PTHREAD_CREATE_DETACHED;
22358 #if HAVE_PTHREADS > 4
22359 /* Final pthreads */
22360 pthread_attr_t attr;
22362 status = pthread_attr_init(&attr);
22363 if( status ) return status;
22365 #if HAVE_PTHREADS < 7
22366 status = pthread_attr_setdetachstate(&attr, &detach);
22367 if( status < 0 ) status = errno;
22369 status = pthread_attr_setdetachstate(&attr, detach);
22371 if( status ) return status;
22372 status = pthread_create( &t, &attr, task, NULL );
22373 #if HAVE_PTHREADS < 7
22374 if( status < 0 ) status = errno;
22376 if( status ) return status;
22378 /* Draft 4 pthreads */
22379 status = pthread_create( &t, pthread_attr_default, task, NULL );
22380 if( status ) return errno;
22382 /* give thread a chance to complete */
22383 /* it should remain joinable and hence detachable */
22386 status = pthread_detach( &t );
22387 if( status ) return errno;
22390 #ifdef HAVE_LINUX_THREADS
22391 pthread_kill_other_threads_np();
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22402 (eval $ac_link) 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } &&
22409 { ac_try='test -z "$ac_c_werror_flag"
22410 || test ! -s conftest.err'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; } &&
22416 { ac_try='test -s conftest$ac_exeext'
22417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418 (eval $ac_try) 2>&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; }; then
22422 ol_cv_pthread_lib_lpthread_woff=yes
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ol_cv_pthread_lib_lpthread_woff=no
22429 rm -f conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22439 /* pthread test headers */
22440 #include <pthread.h>
22441 #if HAVE_PTHREADS < 7
22445 #define NULL (void*)0
22448 static void *task(p)
22451 return (void *) (p == NULL);
22455 int main(argc, argv)
22460 /* pthread test function */
22461 #ifndef PTHREAD_CREATE_DETACHED
22462 #define PTHREAD_CREATE_DETACHED 1
22466 int detach = PTHREAD_CREATE_DETACHED;
22468 #if HAVE_PTHREADS > 4
22469 /* Final pthreads */
22470 pthread_attr_t attr;
22472 status = pthread_attr_init(&attr);
22473 if( status ) return status;
22475 #if HAVE_PTHREADS < 7
22476 status = pthread_attr_setdetachstate(&attr, &detach);
22477 if( status < 0 ) status = errno;
22479 status = pthread_attr_setdetachstate(&attr, detach);
22481 if( status ) return status;
22482 status = pthread_create( &t, &attr, task, NULL );
22483 #if HAVE_PTHREADS < 7
22484 if( status < 0 ) status = errno;
22486 if( status ) return status;
22488 /* Draft 4 pthreads */
22489 status = pthread_create( &t, pthread_attr_default, task, NULL );
22490 if( status ) return errno;
22492 /* give thread a chance to complete */
22493 /* it should remain joinable and hence detachable */
22496 status = pthread_detach( &t );
22497 if( status ) return errno;
22500 #ifdef HAVE_LINUX_THREADS
22501 pthread_kill_other_threads_np();
22509 rm -f conftest$ac_exeext
22510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22511 (eval $ac_link) 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; }; then
22520 ol_cv_pthread_lib_lpthread_woff=yes
22522 echo "$as_me: program exited with status $ac_status" >&5
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ( exit $ac_status )
22527 ol_cv_pthread_lib_lpthread_woff=no
22529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22536 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22537 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22539 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22540 ol_link_pthreads="-lpthread -Wl,-woff,85"
22541 ol_link_threads=posix
22546 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22547 if test "$ol_link_threads" = no ; then
22549 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22550 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22551 if test "${ol_cv_pthread_lpthread+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 LIBS="-lpthread $LIBS"
22559 if test "$cross_compiling" = yes; then
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22567 /* pthread test headers */
22568 #include <pthread.h>
22569 #if HAVE_PTHREADS < 7
22573 #define NULL (void*)0
22576 static void *task(p)
22579 return (void *) (p == NULL);
22586 /* pthread test function */
22587 #ifndef PTHREAD_CREATE_DETACHED
22588 #define PTHREAD_CREATE_DETACHED 1
22592 int detach = PTHREAD_CREATE_DETACHED;
22594 #if HAVE_PTHREADS > 4
22595 /* Final pthreads */
22596 pthread_attr_t attr;
22598 status = pthread_attr_init(&attr);
22599 if( status ) return status;
22601 #if HAVE_PTHREADS < 7
22602 status = pthread_attr_setdetachstate(&attr, &detach);
22603 if( status < 0 ) status = errno;
22605 status = pthread_attr_setdetachstate(&attr, detach);
22607 if( status ) return status;
22608 status = pthread_create( &t, &attr, task, NULL );
22609 #if HAVE_PTHREADS < 7
22610 if( status < 0 ) status = errno;
22612 if( status ) return status;
22614 /* Draft 4 pthreads */
22615 status = pthread_create( &t, pthread_attr_default, task, NULL );
22616 if( status ) return errno;
22618 /* give thread a chance to complete */
22619 /* it should remain joinable and hence detachable */
22622 status = pthread_detach( &t );
22623 if( status ) return errno;
22626 #ifdef HAVE_LINUX_THREADS
22627 pthread_kill_other_threads_np();
22636 rm -f conftest.$ac_objext conftest$ac_exeext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22638 (eval $ac_link) 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } &&
22645 { ac_try='test -z "$ac_c_werror_flag"
22646 || test ! -s conftest.err'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; } &&
22652 { ac_try='test -s conftest$ac_exeext'
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ol_cv_pthread_lpthread=yes
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ol_cv_pthread_lpthread=no
22665 rm -f conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 /* pthread test headers */
22676 #include <pthread.h>
22677 #if HAVE_PTHREADS < 7
22681 #define NULL (void*)0
22684 static void *task(p)
22687 return (void *) (p == NULL);
22691 int main(argc, argv)
22696 /* pthread test function */
22697 #ifndef PTHREAD_CREATE_DETACHED
22698 #define PTHREAD_CREATE_DETACHED 1
22702 int detach = PTHREAD_CREATE_DETACHED;
22704 #if HAVE_PTHREADS > 4
22705 /* Final pthreads */
22706 pthread_attr_t attr;
22708 status = pthread_attr_init(&attr);
22709 if( status ) return status;
22711 #if HAVE_PTHREADS < 7
22712 status = pthread_attr_setdetachstate(&attr, &detach);
22713 if( status < 0 ) status = errno;
22715 status = pthread_attr_setdetachstate(&attr, detach);
22717 if( status ) return status;
22718 status = pthread_create( &t, &attr, task, NULL );
22719 #if HAVE_PTHREADS < 7
22720 if( status < 0 ) status = errno;
22722 if( status ) return status;
22724 /* Draft 4 pthreads */
22725 status = pthread_create( &t, pthread_attr_default, task, NULL );
22726 if( status ) return errno;
22728 /* give thread a chance to complete */
22729 /* it should remain joinable and hence detachable */
22732 status = pthread_detach( &t );
22733 if( status ) return errno;
22736 #ifdef HAVE_LINUX_THREADS
22737 pthread_kill_other_threads_np();
22745 rm -f conftest$ac_exeext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22747 (eval $ac_link) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ol_cv_pthread_lpthread=yes
22758 echo "$as_me: program exited with status $ac_status" >&5
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ( exit $ac_status )
22763 ol_cv_pthread_lpthread=no
22765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22773 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22775 if test $ol_cv_pthread_lpthread = yes ; then
22776 ol_link_pthreads="-lpthread"
22777 ol_link_threads=posix
22781 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22782 if test "$ol_link_threads" = no ; then
22784 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22785 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22786 if test "${ol_cv_pthread_lc_r+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 if test "$cross_compiling" = yes; then
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22802 /* pthread test headers */
22803 #include <pthread.h>
22804 #if HAVE_PTHREADS < 7
22808 #define NULL (void*)0
22811 static void *task(p)
22814 return (void *) (p == NULL);
22821 /* pthread test function */
22822 #ifndef PTHREAD_CREATE_DETACHED
22823 #define PTHREAD_CREATE_DETACHED 1
22827 int detach = PTHREAD_CREATE_DETACHED;
22829 #if HAVE_PTHREADS > 4
22830 /* Final pthreads */
22831 pthread_attr_t attr;
22833 status = pthread_attr_init(&attr);
22834 if( status ) return status;
22836 #if HAVE_PTHREADS < 7
22837 status = pthread_attr_setdetachstate(&attr, &detach);
22838 if( status < 0 ) status = errno;
22840 status = pthread_attr_setdetachstate(&attr, detach);
22842 if( status ) return status;
22843 status = pthread_create( &t, &attr, task, NULL );
22844 #if HAVE_PTHREADS < 7
22845 if( status < 0 ) status = errno;
22847 if( status ) return status;
22849 /* Draft 4 pthreads */
22850 status = pthread_create( &t, pthread_attr_default, task, NULL );
22851 if( status ) return errno;
22853 /* give thread a chance to complete */
22854 /* it should remain joinable and hence detachable */
22857 status = pthread_detach( &t );
22858 if( status ) return errno;
22861 #ifdef HAVE_LINUX_THREADS
22862 pthread_kill_other_threads_np();
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22873 (eval $ac_link) 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest$ac_exeext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 ol_cv_pthread_lc_r=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ol_cv_pthread_lc_r=no
22900 rm -f conftest.err conftest.$ac_objext \
22901 conftest$ac_exeext conftest.$ac_ext
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22910 /* pthread test headers */
22911 #include <pthread.h>
22912 #if HAVE_PTHREADS < 7
22916 #define NULL (void*)0
22919 static void *task(p)
22922 return (void *) (p == NULL);
22926 int main(argc, argv)
22931 /* pthread test function */
22932 #ifndef PTHREAD_CREATE_DETACHED
22933 #define PTHREAD_CREATE_DETACHED 1
22937 int detach = PTHREAD_CREATE_DETACHED;
22939 #if HAVE_PTHREADS > 4
22940 /* Final pthreads */
22941 pthread_attr_t attr;
22943 status = pthread_attr_init(&attr);
22944 if( status ) return status;
22946 #if HAVE_PTHREADS < 7
22947 status = pthread_attr_setdetachstate(&attr, &detach);
22948 if( status < 0 ) status = errno;
22950 status = pthread_attr_setdetachstate(&attr, detach);
22952 if( status ) return status;
22953 status = pthread_create( &t, &attr, task, NULL );
22954 #if HAVE_PTHREADS < 7
22955 if( status < 0 ) status = errno;
22957 if( status ) return status;
22959 /* Draft 4 pthreads */
22960 status = pthread_create( &t, pthread_attr_default, task, NULL );
22961 if( status ) return errno;
22963 /* give thread a chance to complete */
22964 /* it should remain joinable and hence detachable */
22967 status = pthread_detach( &t );
22968 if( status ) return errno;
22971 #ifdef HAVE_LINUX_THREADS
22972 pthread_kill_other_threads_np();
22980 rm -f conftest$ac_exeext
22981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22982 (eval $ac_link) 2>&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ol_cv_pthread_lc_r=yes
22993 echo "$as_me: program exited with status $ac_status" >&5
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 ( exit $ac_status )
22998 ol_cv_pthread_lc_r=no
23000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23007 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23008 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23010 if test $ol_cv_pthread_lc_r = yes ; then
23011 ol_link_pthreads="-lc_r"
23012 ol_link_threads=posix
23017 # Pthread try link: -threads (ol_cv_pthread_threads)
23018 if test "$ol_link_threads" = no ; then
23020 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23021 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23022 if test "${ol_cv_pthread_threads+set}" = set; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 LIBS="-threads $LIBS"
23030 if test "$cross_compiling" = yes; then
23031 cat >conftest.$ac_ext <<_ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23038 /* pthread test headers */
23039 #include <pthread.h>
23040 #if HAVE_PTHREADS < 7
23044 #define NULL (void*)0
23047 static void *task(p)
23050 return (void *) (p == NULL);
23057 /* pthread test function */
23058 #ifndef PTHREAD_CREATE_DETACHED
23059 #define PTHREAD_CREATE_DETACHED 1
23063 int detach = PTHREAD_CREATE_DETACHED;
23065 #if HAVE_PTHREADS > 4
23066 /* Final pthreads */
23067 pthread_attr_t attr;
23069 status = pthread_attr_init(&attr);
23070 if( status ) return status;
23072 #if HAVE_PTHREADS < 7
23073 status = pthread_attr_setdetachstate(&attr, &detach);
23074 if( status < 0 ) status = errno;
23076 status = pthread_attr_setdetachstate(&attr, detach);
23078 if( status ) return status;
23079 status = pthread_create( &t, &attr, task, NULL );
23080 #if HAVE_PTHREADS < 7
23081 if( status < 0 ) status = errno;
23083 if( status ) return status;
23085 /* Draft 4 pthreads */
23086 status = pthread_create( &t, pthread_attr_default, task, NULL );
23087 if( status ) return errno;
23089 /* give thread a chance to complete */
23090 /* it should remain joinable and hence detachable */
23093 status = pthread_detach( &t );
23094 if( status ) return errno;
23097 #ifdef HAVE_LINUX_THREADS
23098 pthread_kill_other_threads_np();
23107 rm -f conftest.$ac_objext conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } &&
23116 { ac_try='test -z "$ac_c_werror_flag"
23117 || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest$ac_exeext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 ol_cv_pthread_threads=yes
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 ol_cv_pthread_threads=no
23136 rm -f conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23146 /* pthread test headers */
23147 #include <pthread.h>
23148 #if HAVE_PTHREADS < 7
23152 #define NULL (void*)0
23155 static void *task(p)
23158 return (void *) (p == NULL);
23162 int main(argc, argv)
23167 /* pthread test function */
23168 #ifndef PTHREAD_CREATE_DETACHED
23169 #define PTHREAD_CREATE_DETACHED 1
23173 int detach = PTHREAD_CREATE_DETACHED;
23175 #if HAVE_PTHREADS > 4
23176 /* Final pthreads */
23177 pthread_attr_t attr;
23179 status = pthread_attr_init(&attr);
23180 if( status ) return status;
23182 #if HAVE_PTHREADS < 7
23183 status = pthread_attr_setdetachstate(&attr, &detach);
23184 if( status < 0 ) status = errno;
23186 status = pthread_attr_setdetachstate(&attr, detach);
23188 if( status ) return status;
23189 status = pthread_create( &t, &attr, task, NULL );
23190 #if HAVE_PTHREADS < 7
23191 if( status < 0 ) status = errno;
23193 if( status ) return status;
23195 /* Draft 4 pthreads */
23196 status = pthread_create( &t, pthread_attr_default, task, NULL );
23197 if( status ) return errno;
23199 /* give thread a chance to complete */
23200 /* it should remain joinable and hence detachable */
23203 status = pthread_detach( &t );
23204 if( status ) return errno;
23207 #ifdef HAVE_LINUX_THREADS
23208 pthread_kill_other_threads_np();
23216 rm -f conftest$ac_exeext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23218 (eval $ac_link) 2>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; }; then
23227 ol_cv_pthread_threads=yes
23229 echo "$as_me: program exited with status $ac_status" >&5
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ( exit $ac_status )
23234 ol_cv_pthread_threads=no
23236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23243 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23244 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23246 if test $ol_cv_pthread_threads = yes ; then
23247 ol_link_pthreads="-threads"
23248 ol_link_threads=posix
23253 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23254 if test "$ol_link_threads" = no ; then
23255 # try -lpthreads -lmach -lexc -lc_r
23256 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23257 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23258 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23266 if test "$cross_compiling" = yes; then
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23274 /* pthread test headers */
23275 #include <pthread.h>
23276 #if HAVE_PTHREADS < 7
23280 #define NULL (void*)0
23283 static void *task(p)
23286 return (void *) (p == NULL);
23293 /* pthread test function */
23294 #ifndef PTHREAD_CREATE_DETACHED
23295 #define PTHREAD_CREATE_DETACHED 1
23299 int detach = PTHREAD_CREATE_DETACHED;
23301 #if HAVE_PTHREADS > 4
23302 /* Final pthreads */
23303 pthread_attr_t attr;
23305 status = pthread_attr_init(&attr);
23306 if( status ) return status;
23308 #if HAVE_PTHREADS < 7
23309 status = pthread_attr_setdetachstate(&attr, &detach);
23310 if( status < 0 ) status = errno;
23312 status = pthread_attr_setdetachstate(&attr, detach);
23314 if( status ) return status;
23315 status = pthread_create( &t, &attr, task, NULL );
23316 #if HAVE_PTHREADS < 7
23317 if( status < 0 ) status = errno;
23319 if( status ) return status;
23321 /* Draft 4 pthreads */
23322 status = pthread_create( &t, pthread_attr_default, task, NULL );
23323 if( status ) return errno;
23325 /* give thread a chance to complete */
23326 /* it should remain joinable and hence detachable */
23329 status = pthread_detach( &t );
23330 if( status ) return errno;
23333 #ifdef HAVE_LINUX_THREADS
23334 pthread_kill_other_threads_np();
23343 rm -f conftest.$ac_objext conftest$ac_exeext
23344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23345 (eval $ac_link) 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag"
23353 || test ! -s conftest.err'
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; } &&
23359 { ac_try='test -s conftest$ac_exeext'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; }; then
23365 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23372 rm -f conftest.err conftest.$ac_objext \
23373 conftest$ac_exeext conftest.$ac_ext
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23382 /* pthread test headers */
23383 #include <pthread.h>
23384 #if HAVE_PTHREADS < 7
23388 #define NULL (void*)0
23391 static void *task(p)
23394 return (void *) (p == NULL);
23398 int main(argc, argv)
23403 /* pthread test function */
23404 #ifndef PTHREAD_CREATE_DETACHED
23405 #define PTHREAD_CREATE_DETACHED 1
23409 int detach = PTHREAD_CREATE_DETACHED;
23411 #if HAVE_PTHREADS > 4
23412 /* Final pthreads */
23413 pthread_attr_t attr;
23415 status = pthread_attr_init(&attr);
23416 if( status ) return status;
23418 #if HAVE_PTHREADS < 7
23419 status = pthread_attr_setdetachstate(&attr, &detach);
23420 if( status < 0 ) status = errno;
23422 status = pthread_attr_setdetachstate(&attr, detach);
23424 if( status ) return status;
23425 status = pthread_create( &t, &attr, task, NULL );
23426 #if HAVE_PTHREADS < 7
23427 if( status < 0 ) status = errno;
23429 if( status ) return status;
23431 /* Draft 4 pthreads */
23432 status = pthread_create( &t, pthread_attr_default, task, NULL );
23433 if( status ) return errno;
23435 /* give thread a chance to complete */
23436 /* it should remain joinable and hence detachable */
23439 status = pthread_detach( &t );
23440 if( status ) return errno;
23443 #ifdef HAVE_LINUX_THREADS
23444 pthread_kill_other_threads_np();
23452 rm -f conftest$ac_exeext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23463 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23465 echo "$as_me: program exited with status $ac_status" >&5
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ( exit $ac_status )
23470 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23479 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23480 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23482 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23483 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23484 ol_link_threads=posix
23488 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23489 if test "$ol_link_threads" = no ; then
23490 # try -lpthreads -lmach -lexc
23491 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23492 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23493 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 LIBS="-lpthreads -lmach -lexc $LIBS"
23501 if test "$cross_compiling" = yes; then
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23509 /* pthread test headers */
23510 #include <pthread.h>
23511 #if HAVE_PTHREADS < 7
23515 #define NULL (void*)0
23518 static void *task(p)
23521 return (void *) (p == NULL);
23528 /* pthread test function */
23529 #ifndef PTHREAD_CREATE_DETACHED
23530 #define PTHREAD_CREATE_DETACHED 1
23534 int detach = PTHREAD_CREATE_DETACHED;
23536 #if HAVE_PTHREADS > 4
23537 /* Final pthreads */
23538 pthread_attr_t attr;
23540 status = pthread_attr_init(&attr);
23541 if( status ) return status;
23543 #if HAVE_PTHREADS < 7
23544 status = pthread_attr_setdetachstate(&attr, &detach);
23545 if( status < 0 ) status = errno;
23547 status = pthread_attr_setdetachstate(&attr, detach);
23549 if( status ) return status;
23550 status = pthread_create( &t, &attr, task, NULL );
23551 #if HAVE_PTHREADS < 7
23552 if( status < 0 ) status = errno;
23554 if( status ) return status;
23556 /* Draft 4 pthreads */
23557 status = pthread_create( &t, pthread_attr_default, task, NULL );
23558 if( status ) return errno;
23560 /* give thread a chance to complete */
23561 /* it should remain joinable and hence detachable */
23564 status = pthread_detach( &t );
23565 if( status ) return errno;
23568 #ifdef HAVE_LINUX_THREADS
23569 pthread_kill_other_threads_np();
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23580 (eval $ac_link) 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } &&
23587 { ac_try='test -z "$ac_c_werror_flag"
23588 || test ! -s conftest.err'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 ol_cv_pthread_lpthreads_lmach_lexc=yes
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ol_cv_pthread_lpthreads_lmach_lexc=no
23607 rm -f conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23623 #define NULL (void*)0
23626 static void *task(p)
23629 return (void *) (p == NULL);
23633 int main(argc, argv)
23638 /* pthread test function */
23639 #ifndef PTHREAD_CREATE_DETACHED
23640 #define PTHREAD_CREATE_DETACHED 1
23644 int detach = PTHREAD_CREATE_DETACHED;
23646 #if HAVE_PTHREADS > 4
23647 /* Final pthreads */
23648 pthread_attr_t attr;
23650 status = pthread_attr_init(&attr);
23651 if( status ) return status;
23653 #if HAVE_PTHREADS < 7
23654 status = pthread_attr_setdetachstate(&attr, &detach);
23655 if( status < 0 ) status = errno;
23657 status = pthread_attr_setdetachstate(&attr, detach);
23659 if( status ) return status;
23660 status = pthread_create( &t, &attr, task, NULL );
23661 #if HAVE_PTHREADS < 7
23662 if( status < 0 ) status = errno;
23664 if( status ) return status;
23666 /* Draft 4 pthreads */
23667 status = pthread_create( &t, pthread_attr_default, task, NULL );
23668 if( status ) return errno;
23670 /* give thread a chance to complete */
23671 /* it should remain joinable and hence detachable */
23674 status = pthread_detach( &t );
23675 if( status ) return errno;
23678 #ifdef HAVE_LINUX_THREADS
23679 pthread_kill_other_threads_np();
23687 rm -f conftest$ac_exeext
23688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23689 (eval $ac_link) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 ol_cv_pthread_lpthreads_lmach_lexc=yes
23700 echo "$as_me: program exited with status $ac_status" >&5
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ( exit $ac_status )
23705 ol_cv_pthread_lpthreads_lmach_lexc=no
23707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23714 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23715 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23717 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23718 ol_link_pthreads="-lpthreads -lmach -lexc"
23719 ol_link_threads=posix
23723 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23724 if test "$ol_link_threads" = no ; then
23725 # try -lpthreads -lexc
23726 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23727 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23728 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23734 LIBS="-lpthreads -lexc $LIBS"
23736 if test "$cross_compiling" = yes; then
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 /* pthread test headers */
23745 #include <pthread.h>
23746 #if HAVE_PTHREADS < 7
23750 #define NULL (void*)0
23753 static void *task(p)
23756 return (void *) (p == NULL);
23763 /* pthread test function */
23764 #ifndef PTHREAD_CREATE_DETACHED
23765 #define PTHREAD_CREATE_DETACHED 1
23769 int detach = PTHREAD_CREATE_DETACHED;
23771 #if HAVE_PTHREADS > 4
23772 /* Final pthreads */
23773 pthread_attr_t attr;
23775 status = pthread_attr_init(&attr);
23776 if( status ) return status;
23778 #if HAVE_PTHREADS < 7
23779 status = pthread_attr_setdetachstate(&attr, &detach);
23780 if( status < 0 ) status = errno;
23782 status = pthread_attr_setdetachstate(&attr, detach);
23784 if( status ) return status;
23785 status = pthread_create( &t, &attr, task, NULL );
23786 #if HAVE_PTHREADS < 7
23787 if( status < 0 ) status = errno;
23789 if( status ) return status;
23791 /* Draft 4 pthreads */
23792 status = pthread_create( &t, pthread_attr_default, task, NULL );
23793 if( status ) return errno;
23795 /* give thread a chance to complete */
23796 /* it should remain joinable and hence detachable */
23799 status = pthread_detach( &t );
23800 if( status ) return errno;
23803 #ifdef HAVE_LINUX_THREADS
23804 pthread_kill_other_threads_np();
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23815 (eval $ac_link) 2>conftest.er1
23817 grep -v '^ *+' conftest.er1 >conftest.err
23819 cat conftest.err >&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } &&
23822 { ac_try='test -z "$ac_c_werror_flag"
23823 || test ! -s conftest.err'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; } &&
23829 { ac_try='test -s conftest$ac_exeext'
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23835 ol_cv_pthread_lpthreads_lexc=yes
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ol_cv_pthread_lpthreads_lexc=no
23842 rm -f conftest.err conftest.$ac_objext \
23843 conftest$ac_exeext conftest.$ac_ext
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23852 /* pthread test headers */
23853 #include <pthread.h>
23854 #if HAVE_PTHREADS < 7
23858 #define NULL (void*)0
23861 static void *task(p)
23864 return (void *) (p == NULL);
23868 int main(argc, argv)
23873 /* pthread test function */
23874 #ifndef PTHREAD_CREATE_DETACHED
23875 #define PTHREAD_CREATE_DETACHED 1
23879 int detach = PTHREAD_CREATE_DETACHED;
23881 #if HAVE_PTHREADS > 4
23882 /* Final pthreads */
23883 pthread_attr_t attr;
23885 status = pthread_attr_init(&attr);
23886 if( status ) return status;
23888 #if HAVE_PTHREADS < 7
23889 status = pthread_attr_setdetachstate(&attr, &detach);
23890 if( status < 0 ) status = errno;
23892 status = pthread_attr_setdetachstate(&attr, detach);
23894 if( status ) return status;
23895 status = pthread_create( &t, &attr, task, NULL );
23896 #if HAVE_PTHREADS < 7
23897 if( status < 0 ) status = errno;
23899 if( status ) return status;
23901 /* Draft 4 pthreads */
23902 status = pthread_create( &t, pthread_attr_default, task, NULL );
23903 if( status ) return errno;
23905 /* give thread a chance to complete */
23906 /* it should remain joinable and hence detachable */
23909 status = pthread_detach( &t );
23910 if( status ) return errno;
23913 #ifdef HAVE_LINUX_THREADS
23914 pthread_kill_other_threads_np();
23922 rm -f conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924 (eval $ac_link) 2>&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 ol_cv_pthread_lpthreads_lexc=yes
23935 echo "$as_me: program exited with status $ac_status" >&5
23936 echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23939 ( exit $ac_status )
23940 ol_cv_pthread_lpthreads_lexc=no
23942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23949 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23950 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23952 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23953 ol_link_pthreads="-lpthreads -lexc"
23954 ol_link_threads=posix
23959 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23960 if test "$ol_link_threads" = no ; then
23962 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23963 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23964 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 LIBS="-lpthreads $LIBS"
23972 if test "$cross_compiling" = yes; then
23973 cat >conftest.$ac_ext <<_ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23980 /* pthread test headers */
23981 #include <pthread.h>
23982 #if HAVE_PTHREADS < 7
23986 #define NULL (void*)0
23989 static void *task(p)
23992 return (void *) (p == NULL);
23999 /* pthread test function */
24000 #ifndef PTHREAD_CREATE_DETACHED
24001 #define PTHREAD_CREATE_DETACHED 1
24005 int detach = PTHREAD_CREATE_DETACHED;
24007 #if HAVE_PTHREADS > 4
24008 /* Final pthreads */
24009 pthread_attr_t attr;
24011 status = pthread_attr_init(&attr);
24012 if( status ) return status;
24014 #if HAVE_PTHREADS < 7
24015 status = pthread_attr_setdetachstate(&attr, &detach);
24016 if( status < 0 ) status = errno;
24018 status = pthread_attr_setdetachstate(&attr, detach);
24020 if( status ) return status;
24021 status = pthread_create( &t, &attr, task, NULL );
24022 #if HAVE_PTHREADS < 7
24023 if( status < 0 ) status = errno;
24025 if( status ) return status;
24027 /* Draft 4 pthreads */
24028 status = pthread_create( &t, pthread_attr_default, task, NULL );
24029 if( status ) return errno;
24031 /* give thread a chance to complete */
24032 /* it should remain joinable and hence detachable */
24035 status = pthread_detach( &t );
24036 if( status ) return errno;
24039 #ifdef HAVE_LINUX_THREADS
24040 pthread_kill_other_threads_np();
24049 rm -f conftest.$ac_objext conftest$ac_exeext
24050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24051 (eval $ac_link) 2>conftest.er1
24053 grep -v '^ *+' conftest.er1 >conftest.err
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } &&
24058 { ac_try='test -z "$ac_c_werror_flag"
24059 || test ! -s conftest.err'
24060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061 (eval $ac_try) 2>&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; } &&
24065 { ac_try='test -s conftest$ac_exeext'
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; }; then
24071 ol_cv_pthread_lib_lpthreads=yes
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ol_cv_pthread_lib_lpthreads=no
24078 rm -f conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24088 /* pthread test headers */
24089 #include <pthread.h>
24090 #if HAVE_PTHREADS < 7
24094 #define NULL (void*)0
24097 static void *task(p)
24100 return (void *) (p == NULL);
24104 int main(argc, argv)
24109 /* pthread test function */
24110 #ifndef PTHREAD_CREATE_DETACHED
24111 #define PTHREAD_CREATE_DETACHED 1
24115 int detach = PTHREAD_CREATE_DETACHED;
24117 #if HAVE_PTHREADS > 4
24118 /* Final pthreads */
24119 pthread_attr_t attr;
24121 status = pthread_attr_init(&attr);
24122 if( status ) return status;
24124 #if HAVE_PTHREADS < 7
24125 status = pthread_attr_setdetachstate(&attr, &detach);
24126 if( status < 0 ) status = errno;
24128 status = pthread_attr_setdetachstate(&attr, detach);
24130 if( status ) return status;
24131 status = pthread_create( &t, &attr, task, NULL );
24132 #if HAVE_PTHREADS < 7
24133 if( status < 0 ) status = errno;
24135 if( status ) return status;
24137 /* Draft 4 pthreads */
24138 status = pthread_create( &t, pthread_attr_default, task, NULL );
24139 if( status ) return errno;
24141 /* give thread a chance to complete */
24142 /* it should remain joinable and hence detachable */
24145 status = pthread_detach( &t );
24146 if( status ) return errno;
24149 #ifdef HAVE_LINUX_THREADS
24150 pthread_kill_other_threads_np();
24158 rm -f conftest$ac_exeext
24159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160 (eval $ac_link) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); }; }; then
24169 ol_cv_pthread_lib_lpthreads=yes
24171 echo "$as_me: program exited with status $ac_status" >&5
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ( exit $ac_status )
24176 ol_cv_pthread_lib_lpthreads=no
24178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24185 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24186 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24188 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24189 ol_link_pthreads="-lpthreads"
24190 ol_link_threads=posix
24195 if test $ol_link_threads != no ; then
24196 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24198 save_CPPFLAGS="$CPPFLAGS"
24200 LIBS="$LTHREAD_LIBS $LIBS"
24205 for ac_func in sched_yield pthread_yield thr_yield
24207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24208 echo "$as_me:$LINENO: checking for $ac_func" >&5
24209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_var+set}\" = set"; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24221 #define $ac_func innocuous_$ac_func
24223 /* System header to define __stub macros and hopefully few prototypes,
24224 which can conflict with char $ac_func (); below.
24225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24226 <limits.h> exists even on freestanding compilers. */
24229 # include <limits.h>
24231 # include <assert.h>
24236 /* Override any gcc2 internal prototype to avoid an error. */
24241 /* We use char because int might match the return type of a gcc2
24242 builtin and then its argument prototype would still apply. */
24244 /* The GNU C library defines this for functions which it implements
24245 to always fail with ENOSYS. Some functions are actually named
24246 something starting with __ and the normal name is an alias. */
24247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24250 char (*f) () = $ac_func;
24259 return f != $ac_func;
24264 rm -f conftest.$ac_objext conftest$ac_exeext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24266 (eval $ac_link) 2>conftest.er1
24268 grep -v '^ *+' conftest.er1 >conftest.err
24270 cat conftest.err >&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } &&
24273 { ac_try='test -z "$ac_c_werror_flag"
24274 || test ! -s conftest.err'
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; } &&
24280 { ac_try='test -s conftest$ac_exeext'
24281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282 (eval $ac_try) 2>&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; }; then
24286 eval "$as_ac_var=yes"
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24291 eval "$as_ac_var=no"
24293 rm -f conftest.err conftest.$ac_objext \
24294 conftest$ac_exeext conftest.$ac_ext
24296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24298 if test `eval echo '${'$as_ac_var'}'` = yes; then
24299 cat >>confdefs.h <<_ACEOF
24300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24307 if test $ac_cv_func_sched_yield = no &&
24308 test $ac_cv_func_pthread_yield = no &&
24309 test $ac_cv_func_thr_yield = no ; then
24310 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24311 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24312 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 ac_check_lib_save_LIBS=$LIBS
24317 cat >conftest.$ac_ext <<_ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24324 /* Override any gcc2 internal prototype to avoid an error. */
24328 /* We use char because int might match the return type of a gcc2
24329 builtin and then its argument prototype would still apply. */
24330 char sched_yield ();
24339 rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24341 (eval $ac_link) 2>conftest.er1
24343 grep -v '^ *+' conftest.er1 >conftest.err
24345 cat conftest.err >&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } &&
24348 { ac_try='test -z "$ac_c_werror_flag"
24349 || test ! -s conftest.err'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; } &&
24355 { ac_try='test -s conftest$ac_exeext'
24356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24357 (eval $ac_try) 2>&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); }; }; then
24361 ac_cv_lib_rt_sched_yield=yes
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_lib_rt_sched_yield=no
24368 rm -f conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370 LIBS=$ac_check_lib_save_LIBS
24372 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24373 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24374 if test $ac_cv_lib_rt_sched_yield = yes; then
24375 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24377 cat >>confdefs.h <<\_ACEOF
24378 #define HAVE_SCHED_YIELD 1
24381 ac_cv_func_sched_yield=yes
24383 ac_cv_func_sched_yield=no
24387 if test $ac_cv_func_sched_yield = no &&
24388 test $ac_cv_func_pthread_yield = no &&
24389 test "$ac_cv_func_thr_yield" = no ; then
24390 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24391 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24395 for ac_func in pthread_kill
24397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24398 echo "$as_me:$LINENO: checking for $ac_func" >&5
24399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24400 if eval "test \"\${$as_ac_var+set}\" = set"; then
24401 echo $ECHO_N "(cached) $ECHO_C" >&6
24403 cat >conftest.$ac_ext <<_ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24411 #define $ac_func innocuous_$ac_func
24413 /* System header to define __stub macros and hopefully few prototypes,
24414 which can conflict with char $ac_func (); below.
24415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24416 <limits.h> exists even on freestanding compilers. */
24419 # include <limits.h>
24421 # include <assert.h>
24426 /* Override any gcc2 internal prototype to avoid an error. */
24431 /* We use char because int might match the return type of a gcc2
24432 builtin and then its argument prototype would still apply. */
24434 /* The GNU C library defines this for functions which it implements
24435 to always fail with ENOSYS. Some functions are actually named
24436 something starting with __ and the normal name is an alias. */
24437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24440 char (*f) () = $ac_func;
24449 return f != $ac_func;
24454 rm -f conftest.$ac_objext conftest$ac_exeext
24455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24456 (eval $ac_link) 2>conftest.er1
24458 grep -v '^ *+' conftest.er1 >conftest.err
24460 cat conftest.err >&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } &&
24463 { ac_try='test -z "$ac_c_werror_flag"
24464 || test ! -s conftest.err'
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; } &&
24470 { ac_try='test -s conftest$ac_exeext'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 eval "$as_ac_var=yes"
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24481 eval "$as_ac_var=no"
24483 rm -f conftest.err conftest.$ac_objext \
24484 conftest$ac_exeext conftest.$ac_ext
24486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24488 if test `eval echo '${'$as_ac_var'}'` = yes; then
24489 cat >>confdefs.h <<_ACEOF
24490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24497 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24498 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24499 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24510 #include <pthread.h>
24511 pthread_rwlock_t rwlock;
24516 pthread_rwlock_destroy(&rwlock);
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24523 (eval $ac_link) 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } &&
24530 { ac_try='test -z "$ac_c_werror_flag"
24531 || test ! -s conftest.err'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; } &&
24537 { ac_try='test -s conftest$ac_exeext'
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 ol_cv_func_pthread_rwlock_destroy=yes
24545 echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24548 ol_cv_func_pthread_rwlock_destroy=no
24550 rm -f conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
24554 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24555 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24556 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24564 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24565 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24566 if test "${ol_cv_func_pthread_detach+set}" = set; then
24567 echo $ECHO_N "(cached) $ECHO_C" >&6
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24577 #include <pthread.h>
24579 #define NULL (void*)0
24585 pthread_detach(NULL);
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592 (eval $ac_link) 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -z "$ac_c_werror_flag"
24600 || test ! -s conftest.err'
24601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602 (eval $ac_try) 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest$ac_exeext'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; }; then
24612 ol_cv_func_pthread_detach=yes
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ol_cv_func_pthread_detach=no
24619 rm -f conftest.err conftest.$ac_objext \
24620 conftest$ac_exeext conftest.$ac_ext
24623 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24624 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24626 if test $ol_cv_func_pthread_detach = no ; then
24627 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24628 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24629 { (exit 1); exit 1; }; }
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_PTHREAD_DETACH 1
24643 pthread_setconcurrency \
24644 pthread_getconcurrency \
24645 thr_setconcurrency \
24646 thr_getconcurrency \
24649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24650 echo "$as_me:$LINENO: checking for $ac_func" >&5
24651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24652 if eval "test \"\${$as_ac_var+set}\" = set"; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 cat >conftest.$ac_ext <<_ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24663 #define $ac_func innocuous_$ac_func
24665 /* System header to define __stub macros and hopefully few prototypes,
24666 which can conflict with char $ac_func (); below.
24667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24668 <limits.h> exists even on freestanding compilers. */
24671 # include <limits.h>
24673 # include <assert.h>
24678 /* Override any gcc2 internal prototype to avoid an error. */
24683 /* We use char because int might match the return type of a gcc2
24684 builtin and then its argument prototype would still apply. */
24686 /* The GNU C library defines this for functions which it implements
24687 to always fail with ENOSYS. Some functions are actually named
24688 something starting with __ and the normal name is an alias. */
24689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24692 char (*f) () = $ac_func;
24701 return f != $ac_func;
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708 (eval $ac_link) 2>conftest.er1
24710 grep -v '^ *+' conftest.er1 >conftest.err
24712 cat conftest.err >&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } &&
24715 { ac_try='test -z "$ac_c_werror_flag"
24716 || test ! -s conftest.err'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 eval "$as_ac_var=yes"
24730 echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 eval "$as_ac_var=no"
24735 rm -f conftest.err conftest.$ac_objext \
24736 conftest$ac_exeext conftest.$ac_ext
24738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24740 if test `eval echo '${'$as_ac_var'}'` = yes; then
24741 cat >>confdefs.h <<_ACEOF
24742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24751 for ac_func in pthread_kill_other_threads_np
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24756 if eval "test \"\${$as_ac_var+set}\" = set"; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 cat >conftest.$ac_ext <<_ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h. */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24767 #define $ac_func innocuous_$ac_func
24769 /* System header to define __stub macros and hopefully few prototypes,
24770 which can conflict with char $ac_func (); below.
24771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772 <limits.h> exists even on freestanding compilers. */
24775 # include <limits.h>
24777 # include <assert.h>
24782 /* Override any gcc2 internal prototype to avoid an error. */
24787 /* We use char because int might match the return type of a gcc2
24788 builtin and then its argument prototype would still apply. */
24790 /* The GNU C library defines this for functions which it implements
24791 to always fail with ENOSYS. Some functions are actually named
24792 something starting with __ and the normal name is an alias. */
24793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24796 char (*f) () = $ac_func;
24805 return f != $ac_func;
24810 rm -f conftest.$ac_objext conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } &&
24819 { ac_try='test -z "$ac_c_werror_flag"
24820 || test ! -s conftest.err'
24821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); }; } &&
24826 { ac_try='test -s conftest$ac_exeext'
24827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24828 (eval $ac_try) 2>&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); }; }; then
24832 eval "$as_ac_var=yes"
24834 echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24837 eval "$as_ac_var=no"
24839 rm -f conftest.err conftest.$ac_objext \
24840 conftest$ac_exeext conftest.$ac_ext
24842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24844 if test `eval echo '${'$as_ac_var'}'` = yes; then
24845 cat >>confdefs.h <<_ACEOF
24846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24852 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24853 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24854 if test "${ol_cv_sys_linux_threads+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24859 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24860 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24865 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24866 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24867 if test "${ol_cv_linux_threads+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 if test $ol_cv_header_linux_threads = yes &&
24872 test $ol_cv_sys_linux_threads = yes; then
24873 ol_cv_linux_threads=yes
24874 elif test $ol_cv_header_linux_threads = no &&
24875 test $ol_cv_sys_linux_threads = no; then
24876 ol_cv_linux_threads=no
24878 ol_cv_linux_threads=error
24882 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24883 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24886 if test $ol_cv_linux_threads = error; then
24887 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24888 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24889 { (exit 1); exit 1; }; };
24892 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24893 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24894 if test "${ol_cv_pthread_create_works+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24898 if test "$cross_compiling" = yes; then
24899 ol_cv_pthread_create_works=yes
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24908 /* pthread test headers */
24909 #include <pthread.h>
24910 #if HAVE_PTHREADS < 7
24914 #define NULL (void*)0
24917 static void *task(p)
24920 return (void *) (p == NULL);
24924 int main(argc, argv)
24929 /* pthread test function */
24930 #ifndef PTHREAD_CREATE_DETACHED
24931 #define PTHREAD_CREATE_DETACHED 1
24935 int detach = PTHREAD_CREATE_DETACHED;
24937 #if HAVE_PTHREADS > 4
24938 /* Final pthreads */
24939 pthread_attr_t attr;
24941 status = pthread_attr_init(&attr);
24942 if( status ) return status;
24944 #if HAVE_PTHREADS < 7
24945 status = pthread_attr_setdetachstate(&attr, &detach);
24946 if( status < 0 ) status = errno;
24948 status = pthread_attr_setdetachstate(&attr, detach);
24950 if( status ) return status;
24951 status = pthread_create( &t, &attr, task, NULL );
24952 #if HAVE_PTHREADS < 7
24953 if( status < 0 ) status = errno;
24955 if( status ) return status;
24957 /* Draft 4 pthreads */
24958 status = pthread_create( &t, pthread_attr_default, task, NULL );
24959 if( status ) return errno;
24961 /* give thread a chance to complete */
24962 /* it should remain joinable and hence detachable */
24965 status = pthread_detach( &t );
24966 if( status ) return errno;
24969 #ifdef HAVE_LINUX_THREADS
24970 pthread_kill_other_threads_np();
24978 rm -f conftest$ac_exeext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24980 (eval $ac_link) 2>&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } && { ac_try='./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_pthread_create_works=yes
24991 echo "$as_me: program exited with status $ac_status" >&5
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ( exit $ac_status )
24996 ol_cv_pthread_create_works=no
24998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25001 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25002 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25004 if test $ol_cv_pthread_create_works = no ; then
25005 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25006 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25007 { (exit 1); exit 1; }; }
25010 ol_replace_broken_yield=no
25012 if test $ol_replace_broken_yield = yes ; then
25014 cat >>confdefs.h <<\_ACEOF
25015 #define REPLACE_BROKEN_YIELD 1
25020 if test $ol_with_yielding_select = auto ; then
25021 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25022 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25023 if test "${ol_cv_pthread_select_yields+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 if test "$cross_compiling" = yes; then
25028 ol_cv_pthread_select_yields=cross
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25037 #include <sys/types.h>
25038 #include <sys/time.h>
25039 #include <unistd.h>
25040 #include <pthread.h>
25042 #define NULL (void*) 0
25045 static int fildes[2];
25047 static void *task(p)
25059 FD_SET(fildes[0], &rfds);
25061 /* we're not interested in any fds */
25062 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25069 exit(0); /* if we exit here, the select blocked the whole process */
25072 int main(argc, argv)
25078 /* create a pipe to select */
25079 if(pipe(&fildes[0])) {
25084 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25085 (void) pthread_setconcurrency(2);
25087 #ifdef HAVE_THR_SETCONCURRENCY
25088 /* Set Solaris LWP concurrency to 2 */
25089 thr_setconcurrency(2);
25093 #if HAVE_PTHREADS < 6
25094 pthread_create(&t, pthread_attr_default, task, NULL);
25096 pthread_create(&t, NULL, task, NULL);
25099 /* make sure task runs first */
25100 #ifdef HAVE_THR_YIELD
25102 #elif defined( HAVE_SCHED_YIELD )
25104 #elif defined( HAVE_PTHREAD_YIELD )
25111 rm -f conftest$ac_exeext
25112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25113 (eval $ac_link) 2>&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ol_cv_pthread_select_yields=no
25124 echo "$as_me: program exited with status $ac_status" >&5
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ( exit $ac_status )
25129 ol_cv_pthread_select_yields=yes
25131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25134 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25135 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25137 if test $ol_cv_pthread_select_yields = cross ; then
25138 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25139 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25140 { (exit 1); exit 1; }; }
25143 if test $ol_cv_pthread_select_yields = yes ; then
25144 ol_with_yielding_select=yes
25148 CPPFLAGS="$save_CPPFLAGS"
25151 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25152 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25153 { (exit 1); exit 1; }; }
25157 if test $ol_with_threads = posix ; then
25158 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25159 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25160 { (exit 1); exit 1; }; }
25165 case $ol_with_threads in auto | yes | mach)
25169 for ac_header in mach/cthreads.h cthreads.h
25171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173 echo "$as_me:$LINENO: checking for $ac_header" >&5
25174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25181 # Is the header compilable?
25182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 $ac_includes_default
25191 #include <$ac_header>
25193 rm -f conftest.$ac_objext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25195 (eval $ac_compile) 2>conftest.er1
25197 grep -v '^ *+' conftest.er1 >conftest.err
25199 cat conftest.err >&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } &&
25202 { ac_try='test -z "$ac_c_werror_flag"
25203 || test ! -s conftest.err'
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; } &&
25209 { ac_try='test -s conftest.$ac_objext'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215 ac_header_compiler=yes
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ac_header_compiler=no
25222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25224 echo "${ECHO_T}$ac_header_compiler" >&6
25226 # Is the header present?
25227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25229 cat >conftest.$ac_ext <<_ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <$ac_header>
25237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25240 grep -v '^ *+' conftest.er1 >conftest.err
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } >/dev/null; then
25245 if test -s conftest.err; then
25246 ac_cpp_err=$ac_c_preproc_warn_flag
25247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25254 if test -z "$ac_cpp_err"; then
25255 ac_header_preproc=yes
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 ac_header_preproc=no
25262 rm -f conftest.err conftest.$ac_ext
25263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25264 echo "${ECHO_T}$ac_header_preproc" >&6
25266 # So? What about this header?
25267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25273 ac_header_preproc=yes
25276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25290 ## --------------------------------------------- ##
25291 ## Report this to <http://www.openldap.org/its/> ##
25292 ## --------------------------------------------- ##
25295 sed "s/^/$as_me: WARNING: /" >&2
25298 echo "$as_me:$LINENO: checking for $ac_header" >&5
25299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25303 eval "$as_ac_Header=\$ac_header_preproc"
25305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25310 cat >>confdefs.h <<_ACEOF
25311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25318 if test $ac_cv_header_mach_cthreads_h = yes ; then
25319 ol_with_threads=found
25321 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25322 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25323 if test "${ac_cv_func_cthread_fork+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25334 #define cthread_fork innocuous_cthread_fork
25336 /* System header to define __stub macros and hopefully few prototypes,
25337 which can conflict with char cthread_fork (); below.
25338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25339 <limits.h> exists even on freestanding compilers. */
25342 # include <limits.h>
25344 # include <assert.h>
25347 #undef cthread_fork
25349 /* Override any gcc2 internal prototype to avoid an error. */
25354 /* We use char because int might match the return type of a gcc2
25355 builtin and then its argument prototype would still apply. */
25356 char cthread_fork ();
25357 /* The GNU C library defines this for functions which it implements
25358 to always fail with ENOSYS. Some functions are actually named
25359 something starting with __ and the normal name is an alias. */
25360 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25363 char (*f) () = cthread_fork;
25372 return f != cthread_fork;
25377 rm -f conftest.$ac_objext conftest$ac_exeext
25378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25379 (eval $ac_link) 2>conftest.er1
25381 grep -v '^ *+' conftest.er1 >conftest.err
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } &&
25386 { ac_try='test -z "$ac_c_werror_flag"
25387 || test ! -s conftest.err'
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; } &&
25393 { ac_try='test -s conftest$ac_exeext'
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; }; then
25399 ac_cv_func_cthread_fork=yes
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25404 ac_cv_func_cthread_fork=no
25406 rm -f conftest.err conftest.$ac_objext \
25407 conftest$ac_exeext conftest.$ac_ext
25409 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25410 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25411 if test $ac_cv_func_cthread_fork = yes; then
25412 ol_link_threads=yes
25416 if test $ol_link_threads = no ; then
25417 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25418 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25419 if test "${ol_cv_cthread_all_load+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 LIBS="-all_load $LIBS"
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 #include <mach/cthreads.h>
25436 cthread_fork((void *)0, (void *)0);
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25444 (eval $ac_link) 2>conftest.er1
25446 grep -v '^ *+' conftest.er1 >conftest.err
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -z "$ac_c_werror_flag"
25452 || test ! -s conftest.err'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest$ac_exeext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ol_cv_cthread_all_load=yes
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 ol_cv_cthread_all_load=no
25471 rm -f conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25476 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25477 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25479 if test $ol_cv_cthread_all_load = yes ; then
25480 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25481 ol_link_threads=mach
25482 ol_with_threads=found
25486 elif test $ac_cv_header_cthreads_h = yes ; then
25488 ol_with_threads=found
25491 LIBS="$LIBS -lthreads"
25492 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25493 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25494 if test "${ac_cv_func_cthread_fork+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 cat >conftest.$ac_ext <<_ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25505 #define cthread_fork innocuous_cthread_fork
25507 /* System header to define __stub macros and hopefully few prototypes,
25508 which can conflict with char cthread_fork (); below.
25509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25510 <limits.h> exists even on freestanding compilers. */
25513 # include <limits.h>
25515 # include <assert.h>
25518 #undef cthread_fork
25520 /* Override any gcc2 internal prototype to avoid an error. */
25525 /* We use char because int might match the return type of a gcc2
25526 builtin and then its argument prototype would still apply. */
25527 char cthread_fork ();
25528 /* The GNU C library defines this for functions which it implements
25529 to always fail with ENOSYS. Some functions are actually named
25530 something starting with __ and the normal name is an alias. */
25531 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25534 char (*f) () = cthread_fork;
25543 return f != cthread_fork;
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25550 (eval $ac_link) 2>conftest.er1
25552 grep -v '^ *+' conftest.er1 >conftest.err
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } &&
25557 { ac_try='test -z "$ac_c_werror_flag"
25558 || test ! -s conftest.err'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; } &&
25564 { ac_try='test -s conftest$ac_exeext'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; }; then
25570 ac_cv_func_cthread_fork=yes
25572 echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25575 ac_cv_func_cthread_fork=no
25577 rm -f conftest.err conftest.$ac_objext \
25578 conftest$ac_exeext conftest.$ac_ext
25580 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25581 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25582 if test $ac_cv_func_cthread_fork = yes; then
25583 ol_link_threads=yes
25588 if test $ol_link_threads = yes ; then
25589 LTHREAD_LIBS="-lthreads"
25590 ol_link_threads=mach
25591 ol_with_threads=found
25593 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25594 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25595 { (exit 1); exit 1; }; }
25598 elif test $ol_with_threads = mach ; then
25599 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25600 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25601 { (exit 1); exit 1; }; }
25604 if test $ol_link_threads = mach ; then
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_MACH_CTHREADS 1
25610 elif test $ol_with_threads = found ; then
25611 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25612 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25613 { (exit 1); exit 1; }; }
25618 case $ol_with_threads in auto | yes | pth)
25621 for ac_header in pth.h
25623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25625 echo "$as_me:$LINENO: checking for $ac_header" >&5
25626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25633 # Is the header compilable?
25634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25636 cat >conftest.$ac_ext <<_ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 $ac_includes_default
25643 #include <$ac_header>
25645 rm -f conftest.$ac_objext
25646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25647 (eval $ac_compile) 2>conftest.er1
25649 grep -v '^ *+' conftest.er1 >conftest.err
25651 cat conftest.err >&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } &&
25654 { ac_try='test -z "$ac_c_werror_flag"
25655 || test ! -s conftest.err'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; } &&
25661 { ac_try='test -s conftest.$ac_objext'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; }; then
25667 ac_header_compiler=yes
25669 echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25672 ac_header_compiler=no
25674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25676 echo "${ECHO_T}$ac_header_compiler" >&6
25678 # Is the header present?
25679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 #include <$ac_header>
25689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25692 grep -v '^ *+' conftest.er1 >conftest.err
25694 cat conftest.err >&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } >/dev/null; then
25697 if test -s conftest.err; then
25698 ac_cpp_err=$ac_c_preproc_warn_flag
25699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25706 if test -z "$ac_cpp_err"; then
25707 ac_header_preproc=yes
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 ac_header_preproc=no
25714 rm -f conftest.err conftest.$ac_ext
25715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25716 echo "${ECHO_T}$ac_header_preproc" >&6
25718 # So? What about this header?
25719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25725 ac_header_preproc=yes
25728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25742 ## --------------------------------------------- ##
25743 ## Report this to <http://www.openldap.org/its/> ##
25744 ## --------------------------------------------- ##
25747 sed "s/^/$as_me: WARNING: /" >&2
25750 echo "$as_me:$LINENO: checking for $ac_header" >&5
25751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 eval "$as_ac_Header=\$ac_header_preproc"
25757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25762 cat >>confdefs.h <<_ACEOF
25763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25771 if test $ac_cv_header_pth_h = yes ; then
25772 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25773 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25774 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 ac_check_lib_save_LIBS=$LIBS
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25786 /* Override any gcc2 internal prototype to avoid an error. */
25790 /* We use char because int might match the return type of a gcc2
25791 builtin and then its argument prototype would still apply. */
25792 char pth_version ();
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803 (eval $ac_link) 2>conftest.er1
25805 grep -v '^ *+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } &&
25810 { ac_try='test -z "$ac_c_werror_flag"
25811 || test ! -s conftest.err'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest$ac_exeext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_cv_lib_pth_pth_version=yes
25825 echo "$as_me: failed program was:" >&5
25826 sed 's/^/| /' conftest.$ac_ext >&5
25828 ac_cv_lib_pth_pth_version=no
25830 rm -f conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
25832 LIBS=$ac_check_lib_save_LIBS
25834 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25835 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25836 if test $ac_cv_lib_pth_pth_version = yes; then
25843 if test $have_pth = yes ; then
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_GNU_PTH 1
25849 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25850 ol_link_threads=pth
25851 ol_with_threads=found
25853 if test $ol_with_yielding_select = auto ; then
25854 ol_with_yielding_select=yes
25861 case $ol_with_threads in auto | yes | lwp)
25865 for ac_header in thread.h synch.h
25867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25869 echo "$as_me:$LINENO: checking for $ac_header" >&5
25870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25877 # Is the header compilable?
25878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 $ac_includes_default
25887 #include <$ac_header>
25889 rm -f conftest.$ac_objext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25891 (eval $ac_compile) 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } &&
25898 { ac_try='test -z "$ac_c_werror_flag"
25899 || test ! -s conftest.err'
25900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901 (eval $ac_try) 2>&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); }; } &&
25905 { ac_try='test -s conftest.$ac_objext'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; }; then
25911 ac_header_compiler=yes
25913 echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25916 ac_header_compiler=no
25918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920 echo "${ECHO_T}$ac_header_compiler" >&6
25922 # Is the header present?
25923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 #include <$ac_header>
25933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25936 grep -v '^ *+' conftest.er1 >conftest.err
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } >/dev/null; then
25941 if test -s conftest.err; then
25942 ac_cpp_err=$ac_c_preproc_warn_flag
25943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25950 if test -z "$ac_cpp_err"; then
25951 ac_header_preproc=yes
25953 echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25956 ac_header_preproc=no
25958 rm -f conftest.err conftest.$ac_ext
25959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25960 echo "${ECHO_T}$ac_header_preproc" >&6
25962 # So? What about this header?
25963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25969 ac_header_preproc=yes
25972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25986 ## --------------------------------------------- ##
25987 ## Report this to <http://www.openldap.org/its/> ##
25988 ## --------------------------------------------- ##
25991 sed "s/^/$as_me: WARNING: /" >&2
25994 echo "$as_me:$LINENO: checking for $ac_header" >&5
25995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 eval "$as_ac_Header=\$ac_header_preproc"
26001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26006 cat >>confdefs.h <<_ACEOF
26007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26014 if test $ac_cv_header_thread_h = yes &&
26015 test $ac_cv_header_synch_h = yes ; then
26016 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26017 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26018 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 ac_check_lib_save_LIBS=$LIBS
26022 LIBS="-lthread $LIBS"
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26030 /* Override any gcc2 internal prototype to avoid an error. */
26034 /* We use char because int might match the return type of a gcc2
26035 builtin and then its argument prototype would still apply. */
26036 char thr_create ();
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047 (eval $ac_link) 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } &&
26054 { ac_try='test -z "$ac_c_werror_flag"
26055 || test ! -s conftest.err'
26056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057 (eval $ac_try) 2>&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); }; } &&
26061 { ac_try='test -s conftest$ac_exeext'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; }; then
26067 ac_cv_lib_thread_thr_create=yes
26069 echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26072 ac_cv_lib_thread_thr_create=no
26074 rm -f conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
26076 LIBS=$ac_check_lib_save_LIBS
26078 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26079 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26080 if test $ac_cv_lib_thread_thr_create = yes; then
26087 if test $have_thr = yes ; then
26089 cat >>confdefs.h <<\_ACEOF
26093 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26094 ol_link_threads=thr
26096 if test $ol_with_yielding_select = auto ; then
26097 ol_with_yielding_select=yes
26103 thr_setconcurrency \
26104 thr_getconcurrency \
26107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26108 echo "$as_me:$LINENO: checking for $ac_func" >&5
26109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26110 if eval "test \"\${$as_ac_var+set}\" = set"; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26113 cat >conftest.$ac_ext <<_ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h. */
26119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26121 #define $ac_func innocuous_$ac_func
26123 /* System header to define __stub macros and hopefully few prototypes,
26124 which can conflict with char $ac_func (); below.
26125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26126 <limits.h> exists even on freestanding compilers. */
26129 # include <limits.h>
26131 # include <assert.h>
26136 /* Override any gcc2 internal prototype to avoid an error. */
26141 /* We use char because int might match the return type of a gcc2
26142 builtin and then its argument prototype would still apply. */
26144 /* The GNU C library defines this for functions which it implements
26145 to always fail with ENOSYS. Some functions are actually named
26146 something starting with __ and the normal name is an alias. */
26147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26150 char (*f) () = $ac_func;
26159 return f != $ac_func;
26164 rm -f conftest.$ac_objext conftest$ac_exeext
26165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26166 (eval $ac_link) 2>conftest.er1
26168 grep -v '^ *+' conftest.er1 >conftest.err
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } &&
26173 { ac_try='test -z "$ac_c_werror_flag"
26174 || test ! -s conftest.err'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; } &&
26180 { ac_try='test -s conftest$ac_exeext'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; }; then
26186 eval "$as_ac_var=yes"
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 eval "$as_ac_var=no"
26193 rm -f conftest.err conftest.$ac_objext \
26194 conftest$ac_exeext conftest.$ac_ext
26196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26198 if test `eval echo '${'$as_ac_var'}'` = yes; then
26199 cat >>confdefs.h <<_ACEOF
26200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26210 for ac_header in lwp/lwp.h
26212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26214 echo "$as_me:$LINENO: checking for $ac_header" >&5
26215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26222 # Is the header compilable?
26223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26225 cat >conftest.$ac_ext <<_ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26231 $ac_includes_default
26232 #include <$ac_header>
26234 rm -f conftest.$ac_objext
26235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26236 (eval $ac_compile) 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
26243 { ac_try='test -z "$ac_c_werror_flag"
26244 || test ! -s conftest.err'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; } &&
26250 { ac_try='test -s conftest.$ac_objext'
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; }; then
26256 ac_header_compiler=yes
26258 echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26261 ac_header_compiler=no
26263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26265 echo "${ECHO_T}$ac_header_compiler" >&6
26267 # Is the header present?
26268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 #include <$ac_header>
26278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26281 grep -v '^ *+' conftest.er1 >conftest.err
26283 cat conftest.err >&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } >/dev/null; then
26286 if test -s conftest.err; then
26287 ac_cpp_err=$ac_c_preproc_warn_flag
26288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26295 if test -z "$ac_cpp_err"; then
26296 ac_header_preproc=yes
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ac_header_preproc=no
26303 rm -f conftest.err conftest.$ac_ext
26304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26305 echo "${ECHO_T}$ac_header_preproc" >&6
26307 # So? What about this header?
26308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26314 ac_header_preproc=yes
26317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26331 ## --------------------------------------------- ##
26332 ## Report this to <http://www.openldap.org/its/> ##
26333 ## --------------------------------------------- ##
26336 sed "s/^/$as_me: WARNING: /" >&2
26339 echo "$as_me:$LINENO: checking for $ac_header" >&5
26340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26344 eval "$as_ac_Header=\$ac_header_preproc"
26346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26351 cat >>confdefs.h <<_ACEOF
26352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26359 if test $ac_cv_header_lwp_lwp_h = yes ; then
26360 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26361 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26362 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 ac_check_lib_save_LIBS=$LIBS
26367 cat >conftest.$ac_ext <<_ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h. */
26374 /* Override any gcc2 internal prototype to avoid an error. */
26378 /* We use char because int might match the return type of a gcc2
26379 builtin and then its argument prototype would still apply. */
26380 char lwp_create ();
26389 rm -f conftest.$ac_objext conftest$ac_exeext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26391 (eval $ac_link) 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
26398 { ac_try='test -z "$ac_c_werror_flag"
26399 || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest$ac_exeext'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 ac_cv_lib_lwp_lwp_create=yes
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_cv_lib_lwp_lwp_create=no
26418 rm -f conftest.err conftest.$ac_objext \
26419 conftest$ac_exeext conftest.$ac_ext
26420 LIBS=$ac_check_lib_save_LIBS
26422 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26423 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26424 if test $ac_cv_lib_lwp_lwp_create = yes; then
26431 if test $have_lwp = yes ; then
26433 cat >>confdefs.h <<\_ACEOF
26437 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26438 ol_link_threads=lwp
26440 if test $ol_with_yielding_select = auto ; then
26441 ol_with_yielding_select=no
26448 if test $ol_with_yielding_select = yes ; then
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_YIELDING_SELECT 1
26456 if test $ol_with_threads = manual ; then
26457 ol_link_threads=yes
26459 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26460 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26464 for ac_header in pthread.h sched.h
26466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26468 echo "$as_me:$LINENO: checking for $ac_header" >&5
26469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26476 # Is the header compilable?
26477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 $ac_includes_default
26486 #include <$ac_header>
26488 rm -f conftest.$ac_objext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26490 (eval $ac_compile) 2>conftest.er1
26492 grep -v '^ *+' conftest.er1 >conftest.err
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } &&
26497 { ac_try='test -z "$ac_c_werror_flag"
26498 || test ! -s conftest.err'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; } &&
26504 { ac_try='test -s conftest.$ac_objext'
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; }; then
26510 ac_header_compiler=yes
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_header_compiler=no
26517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26519 echo "${ECHO_T}$ac_header_compiler" >&6
26521 # Is the header present?
26522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 #include <$ac_header>
26532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26535 grep -v '^ *+' conftest.er1 >conftest.err
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } >/dev/null; then
26540 if test -s conftest.err; then
26541 ac_cpp_err=$ac_c_preproc_warn_flag
26542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26549 if test -z "$ac_cpp_err"; then
26550 ac_header_preproc=yes
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_header_preproc=no
26557 rm -f conftest.err conftest.$ac_ext
26558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26559 echo "${ECHO_T}$ac_header_preproc" >&6
26561 # So? What about this header?
26562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26568 ac_header_preproc=yes
26571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26585 ## --------------------------------------------- ##
26586 ## Report this to <http://www.openldap.org/its/> ##
26587 ## --------------------------------------------- ##
26590 sed "s/^/$as_me: WARNING: /" >&2
26593 echo "$as_me:$LINENO: checking for $ac_header" >&5
26594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26598 eval "$as_ac_Header=\$ac_header_preproc"
26600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26605 cat >>confdefs.h <<_ACEOF
26606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26615 for ac_func in sched_yield pthread_yield
26617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26618 echo "$as_me:$LINENO: checking for $ac_func" >&5
26619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26620 if eval "test \"\${$as_ac_var+set}\" = set"; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26623 cat >conftest.$ac_ext <<_ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26631 #define $ac_func innocuous_$ac_func
26633 /* System header to define __stub macros and hopefully few prototypes,
26634 which can conflict with char $ac_func (); below.
26635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26636 <limits.h> exists even on freestanding compilers. */
26639 # include <limits.h>
26641 # include <assert.h>
26646 /* Override any gcc2 internal prototype to avoid an error. */
26651 /* We use char because int might match the return type of a gcc2
26652 builtin and then its argument prototype would still apply. */
26654 /* The GNU C library defines this for functions which it implements
26655 to always fail with ENOSYS. Some functions are actually named
26656 something starting with __ and the normal name is an alias. */
26657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26660 char (*f) () = $ac_func;
26669 return f != $ac_func;
26674 rm -f conftest.$ac_objext conftest$ac_exeext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26676 (eval $ac_link) 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest$ac_exeext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 eval "$as_ac_var=yes"
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 eval "$as_ac_var=no"
26703 rm -f conftest.err conftest.$ac_objext \
26704 conftest$ac_exeext conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26708 if test `eval echo '${'$as_ac_var'}'` = yes; then
26709 cat >>confdefs.h <<_ACEOF
26710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26717 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26718 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26719 if test "${ol_cv_header_linux_threads+set}" = set; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 cat >conftest.$ac_ext <<_ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26728 #include <pthread.h>
26730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26731 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26732 ol_cv_header_linux_threads=yes
26734 ol_cv_header_linux_threads=no
26740 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26741 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26742 if test $ol_cv_header_linux_threads = yes; then
26744 cat >>confdefs.h <<\_ACEOF
26745 #define HAVE_LINUX_THREADS 1
26752 for ac_header in mach/cthreads.h
26754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756 echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26764 # Is the header compilable?
26765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26767 cat >conftest.$ac_ext <<_ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h. */
26773 $ac_includes_default
26774 #include <$ac_header>
26776 rm -f conftest.$ac_objext
26777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778 (eval $ac_compile) 2>conftest.er1
26780 grep -v '^ *+' conftest.er1 >conftest.err
26782 cat conftest.err >&5
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } &&
26785 { ac_try='test -z "$ac_c_werror_flag"
26786 || test ! -s conftest.err'
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; } &&
26792 { ac_try='test -s conftest.$ac_objext'
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; }; then
26798 ac_header_compiler=yes
26800 echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26803 ac_header_compiler=no
26805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26807 echo "${ECHO_T}$ac_header_compiler" >&6
26809 # Is the header present?
26810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 #include <$ac_header>
26820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26823 grep -v '^ *+' conftest.er1 >conftest.err
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } >/dev/null; then
26828 if test -s conftest.err; then
26829 ac_cpp_err=$ac_c_preproc_warn_flag
26830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26837 if test -z "$ac_cpp_err"; then
26838 ac_header_preproc=yes
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 ac_header_preproc=no
26845 rm -f conftest.err conftest.$ac_ext
26846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26847 echo "${ECHO_T}$ac_header_preproc" >&6
26849 # So? What about this header?
26850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26856 ac_header_preproc=yes
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26873 ## --------------------------------------------- ##
26874 ## Report this to <http://www.openldap.org/its/> ##
26875 ## --------------------------------------------- ##
26878 sed "s/^/$as_me: WARNING: /" >&2
26881 echo "$as_me:$LINENO: checking for $ac_header" >&5
26882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 eval "$as_ac_Header=\$ac_header_preproc"
26888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26893 cat >>confdefs.h <<_ACEOF
26894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26902 for ac_header in lwp/lwp.h
26904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26914 # Is the header compilable?
26915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26923 $ac_includes_default
26924 #include <$ac_header>
26926 rm -f conftest.$ac_objext
26927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928 (eval $ac_compile) 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag"
26936 || test ! -s conftest.err'
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; } &&
26942 { ac_try='test -s conftest.$ac_objext'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_header_compiler=yes
26950 echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26953 ac_header_compiler=no
26955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26957 echo "${ECHO_T}$ac_header_compiler" >&6
26959 # Is the header present?
26960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26962 cat >conftest.$ac_ext <<_ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 #include <$ac_header>
26970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } >/dev/null; then
26978 if test -s conftest.err; then
26979 ac_cpp_err=$ac_c_preproc_warn_flag
26980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26987 if test -z "$ac_cpp_err"; then
26988 ac_header_preproc=yes
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 ac_header_preproc=no
26995 rm -f conftest.err conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26997 echo "${ECHO_T}$ac_header_preproc" >&6
26999 # So? What about this header?
27000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27006 ac_header_preproc=yes
27009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27023 ## --------------------------------------------- ##
27024 ## Report this to <http://www.openldap.org/its/> ##
27025 ## --------------------------------------------- ##
27028 sed "s/^/$as_me: WARNING: /" >&2
27031 echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 eval "$as_ac_Header=\$ac_header_preproc"
27038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27043 cat >>confdefs.h <<_ACEOF
27044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27053 for ac_header in thread.h synch.h
27055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057 echo "$as_me:$LINENO: checking for $ac_header" >&5
27058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27065 # Is the header compilable?
27066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27068 cat >conftest.$ac_ext <<_ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h. */
27074 $ac_includes_default
27075 #include <$ac_header>
27077 rm -f conftest.$ac_objext
27078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27079 (eval $ac_compile) 2>conftest.er1
27081 grep -v '^ *+' conftest.er1 >conftest.err
27083 cat conftest.err >&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
27086 { ac_try='test -z "$ac_c_werror_flag"
27087 || test ! -s conftest.err'
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; } &&
27093 { ac_try='test -s conftest.$ac_objext'
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 ac_header_compiler=yes
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 ac_header_compiler=no
27106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27108 echo "${ECHO_T}$ac_header_compiler" >&6
27110 # Is the header present?
27111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27119 #include <$ac_header>
27121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27124 grep -v '^ *+' conftest.er1 >conftest.err
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } >/dev/null; then
27129 if test -s conftest.err; then
27130 ac_cpp_err=$ac_c_preproc_warn_flag
27131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27138 if test -z "$ac_cpp_err"; then
27139 ac_header_preproc=yes
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 ac_header_preproc=no
27146 rm -f conftest.err conftest.$ac_ext
27147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27148 echo "${ECHO_T}$ac_header_preproc" >&6
27150 # So? What about this header?
27151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27157 ac_header_preproc=yes
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27174 ## --------------------------------------------- ##
27175 ## Report this to <http://www.openldap.org/its/> ##
27176 ## --------------------------------------------- ##
27179 sed "s/^/$as_me: WARNING: /" >&2
27182 echo "$as_me:$LINENO: checking for $ac_header" >&5
27183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27187 eval "$as_ac_Header=\$ac_header_preproc"
27189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27194 cat >>confdefs.h <<_ACEOF
27195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27204 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27205 cat >>confdefs.h <<\_ACEOF
27206 #define REENTRANT 1
27209 cat >>confdefs.h <<\_ACEOF
27210 #define _REENTRANT 1
27213 cat >>confdefs.h <<\_ACEOF
27214 #define THREAD_SAFE 1
27217 cat >>confdefs.h <<\_ACEOF
27218 #define _THREAD_SAFE 1
27221 cat >>confdefs.h <<\_ACEOF
27222 #define THREADSAFE 1
27225 cat >>confdefs.h <<\_ACEOF
27226 #define _THREADSAFE 1
27229 cat >>confdefs.h <<\_ACEOF
27230 #define _SGI_MP_SOURCE 1
27234 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27235 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27236 if test "${ol_cv_errno_thread_specific+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27255 rm -f conftest.$ac_objext conftest$ac_exeext
27256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27257 (eval $ac_link) 2>conftest.er1
27259 grep -v '^ *+' conftest.er1 >conftest.err
27261 cat conftest.err >&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } &&
27264 { ac_try='test -z "$ac_c_werror_flag"
27265 || test ! -s conftest.err'
27266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267 (eval $ac_try) 2>&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; } &&
27271 { ac_try='test -s conftest$ac_exeext'
27272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273 (eval $ac_try) 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
27277 ol_cv_errno_thread_specific=yes
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27282 ol_cv_errno_thread_specific=no
27284 rm -f conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
27288 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27289 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27291 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27292 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27293 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 cat >conftest.$ac_ext <<_ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27312 rm -f conftest.$ac_objext conftest$ac_exeext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27314 (eval $ac_link) 2>conftest.er1
27316 grep -v '^ *+' conftest.er1 >conftest.err
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } &&
27321 { ac_try='test -z "$ac_c_werror_flag"
27322 || test ! -s conftest.err'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest$ac_exeext'
27329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 ol_cv_h_errno_thread_specific=yes
27336 echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ol_cv_h_errno_thread_specific=no
27341 rm -f conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
27345 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27346 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27348 if test $ol_cv_errno_thread_specific != yes ||
27349 test $ol_cv_h_errno_thread_specific != yes ; then
27350 LIBS="$LTHREAD_LIBS $LIBS"
27356 if test $ol_link_threads = no ; then
27357 if test $ol_with_threads = yes ; then
27358 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27359 echo "$as_me: error: no suitable thread support" >&2;}
27360 { (exit 1); exit 1; }; }
27363 if test $ol_with_threads = auto ; then
27364 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27365 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27370 cat >>confdefs.h <<\_ACEOF
27371 #define NO_THREADS 1
27380 if test $ol_link_threads != no ; then
27382 cat >>confdefs.h <<\_ACEOF
27383 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27393 gethostbyname_r gethostbyaddr_r \
27396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27397 echo "$as_me:$LINENO: checking for $ac_func" >&5
27398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27399 if eval "test \"\${$as_ac_var+set}\" = set"; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 cat >conftest.$ac_ext <<_ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27410 #define $ac_func innocuous_$ac_func
27412 /* System header to define __stub macros and hopefully few prototypes,
27413 which can conflict with char $ac_func (); below.
27414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27415 <limits.h> exists even on freestanding compilers. */
27418 # include <limits.h>
27420 # include <assert.h>
27425 /* Override any gcc2 internal prototype to avoid an error. */
27430 /* We use char because int might match the return type of a gcc2
27431 builtin and then its argument prototype would still apply. */
27433 /* The GNU C library defines this for functions which it implements
27434 to always fail with ENOSYS. Some functions are actually named
27435 something starting with __ and the normal name is an alias. */
27436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27439 char (*f) () = $ac_func;
27448 return f != $ac_func;
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455 (eval $ac_link) 2>conftest.er1
27457 grep -v '^ *+' conftest.er1 >conftest.err
27459 cat conftest.err >&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } &&
27462 { ac_try='test -z "$ac_c_werror_flag"
27463 || test ! -s conftest.err'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest$ac_exeext'
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 eval "$as_ac_var=yes"
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27480 eval "$as_ac_var=no"
27482 rm -f conftest.err conftest.$ac_objext \
27483 conftest$ac_exeext conftest.$ac_ext
27485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27487 if test `eval echo '${'$as_ac_var'}'` = yes; then
27488 cat >>confdefs.h <<_ACEOF
27489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27496 if test "$ac_cv_func_ctime_r" = no ; then
27497 ol_cv_func_ctime_r_nargs=0
27499 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27500 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27501 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27504 cat >conftest.$ac_ext <<_ACEOF
27507 cat confdefs.h >>conftest.$ac_ext
27508 cat >>conftest.$ac_ext <<_ACEOF
27509 /* end confdefs.h. */
27514 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521 (eval $ac_compile) 2>conftest.er1
27523 grep -v '^ *+' conftest.er1 >conftest.err
27525 cat conftest.err >&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } &&
27528 { ac_try='test -z "$ac_c_werror_flag"
27529 || test ! -s conftest.err'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537 (eval $ac_try) 2>&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; }; then
27541 ol_cv_func_ctime_r_nargs3=yes
27543 echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27546 ol_cv_func_ctime_r_nargs3=no
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27550 cat >conftest.$ac_ext <<_ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h. */
27560 time_t ti; char *buffer; ctime_r(&ti,buffer);
27565 rm -f conftest.$ac_objext
27566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27567 (eval $ac_compile) 2>conftest.er1
27569 grep -v '^ *+' conftest.er1 >conftest.err
27571 cat conftest.err >&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); } &&
27574 { ac_try='test -z "$ac_c_werror_flag"
27575 || test ! -s conftest.err'
27576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577 (eval $ac_try) 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest.$ac_objext'
27582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583 (eval $ac_try) 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
27587 ol_cv_func_ctime_r_nargs2=yes
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27592 ol_cv_func_ctime_r_nargs2=no
27594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27596 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27597 test $ol_cv_func_ctime_r_nargs2 = no ; then
27599 ol_cv_func_ctime_r_nargs=3
27601 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27602 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27604 ol_cv_func_ctime_r_nargs=2
27607 ol_cv_func_ctime_r_nargs=0
27611 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27612 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27614 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27616 cat >>confdefs.h <<_ACEOF
27617 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27624 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27625 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27626 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27627 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27628 echo $ECHO_N "(cached) $ECHO_C" >&6
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27636 #include <sys/types.h>
27637 #include <sys/socket.h>
27638 #include <netinet/in.h>
27640 #define BUFSIZE (sizeof(struct hostent)+10)
27644 struct hostent hent; char buffer[BUFSIZE];
27645 int bufsize=BUFSIZE;int h_errno;
27646 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27647 buffer, bufsize, &h_errno);
27652 rm -f conftest.$ac_objext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27654 (eval $ac_compile) 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag"
27662 || test ! -s conftest.err'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; } &&
27668 { ac_try='test -s conftest.$ac_objext'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; }; then
27674 ol_cv_func_gethostbyname_r_nargs5=yes
27676 echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27679 ol_cv_func_gethostbyname_r_nargs5=no
27681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27683 cat >conftest.$ac_ext <<_ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27689 #include <sys/types.h>
27690 #include <sys/socket.h>
27691 #include <netinet/in.h>
27693 #define BUFSIZE (sizeof(struct hostent)+10)
27697 struct hostent hent;struct hostent *rhent;
27698 char buffer[BUFSIZE];
27699 int bufsize=BUFSIZE;int h_errno;
27700 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27706 rm -f conftest.$ac_objext
27707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27708 (eval $ac_compile) 2>conftest.er1
27710 grep -v '^ *+' conftest.er1 >conftest.err
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } &&
27715 { ac_try='test -z "$ac_c_werror_flag"
27716 || test ! -s conftest.err'
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; } &&
27722 { ac_try='test -s conftest.$ac_objext'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; }; then
27728 ol_cv_func_gethostbyname_r_nargs6=yes
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ol_cv_func_gethostbyname_r_nargs6=no
27735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27738 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27740 ol_cv_func_gethostbyname_r_nargs=5
27742 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27743 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27745 ol_cv_func_gethostbyname_r_nargs=6
27748 ol_cv_func_gethostbyname_r_nargs=0
27752 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27753 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27754 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27756 cat >>confdefs.h <<_ACEOF
27757 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27763 ol_cv_func_gethostbyname_r_nargs=0
27766 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27767 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27768 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27769 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27778 #include <sys/types.h>
27779 #include <sys/socket.h>
27780 #include <netinet/in.h>
27782 #define BUFSIZE (sizeof(struct hostent)+10)
27786 struct hostent hent; char buffer[BUFSIZE];
27787 struct in_addr add;
27788 size_t alen=sizeof(struct in_addr);
27789 int bufsize=BUFSIZE;int h_errno;
27790 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27791 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27796 rm -f conftest.$ac_objext
27797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27798 (eval $ac_compile) 2>conftest.er1
27800 grep -v '^ *+' conftest.er1 >conftest.err
27802 cat conftest.err >&5
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); } &&
27805 { ac_try='test -z "$ac_c_werror_flag"
27806 || test ! -s conftest.err'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; } &&
27812 { ac_try='test -s conftest.$ac_objext'
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; }; then
27818 ol_cv_func_gethostbyaddr_r_nargs7=yes
27820 echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27823 ol_cv_func_gethostbyaddr_r_nargs7=no
27825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27827 cat >conftest.$ac_ext <<_ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h. */
27833 #include <sys/types.h>
27834 #include <sys/socket.h>
27835 #include <netinet/in.h>
27837 #define BUFSIZE (sizeof(struct hostent)+10)
27841 struct hostent hent;
27842 struct hostent *rhent; char buffer[BUFSIZE];
27843 struct in_addr add;
27844 size_t alen=sizeof(struct in_addr);
27845 int bufsize=BUFSIZE;int h_errno;
27846 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27847 alen, AF_INET, &hent, buffer, bufsize,
27853 rm -f conftest.$ac_objext
27854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27855 (eval $ac_compile) 2>conftest.er1
27857 grep -v '^ *+' conftest.er1 >conftest.err
27859 cat conftest.err >&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); } &&
27862 { ac_try='test -z "$ac_c_werror_flag"
27863 || test ! -s conftest.err'
27864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865 (eval $ac_try) 2>&5
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; } &&
27869 { ac_try='test -s conftest.$ac_objext'
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; }; then
27875 ol_cv_func_gethostbyaddr_r_nargs8=yes
27877 echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27880 ol_cv_func_gethostbyaddr_r_nargs8=no
27882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27884 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27885 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27887 ol_cv_func_gethostbyaddr_r_nargs=7
27889 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27890 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27892 ol_cv_func_gethostbyaddr_r_nargs=8
27895 ol_cv_func_gethostbyaddr_r_nargs=0
27899 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27900 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27901 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27903 cat >>confdefs.h <<_ACEOF
27904 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27910 ol_cv_func_gethostbyaddr_r_nargs=0
27915 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27916 ol_cv_berkeley_db=no
27918 for ac_header in db.h
27920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922 echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27930 # Is the header compilable?
27931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 $ac_includes_default
27940 #include <$ac_header>
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944 (eval $ac_compile) 2>conftest.er1
27946 grep -v '^ *+' conftest.er1 >conftest.err
27948 cat conftest.err >&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } &&
27951 { ac_try='test -z "$ac_c_werror_flag"
27952 || test ! -s conftest.err'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest.$ac_objext'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 ac_header_compiler=yes
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27969 ac_header_compiler=no
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27973 echo "${ECHO_T}$ac_header_compiler" >&6
27975 # Is the header present?
27976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 #include <$ac_header>
27986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27989 grep -v '^ *+' conftest.er1 >conftest.err
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } >/dev/null; then
27994 if test -s conftest.err; then
27995 ac_cpp_err=$ac_c_preproc_warn_flag
27996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28003 if test -z "$ac_cpp_err"; then
28004 ac_header_preproc=yes
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ac_header_preproc=no
28011 rm -f conftest.err conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28013 echo "${ECHO_T}$ac_header_preproc" >&6
28015 # So? What about this header?
28016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28022 ac_header_preproc=yes
28025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28039 ## --------------------------------------------- ##
28040 ## Report this to <http://www.openldap.org/its/> ##
28041 ## --------------------------------------------- ##
28044 sed "s/^/$as_me: WARNING: /" >&2
28047 echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 eval "$as_ac_Header=\$ac_header_preproc"
28054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28059 cat >>confdefs.h <<_ACEOF
28060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28067 if test $ac_cv_header_db_h = yes; then
28068 echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28069 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28070 if test "${ol_cv_bdb_major+set}" = set; then
28071 echo $ECHO_N "(cached) $ECHO_C" >&6
28074 cat >conftest.$ac_ext <<_ACEOF
28077 #ifndef DB_VERSION_MAJOR
28078 # define DB_VERSION_MAJOR 1
28080 __db_version DB_VERSION_MAJOR
28083 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28084 ol_cv_bdb_major=${3}
28087 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28088 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28089 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28090 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28091 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28092 { (exit 1); exit 1; }; } ;;
28095 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28096 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28097 if test "${ol_cv_bdb_minor+set}" = set; then
28098 echo $ECHO_N "(cached) $ECHO_C" >&6
28101 cat >conftest.$ac_ext <<_ACEOF
28104 #ifndef DB_VERSION_MINOR
28105 # define DB_VERSION_MINOR 0
28107 __db_version DB_VERSION_MINOR
28110 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28111 ol_cv_bdb_minor=${3}
28114 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28115 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28116 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28117 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28118 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28119 { (exit 1); exit 1; }; } ;;
28122 echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28123 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28124 if test "${ol_cv_bdb_compat+set}" = set; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28128 cat >conftest.$ac_ext <<_ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h. */
28137 /* this check could be improved */
28138 #ifndef DB_VERSION_MAJOR
28139 # define DB_VERSION_MAJOR 1
28141 #ifndef DB_VERSION_MINOR
28142 # define DB_VERSION_MINOR 0
28145 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28147 /* require 4.4 or later */
28148 #if DB_VERSION_MM >= 0x0404
28149 __db_version_compat
28153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28154 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28155 ol_cv_bdb_compat=yes
28157 ol_cv_bdb_compat=no
28162 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28163 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28166 if test $ol_cv_bdb_compat != yes ; then
28167 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28168 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28169 { (exit 1); exit 1; }; }
28174 if test $ol_cv_bdb_major = 4 ; then
28175 if test $ol_cv_lib_db = no ; then
28176 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28177 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28178 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28182 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28184 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28186 cat >conftest.$ac_ext <<_ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28193 #ifdef HAVE_DB_185_H
28194 # include <db_185.h>
28199 #ifndef DB_VERSION_MAJOR
28200 # define DB_VERSION_MAJOR 1
28204 #define NULL ((void*)0)
28211 #if DB_VERSION_MAJOR > 2
28212 db_env_create( NULL, 0 );
28213 #elif DB_VERSION_MAJOR > 1
28214 db_appexit( NULL );
28216 (void) dbopen( NULL, 0, 0, 0, NULL);
28223 rm -f conftest.$ac_objext conftest$ac_exeext
28224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28225 (eval $ac_link) 2>conftest.er1
28227 grep -v '^ *+' conftest.er1 >conftest.err
28229 cat conftest.err >&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } &&
28232 { ac_try='test -z "$ac_c_werror_flag"
28233 || test ! -s conftest.err'
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; } &&
28239 { ac_try='test -s conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 ol_cv_db_db_4_dot_m=yes
28247 echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28250 ol_cv_db_db_4_dot_m=no
28252 rm -f conftest.err conftest.$ac_objext \
28253 conftest$ac_exeext conftest.$ac_ext
28258 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28259 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28261 if test $ol_cv_db_db_4_dot_m = yes ; then
28262 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28266 if test $ol_cv_lib_db = no ; then
28267 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28268 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28269 if test "${ol_cv_db_db4m+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28275 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28277 cat >conftest.$ac_ext <<_ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h. */
28284 #ifdef HAVE_DB_185_H
28285 # include <db_185.h>
28290 #ifndef DB_VERSION_MAJOR
28291 # define DB_VERSION_MAJOR 1
28295 #define NULL ((void*)0)
28302 #if DB_VERSION_MAJOR > 2
28303 db_env_create( NULL, 0 );
28304 #elif DB_VERSION_MAJOR > 1
28305 db_appexit( NULL );
28307 (void) dbopen( NULL, 0, 0, 0, NULL);
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316 (eval $ac_link) 2>conftest.er1
28318 grep -v '^ *+' conftest.er1 >conftest.err
28320 cat conftest.err >&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } &&
28323 { ac_try='test -z "$ac_c_werror_flag"
28324 || test ! -s conftest.err'
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; } &&
28330 { ac_try='test -s conftest$ac_exeext'
28331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332 (eval $ac_try) 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; }; then
28338 echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28343 rm -f conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
28349 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28350 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28352 if test $ol_cv_db_db4m = yes ; then
28353 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28357 if test $ol_cv_lib_db = no ; then
28358 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28359 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28360 if test "${ol_cv_db_db_4m+set}" = set; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28364 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28375 #ifdef HAVE_DB_185_H
28376 # include <db_185.h>
28381 #ifndef DB_VERSION_MAJOR
28382 # define DB_VERSION_MAJOR 1
28386 #define NULL ((void*)0)
28393 #if DB_VERSION_MAJOR > 2
28394 db_env_create( NULL, 0 );
28395 #elif DB_VERSION_MAJOR > 1
28396 db_appexit( NULL );
28398 (void) dbopen( NULL, 0, 0, 0, NULL);
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28407 (eval $ac_link) 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_c_werror_flag"
28415 || test ! -s conftest.err'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest$ac_exeext'
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28434 rm -f conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
28440 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28441 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28443 if test $ol_cv_db_db_4m = yes ; then
28444 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28448 if test $ol_cv_lib_db = no ; then
28449 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28450 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28451 if test "${ol_cv_db_db_4_m+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28457 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28466 #ifdef HAVE_DB_185_H
28467 # include <db_185.h>
28472 #ifndef DB_VERSION_MAJOR
28473 # define DB_VERSION_MAJOR 1
28477 #define NULL ((void*)0)
28484 #if DB_VERSION_MAJOR > 2
28485 db_env_create( NULL, 0 );
28486 #elif DB_VERSION_MAJOR > 1
28487 db_appexit( NULL );
28489 (void) dbopen( NULL, 0, 0, 0, NULL);
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498 (eval $ac_link) 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest$ac_exeext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ol_cv_db_db_4_m=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28525 rm -f conftest.err conftest.$ac_objext \
28526 conftest$ac_exeext conftest.$ac_ext
28531 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28532 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28534 if test $ol_cv_db_db_4_m = yes ; then
28535 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28539 if test $ol_cv_lib_db = no ; then
28540 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28541 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28542 if test "${ol_cv_db_db_4+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28557 #ifdef HAVE_DB_185_H
28558 # include <db_185.h>
28563 #ifndef DB_VERSION_MAJOR
28564 # define DB_VERSION_MAJOR 1
28568 #define NULL ((void*)0)
28575 #if DB_VERSION_MAJOR > 2
28576 db_env_create( NULL, 0 );
28577 #elif DB_VERSION_MAJOR > 1
28578 db_appexit( NULL );
28580 (void) dbopen( NULL, 0, 0, 0, NULL);
28587 rm -f conftest.$ac_objext conftest$ac_exeext
28588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28589 (eval $ac_link) 2>conftest.er1
28591 grep -v '^ *+' conftest.er1 >conftest.err
28593 cat conftest.err >&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
28596 { ac_try='test -z "$ac_c_werror_flag"
28597 || test ! -s conftest.err'
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; } &&
28603 { ac_try='test -s conftest$ac_exeext'
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28616 rm -f conftest.err conftest.$ac_objext \
28617 conftest$ac_exeext conftest.$ac_ext
28622 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28623 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28625 if test $ol_cv_db_db_4 = yes ; then
28626 ol_cv_lib_db=-ldb-4
28630 if test $ol_cv_lib_db = no ; then
28631 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28632 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28633 if test "${ol_cv_db_db4+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28648 #ifdef HAVE_DB_185_H
28649 # include <db_185.h>
28654 #ifndef DB_VERSION_MAJOR
28655 # define DB_VERSION_MAJOR 1
28659 #define NULL ((void*)0)
28666 #if DB_VERSION_MAJOR > 2
28667 db_env_create( NULL, 0 );
28668 #elif DB_VERSION_MAJOR > 1
28669 db_appexit( NULL );
28671 (void) dbopen( NULL, 0, 0, 0, NULL);
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680 (eval $ac_link) 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag"
28688 || test ! -s conftest.err'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28702 echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28707 rm -f conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
28713 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28714 echo "${ECHO_T}$ol_cv_db_db4" >&6
28716 if test $ol_cv_db_db4 = yes ; then
28721 if test $ol_cv_lib_db = no ; then
28722 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28723 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28724 if test "${ol_cv_db_db+set}" = set; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
28730 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28732 cat >conftest.$ac_ext <<_ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28739 #ifdef HAVE_DB_185_H
28740 # include <db_185.h>
28745 #ifndef DB_VERSION_MAJOR
28746 # define DB_VERSION_MAJOR 1
28750 #define NULL ((void*)0)
28757 #if DB_VERSION_MAJOR > 2
28758 db_env_create( NULL, 0 );
28759 #elif DB_VERSION_MAJOR > 1
28760 db_appexit( NULL );
28762 (void) dbopen( NULL, 0, 0, 0, NULL);
28769 rm -f conftest.$ac_objext conftest$ac_exeext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28771 (eval $ac_link) 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_c_werror_flag"
28779 || test ! -s conftest.err'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest$ac_exeext'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; }; then
28793 echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28798 rm -f conftest.err conftest.$ac_objext \
28799 conftest$ac_exeext conftest.$ac_ext
28804 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28805 echo "${ECHO_T}$ol_cv_db_db" >&6
28807 if test $ol_cv_db_db = yes ; then
28813 if test $ol_cv_lib_db = no ; then
28814 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28815 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28816 if test "${ol_cv_db_none+set}" = set; then
28817 echo $ECHO_N "(cached) $ECHO_C" >&6
28822 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28824 cat >conftest.$ac_ext <<_ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28831 #ifdef HAVE_DB_185_H
28832 # include <db_185.h>
28837 #ifndef DB_VERSION_MAJOR
28838 # define DB_VERSION_MAJOR 1
28842 #define NULL ((void*)0)
28849 #if DB_VERSION_MAJOR > 2
28850 db_env_create( NULL, 0 );
28851 #elif DB_VERSION_MAJOR > 1
28852 db_appexit( NULL );
28854 (void) dbopen( NULL, 0, 0, 0, NULL);
28861 rm -f conftest.$ac_objext conftest$ac_exeext
28862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28863 (eval $ac_link) 2>conftest.er1
28865 grep -v '^ *+' conftest.er1 >conftest.err
28867 cat conftest.err >&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
28870 { ac_try='test -z "$ac_c_werror_flag"
28871 || test ! -s conftest.err'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; } &&
28877 { ac_try='test -s conftest$ac_exeext'
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28885 echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28890 rm -f conftest.err conftest.$ac_objext \
28891 conftest$ac_exeext conftest.$ac_ext
28896 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28897 echo "${ECHO_T}$ol_cv_db_none" >&6
28899 if test $ol_cv_db_none = yes ; then
28905 if test "$ol_cv_lib_db" != no ; then
28906 ol_cv_berkeley_db=yes
28907 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28908 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28909 if test "${ol_cv_berkeley_db_version+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28914 LIBS="$LTHREAD_LIBS $LIBS"
28915 if test $ol_cv_lib_db != yes ; then
28916 LIBS="$ol_cv_lib_db $LIBS"
28919 if test "$cross_compiling" = yes; then
28920 ol_cv_berkeley_db_version=cross
28922 cat >conftest.$ac_ext <<_ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h. */
28929 #ifdef HAVE_DB_185_H
28934 #ifndef DB_VERSION_MAJOR
28935 # define DB_VERSION_MAJOR 1
28938 #define NULL ((void *)0)
28942 #if DB_VERSION_MAJOR > 1
28944 int major, minor, patch;
28946 version = db_version( &major, &minor, &patch );
28948 if( major != DB_VERSION_MAJOR ||
28949 minor != DB_VERSION_MINOR ||
28950 patch != DB_VERSION_PATCH )
28952 printf("Berkeley DB version mismatch\n"
28953 "\theader: %s\n\tlibrary: %s\n",
28954 DB_VERSION_STRING, version);
28962 rm -f conftest$ac_exeext
28963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28964 (eval $ac_link) 2>&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969 (eval $ac_try) 2>&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; }; then
28973 ol_cv_berkeley_db_version=yes
28975 echo "$as_me: program exited with status $ac_status" >&5
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ( exit $ac_status )
28980 ol_cv_berkeley_db_version=no
28982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28988 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28989 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
28991 if test $ol_cv_berkeley_db_version = no ; then
28992 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28993 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28994 { (exit 1); exit 1; }; }
28997 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28998 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
28999 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29000 echo $ECHO_N "(cached) $ECHO_C" >&6
29004 LIBS="$LTHREAD_LIBS $LIBS"
29005 if test $ol_cv_lib_db != yes ; then
29006 LIBS="$ol_cv_lib_db $LIBS"
29009 if test "$cross_compiling" = yes; then
29010 ol_cv_berkeley_db_thread=cross
29012 cat >conftest.$ac_ext <<_ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29019 #ifdef HAVE_DB_185_H
29025 #define NULL ((void *)0)
29030 u_int32_t flags = DB_CREATE |
29036 #if DB_VERSION_MAJOR > 2
29037 DB_ENV *env = NULL;
29039 rc = db_env_create( &env, 0 );
29041 flags |= DB_INIT_MPOOL;
29042 #ifdef DB_MPOOL_PRIVATE
29043 flags |= DB_MPOOL_PRIVATE;
29047 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29051 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29052 rc = (env->open)( env, NULL, flags, 0 );
29054 rc = (env->open)( env, NULL, NULL, flags, 0 );
29058 rc = env->close( env, 0 );
29062 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29068 memset( &env, '\0', sizeof(env) );
29070 rc = db_appinit( NULL, NULL, &env, flags );
29073 db_appexit( &env );
29076 unlink("__db_mpool.share");
29077 unlink("__db_lock.share");
29083 rm -f conftest$ac_exeext
29084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29085 (eval $ac_link) 2>&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ol_cv_berkeley_db_thread=yes
29096 echo "$as_me: program exited with status $ac_status" >&5
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29100 ( exit $ac_status )
29101 ol_cv_berkeley_db_thread=no
29103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29109 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29110 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29112 if test $ol_cv_berkeley_db_thread != no ; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_BERKELEY_DB_THREAD 1
29124 if test $ol_cv_berkeley_db = no ; then
29125 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29126 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29127 { (exit 1); exit 1; }; }
29131 cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_BERKELEY_DB 1
29136 if test $ol_cv_lib_db != yes ; then
29137 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29140 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29146 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29147 BUILD_LIBS_DYNAMIC=shared
29149 cat >>confdefs.h <<\_ACEOF
29150 #define LDAP_LIBS_DYNAMIC 1
29155 BUILD_LIBS_DYNAMIC=static
29159 if test $ol_enable_wrappers != no ; then
29161 for ac_header in tcpd.h
29163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29165 echo "$as_me:$LINENO: checking for $ac_header" >&5
29166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29173 # Is the header compilable?
29174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29176 cat >conftest.$ac_ext <<_ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29182 $ac_includes_default
29183 #include <$ac_header>
29185 rm -f conftest.$ac_objext
29186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29187 (eval $ac_compile) 2>conftest.er1
29189 grep -v '^ *+' conftest.er1 >conftest.err
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
29194 { ac_try='test -z "$ac_c_werror_flag"
29195 || test ! -s conftest.err'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; } &&
29201 { ac_try='test -s conftest.$ac_objext'
29202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203 (eval $ac_try) 2>&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); }; }; then
29207 ac_header_compiler=yes
29209 echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29212 ac_header_compiler=no
29214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29216 echo "${ECHO_T}$ac_header_compiler" >&6
29218 # Is the header present?
29219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29221 cat >conftest.$ac_ext <<_ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29227 #include <$ac_header>
29229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29232 grep -v '^ *+' conftest.er1 >conftest.err
29234 cat conftest.err >&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); } >/dev/null; then
29237 if test -s conftest.err; then
29238 ac_cpp_err=$ac_c_preproc_warn_flag
29239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29246 if test -z "$ac_cpp_err"; then
29247 ac_header_preproc=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_header_preproc=no
29254 rm -f conftest.err conftest.$ac_ext
29255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29256 echo "${ECHO_T}$ac_header_preproc" >&6
29258 # So? What about this header?
29259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29265 ac_header_preproc=yes
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29282 ## --------------------------------------------- ##
29283 ## Report this to <http://www.openldap.org/its/> ##
29284 ## --------------------------------------------- ##
29287 sed "s/^/$as_me: WARNING: /" >&2
29290 echo "$as_me:$LINENO: checking for $ac_header" >&5
29291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29295 eval "$as_ac_Header=\$ac_header_preproc"
29297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29302 cat >>confdefs.h <<_ACEOF
29303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29306 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29307 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29309 LIBS="$LIBS -lwrap"
29310 cat >conftest.$ac_ext <<_ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h. */
29318 int allow_severity = 0;
29319 int deny_severity = 0;
29321 struct request_info *req;
29333 rm -f conftest.$ac_objext conftest$ac_exeext
29334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29335 (eval $ac_link) 2>conftest.er1
29337 grep -v '^ *+' conftest.er1 >conftest.err
29339 cat conftest.err >&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
29342 { ac_try='test -z "$ac_c_werror_flag"
29343 || test ! -s conftest.err'
29344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; } &&
29349 { ac_try='test -s conftest$ac_exeext'
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; }; then
29355 echo "$as_me:$LINENO: result: -lwrap" >&5
29356 echo "${ECHO_T}-lwrap" >&6
29360 echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.$ac_ext >&5
29365 cat >conftest.$ac_ext <<_ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h. */
29373 int allow_severity = 0;
29374 int deny_severity = 0;
29376 struct request_info *req;
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390 (eval $ac_link) 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
29397 { ac_try='test -z "$ac_c_werror_flag"
29398 || test ! -s conftest.err'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest$ac_exeext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29411 echo "${ECHO_T}-lwrap -lnsl" >&6
29413 LIBS="$save_LIBS -lnsl"
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29419 echo "$as_me:$LINENO: result: no" >&5
29420 echo "${ECHO_T}no" >&6
29424 rm -f conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
29427 rm -f conftest.err conftest.$ac_objext \
29428 conftest$ac_exeext conftest.$ac_ext
29436 if test $have_wrappers = yes ; then
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_TCPD 1
29443 elif test $ol_enable_wrappers = yes ; then
29444 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29445 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29446 { (exit 1); exit 1; }; }
29448 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29449 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29454 if test $ol_enable_syslog != no ; then
29455 echo "$as_me:$LINENO: checking for openlog" >&5
29456 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29457 if test "${ac_cv_func_openlog+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29468 #define openlog innocuous_openlog
29470 /* System header to define __stub macros and hopefully few prototypes,
29471 which can conflict with char openlog (); below.
29472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29473 <limits.h> exists even on freestanding compilers. */
29476 # include <limits.h>
29478 # include <assert.h>
29483 /* Override any gcc2 internal prototype to avoid an error. */
29488 /* We use char because int might match the return type of a gcc2
29489 builtin and then its argument prototype would still apply. */
29491 /* The GNU C library defines this for functions which it implements
29492 to always fail with ENOSYS. Some functions are actually named
29493 something starting with __ and the normal name is an alias. */
29494 #if defined (__stub_openlog) || defined (__stub___openlog)
29497 char (*f) () = openlog;
29506 return f != openlog;
29511 rm -f conftest.$ac_objext conftest$ac_exeext
29512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29513 (eval $ac_link) 2>conftest.er1
29515 grep -v '^ *+' conftest.er1 >conftest.err
29517 cat conftest.err >&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } &&
29520 { ac_try='test -z "$ac_c_werror_flag"
29521 || test ! -s conftest.err'
29522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523 (eval $ac_try) 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; } &&
29527 { ac_try='test -s conftest$ac_exeext'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; }; then
29533 ac_cv_func_openlog=yes
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29538 ac_cv_func_openlog=no
29540 rm -f conftest.err conftest.$ac_objext \
29541 conftest$ac_exeext conftest.$ac_ext
29543 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29544 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29546 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29547 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29548 echo "$as_me: error: could not find syslog" >&2;}
29549 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29551 ol_enable_syslog=$ac_cv_func_openlog
29555 if test $ol_enable_sql != no ; then
29558 for ac_header in sql.h sqlext.h
29560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29562 echo "$as_me:$LINENO: checking for $ac_header" >&5
29563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29570 # Is the header compilable?
29571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29573 cat >conftest.$ac_ext <<_ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h. */
29579 $ac_includes_default
29580 #include <$ac_header>
29582 rm -f conftest.$ac_objext
29583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29584 (eval $ac_compile) 2>conftest.er1
29586 grep -v '^ *+' conftest.er1 >conftest.err
29588 cat conftest.err >&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } &&
29591 { ac_try='test -z "$ac_c_werror_flag"
29592 || test ! -s conftest.err'
29593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; } &&
29598 { ac_try='test -s conftest.$ac_objext'
29599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600 (eval $ac_try) 2>&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
29604 ac_header_compiler=yes
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_header_compiler=no
29611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29613 echo "${ECHO_T}$ac_header_compiler" >&6
29615 # Is the header present?
29616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 #include <$ac_header>
29626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29629 grep -v '^ *+' conftest.er1 >conftest.err
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } >/dev/null; then
29634 if test -s conftest.err; then
29635 ac_cpp_err=$ac_c_preproc_warn_flag
29636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29643 if test -z "$ac_cpp_err"; then
29644 ac_header_preproc=yes
29646 echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29649 ac_header_preproc=no
29651 rm -f conftest.err conftest.$ac_ext
29652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 echo "${ECHO_T}$ac_header_preproc" >&6
29655 # So? What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662 ac_header_preproc=yes
29665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29679 ## --------------------------------------------- ##
29680 ## Report this to <http://www.openldap.org/its/> ##
29681 ## --------------------------------------------- ##
29684 sed "s/^/$as_me: WARNING: /" >&2
29687 echo "$as_me:$LINENO: checking for $ac_header" >&5
29688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 eval "$as_ac_Header=\$ac_header_preproc"
29694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29699 cat >>confdefs.h <<_ACEOF
29700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29705 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29706 echo "$as_me: error: could not locate SQL headers" >&2;}
29707 { (exit 1); exit 1; }; }
29715 LIBS="$LTHREAD_LIBS"
29717 if test $ol_with_odbc = auto ; then
29718 ol_with_odbc="iodbc unixodbc odbc32"
29721 for odbc in $ol_with_odbc ; do
29722 if test $ol_link_sql = no ; then
29725 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29726 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29727 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29730 ac_check_lib_save_LIBS=$LIBS
29731 LIBS="-liodbc $LIBS"
29732 cat >conftest.$ac_ext <<_ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h. */
29739 /* Override any gcc2 internal prototype to avoid an error. */
29743 /* We use char because int might match the return type of a gcc2
29744 builtin and then its argument prototype would still apply. */
29745 char SQLDriverConnect ();
29749 SQLDriverConnect ();
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29756 (eval $ac_link) 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
29763 { ac_try='test -z "$ac_c_werror_flag"
29764 || test ! -s conftest.err'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest$ac_exeext'
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 ac_cv_lib_iodbc_SQLDriverConnect=yes
29778 echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29781 ac_cv_lib_iodbc_SQLDriverConnect=no
29783 rm -f conftest.err conftest.$ac_objext \
29784 conftest$ac_exeext conftest.$ac_ext
29785 LIBS=$ac_check_lib_save_LIBS
29787 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29788 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29789 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29795 if test $have_iodbc = yes ; then
29796 ol_link_sql="-liodbc"
29801 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29802 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29803 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 ac_check_lib_save_LIBS=$LIBS
29807 LIBS="-lodbc $LIBS"
29808 cat >conftest.$ac_ext <<_ACEOF
29811 cat confdefs.h >>conftest.$ac_ext
29812 cat >>conftest.$ac_ext <<_ACEOF
29813 /* end confdefs.h. */
29815 /* Override any gcc2 internal prototype to avoid an error. */
29819 /* We use char because int might match the return type of a gcc2
29820 builtin and then its argument prototype would still apply. */
29821 char SQLDriverConnect ();
29825 SQLDriverConnect ();
29830 rm -f conftest.$ac_objext conftest$ac_exeext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29832 (eval $ac_link) 2>conftest.er1
29834 grep -v '^ *+' conftest.er1 >conftest.err
29836 cat conftest.err >&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
29839 { ac_try='test -z "$ac_c_werror_flag"
29840 || test ! -s conftest.err'
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest$ac_exeext'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852 ac_cv_lib_odbc_SQLDriverConnect=yes
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29857 ac_cv_lib_odbc_SQLDriverConnect=no
29859 rm -f conftest.err conftest.$ac_objext \
29860 conftest$ac_exeext conftest.$ac_ext
29861 LIBS=$ac_check_lib_save_LIBS
29863 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29864 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29865 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29871 if test $have_odbc = yes ; then
29872 ol_link_sql="-lodbc"
29877 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29878 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29879 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 ac_check_lib_save_LIBS=$LIBS
29883 LIBS="-lodbc32 $LIBS"
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29891 /* Override any gcc2 internal prototype to avoid an error. */
29895 /* We use char because int might match the return type of a gcc2
29896 builtin and then its argument prototype would still apply. */
29897 char SQLDriverConnect ();
29901 SQLDriverConnect ();
29906 rm -f conftest.$ac_objext conftest$ac_exeext
29907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29908 (eval $ac_link) 2>conftest.er1
29910 grep -v '^ *+' conftest.er1 >conftest.err
29912 cat conftest.err >&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } &&
29915 { ac_try='test -z "$ac_c_werror_flag"
29916 || test ! -s conftest.err'
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest$ac_exeext'
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 ac_cv_lib_odbc32_SQLDriverConnect=yes
29930 echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29933 ac_cv_lib_odbc32_SQLDriverConnect=no
29935 rm -f conftest.err conftest.$ac_objext \
29936 conftest$ac_exeext conftest.$ac_ext
29937 LIBS=$ac_check_lib_save_LIBS
29939 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29940 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29941 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29947 if test $have_odbc32 = yes ; then
29948 ol_link_sql="-lodbc32"
29953 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29954 echo "$as_me: error: unknown ODBC library" >&2;}
29955 { (exit 1); exit 1; }; }
29963 if test $ol_link_sql != no ; then
29964 SLAPD_SQL_LIBS="$ol_link_sql"
29966 elif test $ol_enable_sql != auto ; then
29967 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29968 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29969 { (exit 1); exit 1; }; }
29974 if test $ol_enable_ndb != no ; then
29975 # Extract the first word of "mysql_config", so it can be a program name with args.
29976 set dummy mysql_config; ac_word=$2
29977 echo "$as_me:$LINENO: checking for $ac_word" >&5
29978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29979 if test "${ac_cv_prog_MYSQL+set}" = set; then
29980 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 if test -n "$MYSQL"; then
29983 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29986 for as_dir in $PATH
29989 test -z "$as_dir" && as_dir=.
29990 for ac_exec_ext in '' $ac_executable_extensions; do
29991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29992 ac_cv_prog_MYSQL="yes"
29993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30001 MYSQL=$ac_cv_prog_MYSQL
30002 if test -n "$MYSQL"; then
30003 echo "$as_me:$LINENO: result: $MYSQL" >&5
30004 echo "${ECHO_T}$MYSQL" >&6
30006 echo "$as_me:$LINENO: result: no" >&5
30007 echo "${ECHO_T}no" >&6
30010 if test "$MYSQL" != yes ; then
30011 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30012 echo "$as_me: error: could not locate mysql_config" >&2;}
30013 { (exit 1); exit 1; }; }
30016 SQL_INC=`mysql_config --include`
30017 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30019 save_CPPFLAGS="$CPPFLAGS"
30020 CPPFLAGS="$SLAPD_NDB_INCS"
30021 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30022 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30023 cat >conftest.$ac_ext <<_ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h. */
30029 #include <NdbApi.hpp>
30031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30034 grep -v '^ *+' conftest.er1 >conftest.err
30036 cat conftest.err >&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); } >/dev/null; then
30039 if test -s conftest.err; then
30040 ac_cpp_err=$ac_c_preproc_warn_flag
30041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30048 if test -z "$ac_cpp_err"; then
30049 echo "$as_me:$LINENO: result: yes" >&5
30050 echo "${ECHO_T}yes" >&6
30052 echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30055 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30056 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30057 { (exit 1); exit 1; }; }
30060 rm -f conftest.err conftest.$ac_ext
30061 CPPFLAGS="$save_CPPFLAGS"
30063 SQL_LIB=`mysql_config --libs_r`
30064 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30066 save_LDFLAGS="$LDFLAGS"
30069 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30070 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30071 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30074 ac_check_lib_save_LIBS=$LIBS
30075 LIBS="-lndbclient -lstdc++ $LIBS"
30076 cat >conftest.$ac_ext <<_ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30083 /* Override any gcc2 internal prototype to avoid an error. */
30087 /* We use char because int might match the return type of a gcc2
30088 builtin and then its argument prototype would still apply. */
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30100 (eval $ac_link) 2>conftest.er1
30102 grep -v '^ *+' conftest.er1 >conftest.err
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
30107 { ac_try='test -z "$ac_c_werror_flag"
30108 || test ! -s conftest.err'
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; } &&
30114 { ac_try='test -s conftest$ac_exeext'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30120 ac_cv_lib_ndbclient_ndb_init=yes
30122 echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30125 ac_cv_lib_ndbclient_ndb_init=no
30127 rm -f conftest.err conftest.$ac_objext \
30128 conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30131 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30132 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30133 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30137 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30138 echo "$as_me: error: could not locate ndbclient library" >&2;}
30139 { (exit 1); exit 1; }; }
30144 LDFLAGS="$save_LDFLAGS"
30146 if test "$ol_enable_ndb" = yes ; then
30147 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30153 for ac_header in unicode/utypes.h
30155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30157 echo "$as_me:$LINENO: checking for $ac_header" >&5
30158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30165 # Is the header compilable?
30166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30168 cat >conftest.$ac_ext <<_ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 $ac_includes_default
30175 #include <$ac_header>
30177 rm -f conftest.$ac_objext
30178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30179 (eval $ac_compile) 2>conftest.er1
30181 grep -v '^ *+' conftest.er1 >conftest.err
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag"
30187 || test ! -s conftest.err'
30188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189 (eval $ac_try) 2>&5
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; } &&
30193 { ac_try='test -s conftest.$ac_objext'
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; }; then
30199 ac_header_compiler=yes
30201 echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30204 ac_header_compiler=no
30206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30208 echo "${ECHO_T}$ac_header_compiler" >&6
30210 # Is the header present?
30211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30213 cat >conftest.$ac_ext <<_ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h. */
30219 #include <$ac_header>
30221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30224 grep -v '^ *+' conftest.er1 >conftest.err
30226 cat conftest.err >&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); } >/dev/null; then
30229 if test -s conftest.err; then
30230 ac_cpp_err=$ac_c_preproc_warn_flag
30231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30238 if test -z "$ac_cpp_err"; then
30239 ac_header_preproc=yes
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30244 ac_header_preproc=no
30246 rm -f conftest.err conftest.$ac_ext
30247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30248 echo "${ECHO_T}$ac_header_preproc" >&6
30250 # So? What about this header?
30251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30257 ac_header_preproc=yes
30260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30274 ## --------------------------------------------- ##
30275 ## Report this to <http://www.openldap.org/its/> ##
30276 ## --------------------------------------------- ##
30279 sed "s/^/$as_me: WARNING: /" >&2
30282 echo "$as_me:$LINENO: checking for $ac_header" >&5
30283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30287 eval "$as_ac_Header=\$ac_header_preproc"
30289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30294 cat >>confdefs.h <<_ACEOF
30295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30302 if test $ac_cv_header_unicode_utypes_h = yes ; then
30303 OL_ICULIBS="-licuuc -licudata"
30305 echo "$as_me:$LINENO: checking for ICU libraries" >&5
30306 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30307 if test "${ol_cv_lib_icu+set}" = set; then
30308 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 LIBS="$OL_ICULIBS $LIBS"
30313 cat >conftest.$ac_ext <<_ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30320 #include <unicode/utypes.h>
30326 (void) u_errorName(0);
30332 rm -f conftest.$ac_objext conftest$ac_exeext
30333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30334 (eval $ac_link) 2>conftest.er1
30336 grep -v '^ *+' conftest.er1 >conftest.err
30338 cat conftest.err >&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } &&
30341 { ac_try='test -z "$ac_c_werror_flag"
30342 || test ! -s conftest.err'
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; } &&
30348 { ac_try='test -s conftest$ac_exeext'
30349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350 (eval $ac_try) 2>&5
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; }; then
30356 echo "$as_me: failed program was:" >&5
30357 sed 's/^/| /' conftest.$ac_ext >&5
30361 rm -f conftest.err conftest.$ac_objext \
30362 conftest$ac_exeext conftest.$ac_ext
30366 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30367 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30369 if test $ol_cv_lib_icu != no ; then
30370 ol_icu="$OL_ICULIBS"
30372 cat >>confdefs.h <<\_ACEOF
30379 if test "$ol_icu" = no ; then
30380 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30381 echo "$as_me: WARNING: ICU not available" >&2;}
30388 if test $ol_with_cyrus_sasl != no ; then
30391 for ac_header in sasl/sasl.h sasl.h
30393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30395 echo "$as_me:$LINENO: checking for $ac_header" >&5
30396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30403 # Is the header compilable?
30404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30406 cat >conftest.$ac_ext <<_ACEOF
30409 cat confdefs.h >>conftest.$ac_ext
30410 cat >>conftest.$ac_ext <<_ACEOF
30411 /* end confdefs.h. */
30412 $ac_includes_default
30413 #include <$ac_header>
30415 rm -f conftest.$ac_objext
30416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30417 (eval $ac_compile) 2>conftest.er1
30419 grep -v '^ *+' conftest.er1 >conftest.err
30421 cat conftest.err >&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } &&
30424 { ac_try='test -z "$ac_c_werror_flag"
30425 || test ! -s conftest.err'
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; }; then
30437 ac_header_compiler=yes
30439 echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30442 ac_header_compiler=no
30444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30446 echo "${ECHO_T}$ac_header_compiler" >&6
30448 # Is the header present?
30449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30451 cat >conftest.$ac_ext <<_ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h. */
30457 #include <$ac_header>
30459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30462 grep -v '^ *+' conftest.er1 >conftest.err
30464 cat conftest.err >&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); } >/dev/null; then
30467 if test -s conftest.err; then
30468 ac_cpp_err=$ac_c_preproc_warn_flag
30469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30476 if test -z "$ac_cpp_err"; then
30477 ac_header_preproc=yes
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_header_preproc=no
30484 rm -f conftest.err conftest.$ac_ext
30485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30486 echo "${ECHO_T}$ac_header_preproc" >&6
30488 # So? What about this header?
30489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30495 ac_header_preproc=yes
30498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30512 ## --------------------------------------------- ##
30513 ## Report this to <http://www.openldap.org/its/> ##
30514 ## --------------------------------------------- ##
30517 sed "s/^/$as_me: WARNING: /" >&2
30520 echo "$as_me:$LINENO: checking for $ac_header" >&5
30521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30525 eval "$as_ac_Header=\$ac_header_preproc"
30527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30532 cat >>confdefs.h <<_ACEOF
30533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30541 if test $ac_cv_header_sasl_sasl_h = yes ||
30542 test $ac_cv_header_sasl_h = yes; then
30543 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30544 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30545 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30548 ac_check_lib_save_LIBS=$LIBS
30549 LIBS="-lsasl2 $LIBS"
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30557 /* Override any gcc2 internal prototype to avoid an error. */
30561 /* We use char because int might match the return type of a gcc2
30562 builtin and then its argument prototype would still apply. */
30563 char sasl_client_init ();
30567 sasl_client_init ();
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574 (eval $ac_link) 2>conftest.er1
30576 grep -v '^ *+' conftest.er1 >conftest.err
30578 cat conftest.err >&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
30581 { ac_try='test -z "$ac_c_werror_flag"
30582 || test ! -s conftest.err'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; } &&
30588 { ac_try='test -s conftest$ac_exeext'
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 ac_cv_lib_sasl2_sasl_client_init=yes
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ac_cv_lib_sasl2_sasl_client_init=no
30601 rm -f conftest.err conftest.$ac_objext \
30602 conftest$ac_exeext conftest.$ac_ext
30603 LIBS=$ac_check_lib_save_LIBS
30605 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30606 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30607 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30608 ol_link_sasl="-lsasl2"
30610 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30611 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30612 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
30615 ac_check_lib_save_LIBS=$LIBS
30616 LIBS="-lsasl $LIBS"
30617 cat >conftest.$ac_ext <<_ACEOF
30620 cat confdefs.h >>conftest.$ac_ext
30621 cat >>conftest.$ac_ext <<_ACEOF
30622 /* end confdefs.h. */
30624 /* Override any gcc2 internal prototype to avoid an error. */
30628 /* We use char because int might match the return type of a gcc2
30629 builtin and then its argument prototype would still apply. */
30630 char sasl_client_init ();
30634 sasl_client_init ();
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30641 (eval $ac_link) 2>conftest.er1
30643 grep -v '^ *+' conftest.er1 >conftest.err
30645 cat conftest.err >&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
30648 { ac_try='test -z "$ac_c_werror_flag"
30649 || test ! -s conftest.err'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }; then
30661 ac_cv_lib_sasl_sasl_client_init=yes
30663 echo "$as_me: failed program was:" >&5
30664 sed 's/^/| /' conftest.$ac_ext >&5
30666 ac_cv_lib_sasl_sasl_client_init=no
30668 rm -f conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
30670 LIBS=$ac_check_lib_save_LIBS
30672 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30673 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30674 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30675 ol_link_sasl="-lsasl"
30682 if test $ol_link_sasl = no ; then
30683 if test $ol_with_cyrus_sasl != auto ; then
30684 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30685 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30686 { (exit 1); exit 1; }; }
30688 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30689 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30691 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30692 if test $ol_link_tls = no ; then
30693 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30694 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30698 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30699 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30700 if test "${ol_cv_sasl_compat+set}" = set; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30704 cat >conftest.$ac_ext <<_ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h. */
30711 #ifdef HAVE_SASL_SASL_H
30712 #include <sasl/sasl.h>
30717 /* Require 2.1.15+ */
30718 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30719 char *__sasl_compat = "2.2+ or better okay (we guess)";
30720 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30721 && SASL_VERSION_STEP >=15
30722 char *__sasl_compat = "2.1.15+ or better okay";
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30728 ol_cv_sasl_compat=yes
30730 ol_cv_sasl_compat=no
30735 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30736 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30738 if test $ol_cv_sasl_compat = no ; then
30740 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30741 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30742 { (exit 1); exit 1; }; }
30746 cat >>confdefs.h <<\_ACEOF
30747 #define HAVE_CYRUS_SASL 1
30750 SASL_LIBS="$ol_link_sasl"
30751 if test $ol_enable_spasswd != no ; then
30752 ol_link_spasswd=yes
30755 ac_save_LIBS="$LIBS"
30756 LIBS="$LIBS $ol_link_sasl"
30757 echo "$as_me:$LINENO: checking for sasl_version" >&5
30758 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30759 if test "${ac_cv_func_sasl_version+set}" = set; then
30760 echo $ECHO_N "(cached) $ECHO_C" >&6
30762 cat >conftest.$ac_ext <<_ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h. */
30768 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30770 #define sasl_version innocuous_sasl_version
30772 /* System header to define __stub macros and hopefully few prototypes,
30773 which can conflict with char sasl_version (); below.
30774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30775 <limits.h> exists even on freestanding compilers. */
30778 # include <limits.h>
30780 # include <assert.h>
30783 #undef sasl_version
30785 /* Override any gcc2 internal prototype to avoid an error. */
30790 /* We use char because int might match the return type of a gcc2
30791 builtin and then its argument prototype would still apply. */
30792 char sasl_version ();
30793 /* The GNU C library defines this for functions which it implements
30794 to always fail with ENOSYS. Some functions are actually named
30795 something starting with __ and the normal name is an alias. */
30796 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30799 char (*f) () = sasl_version;
30808 return f != sasl_version;
30813 rm -f conftest.$ac_objext conftest$ac_exeext
30814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30815 (eval $ac_link) 2>conftest.er1
30817 grep -v '^ *+' conftest.er1 >conftest.err
30819 cat conftest.err >&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); } &&
30822 { ac_try='test -z "$ac_c_werror_flag"
30823 || test ! -s conftest.err'
30824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825 (eval $ac_try) 2>&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831 (eval $ac_try) 2>&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; }; then
30835 ac_cv_func_sasl_version=yes
30837 echo "$as_me: failed program was:" >&5
30838 sed 's/^/| /' conftest.$ac_ext >&5
30840 ac_cv_func_sasl_version=no
30842 rm -f conftest.err conftest.$ac_objext \
30843 conftest$ac_exeext conftest.$ac_ext
30845 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30846 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30847 if test $ac_cv_func_sasl_version = yes; then
30849 cat >>confdefs.h <<\_ACEOF
30850 #define HAVE_SASL_VERSION 1
30855 LIBS="$ac_save_LIBS"
30861 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30862 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30863 if test $ol_link_tls = no ; then
30864 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30865 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30869 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30871 if test -r /dev/urandom ; then
30872 dev="/dev/urandom";
30873 elif test -r /idev/urandom ; then
30874 dev="/idev/urandom";
30875 elif test -r /dev/srandom ; then
30876 dev="/dev/srandom";
30877 elif test -r /dev/random ; then
30879 elif test -r /idev/random ; then
30880 dev="/idev/random";
30883 if test $dev != no ; then
30885 cat >>confdefs.h <<_ACEOF
30886 #define URANDOM_DEVICE "$dev"
30893 if test $ol_with_fetch != no ; then
30895 LIBS="-lfetch -lcom_err $LIBS"
30896 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30897 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30898 if test "${ol_cv_lib_fetch+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30902 cat >conftest.$ac_ext <<_ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h. */
30909 #include <sys/param.h>
30915 struct url *u = fetchParseURL("file:///");
30920 rm -f conftest.$ac_objext conftest$ac_exeext
30921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30922 (eval $ac_link) 2>conftest.er1
30924 grep -v '^ *+' conftest.er1 >conftest.err
30926 cat conftest.err >&5
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); } &&
30929 { ac_try='test -z "$ac_c_werror_flag"
30930 || test ! -s conftest.err'
30931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932 (eval $ac_try) 2>&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); }; } &&
30936 { ac_try='test -s conftest$ac_exeext'
30937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30938 (eval $ac_try) 2>&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; }; then
30942 ol_cv_lib_fetch=yes
30944 echo "$as_me: failed program was:" >&5
30945 sed 's/^/| /' conftest.$ac_ext >&5
30949 rm -f conftest.err conftest.$ac_objext \
30950 conftest$ac_exeext conftest.$ac_ext
30952 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30953 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30955 if test $ol_cv_lib_fetch != no ; then
30956 ol_link_fetch="-lfetch -lcom_err"
30958 cat >>confdefs.h <<\_ACEOF
30959 #define HAVE_FETCH 1
30965 if test $ol_cv_lib_fetch != no ; then
30966 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30967 ol_link_fetch=freebsd
30969 elif test $ol_with_fetch != auto ; then
30970 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30971 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30972 { (exit 1); exit 1; }; }
30976 if test $ol_enable_crypt != no ; then
30978 LIBS="$TLS_LIBS $LIBS"
30980 echo "$as_me:$LINENO: checking for crypt" >&5
30981 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
30982 if test "${ac_cv_func_crypt+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30985 cat >conftest.$ac_ext <<_ACEOF
30988 cat confdefs.h >>conftest.$ac_ext
30989 cat >>conftest.$ac_ext <<_ACEOF
30990 /* end confdefs.h. */
30991 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30993 #define crypt innocuous_crypt
30995 /* System header to define __stub macros and hopefully few prototypes,
30996 which can conflict with char crypt (); below.
30997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30998 <limits.h> exists even on freestanding compilers. */
31001 # include <limits.h>
31003 # include <assert.h>
31008 /* Override any gcc2 internal prototype to avoid an error. */
31013 /* We use char because int might match the return type of a gcc2
31014 builtin and then its argument prototype would still apply. */
31016 /* The GNU C library defines this for functions which it implements
31017 to always fail with ENOSYS. Some functions are actually named
31018 something starting with __ and the normal name is an alias. */
31019 #if defined (__stub_crypt) || defined (__stub___crypt)
31022 char (*f) () = crypt;
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038 (eval $ac_link) 2>conftest.er1
31040 grep -v '^ *+' conftest.er1 >conftest.err
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
31045 { ac_try='test -z "$ac_c_werror_flag"
31046 || test ! -s conftest.err'
31047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048 (eval $ac_try) 2>&5
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; } &&
31052 { ac_try='test -s conftest$ac_exeext'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31058 ac_cv_func_crypt=yes
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31063 ac_cv_func_crypt=no
31065 rm -f conftest.err conftest.$ac_objext \
31066 conftest$ac_exeext conftest.$ac_ext
31068 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31069 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31070 if test $ac_cv_func_crypt = yes; then
31075 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31080 ac_check_lib_save_LIBS=$LIBS
31081 LIBS="-lcrypt $LIBS"
31082 cat >conftest.$ac_ext <<_ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31089 /* Override any gcc2 internal prototype to avoid an error. */
31093 /* We use char because int might match the return type of a gcc2
31094 builtin and then its argument prototype would still apply. */
31104 rm -f conftest.$ac_objext conftest$ac_exeext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31106 (eval $ac_link) 2>conftest.er1
31108 grep -v '^ *+' conftest.er1 >conftest.err
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
31113 { ac_try='test -z "$ac_c_werror_flag"
31114 || test ! -s conftest.err'
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; } &&
31120 { ac_try='test -s conftest$ac_exeext'
31121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31122 (eval $ac_try) 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_cv_lib_crypt_crypt=yes
31128 echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31131 ac_cv_lib_crypt_crypt=no
31133 rm -f conftest.err conftest.$ac_objext \
31134 conftest$ac_exeext conftest.$ac_ext
31135 LIBS=$ac_check_lib_save_LIBS
31137 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31138 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31139 if test $ac_cv_lib_crypt_crypt = yes; then
31140 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31151 if test $have_crypt = yes ; then
31153 cat >>confdefs.h <<\_ACEOF
31154 #define HAVE_CRYPT 1
31158 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31159 echo "$as_me: WARNING: could not find crypt" >&2;}
31160 if test $ol_enable_crypt = yes ; then
31161 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31162 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31163 { (exit 1); exit 1; }; }
31166 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31167 echo "$as_me: WARNING: disabling crypt support" >&2;}
31172 if test $ol_enable_proctitle != no ; then
31173 echo "$as_me:$LINENO: checking for setproctitle" >&5
31174 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31175 if test "${ac_cv_func_setproctitle+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 cat >conftest.$ac_ext <<_ACEOF
31181 cat confdefs.h >>conftest.$ac_ext
31182 cat >>conftest.$ac_ext <<_ACEOF
31183 /* end confdefs.h. */
31184 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31186 #define setproctitle innocuous_setproctitle
31188 /* System header to define __stub macros and hopefully few prototypes,
31189 which can conflict with char setproctitle (); below.
31190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31191 <limits.h> exists even on freestanding compilers. */
31194 # include <limits.h>
31196 # include <assert.h>
31199 #undef setproctitle
31201 /* Override any gcc2 internal prototype to avoid an error. */
31206 /* We use char because int might match the return type of a gcc2
31207 builtin and then its argument prototype would still apply. */
31208 char setproctitle ();
31209 /* The GNU C library defines this for functions which it implements
31210 to always fail with ENOSYS. Some functions are actually named
31211 something starting with __ and the normal name is an alias. */
31212 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31215 char (*f) () = setproctitle;
31224 return f != setproctitle;
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31231 (eval $ac_link) 2>conftest.er1
31233 grep -v '^ *+' conftest.er1 >conftest.err
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag"
31239 || test ! -s conftest.err'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest$ac_exeext'
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; }; then
31251 ac_cv_func_setproctitle=yes
31253 echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31256 ac_cv_func_setproctitle=no
31258 rm -f conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
31261 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31262 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31263 if test $ac_cv_func_setproctitle = yes; then
31264 have_setproctitle=yes
31267 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31268 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31269 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31272 ac_check_lib_save_LIBS=$LIBS
31273 LIBS="-lutil $LIBS"
31274 cat >conftest.$ac_ext <<_ACEOF
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h. */
31281 /* Override any gcc2 internal prototype to avoid an error. */
31285 /* We use char because int might match the return type of a gcc2
31286 builtin and then its argument prototype would still apply. */
31287 char setproctitle ();
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31298 (eval $ac_link) 2>conftest.er1
31300 grep -v '^ *+' conftest.er1 >conftest.err
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } &&
31305 { ac_try='test -z "$ac_c_werror_flag"
31306 || test ! -s conftest.err'
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 ac_cv_lib_util_setproctitle=yes
31320 echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31323 ac_cv_lib_util_setproctitle=no
31325 rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31329 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31330 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31331 if test $ac_cv_lib_util_setproctitle = yes; then
31332 have_setproctitle=yes
31333 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31335 have_setproctitle=no
31337 "setproctitle.$ac_objext" | \
31338 *" setproctitle.$ac_objext" | \
31339 "setproctitle.$ac_objext "* | \
31340 *" setproctitle.$ac_objext "* ) ;;
31341 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31344 LIBSRCS="$LIBSRCS setproctitle.c"
31350 if test $have_setproctitle = yes ; then
31352 cat >>confdefs.h <<\_ACEOF
31353 #define HAVE_SETPROCTITLE 1
31359 if test $ol_enable_slp != no ; then
31361 for ac_header in slp.h
31363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31365 echo "$as_me:$LINENO: checking for $ac_header" >&5
31366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31373 # Is the header compilable?
31374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31376 cat >conftest.$ac_ext <<_ACEOF
31379 cat confdefs.h >>conftest.$ac_ext
31380 cat >>conftest.$ac_ext <<_ACEOF
31381 /* end confdefs.h. */
31382 $ac_includes_default
31383 #include <$ac_header>
31385 rm -f conftest.$ac_objext
31386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387 (eval $ac_compile) 2>conftest.er1
31389 grep -v '^ *+' conftest.er1 >conftest.err
31391 cat conftest.err >&5
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
31394 { ac_try='test -z "$ac_c_werror_flag"
31395 || test ! -s conftest.err'
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; } &&
31401 { ac_try='test -s conftest.$ac_objext'
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 ac_header_compiler=yes
31409 echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31412 ac_header_compiler=no
31414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 echo "${ECHO_T}$ac_header_compiler" >&6
31418 # Is the header present?
31419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31421 cat >conftest.$ac_ext <<_ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 #include <$ac_header>
31429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31432 grep -v '^ *+' conftest.er1 >conftest.err
31434 cat conftest.err >&5
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); } >/dev/null; then
31437 if test -s conftest.err; then
31438 ac_cpp_err=$ac_c_preproc_warn_flag
31439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31446 if test -z "$ac_cpp_err"; then
31447 ac_header_preproc=yes
31449 echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31452 ac_header_preproc=no
31454 rm -f conftest.err conftest.$ac_ext
31455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 echo "${ECHO_T}$ac_header_preproc" >&6
31458 # So? What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465 ac_header_preproc=yes
31468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31482 ## --------------------------------------------- ##
31483 ## Report this to <http://www.openldap.org/its/> ##
31484 ## --------------------------------------------- ##
31487 sed "s/^/$as_me: WARNING: /" >&2
31490 echo "$as_me:$LINENO: checking for $ac_header" >&5
31491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31493 echo $ECHO_N "(cached) $ECHO_C" >&6
31495 eval "$as_ac_Header=\$ac_header_preproc"
31497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31502 cat >>confdefs.h <<_ACEOF
31503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31511 if test $ac_cv_header_slp_h = yes ; then
31512 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31513 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31514 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31515 echo $ECHO_N "(cached) $ECHO_C" >&6
31517 ac_check_lib_save_LIBS=$LIBS
31519 cat >conftest.$ac_ext <<_ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31526 /* Override any gcc2 internal prototype to avoid an error. */
31530 /* We use char because int might match the return type of a gcc2
31531 builtin and then its argument prototype would still apply. */
31541 rm -f conftest.$ac_objext conftest$ac_exeext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31543 (eval $ac_link) 2>conftest.er1
31545 grep -v '^ *+' conftest.er1 >conftest.err
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag"
31551 || test ! -s conftest.err'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try='test -s conftest$ac_exeext'
31558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559 (eval $ac_try) 2>&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); }; }; then
31563 ac_cv_lib_slp_SLPOpen=yes
31565 echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31568 ac_cv_lib_slp_SLPOpen=no
31570 rm -f conftest.err conftest.$ac_objext \
31571 conftest$ac_exeext conftest.$ac_ext
31572 LIBS=$ac_check_lib_save_LIBS
31574 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31575 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31576 if test $ac_cv_lib_slp_SLPOpen = yes; then
31582 if test $have_slp = yes ; then
31584 cat >>confdefs.h <<\_ACEOF
31588 SLAPD_SLP_LIBS=-lslp
31591 elif test $ol_enable_slp = yes ; then
31592 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31593 echo "$as_me: error: SLP not found" >&2;}
31594 { (exit 1); exit 1; }; }
31599 echo "$as_me:$LINENO: checking for mode_t" >&5
31600 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31601 if test "${ac_cv_type_mode_t+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31604 cat >conftest.$ac_ext <<_ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31610 $ac_includes_default
31616 if (sizeof (mode_t))
31622 rm -f conftest.$ac_objext
31623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31624 (eval $ac_compile) 2>conftest.er1
31626 grep -v '^ *+' conftest.er1 >conftest.err
31628 cat conftest.err >&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); } &&
31631 { ac_try='test -z "$ac_c_werror_flag"
31632 || test ! -s conftest.err'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; } &&
31638 { ac_try='test -s conftest.$ac_objext'
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; }; then
31644 ac_cv_type_mode_t=yes
31646 echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31649 ac_cv_type_mode_t=no
31651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31653 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31654 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31655 if test $ac_cv_type_mode_t = yes; then
31659 cat >>confdefs.h <<_ACEOF
31665 echo "$as_me:$LINENO: checking for off_t" >&5
31666 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31667 if test "${ac_cv_type_off_t+set}" = set; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 $ac_includes_default
31682 if (sizeof (off_t))
31688 rm -f conftest.$ac_objext
31689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31690 (eval $ac_compile) 2>conftest.er1
31692 grep -v '^ *+' conftest.er1 >conftest.err
31694 cat conftest.err >&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); } &&
31697 { ac_try='test -z "$ac_c_werror_flag"
31698 || test ! -s conftest.err'
31699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700 (eval $ac_try) 2>&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); }; } &&
31704 { ac_try='test -s conftest.$ac_objext'
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; }; then
31710 ac_cv_type_off_t=yes
31712 echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31715 ac_cv_type_off_t=no
31717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31719 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31720 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31721 if test $ac_cv_type_off_t = yes; then
31725 cat >>confdefs.h <<_ACEOF
31731 echo "$as_me:$LINENO: checking for pid_t" >&5
31732 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31733 if test "${ac_cv_type_pid_t+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31736 cat >conftest.$ac_ext <<_ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h. */
31742 $ac_includes_default
31748 if (sizeof (pid_t))
31754 rm -f conftest.$ac_objext
31755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31756 (eval $ac_compile) 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } &&
31763 { ac_try='test -z "$ac_c_werror_flag"
31764 || test ! -s conftest.err'
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
31770 { ac_try='test -s conftest.$ac_objext'
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 ac_cv_type_pid_t=yes
31778 echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31781 ac_cv_type_pid_t=no
31783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31785 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31786 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31787 if test $ac_cv_type_pid_t = yes; then
31791 cat >>confdefs.h <<_ACEOF
31797 echo "$as_me:$LINENO: checking for ssize_t" >&5
31798 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31799 if test "${ac_cv_type_ssize_t+set}" = set; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31802 cat >conftest.$ac_ext <<_ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h. */
31808 $ac_includes_default
31814 if (sizeof (ssize_t))
31820 rm -f conftest.$ac_objext
31821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31822 (eval $ac_compile) 2>conftest.er1
31824 grep -v '^ *+' conftest.er1 >conftest.err
31826 cat conftest.err >&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); } &&
31829 { ac_try='test -z "$ac_c_werror_flag"
31830 || test ! -s conftest.err'
31831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832 (eval $ac_try) 2>&5
31834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); }; } &&
31836 { ac_try='test -s conftest.$ac_objext'
31837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31838 (eval $ac_try) 2>&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
31842 ac_cv_type_ssize_t=yes
31844 echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31847 ac_cv_type_ssize_t=no
31849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31851 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31852 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31853 if test $ac_cv_type_ssize_t = yes; then
31857 cat >>confdefs.h <<_ACEOF
31858 #define ssize_t signed int
31863 echo "$as_me:$LINENO: checking for caddr_t" >&5
31864 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31865 if test "${ac_cv_type_caddr_t+set}" = set; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31868 cat >conftest.$ac_ext <<_ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31874 $ac_includes_default
31880 if (sizeof (caddr_t))
31886 rm -f conftest.$ac_objext
31887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31888 (eval $ac_compile) 2>conftest.er1
31890 grep -v '^ *+' conftest.er1 >conftest.err
31892 cat conftest.err >&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
31895 { ac_try='test -z "$ac_c_werror_flag"
31896 || test ! -s conftest.err'
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; } &&
31902 { ac_try='test -s conftest.$ac_objext'
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; }; then
31908 ac_cv_type_caddr_t=yes
31910 echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31913 ac_cv_type_caddr_t=no
31915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31917 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31918 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31919 if test $ac_cv_type_caddr_t = yes; then
31923 cat >>confdefs.h <<_ACEOF
31924 #define caddr_t char *
31929 echo "$as_me:$LINENO: checking for size_t" >&5
31930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31931 if test "${ac_cv_type_size_t+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31934 cat >conftest.$ac_ext <<_ACEOF
31937 cat confdefs.h >>conftest.$ac_ext
31938 cat >>conftest.$ac_ext <<_ACEOF
31939 /* end confdefs.h. */
31940 $ac_includes_default
31946 if (sizeof (size_t))
31952 rm -f conftest.$ac_objext
31953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31954 (eval $ac_compile) 2>conftest.er1
31956 grep -v '^ *+' conftest.er1 >conftest.err
31958 cat conftest.err >&5
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } &&
31961 { ac_try='test -z "$ac_c_werror_flag"
31962 || test ! -s conftest.err'
31963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31964 (eval $ac_try) 2>&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); }; } &&
31968 { ac_try='test -s conftest.$ac_objext'
31969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970 (eval $ac_try) 2>&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; }; then
31974 ac_cv_type_size_t=yes
31976 echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31979 ac_cv_type_size_t=no
31981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31983 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31984 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31985 if test $ac_cv_type_size_t = yes; then
31989 cat >>confdefs.h <<_ACEOF
31990 #define size_t unsigned
31996 echo "$as_me:$LINENO: checking for long long" >&5
31997 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31998 if test "${ac_cv_type_long_long+set}" = set; then
31999 echo $ECHO_N "(cached) $ECHO_C" >&6
32001 cat >conftest.$ac_ext <<_ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h. */
32007 $ac_includes_default
32011 if ((long long *) 0)
32013 if (sizeof (long long))
32019 rm -f conftest.$ac_objext
32020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32021 (eval $ac_compile) 2>conftest.er1
32023 grep -v '^ *+' conftest.er1 >conftest.err
32025 cat conftest.err >&5
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } &&
32028 { ac_try='test -z "$ac_c_werror_flag"
32029 || test ! -s conftest.err'
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; } &&
32035 { ac_try='test -s conftest.$ac_objext'
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
32041 ac_cv_type_long_long=yes
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32046 ac_cv_type_long_long=no
32048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32050 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32051 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32052 if test $ac_cv_type_long_long = yes; then
32054 cat >>confdefs.h <<_ACEOF
32055 #define HAVE_LONG_LONG 1
32061 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32062 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32063 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32064 echo $ECHO_N "(cached) $ECHO_C" >&6
32066 cat >conftest.$ac_ext <<_ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32072 $ac_includes_default
32076 if ((ptrdiff_t *) 0)
32078 if (sizeof (ptrdiff_t))
32084 rm -f conftest.$ac_objext
32085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32086 (eval $ac_compile) 2>conftest.er1
32088 grep -v '^ *+' conftest.er1 >conftest.err
32090 cat conftest.err >&5
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); } &&
32093 { ac_try='test -z "$ac_c_werror_flag"
32094 || test ! -s conftest.err'
32095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096 (eval $ac_try) 2>&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; } &&
32100 { ac_try='test -s conftest.$ac_objext'
32101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102 (eval $ac_try) 2>&5
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); }; }; then
32106 ac_cv_type_ptrdiff_t=yes
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_cv_type_ptrdiff_t=no
32113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32115 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32116 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32117 if test $ac_cv_type_ptrdiff_t = yes; then
32119 cat >>confdefs.h <<_ACEOF
32120 #define HAVE_PTRDIFF_T 1
32128 echo "$as_me:$LINENO: checking for socklen_t" >&5
32129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32130 if test "${ac_cv_type_socklen_t+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32139 $ac_includes_default
32140 #ifdef HAVE_SYS_SOCKET_H
32141 #include <sys/socket.h>
32147 if ((socklen_t *) 0)
32149 if (sizeof (socklen_t))
32155 rm -f conftest.$ac_objext
32156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32157 (eval $ac_compile) 2>conftest.er1
32159 grep -v '^ *+' conftest.er1 >conftest.err
32161 cat conftest.err >&5
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); } &&
32164 { ac_try='test -z "$ac_c_werror_flag"
32165 || test ! -s conftest.err'
32166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167 (eval $ac_try) 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
32177 ac_cv_type_socklen_t=yes
32179 echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32182 ac_cv_type_socklen_t=no
32184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32186 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32187 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32190 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32191 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32192 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32196 set socklen_t int unsigned "unsigned long" long size_t
32197 test "$ac_cv_type_socklen_t" = yes || shift
32198 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32199 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32200 cat >conftest.$ac_ext <<_ACEOF
32203 cat confdefs.h >>conftest.$ac_ext
32204 cat >>conftest.$ac_ext <<_ACEOF
32205 /* end confdefs.h. */
32206 $ac_includes_default
32207 #ifdef HAVE_SYS_SOCKET_H
32208 #include <sys/socket.h>
32210 extern int accept(int s, $addrtype *ap, $lentype *lp);
32216 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32222 rm -f conftest.$ac_objext
32223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32224 (eval $ac_compile) 2>conftest.er1
32226 grep -v '^ *+' conftest.er1 >conftest.err
32228 cat conftest.err >&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
32231 { ac_try='test -z "$ac_c_werror_flag"
32232 || test ! -s conftest.err'
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; } &&
32238 { ac_try='test -s conftest.$ac_objext'
32239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240 (eval $ac_try) 2>&5
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; }; then
32244 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32246 echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32254 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32255 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32257 cat >>confdefs.h <<_ACEOF
32258 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32262 if test "$ac_cv_type_socklen_t" != yes; then
32264 cat >>confdefs.h <<_ACEOF
32265 #define socklen_t $ol_cv_type_ber_socklen_t
32271 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32272 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32273 if test "${ac_cv_type_signal+set}" = set; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32276 cat >conftest.$ac_ext <<_ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h. */
32282 #include <sys/types.h>
32283 #include <signal.h>
32288 extern "C" void (*signal (int, void (*)(int)))(int);
32290 void (*signal ()) ();
32301 rm -f conftest.$ac_objext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32303 (eval $ac_compile) 2>conftest.er1
32305 grep -v '^ *+' conftest.er1 >conftest.err
32307 cat conftest.err >&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
32310 { ac_try='test -z "$ac_c_werror_flag"
32311 || test ! -s conftest.err'
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest.$ac_objext'
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_type_signal=void
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32328 ac_cv_type_signal=int
32330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32332 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32333 echo "${ECHO_T}$ac_cv_type_signal" >&6
32335 cat >>confdefs.h <<_ACEOF
32336 #define RETSIGTYPE $ac_cv_type_signal
32341 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32342 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32343 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32346 cat >conftest.$ac_ext <<_ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h. */
32352 $ac_includes_default
32353 #include <signal.h>
32359 if ((sig_atomic_t *) 0)
32361 if (sizeof (sig_atomic_t))
32367 rm -f conftest.$ac_objext
32368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32369 (eval $ac_compile) 2>conftest.er1
32371 grep -v '^ *+' conftest.er1 >conftest.err
32373 cat conftest.err >&5
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } &&
32376 { ac_try='test -z "$ac_c_werror_flag"
32377 || test ! -s conftest.err'
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='test -s conftest.$ac_objext'
32384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385 (eval $ac_try) 2>&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; }; then
32389 ac_cv_type_sig_atomic_t=yes
32391 echo "$as_me: failed program was:" >&5
32392 sed 's/^/| /' conftest.$ac_ext >&5
32394 ac_cv_type_sig_atomic_t=no
32396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32398 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32399 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32400 if test $ac_cv_type_sig_atomic_t = yes; then
32404 cat >>confdefs.h <<_ACEOF
32405 #define sig_atomic_t int
32411 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32412 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32413 if test "${ac_cv_type_uid_t+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32416 cat >conftest.$ac_ext <<_ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h. */
32422 #include <sys/types.h>
32425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32426 $EGREP "uid_t" >/dev/null 2>&1; then
32427 ac_cv_type_uid_t=yes
32429 ac_cv_type_uid_t=no
32434 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32435 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32436 if test $ac_cv_type_uid_t = no; then
32438 cat >>confdefs.h <<\_ACEOF
32443 cat >>confdefs.h <<\_ACEOF
32450 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32451 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32452 if test "${ac_cv_header_time+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32455 cat >conftest.$ac_ext <<_ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h. */
32461 #include <sys/types.h>
32462 #include <sys/time.h>
32468 if ((struct tm *) 0)
32474 rm -f conftest.$ac_objext
32475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32476 (eval $ac_compile) 2>conftest.er1
32478 grep -v '^ *+' conftest.er1 >conftest.err
32480 cat conftest.err >&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } &&
32483 { ac_try='test -z "$ac_c_werror_flag"
32484 || test ! -s conftest.err'
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest.$ac_objext'
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496 ac_cv_header_time=yes
32498 echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32501 ac_cv_header_time=no
32503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32505 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32506 echo "${ECHO_T}$ac_cv_header_time" >&6
32507 if test $ac_cv_header_time = yes; then
32509 cat >>confdefs.h <<\_ACEOF
32510 #define TIME_WITH_SYS_TIME 1
32515 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32516 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32517 if test "${ac_cv_struct_tm+set}" = set; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32520 cat >conftest.$ac_ext <<_ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h. */
32526 #include <sys/types.h>
32532 struct tm *tp; tp->tm_sec;
32537 rm -f conftest.$ac_objext
32538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32539 (eval $ac_compile) 2>conftest.er1
32541 grep -v '^ *+' conftest.er1 >conftest.err
32543 cat conftest.err >&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } &&
32546 { ac_try='test -z "$ac_c_werror_flag"
32547 || test ! -s conftest.err'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest.$ac_objext'
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_cv_struct_tm=time.h
32561 echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32564 ac_cv_struct_tm=sys/time.h
32566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32568 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32569 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32570 if test $ac_cv_struct_tm = sys/time.h; then
32572 cat >>confdefs.h <<\_ACEOF
32573 #define TM_IN_SYS_TIME 1
32578 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32579 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32580 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32583 cat >conftest.$ac_ext <<_ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h. */
32589 $ac_includes_default
32593 static struct stat ac_aggr;
32594 if (ac_aggr.st_blksize)
32600 rm -f conftest.$ac_objext
32601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32602 (eval $ac_compile) 2>conftest.er1
32604 grep -v '^ *+' conftest.er1 >conftest.err
32606 cat conftest.err >&5
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); } &&
32609 { ac_try='test -z "$ac_c_werror_flag"
32610 || test ! -s conftest.err'
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest.$ac_objext'
32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618 (eval $ac_try) 2>&5
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
32622 ac_cv_member_struct_stat_st_blksize=yes
32624 echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32627 cat >conftest.$ac_ext <<_ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h. */
32633 $ac_includes_default
32637 static struct stat ac_aggr;
32638 if (sizeof ac_aggr.st_blksize)
32644 rm -f conftest.$ac_objext
32645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32646 (eval $ac_compile) 2>conftest.er1
32648 grep -v '^ *+' conftest.er1 >conftest.err
32650 cat conftest.err >&5
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); } &&
32653 { ac_try='test -z "$ac_c_werror_flag"
32654 || test ! -s conftest.err'
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; } &&
32660 { ac_try='test -s conftest.$ac_objext'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; }; then
32666 ac_cv_member_struct_stat_st_blksize=yes
32668 echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32671 ac_cv_member_struct_stat_st_blksize=no
32673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32677 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32679 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32681 cat >>confdefs.h <<_ACEOF
32682 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32688 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32689 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32690 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32691 echo $ECHO_N "(cached) $ECHO_C" >&6
32693 cat >conftest.$ac_ext <<_ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h. */
32699 $ac_includes_default
32705 static struct passwd ac_aggr;
32706 if (ac_aggr.pw_gecos)
32712 rm -f conftest.$ac_objext
32713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32714 (eval $ac_compile) 2>conftest.er1
32716 grep -v '^ *+' conftest.er1 >conftest.err
32718 cat conftest.err >&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } &&
32721 { ac_try='test -z "$ac_c_werror_flag"
32722 || test ! -s conftest.err'
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; } &&
32728 { ac_try='test -s conftest.$ac_objext'
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; }; then
32734 ac_cv_member_struct_passwd_pw_gecos=yes
32736 echo "$as_me: failed program was:" >&5
32737 sed 's/^/| /' conftest.$ac_ext >&5
32739 cat >conftest.$ac_ext <<_ACEOF
32742 cat confdefs.h >>conftest.$ac_ext
32743 cat >>conftest.$ac_ext <<_ACEOF
32744 /* end confdefs.h. */
32745 $ac_includes_default
32751 static struct passwd ac_aggr;
32752 if (sizeof ac_aggr.pw_gecos)
32758 rm -f conftest.$ac_objext
32759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32760 (eval $ac_compile) 2>conftest.er1
32762 grep -v '^ *+' conftest.er1 >conftest.err
32764 cat conftest.err >&5
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); } &&
32767 { ac_try='test -z "$ac_c_werror_flag"
32768 || test ! -s conftest.err'
32769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770 (eval $ac_try) 2>&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; } &&
32774 { ac_try='test -s conftest.$ac_objext'
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
32780 ac_cv_member_struct_passwd_pw_gecos=yes
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32785 ac_cv_member_struct_passwd_pw_gecos=no
32787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32792 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32793 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32795 cat >>confdefs.h <<_ACEOF
32796 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32802 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32803 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32804 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32807 cat >conftest.$ac_ext <<_ACEOF
32810 cat confdefs.h >>conftest.$ac_ext
32811 cat >>conftest.$ac_ext <<_ACEOF
32812 /* end confdefs.h. */
32813 $ac_includes_default
32819 static struct passwd ac_aggr;
32820 if (ac_aggr.pw_passwd)
32826 rm -f conftest.$ac_objext
32827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32828 (eval $ac_compile) 2>conftest.er1
32830 grep -v '^ *+' conftest.er1 >conftest.err
32832 cat conftest.err >&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
32835 { ac_try='test -z "$ac_c_werror_flag"
32836 || test ! -s conftest.err'
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 ac_cv_member_struct_passwd_pw_passwd=yes
32850 echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32853 cat >conftest.$ac_ext <<_ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h. */
32859 $ac_includes_default
32865 static struct passwd ac_aggr;
32866 if (sizeof ac_aggr.pw_passwd)
32872 rm -f conftest.$ac_objext
32873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32874 (eval $ac_compile) 2>conftest.er1
32876 grep -v '^ *+' conftest.er1 >conftest.err
32878 cat conftest.err >&5
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); } &&
32881 { ac_try='test -z "$ac_c_werror_flag"
32882 || test ! -s conftest.err'
32883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884 (eval $ac_try) 2>&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; } &&
32888 { ac_try='test -s conftest.$ac_objext'
32889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32890 (eval $ac_try) 2>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; }; then
32894 ac_cv_member_struct_passwd_pw_passwd=yes
32896 echo "$as_me: failed program was:" >&5
32897 sed 's/^/| /' conftest.$ac_ext >&5
32899 ac_cv_member_struct_passwd_pw_passwd=no
32901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32906 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32907 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32909 cat >>confdefs.h <<_ACEOF
32910 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32917 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32918 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32919 if test "${ol_cv_c_upper_lower+set}" = set; then
32920 echo $ECHO_N "(cached) $ECHO_C" >&6
32923 if test "$cross_compiling" = yes; then
32924 ol_cv_c_upper_lower=safe
32926 cat >conftest.$ac_ext <<_ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32936 if ('C' == toupper('C'))
32942 rm -f conftest$ac_exeext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32944 (eval $ac_link) 2>&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949 (eval $ac_try) 2>&5
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); }; }; then
32953 ol_cv_c_upper_lower=no
32955 echo "$as_me: program exited with status $ac_status" >&5
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32959 ( exit $ac_status )
32960 ol_cv_c_upper_lower=yes
32962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32965 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32966 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32967 if test $ol_cv_c_upper_lower != no ; then
32969 cat >>confdefs.h <<\_ACEOF
32970 #define C_UPPER_LOWER 1
32975 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32977 if test "${ac_cv_c_const+set}" = set; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32980 cat >conftest.$ac_ext <<_ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h. */
32990 /* FIXME: Include the comments suggested by Paul. */
32991 #ifndef __cplusplus
32992 /* Ultrix mips cc rejects this. */
32993 typedef int charset[2];
32995 /* SunOS 4.1.1 cc rejects this. */
32996 char const *const *ccp;
32998 /* NEC SVR4.0.2 mips cc rejects this. */
32999 struct point {int x, y;};
33000 static struct point const zero = {0,0};
33001 /* AIX XL C 1.02.0.0 rejects this.
33002 It does not let you subtract one const X* pointer from another in
33003 an arm of an if-expression whose if-part is not a constant
33005 const char *g = "string";
33006 ccp = &g + (g ? g-g : 0);
33007 /* HPUX 7.0 cc rejects these. */
33010 ccp = (char const *const *) p;
33011 { /* SCO 3.2v4 cc rejects this. */
33013 char const *s = 0 ? (char *) 0 : (char const *) 0;
33017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33018 int x[] = {25, 17};
33019 const int *foo = &x[0];
33022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33023 typedef const int *iptr;
33027 { /* AIX XL C 1.02.0.0 rejects this saying
33028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33029 struct s { int j; const int *ap[3]; };
33030 struct s *b; b->j = 5;
33032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33033 const int foo = 10;
33041 rm -f conftest.$ac_objext
33042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33043 (eval $ac_compile) 2>conftest.er1
33045 grep -v '^ *+' conftest.er1 >conftest.err
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } &&
33050 { ac_try='test -z "$ac_c_werror_flag"
33051 || test ! -s conftest.err'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; } &&
33057 { ac_try='test -s conftest.$ac_objext'
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33065 echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33072 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33073 echo "${ECHO_T}$ac_cv_c_const" >&6
33074 if test $ac_cv_c_const = no; then
33076 cat >>confdefs.h <<\_ACEOF
33082 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33083 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33084 if test "${ol_cv_c_volatile+set}" = set; then
33085 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 cat >conftest.$ac_ext <<_ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h. */
33097 volatile int a; int * volatile b = x ? &y : &z;
33098 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33104 rm -f conftest.$ac_objext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33106 (eval $ac_compile) 2>conftest.er1
33108 grep -v '^ *+' conftest.er1 >conftest.err
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } &&
33113 { ac_try='test -z "$ac_c_werror_flag"
33114 || test ! -s conftest.err'
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; } &&
33120 { ac_try='test -s conftest.$ac_objext'
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126 ol_cv_c_volatile=yes
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33131 ol_cv_c_volatile=no
33133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33135 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33136 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33137 if test $ol_cv_c_volatile = yes; then
33141 cat >>confdefs.h <<\_ACEOF
33148 if test $cross_compiling = yes ; then
33149 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33150 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33152 cat >>confdefs.h <<\_ACEOF
33153 #define CROSS_COMPILING 1
33157 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33158 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33159 if test "${ac_cv_c_bigendian+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33162 # See if sys/param.h defines the BYTE_ORDER macro.
33163 cat >conftest.$ac_ext <<_ACEOF
33166 cat confdefs.h >>conftest.$ac_ext
33167 cat >>conftest.$ac_ext <<_ACEOF
33168 /* end confdefs.h. */
33169 #include <sys/types.h>
33170 #include <sys/param.h>
33175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33176 bogus endian macros
33183 rm -f conftest.$ac_objext
33184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33185 (eval $ac_compile) 2>conftest.er1
33187 grep -v '^ *+' conftest.er1 >conftest.err
33189 cat conftest.err >&5
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); } &&
33192 { ac_try='test -z "$ac_c_werror_flag"
33193 || test ! -s conftest.err'
33194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33195 (eval $ac_try) 2>&5
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); }; } &&
33199 { ac_try='test -s conftest.$ac_objext'
33200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33201 (eval $ac_try) 2>&5
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); }; }; then
33205 # It does; now see whether it defined to BIG_ENDIAN or not.
33206 cat >conftest.$ac_ext <<_ACEOF
33209 cat confdefs.h >>conftest.$ac_ext
33210 cat >>conftest.$ac_ext <<_ACEOF
33211 /* end confdefs.h. */
33212 #include <sys/types.h>
33213 #include <sys/param.h>
33218 #if BYTE_ORDER != BIG_ENDIAN
33226 rm -f conftest.$ac_objext
33227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33228 (eval $ac_compile) 2>conftest.er1
33230 grep -v '^ *+' conftest.er1 >conftest.err
33232 cat conftest.err >&5
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); } &&
33235 { ac_try='test -z "$ac_c_werror_flag"
33236 || test ! -s conftest.err'
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; } &&
33242 { ac_try='test -s conftest.$ac_objext'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248 ac_cv_c_bigendian=yes
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 ac_cv_c_bigendian=no
33255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33257 echo "$as_me: failed program was:" >&5
33258 sed 's/^/| /' conftest.$ac_ext >&5
33260 # It does not; compile a test program.
33261 if test "$cross_compiling" = yes; then
33262 # try to guess the endianness by grepping values into an object file
33263 ac_cv_c_bigendian=unknown
33264 cat >conftest.$ac_ext <<_ACEOF
33267 cat confdefs.h >>conftest.$ac_ext
33268 cat >>conftest.$ac_ext <<_ACEOF
33269 /* end confdefs.h. */
33270 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33271 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33272 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33273 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33274 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33275 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33279 _ascii (); _ebcdic ();
33284 rm -f conftest.$ac_objext
33285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33286 (eval $ac_compile) 2>conftest.er1
33288 grep -v '^ *+' conftest.er1 >conftest.err
33290 cat conftest.err >&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } &&
33293 { ac_try='test -z "$ac_c_werror_flag"
33294 || test ! -s conftest.err'
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; } &&
33300 { ac_try='test -s conftest.$ac_objext'
33301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33302 (eval $ac_try) 2>&5
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; }; then
33306 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33307 ac_cv_c_bigendian=yes
33309 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33310 if test "$ac_cv_c_bigendian" = unknown; then
33311 ac_cv_c_bigendian=no
33313 # finding both strings is unlikely to happen, but who knows?
33314 ac_cv_c_bigendian=unknown
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33324 cat >conftest.$ac_ext <<_ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33333 /* Are we little or big endian? From Harbison&Steele. */
33337 char c[sizeof (long)];
33340 exit (u.c[sizeof (long) - 1] == 1);
33343 rm -f conftest$ac_exeext
33344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33345 (eval $ac_link) 2>&5
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 ac_cv_c_bigendian=no
33356 echo "$as_me: program exited with status $ac_status" >&5
33357 echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33360 ( exit $ac_status )
33361 ac_cv_c_bigendian=yes
33363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33368 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33369 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33370 case $ac_cv_c_bigendian in
33373 cat >>confdefs.h <<\_ACEOF
33374 #define WORDS_BIGENDIAN 1
33380 { { echo "$as_me:$LINENO: error: unknown endianness
33381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33382 echo "$as_me: error: unknown endianness
33383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33384 { (exit 1); exit 1; }; } ;;
33389 echo "$as_me:$LINENO: checking for short" >&5
33390 echo $ECHO_N "checking for short... $ECHO_C" >&6
33391 if test "${ac_cv_type_short+set}" = set; then
33392 echo $ECHO_N "(cached) $ECHO_C" >&6
33394 cat >conftest.$ac_ext <<_ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h. */
33400 $ac_includes_default
33406 if (sizeof (short))
33412 rm -f conftest.$ac_objext
33413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33414 (eval $ac_compile) 2>conftest.er1
33416 grep -v '^ *+' conftest.er1 >conftest.err
33418 cat conftest.err >&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } &&
33421 { ac_try='test -z "$ac_c_werror_flag"
33422 || test ! -s conftest.err'
33423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424 (eval $ac_try) 2>&5
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); }; } &&
33428 { ac_try='test -s conftest.$ac_objext'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434 ac_cv_type_short=yes
33436 echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33439 ac_cv_type_short=no
33441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33443 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33444 echo "${ECHO_T}$ac_cv_type_short" >&6
33446 echo "$as_me:$LINENO: checking size of short" >&5
33447 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33448 if test "${ac_cv_sizeof_short+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 if test "$ac_cv_type_short" = yes; then
33452 # The cast to unsigned long works around a bug in the HP C Compiler
33453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33455 # This bug is HP SR number 8606223364.
33456 if test "$cross_compiling" = yes; then
33457 # Depending upon the size, compute the lo and hi bounds.
33458 cat >conftest.$ac_ext <<_ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h. */
33464 $ac_includes_default
33468 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33475 rm -f conftest.$ac_objext
33476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33477 (eval $ac_compile) 2>conftest.er1
33479 grep -v '^ *+' conftest.er1 >conftest.err
33481 cat conftest.err >&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); } &&
33484 { ac_try='test -z "$ac_c_werror_flag"
33485 || test ! -s conftest.err'
33486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487 (eval $ac_try) 2>&5
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); }; } &&
33491 { ac_try='test -s conftest.$ac_objext'
33492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493 (eval $ac_try) 2>&5
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); }; }; then
33499 cat >conftest.$ac_ext <<_ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33505 $ac_includes_default
33509 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33516 rm -f conftest.$ac_objext
33517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33518 (eval $ac_compile) 2>conftest.er1
33520 grep -v '^ *+' conftest.er1 >conftest.err
33522 cat conftest.err >&5
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } &&
33525 { ac_try='test -z "$ac_c_werror_flag"
33526 || test ! -s conftest.err'
33527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 (eval $ac_try) 2>&5
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; } &&
33532 { ac_try='test -s conftest.$ac_objext'
33533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33534 (eval $ac_try) 2>&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 ac_hi=$ac_mid; break
33540 echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33543 ac_lo=`expr $ac_mid + 1`
33544 if test $ac_lo -le $ac_mid; then
33548 ac_mid=`expr 2 '*' $ac_mid + 1`
33550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33553 echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33556 cat >conftest.$ac_ext <<_ACEOF
33559 cat confdefs.h >>conftest.$ac_ext
33560 cat >>conftest.$ac_ext <<_ACEOF
33561 /* end confdefs.h. */
33562 $ac_includes_default
33566 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33573 rm -f conftest.$ac_objext
33574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33575 (eval $ac_compile) 2>conftest.er1
33577 grep -v '^ *+' conftest.er1 >conftest.err
33579 cat conftest.err >&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } &&
33582 { ac_try='test -z "$ac_c_werror_flag"
33583 || test ! -s conftest.err'
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest.$ac_objext'
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33597 cat >conftest.$ac_ext <<_ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h. */
33603 $ac_includes_default
33607 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33614 rm -f conftest.$ac_objext
33615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33616 (eval $ac_compile) 2>conftest.er1
33618 grep -v '^ *+' conftest.er1 >conftest.err
33620 cat conftest.err >&5
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); } &&
33623 { ac_try='test -z "$ac_c_werror_flag"
33624 || test ! -s conftest.err'
33625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33626 (eval $ac_try) 2>&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); }; } &&
33630 { ac_try='test -s conftest.$ac_objext'
33631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632 (eval $ac_try) 2>&5
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); }; }; then
33636 ac_lo=$ac_mid; break
33638 echo "$as_me: failed program was:" >&5
33639 sed 's/^/| /' conftest.$ac_ext >&5
33641 ac_hi=`expr '(' $ac_mid ')' - 1`
33642 if test $ac_mid -le $ac_hi; then
33646 ac_mid=`expr 2 '*' $ac_mid`
33648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33651 echo "$as_me: failed program was:" >&5
33652 sed 's/^/| /' conftest.$ac_ext >&5
33656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33659 # Binary search between lo and hi bounds.
33660 while test "x$ac_lo" != "x$ac_hi"; do
33661 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33662 cat >conftest.$ac_ext <<_ACEOF
33665 cat confdefs.h >>conftest.$ac_ext
33666 cat >>conftest.$ac_ext <<_ACEOF
33667 /* end confdefs.h. */
33668 $ac_includes_default
33672 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33679 rm -f conftest.$ac_objext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33681 (eval $ac_compile) 2>conftest.er1
33683 grep -v '^ *+' conftest.er1 >conftest.err
33685 cat conftest.err >&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
33688 { ac_try='test -z "$ac_c_werror_flag"
33689 || test ! -s conftest.err'
33690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691 (eval $ac_try) 2>&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); }; } &&
33695 { ac_try='test -s conftest.$ac_objext'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; }; then
33703 echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33706 ac_lo=`expr '(' $ac_mid ')' + 1`
33708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33711 ?*) ac_cv_sizeof_short=$ac_lo;;
33712 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33713 See \`config.log' for more details." >&5
33714 echo "$as_me: error: cannot compute sizeof (short), 77
33715 See \`config.log' for more details." >&2;}
33716 { (exit 1); exit 1; }; } ;;
33719 if test "$cross_compiling" = yes; then
33720 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33721 See \`config.log' for more details." >&5
33722 echo "$as_me: error: cannot run test program while cross compiling
33723 See \`config.log' for more details." >&2;}
33724 { (exit 1); exit 1; }; }
33726 cat >conftest.$ac_ext <<_ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h. */
33732 $ac_includes_default
33733 long longval () { return (long) (sizeof (short)); }
33734 unsigned long ulongval () { return (long) (sizeof (short)); }
33736 #include <stdlib.h>
33741 FILE *f = fopen ("conftest.val", "w");
33744 if (((long) (sizeof (short))) < 0)
33746 long i = longval ();
33747 if (i != ((long) (sizeof (short))))
33749 fprintf (f, "%ld\n", i);
33753 unsigned long i = ulongval ();
33754 if (i != ((long) (sizeof (short))))
33756 fprintf (f, "%lu\n", i);
33758 exit (ferror (f) || fclose (f) != 0);
33764 rm -f conftest$ac_exeext
33765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33766 (eval $ac_link) 2>&5
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771 (eval $ac_try) 2>&5
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; }; then
33775 ac_cv_sizeof_short=`cat conftest.val`
33777 echo "$as_me: program exited with status $ac_status" >&5
33778 echo "$as_me: failed program was:" >&5
33779 sed 's/^/| /' conftest.$ac_ext >&5
33781 ( exit $ac_status )
33782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33783 See \`config.log' for more details." >&5
33784 echo "$as_me: error: cannot compute sizeof (short), 77
33785 See \`config.log' for more details." >&2;}
33786 { (exit 1); exit 1; }; }
33788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33793 ac_cv_sizeof_short=0
33796 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33797 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33798 cat >>confdefs.h <<_ACEOF
33799 #define SIZEOF_SHORT $ac_cv_sizeof_short
33803 echo "$as_me:$LINENO: checking for int" >&5
33804 echo $ECHO_N "checking for int... $ECHO_C" >&6
33805 if test "${ac_cv_type_int+set}" = set; then
33806 echo $ECHO_N "(cached) $ECHO_C" >&6
33808 cat >conftest.$ac_ext <<_ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h. */
33814 $ac_includes_default
33826 rm -f conftest.$ac_objext
33827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33828 (eval $ac_compile) 2>conftest.er1
33830 grep -v '^ *+' conftest.er1 >conftest.err
33832 cat conftest.err >&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); } &&
33835 { ac_try='test -z "$ac_c_werror_flag"
33836 || test ! -s conftest.err'
33837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33838 (eval $ac_try) 2>&5
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); }; } &&
33842 { ac_try='test -s conftest.$ac_objext'
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33850 echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33857 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33858 echo "${ECHO_T}$ac_cv_type_int" >&6
33860 echo "$as_me:$LINENO: checking size of int" >&5
33861 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33862 if test "${ac_cv_sizeof_int+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33865 if test "$ac_cv_type_int" = yes; then
33866 # The cast to unsigned long works around a bug in the HP C Compiler
33867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33869 # This bug is HP SR number 8606223364.
33870 if test "$cross_compiling" = yes; then
33871 # Depending upon the size, compute the lo and hi bounds.
33872 cat >conftest.$ac_ext <<_ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h. */
33878 $ac_includes_default
33882 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33889 rm -f conftest.$ac_objext
33890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33891 (eval $ac_compile) 2>conftest.er1
33893 grep -v '^ *+' conftest.er1 >conftest.err
33895 cat conftest.err >&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } &&
33898 { ac_try='test -z "$ac_c_werror_flag"
33899 || test ! -s conftest.err'
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; } &&
33905 { ac_try='test -s conftest.$ac_objext'
33906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907 (eval $ac_try) 2>&5
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33913 cat >conftest.$ac_ext <<_ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h. */
33919 $ac_includes_default
33923 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33930 rm -f conftest.$ac_objext
33931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33932 (eval $ac_compile) 2>conftest.er1
33934 grep -v '^ *+' conftest.er1 >conftest.err
33936 cat conftest.err >&5
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); } &&
33939 { ac_try='test -z "$ac_c_werror_flag"
33940 || test ! -s conftest.err'
33941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 (eval $ac_try) 2>&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; } &&
33946 { ac_try='test -s conftest.$ac_objext'
33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 (eval $ac_try) 2>&5
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; }; then
33952 ac_hi=$ac_mid; break
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_lo=`expr $ac_mid + 1`
33958 if test $ac_lo -le $ac_mid; then
33962 ac_mid=`expr 2 '*' $ac_mid + 1`
33964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33967 echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33970 cat >conftest.$ac_ext <<_ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h. */
33976 $ac_includes_default
33980 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
33987 rm -f conftest.$ac_objext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33989 (eval $ac_compile) 2>conftest.er1
33991 grep -v '^ *+' conftest.er1 >conftest.err
33993 cat conftest.err >&5
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } &&
33996 { ac_try='test -z "$ac_c_werror_flag"
33997 || test ! -s conftest.err'
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest.$ac_objext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34011 cat >conftest.$ac_ext <<_ACEOF
34014 cat confdefs.h >>conftest.$ac_ext
34015 cat >>conftest.$ac_ext <<_ACEOF
34016 /* end confdefs.h. */
34017 $ac_includes_default
34021 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34028 rm -f conftest.$ac_objext
34029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34030 (eval $ac_compile) 2>conftest.er1
34032 grep -v '^ *+' conftest.er1 >conftest.err
34034 cat conftest.err >&5
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } &&
34037 { ac_try='test -z "$ac_c_werror_flag"
34038 || test ! -s conftest.err'
34039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34040 (eval $ac_try) 2>&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; } &&
34044 { ac_try='test -s conftest.$ac_objext'
34045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046 (eval $ac_try) 2>&5
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; }; then
34050 ac_lo=$ac_mid; break
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_hi=`expr '(' $ac_mid ')' - 1`
34056 if test $ac_mid -le $ac_hi; then
34060 ac_mid=`expr 2 '*' $ac_mid`
34062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34065 echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073 # Binary search between lo and hi bounds.
34074 while test "x$ac_lo" != "x$ac_hi"; do
34075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34082 $ac_includes_default
34086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34093 rm -f conftest.$ac_objext
34094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34095 (eval $ac_compile) 2>conftest.er1
34097 grep -v '^ *+' conftest.er1 >conftest.err
34099 cat conftest.err >&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } &&
34102 { ac_try='test -z "$ac_c_werror_flag"
34103 || test ! -s conftest.err'
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } &&
34109 { ac_try='test -s conftest.$ac_objext'
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34117 echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34120 ac_lo=`expr '(' $ac_mid ')' + 1`
34122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34125 ?*) ac_cv_sizeof_int=$ac_lo;;
34126 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34127 See \`config.log' for more details." >&5
34128 echo "$as_me: error: cannot compute sizeof (int), 77
34129 See \`config.log' for more details." >&2;}
34130 { (exit 1); exit 1; }; } ;;
34133 if test "$cross_compiling" = yes; then
34134 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34135 See \`config.log' for more details." >&5
34136 echo "$as_me: error: cannot run test program while cross compiling
34137 See \`config.log' for more details." >&2;}
34138 { (exit 1); exit 1; }; }
34140 cat >conftest.$ac_ext <<_ACEOF
34143 cat confdefs.h >>conftest.$ac_ext
34144 cat >>conftest.$ac_ext <<_ACEOF
34145 /* end confdefs.h. */
34146 $ac_includes_default
34147 long longval () { return (long) (sizeof (int)); }
34148 unsigned long ulongval () { return (long) (sizeof (int)); }
34150 #include <stdlib.h>
34155 FILE *f = fopen ("conftest.val", "w");
34158 if (((long) (sizeof (int))) < 0)
34160 long i = longval ();
34161 if (i != ((long) (sizeof (int))))
34163 fprintf (f, "%ld\n", i);
34167 unsigned long i = ulongval ();
34168 if (i != ((long) (sizeof (int))))
34170 fprintf (f, "%lu\n", i);
34172 exit (ferror (f) || fclose (f) != 0);
34178 rm -f conftest$ac_exeext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34180 (eval $ac_link) 2>&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; }; then
34189 ac_cv_sizeof_int=`cat conftest.val`
34191 echo "$as_me: program exited with status $ac_status" >&5
34192 echo "$as_me: failed program was:" >&5
34193 sed 's/^/| /' conftest.$ac_ext >&5
34195 ( exit $ac_status )
34196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34197 See \`config.log' for more details." >&5
34198 echo "$as_me: error: cannot compute sizeof (int), 77
34199 See \`config.log' for more details." >&2;}
34200 { (exit 1); exit 1; }; }
34202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34210 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34211 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34212 cat >>confdefs.h <<_ACEOF
34213 #define SIZEOF_INT $ac_cv_sizeof_int
34217 echo "$as_me:$LINENO: checking for long" >&5
34218 echo $ECHO_N "checking for long... $ECHO_C" >&6
34219 if test "${ac_cv_type_long+set}" = set; then
34220 echo $ECHO_N "(cached) $ECHO_C" >&6
34222 cat >conftest.$ac_ext <<_ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h. */
34228 $ac_includes_default
34240 rm -f conftest.$ac_objext
34241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34242 (eval $ac_compile) 2>conftest.er1
34244 grep -v '^ *+' conftest.er1 >conftest.err
34246 cat conftest.err >&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } &&
34249 { ac_try='test -z "$ac_c_werror_flag"
34250 || test ! -s conftest.err'
34251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34252 (eval $ac_try) 2>&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); }; } &&
34256 { ac_try='test -s conftest.$ac_objext'
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; }; then
34262 ac_cv_type_long=yes
34264 echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34271 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34272 echo "${ECHO_T}$ac_cv_type_long" >&6
34274 echo "$as_me:$LINENO: checking size of long" >&5
34275 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34276 if test "${ac_cv_sizeof_long+set}" = set; then
34277 echo $ECHO_N "(cached) $ECHO_C" >&6
34279 if test "$ac_cv_type_long" = yes; then
34280 # The cast to unsigned long works around a bug in the HP C Compiler
34281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34283 # This bug is HP SR number 8606223364.
34284 if test "$cross_compiling" = yes; then
34285 # Depending upon the size, compute the lo and hi bounds.
34286 cat >conftest.$ac_ext <<_ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h. */
34292 $ac_includes_default
34296 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34303 rm -f conftest.$ac_objext
34304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34305 (eval $ac_compile) 2>conftest.er1
34307 grep -v '^ *+' conftest.er1 >conftest.err
34309 cat conftest.err >&5
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); } &&
34312 { ac_try='test -z "$ac_c_werror_flag"
34313 || test ! -s conftest.err'
34314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34315 (eval $ac_try) 2>&5
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); }; } &&
34319 { ac_try='test -s conftest.$ac_objext'
34320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321 (eval $ac_try) 2>&5
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; }; then
34327 cat >conftest.$ac_ext <<_ACEOF
34330 cat confdefs.h >>conftest.$ac_ext
34331 cat >>conftest.$ac_ext <<_ACEOF
34332 /* end confdefs.h. */
34333 $ac_includes_default
34337 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34344 rm -f conftest.$ac_objext
34345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34346 (eval $ac_compile) 2>conftest.er1
34348 grep -v '^ *+' conftest.er1 >conftest.err
34350 cat conftest.err >&5
34351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352 (exit $ac_status); } &&
34353 { ac_try='test -z "$ac_c_werror_flag"
34354 || test ! -s conftest.err'
34355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356 (eval $ac_try) 2>&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); }; } &&
34360 { ac_try='test -s conftest.$ac_objext'
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; }; then
34366 ac_hi=$ac_mid; break
34368 echo "$as_me: failed program was:" >&5
34369 sed 's/^/| /' conftest.$ac_ext >&5
34371 ac_lo=`expr $ac_mid + 1`
34372 if test $ac_lo -le $ac_mid; then
34376 ac_mid=`expr 2 '*' $ac_mid + 1`
34378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34381 echo "$as_me: failed program was:" >&5
34382 sed 's/^/| /' conftest.$ac_ext >&5
34384 cat >conftest.$ac_ext <<_ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h. */
34390 $ac_includes_default
34394 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34401 rm -f conftest.$ac_objext
34402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34403 (eval $ac_compile) 2>conftest.er1
34405 grep -v '^ *+' conftest.er1 >conftest.err
34407 cat conftest.err >&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
34410 { ac_try='test -z "$ac_c_werror_flag"
34411 || test ! -s conftest.err'
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; } &&
34417 { ac_try='test -s conftest.$ac_objext'
34418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419 (eval $ac_try) 2>&5
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); }; }; then
34425 cat >conftest.$ac_ext <<_ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 $ac_includes_default
34435 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34442 rm -f conftest.$ac_objext
34443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34444 (eval $ac_compile) 2>conftest.er1
34446 grep -v '^ *+' conftest.er1 >conftest.err
34448 cat conftest.err >&5
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); } &&
34451 { ac_try='test -z "$ac_c_werror_flag"
34452 || test ! -s conftest.err'
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; } &&
34458 { ac_try='test -s conftest.$ac_objext'
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
34464 ac_lo=$ac_mid; break
34466 echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34469 ac_hi=`expr '(' $ac_mid ')' - 1`
34470 if test $ac_mid -le $ac_hi; then
34474 ac_mid=`expr 2 '*' $ac_mid`
34476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34479 echo "$as_me: failed program was:" >&5
34480 sed 's/^/| /' conftest.$ac_ext >&5
34484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34487 # Binary search between lo and hi bounds.
34488 while test "x$ac_lo" != "x$ac_hi"; do
34489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34490 cat >conftest.$ac_ext <<_ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34496 $ac_includes_default
34500 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34507 rm -f conftest.$ac_objext
34508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34509 (eval $ac_compile) 2>conftest.er1
34511 grep -v '^ *+' conftest.er1 >conftest.err
34513 cat conftest.err >&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); } &&
34516 { ac_try='test -z "$ac_c_werror_flag"
34517 || test ! -s conftest.err'
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; } &&
34523 { ac_try='test -s conftest.$ac_objext'
34524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525 (eval $ac_try) 2>&5
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); }; }; then
34531 echo "$as_me: failed program was:" >&5
34532 sed 's/^/| /' conftest.$ac_ext >&5
34534 ac_lo=`expr '(' $ac_mid ')' + 1`
34536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34539 ?*) ac_cv_sizeof_long=$ac_lo;;
34540 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34541 See \`config.log' for more details." >&5
34542 echo "$as_me: error: cannot compute sizeof (long), 77
34543 See \`config.log' for more details." >&2;}
34544 { (exit 1); exit 1; }; } ;;
34547 if test "$cross_compiling" = yes; then
34548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34549 See \`config.log' for more details." >&5
34550 echo "$as_me: error: cannot run test program while cross compiling
34551 See \`config.log' for more details." >&2;}
34552 { (exit 1); exit 1; }; }
34554 cat >conftest.$ac_ext <<_ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 $ac_includes_default
34561 long longval () { return (long) (sizeof (long)); }
34562 unsigned long ulongval () { return (long) (sizeof (long)); }
34564 #include <stdlib.h>
34569 FILE *f = fopen ("conftest.val", "w");
34572 if (((long) (sizeof (long))) < 0)
34574 long i = longval ();
34575 if (i != ((long) (sizeof (long))))
34577 fprintf (f, "%ld\n", i);
34581 unsigned long i = ulongval ();
34582 if (i != ((long) (sizeof (long))))
34584 fprintf (f, "%lu\n", i);
34586 exit (ferror (f) || fclose (f) != 0);
34592 rm -f conftest$ac_exeext
34593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34594 (eval $ac_link) 2>&5
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34599 (eval $ac_try) 2>&5
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); }; }; then
34603 ac_cv_sizeof_long=`cat conftest.val`
34605 echo "$as_me: program exited with status $ac_status" >&5
34606 echo "$as_me: failed program was:" >&5
34607 sed 's/^/| /' conftest.$ac_ext >&5
34609 ( exit $ac_status )
34610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34611 See \`config.log' for more details." >&5
34612 echo "$as_me: error: cannot compute sizeof (long), 77
34613 See \`config.log' for more details." >&2;}
34614 { (exit 1); exit 1; }; }
34616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34621 ac_cv_sizeof_long=0
34624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34625 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34626 cat >>confdefs.h <<_ACEOF
34627 #define SIZEOF_LONG $ac_cv_sizeof_long
34631 echo "$as_me:$LINENO: checking for long long" >&5
34632 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34633 if test "${ac_cv_type_long_long+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34636 cat >conftest.$ac_ext <<_ACEOF
34639 cat confdefs.h >>conftest.$ac_ext
34640 cat >>conftest.$ac_ext <<_ACEOF
34641 /* end confdefs.h. */
34642 $ac_includes_default
34646 if ((long long *) 0)
34648 if (sizeof (long long))
34654 rm -f conftest.$ac_objext
34655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34656 (eval $ac_compile) 2>conftest.er1
34658 grep -v '^ *+' conftest.er1 >conftest.err
34660 cat conftest.err >&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } &&
34663 { ac_try='test -z "$ac_c_werror_flag"
34664 || test ! -s conftest.err'
34665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666 (eval $ac_try) 2>&5
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); }; } &&
34670 { ac_try='test -s conftest.$ac_objext'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676 ac_cv_type_long_long=yes
34678 echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34681 ac_cv_type_long_long=no
34683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34686 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34688 echo "$as_me:$LINENO: checking size of long long" >&5
34689 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34690 if test "${ac_cv_sizeof_long_long+set}" = set; then
34691 echo $ECHO_N "(cached) $ECHO_C" >&6
34693 if test "$ac_cv_type_long_long" = yes; then
34694 # The cast to unsigned long works around a bug in the HP C Compiler
34695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34697 # This bug is HP SR number 8606223364.
34698 if test "$cross_compiling" = yes; then
34699 # Depending upon the size, compute the lo and hi bounds.
34700 cat >conftest.$ac_ext <<_ACEOF
34703 cat confdefs.h >>conftest.$ac_ext
34704 cat >>conftest.$ac_ext <<_ACEOF
34705 /* end confdefs.h. */
34706 $ac_includes_default
34710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34717 rm -f conftest.$ac_objext
34718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34719 (eval $ac_compile) 2>conftest.er1
34721 grep -v '^ *+' conftest.er1 >conftest.err
34723 cat conftest.err >&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); } &&
34726 { ac_try='test -z "$ac_c_werror_flag"
34727 || test ! -s conftest.err'
34728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729 (eval $ac_try) 2>&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); }; } &&
34733 { ac_try='test -s conftest.$ac_objext'
34734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735 (eval $ac_try) 2>&5
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); }; }; then
34741 cat >conftest.$ac_ext <<_ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h. */
34747 $ac_includes_default
34751 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760 (eval $ac_compile) 2>conftest.er1
34762 grep -v '^ *+' conftest.er1 >conftest.err
34764 cat conftest.err >&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } &&
34767 { ac_try='test -z "$ac_c_werror_flag"
34768 || test ! -s conftest.err'
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; } &&
34774 { ac_try='test -s conftest.$ac_objext'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 ac_hi=$ac_mid; break
34782 echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34785 ac_lo=`expr $ac_mid + 1`
34786 if test $ac_lo -le $ac_mid; then
34790 ac_mid=`expr 2 '*' $ac_mid + 1`
34792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34795 echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34798 cat >conftest.$ac_ext <<_ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h. */
34804 $ac_includes_default
34808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34815 rm -f conftest.$ac_objext
34816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34817 (eval $ac_compile) 2>conftest.er1
34819 grep -v '^ *+' conftest.er1 >conftest.err
34821 cat conftest.err >&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } &&
34824 { ac_try='test -z "$ac_c_werror_flag"
34825 || test ! -s conftest.err'
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827 (eval $ac_try) 2>&5
34829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; } &&
34831 { ac_try='test -s conftest.$ac_objext'
34832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833 (eval $ac_try) 2>&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); }; }; then
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 $ac_includes_default
34849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34856 rm -f conftest.$ac_objext
34857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34858 (eval $ac_compile) 2>conftest.er1
34860 grep -v '^ *+' conftest.er1 >conftest.err
34862 cat conftest.err >&5
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); } &&
34865 { ac_try='test -z "$ac_c_werror_flag"
34866 || test ! -s conftest.err'
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; } &&
34872 { ac_try='test -s conftest.$ac_objext'
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878 ac_lo=$ac_mid; break
34880 echo "$as_me: failed program was:" >&5
34881 sed 's/^/| /' conftest.$ac_ext >&5
34883 ac_hi=`expr '(' $ac_mid ')' - 1`
34884 if test $ac_mid -le $ac_hi; then
34888 ac_mid=`expr 2 '*' $ac_mid`
34890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34893 echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34901 # Binary search between lo and hi bounds.
34902 while test "x$ac_lo" != "x$ac_hi"; do
34903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34904 cat >conftest.$ac_ext <<_ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h. */
34910 $ac_includes_default
34914 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34921 rm -f conftest.$ac_objext
34922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34923 (eval $ac_compile) 2>conftest.er1
34925 grep -v '^ *+' conftest.er1 >conftest.err
34927 cat conftest.err >&5
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); } &&
34930 { ac_try='test -z "$ac_c_werror_flag"
34931 || test ! -s conftest.err'
34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933 (eval $ac_try) 2>&5
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; } &&
34937 { ac_try='test -s conftest.$ac_objext'
34938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939 (eval $ac_try) 2>&5
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34945 echo "$as_me: failed program was:" >&5
34946 sed 's/^/| /' conftest.$ac_ext >&5
34948 ac_lo=`expr '(' $ac_mid ')' + 1`
34950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34953 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34955 See \`config.log' for more details." >&5
34956 echo "$as_me: error: cannot compute sizeof (long long), 77
34957 See \`config.log' for more details." >&2;}
34958 { (exit 1); exit 1; }; } ;;
34961 if test "$cross_compiling" = yes; then
34962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot run test program while cross compiling
34965 See \`config.log' for more details." >&2;}
34966 { (exit 1); exit 1; }; }
34968 cat >conftest.$ac_ext <<_ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974 $ac_includes_default
34975 long longval () { return (long) (sizeof (long long)); }
34976 unsigned long ulongval () { return (long) (sizeof (long long)); }
34978 #include <stdlib.h>
34983 FILE *f = fopen ("conftest.val", "w");
34986 if (((long) (sizeof (long long))) < 0)
34988 long i = longval ();
34989 if (i != ((long) (sizeof (long long))))
34991 fprintf (f, "%ld\n", i);
34995 unsigned long i = ulongval ();
34996 if (i != ((long) (sizeof (long long))))
34998 fprintf (f, "%lu\n", i);
35000 exit (ferror (f) || fclose (f) != 0);
35006 rm -f conftest$ac_exeext
35007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35008 (eval $ac_link) 2>&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013 (eval $ac_try) 2>&5
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); }; }; then
35017 ac_cv_sizeof_long_long=`cat conftest.val`
35019 echo "$as_me: program exited with status $ac_status" >&5
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35023 ( exit $ac_status )
35024 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35025 See \`config.log' for more details." >&5
35026 echo "$as_me: error: cannot compute sizeof (long long), 77
35027 See \`config.log' for more details." >&2;}
35028 { (exit 1); exit 1; }; }
35030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35035 ac_cv_sizeof_long_long=0
35038 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35039 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35040 cat >>confdefs.h <<_ACEOF
35041 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35045 echo "$as_me:$LINENO: checking for wchar_t" >&5
35046 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35047 if test "${ac_cv_type_wchar_t+set}" = set; then
35048 echo $ECHO_N "(cached) $ECHO_C" >&6
35050 cat >conftest.$ac_ext <<_ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h. */
35056 $ac_includes_default
35062 if (sizeof (wchar_t))
35068 rm -f conftest.$ac_objext
35069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35070 (eval $ac_compile) 2>conftest.er1
35072 grep -v '^ *+' conftest.er1 >conftest.err
35074 cat conftest.err >&5
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); } &&
35077 { ac_try='test -z "$ac_c_werror_flag"
35078 || test ! -s conftest.err'
35079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35080 (eval $ac_try) 2>&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); }; } &&
35084 { ac_try='test -s conftest.$ac_objext'
35085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086 (eval $ac_try) 2>&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); }; }; then
35090 ac_cv_type_wchar_t=yes
35092 echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35095 ac_cv_type_wchar_t=no
35097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35099 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35100 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35102 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35103 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35104 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35105 echo $ECHO_N "(cached) $ECHO_C" >&6
35107 if test "$ac_cv_type_wchar_t" = yes; then
35108 # The cast to unsigned long works around a bug in the HP C Compiler
35109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35111 # This bug is HP SR number 8606223364.
35112 if test "$cross_compiling" = yes; then
35113 # Depending upon the size, compute the lo and hi bounds.
35114 cat >conftest.$ac_ext <<_ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h. */
35120 $ac_includes_default
35124 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35131 rm -f conftest.$ac_objext
35132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35133 (eval $ac_compile) 2>conftest.er1
35135 grep -v '^ *+' conftest.er1 >conftest.err
35137 cat conftest.err >&5
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); } &&
35140 { ac_try='test -z "$ac_c_werror_flag"
35141 || test ! -s conftest.err'
35142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143 (eval $ac_try) 2>&5
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); }; } &&
35147 { ac_try='test -s conftest.$ac_objext'
35148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149 (eval $ac_try) 2>&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); }; }; then
35155 cat >conftest.$ac_ext <<_ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h. */
35161 $ac_includes_default
35165 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35172 rm -f conftest.$ac_objext
35173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35174 (eval $ac_compile) 2>conftest.er1
35176 grep -v '^ *+' conftest.er1 >conftest.err
35178 cat conftest.err >&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); } &&
35181 { ac_try='test -z "$ac_c_werror_flag"
35182 || test ! -s conftest.err'
35183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184 (eval $ac_try) 2>&5
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest.$ac_objext'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; }; then
35194 ac_hi=$ac_mid; break
35196 echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35199 ac_lo=`expr $ac_mid + 1`
35200 if test $ac_lo -le $ac_mid; then
35204 ac_mid=`expr 2 '*' $ac_mid + 1`
35206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 cat >conftest.$ac_ext <<_ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35218 $ac_includes_default
35222 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35229 rm -f conftest.$ac_objext
35230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35231 (eval $ac_compile) 2>conftest.er1
35233 grep -v '^ *+' conftest.er1 >conftest.err
35235 cat conftest.err >&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } &&
35238 { ac_try='test -z "$ac_c_werror_flag"
35239 || test ! -s conftest.err'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; } &&
35245 { ac_try='test -s conftest.$ac_objext'
35246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247 (eval $ac_try) 2>&5
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); }; }; then
35253 cat >conftest.$ac_ext <<_ACEOF
35256 cat confdefs.h >>conftest.$ac_ext
35257 cat >>conftest.$ac_ext <<_ACEOF
35258 /* end confdefs.h. */
35259 $ac_includes_default
35263 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35270 rm -f conftest.$ac_objext
35271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35272 (eval $ac_compile) 2>conftest.er1
35274 grep -v '^ *+' conftest.er1 >conftest.err
35276 cat conftest.err >&5
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
35279 { ac_try='test -z "$ac_c_werror_flag"
35280 || test ! -s conftest.err'
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; } &&
35286 { ac_try='test -s conftest.$ac_objext'
35287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288 (eval $ac_try) 2>&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); }; }; then
35292 ac_lo=$ac_mid; break
35294 echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35297 ac_hi=`expr '(' $ac_mid ')' - 1`
35298 if test $ac_mid -le $ac_hi; then
35302 ac_mid=`expr 2 '*' $ac_mid`
35304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35307 echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.$ac_ext >&5
35312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35315 # Binary search between lo and hi bounds.
35316 while test "x$ac_lo" != "x$ac_hi"; do
35317 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35318 cat >conftest.$ac_ext <<_ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h. */
35324 $ac_includes_default
35328 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35335 rm -f conftest.$ac_objext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35337 (eval $ac_compile) 2>conftest.er1
35339 grep -v '^ *+' conftest.er1 >conftest.err
35341 cat conftest.err >&5
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } &&
35344 { ac_try='test -z "$ac_c_werror_flag"
35345 || test ! -s conftest.err'
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest.$ac_objext'
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35359 echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35362 ac_lo=`expr '(' $ac_mid ')' + 1`
35364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35367 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35368 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35369 See \`config.log' for more details." >&5
35370 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35371 See \`config.log' for more details." >&2;}
35372 { (exit 1); exit 1; }; } ;;
35375 if test "$cross_compiling" = yes; then
35376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35377 See \`config.log' for more details." >&5
35378 echo "$as_me: error: cannot run test program while cross compiling
35379 See \`config.log' for more details." >&2;}
35380 { (exit 1); exit 1; }; }
35382 cat >conftest.$ac_ext <<_ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h. */
35388 $ac_includes_default
35389 long longval () { return (long) (sizeof (wchar_t)); }
35390 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35392 #include <stdlib.h>
35397 FILE *f = fopen ("conftest.val", "w");
35400 if (((long) (sizeof (wchar_t))) < 0)
35402 long i = longval ();
35403 if (i != ((long) (sizeof (wchar_t))))
35405 fprintf (f, "%ld\n", i);
35409 unsigned long i = ulongval ();
35410 if (i != ((long) (sizeof (wchar_t))))
35412 fprintf (f, "%lu\n", i);
35414 exit (ferror (f) || fclose (f) != 0);
35420 rm -f conftest$ac_exeext
35421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35422 (eval $ac_link) 2>&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; }; then
35431 ac_cv_sizeof_wchar_t=`cat conftest.val`
35433 echo "$as_me: program exited with status $ac_status" >&5
35434 echo "$as_me: failed program was:" >&5
35435 sed 's/^/| /' conftest.$ac_ext >&5
35437 ( exit $ac_status )
35438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35439 See \`config.log' for more details." >&5
35440 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35441 See \`config.log' for more details." >&2;}
35442 { (exit 1); exit 1; }; }
35444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35449 ac_cv_sizeof_wchar_t=0
35452 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35453 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35454 cat >>confdefs.h <<_ACEOF
35455 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35460 if test "$ac_cv_sizeof_int" -lt 4 ; then
35461 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35462 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35465 cat >>confdefs.h <<\_ACEOF
35466 #define LBER_INT_T long
35471 cat >>confdefs.h <<\_ACEOF
35472 #define LBER_INT_T int
35478 cat >>confdefs.h <<\_ACEOF
35479 #define LBER_LEN_T long
35483 cat >>confdefs.h <<\_ACEOF
35484 #define LBER_SOCKET_T int
35488 cat >>confdefs.h <<\_ACEOF
35489 #define LBER_TAG_T long
35493 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35494 if test $ac_cv_sizeof_long_long -gt 4 ; then
35495 ol_with_mp=longlong
35497 cat >>confdefs.h <<\_ACEOF
35498 #define USE_MP_LONG_LONG 1
35501 elif test $ol_with_mp = longlong ; then
35502 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35503 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35504 { (exit 1); exit 1; }; }
35507 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35508 if test $ac_cv_sizeof_long -gt 4 ; then
35511 cat >>confdefs.h <<\_ACEOF
35512 #define USE_MP_LONG 1
35515 elif test $ol_with_mp = long ; then
35516 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35517 echo "$as_me: error: long unusable for multiple precision" >&2;}
35518 { (exit 1); exit 1; }; }
35521 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35523 for ac_header in openssl/bn.h
35525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35527 echo "$as_me:$LINENO: checking for $ac_header" >&5
35528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35530 echo $ECHO_N "(cached) $ECHO_C" >&6
35532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35535 # Is the header compilable?
35536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35538 cat >conftest.$ac_ext <<_ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h. */
35544 $ac_includes_default
35545 #include <$ac_header>
35547 rm -f conftest.$ac_objext
35548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35549 (eval $ac_compile) 2>conftest.er1
35551 grep -v '^ *+' conftest.er1 >conftest.err
35553 cat conftest.err >&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); } &&
35556 { ac_try='test -z "$ac_c_werror_flag"
35557 || test ! -s conftest.err'
35558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35559 (eval $ac_try) 2>&5
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); }; } &&
35563 { ac_try='test -s conftest.$ac_objext'
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; }; then
35569 ac_header_compiler=yes
35571 echo "$as_me: failed program was:" >&5
35572 sed 's/^/| /' conftest.$ac_ext >&5
35574 ac_header_compiler=no
35576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35578 echo "${ECHO_T}$ac_header_compiler" >&6
35580 # Is the header present?
35581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35583 cat >conftest.$ac_ext <<_ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h. */
35589 #include <$ac_header>
35591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35594 grep -v '^ *+' conftest.er1 >conftest.err
35596 cat conftest.err >&5
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); } >/dev/null; then
35599 if test -s conftest.err; then
35600 ac_cpp_err=$ac_c_preproc_warn_flag
35601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35608 if test -z "$ac_cpp_err"; then
35609 ac_header_preproc=yes
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35614 ac_header_preproc=no
35616 rm -f conftest.err conftest.$ac_ext
35617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35618 echo "${ECHO_T}$ac_header_preproc" >&6
35620 # So? What about this header?
35621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35627 ac_header_preproc=yes
35630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35644 ## --------------------------------------------- ##
35645 ## Report this to <http://www.openldap.org/its/> ##
35646 ## --------------------------------------------- ##
35649 sed "s/^/$as_me: WARNING: /" >&2
35652 echo "$as_me:$LINENO: checking for $ac_header" >&5
35653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35655 echo $ECHO_N "(cached) $ECHO_C" >&6
35657 eval "$as_ac_Header=\$ac_header_preproc"
35659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35664 cat >>confdefs.h <<_ACEOF
35665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35673 for ac_header in openssl/crypto.h
35675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35677 echo "$as_me:$LINENO: checking for $ac_header" >&5
35678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35680 echo $ECHO_N "(cached) $ECHO_C" >&6
35682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35685 # Is the header compilable?
35686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35688 cat >conftest.$ac_ext <<_ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h. */
35694 $ac_includes_default
35695 #include <$ac_header>
35697 rm -f conftest.$ac_objext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35699 (eval $ac_compile) 2>conftest.er1
35701 grep -v '^ *+' conftest.er1 >conftest.err
35703 cat conftest.err >&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); } &&
35706 { ac_try='test -z "$ac_c_werror_flag"
35707 || test ! -s conftest.err'
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest.$ac_objext'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35719 ac_header_compiler=yes
35721 echo "$as_me: failed program was:" >&5
35722 sed 's/^/| /' conftest.$ac_ext >&5
35724 ac_header_compiler=no
35726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6
35730 # Is the header present?
35731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35733 cat >conftest.$ac_ext <<_ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h. */
35739 #include <$ac_header>
35741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35744 grep -v '^ *+' conftest.er1 >conftest.err
35746 cat conftest.err >&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); } >/dev/null; then
35749 if test -s conftest.err; then
35750 ac_cpp_err=$ac_c_preproc_warn_flag
35751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35758 if test -z "$ac_cpp_err"; then
35759 ac_header_preproc=yes
35761 echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35764 ac_header_preproc=no
35766 rm -f conftest.err conftest.$ac_ext
35767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35768 echo "${ECHO_T}$ac_header_preproc" >&6
35770 # So? What about this header?
35771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35777 ac_header_preproc=yes
35780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35794 ## --------------------------------------------- ##
35795 ## Report this to <http://www.openldap.org/its/> ##
35796 ## --------------------------------------------- ##
35799 sed "s/^/$as_me: WARNING: /" >&2
35802 echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35807 eval "$as_ac_Header=\$ac_header_preproc"
35809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35814 cat >>confdefs.h <<_ACEOF
35815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35822 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35823 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35824 test "$ol_with_tls" = "found" ; then
35827 cat >>confdefs.h <<\_ACEOF
35828 #define USE_MP_BIGNUM 1
35831 elif test $ol_with_mp = bignum ; then
35832 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35833 echo "$as_me: error: bignum not available" >&2;}
35834 { (exit 1); exit 1; }; }
35837 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35839 for ac_header in gmp.h
35841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35843 echo "$as_me:$LINENO: checking for $ac_header" >&5
35844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35851 # Is the header compilable?
35852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35854 cat >conftest.$ac_ext <<_ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35860 $ac_includes_default
35861 #include <$ac_header>
35863 rm -f conftest.$ac_objext
35864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35865 (eval $ac_compile) 2>conftest.er1
35867 grep -v '^ *+' conftest.er1 >conftest.err
35869 cat conftest.err >&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } &&
35872 { ac_try='test -z "$ac_c_werror_flag"
35873 || test ! -s conftest.err'
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; } &&
35879 { ac_try='test -s conftest.$ac_objext'
35880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881 (eval $ac_try) 2>&5
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); }; }; then
35885 ac_header_compiler=yes
35887 echo "$as_me: failed program was:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35890 ac_header_compiler=no
35892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894 echo "${ECHO_T}$ac_header_compiler" >&6
35896 # Is the header present?
35897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35899 cat >conftest.$ac_ext <<_ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h. */
35905 #include <$ac_header>
35907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35910 grep -v '^ *+' conftest.er1 >conftest.err
35912 cat conftest.err >&5
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); } >/dev/null; then
35915 if test -s conftest.err; then
35916 ac_cpp_err=$ac_c_preproc_warn_flag
35917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35924 if test -z "$ac_cpp_err"; then
35925 ac_header_preproc=yes
35927 echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35930 ac_header_preproc=no
35932 rm -f conftest.err conftest.$ac_ext
35933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35934 echo "${ECHO_T}$ac_header_preproc" >&6
35936 # So? What about this header?
35937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35943 ac_header_preproc=yes
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35960 ## --------------------------------------------- ##
35961 ## Report this to <http://www.openldap.org/its/> ##
35962 ## --------------------------------------------- ##
35965 sed "s/^/$as_me: WARNING: /" >&2
35968 echo "$as_me:$LINENO: checking for $ac_header" >&5
35969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971 echo $ECHO_N "(cached) $ECHO_C" >&6
35973 eval "$as_ac_Header=\$ac_header_preproc"
35975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35980 cat >>confdefs.h <<_ACEOF
35981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35989 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35990 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
35991 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35992 echo $ECHO_N "(cached) $ECHO_C" >&6
35994 ac_check_lib_save_LIBS=$LIBS
35996 cat >conftest.$ac_ext <<_ACEOF
35999 cat confdefs.h >>conftest.$ac_ext
36000 cat >>conftest.$ac_ext <<_ACEOF
36001 /* end confdefs.h. */
36003 /* Override any gcc2 internal prototype to avoid an error. */
36007 /* We use char because int might match the return type of a gcc2
36008 builtin and then its argument prototype would still apply. */
36009 char __gmpz_add_ui ();
36018 rm -f conftest.$ac_objext conftest$ac_exeext
36019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36020 (eval $ac_link) 2>conftest.er1
36022 grep -v '^ *+' conftest.er1 >conftest.err
36024 cat conftest.err >&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); } &&
36027 { ac_try='test -z "$ac_c_werror_flag"
36028 || test ! -s conftest.err'
36029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36030 (eval $ac_try) 2>&5
36032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033 (exit $ac_status); }; } &&
36034 { ac_try='test -s conftest$ac_exeext'
36035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36036 (eval $ac_try) 2>&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); }; }; then
36040 ac_cv_lib_gmp___gmpz_add_ui=yes
36042 echo "$as_me: failed program was:" >&5
36043 sed 's/^/| /' conftest.$ac_ext >&5
36045 ac_cv_lib_gmp___gmpz_add_ui=no
36047 rm -f conftest.err conftest.$ac_objext \
36048 conftest$ac_exeext conftest.$ac_ext
36049 LIBS=$ac_check_lib_save_LIBS
36051 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36052 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36053 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36054 cat >>confdefs.h <<_ACEOF
36055 #define HAVE_LIBGMP 1
36062 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36064 cat >>confdefs.h <<\_ACEOF
36065 #define USE_MP_GMP 1
36069 elif test $ol_with_mp = gmp ; then
36070 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36071 echo "$as_me: error: gmp not available" >&2;}
36072 { (exit 1); exit 1; }; }
36075 if test $ol_with_mp = auto ; then
36079 echo "$as_me:$LINENO: checking for working memcmp" >&5
36080 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36081 if test "${ac_cv_func_memcmp_working+set}" = set; then
36082 echo $ECHO_N "(cached) $ECHO_C" >&6
36084 if test "$cross_compiling" = yes; then
36085 ac_cv_func_memcmp_working=no
36087 cat >conftest.$ac_ext <<_ACEOF
36090 cat confdefs.h >>conftest.$ac_ext
36091 cat >>conftest.$ac_ext <<_ACEOF
36092 /* end confdefs.h. */
36093 $ac_includes_default
36098 /* Some versions of memcmp are not 8-bit clean. */
36099 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36100 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36103 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36104 or more and with at least one buffer not starting on a 4-byte boundary.
36105 William Lewis provided this test program. */
36110 for (i = 0; i < 4; i++)
36114 strcpy (a, "--------01111111");
36115 strcpy (b, "--------10000000");
36116 if (memcmp (a, b, 16) >= 0)
36126 rm -f conftest$ac_exeext
36127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36128 (eval $ac_link) 2>&5
36130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133 (eval $ac_try) 2>&5
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); }; }; then
36137 ac_cv_func_memcmp_working=yes
36139 echo "$as_me: program exited with status $ac_status" >&5
36140 echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36143 ( exit $ac_status )
36144 ac_cv_func_memcmp_working=no
36146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36149 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36150 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36151 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36152 "memcmp.$ac_objext" | \
36153 *" memcmp.$ac_objext" | \
36154 "memcmp.$ac_objext "* | \
36155 *" memcmp.$ac_objext "* ) ;;
36156 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36161 if test $ac_cv_func_memcmp_working = no ; then
36163 cat >>confdefs.h <<\_ACEOF
36164 #define NEED_MEMCMP_REPLACEMENT 1
36170 for ac_func in strftime
36172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36173 echo "$as_me:$LINENO: checking for $ac_func" >&5
36174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36175 if eval "test \"\${$as_ac_var+set}\" = set"; then
36176 echo $ECHO_N "(cached) $ECHO_C" >&6
36178 cat >conftest.$ac_ext <<_ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h. */
36184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36186 #define $ac_func innocuous_$ac_func
36188 /* System header to define __stub macros and hopefully few prototypes,
36189 which can conflict with char $ac_func (); below.
36190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36191 <limits.h> exists even on freestanding compilers. */
36194 # include <limits.h>
36196 # include <assert.h>
36201 /* Override any gcc2 internal prototype to avoid an error. */
36206 /* We use char because int might match the return type of a gcc2
36207 builtin and then its argument prototype would still apply. */
36209 /* The GNU C library defines this for functions which it implements
36210 to always fail with ENOSYS. Some functions are actually named
36211 something starting with __ and the normal name is an alias. */
36212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36215 char (*f) () = $ac_func;
36224 return f != $ac_func;
36229 rm -f conftest.$ac_objext conftest$ac_exeext
36230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36231 (eval $ac_link) 2>conftest.er1
36233 grep -v '^ *+' conftest.er1 >conftest.err
36235 cat conftest.err >&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } &&
36238 { ac_try='test -z "$ac_c_werror_flag"
36239 || test ! -s conftest.err'
36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241 (eval $ac_try) 2>&5
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; } &&
36245 { ac_try='test -s conftest$ac_exeext'
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; }; then
36251 eval "$as_ac_var=yes"
36253 echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.$ac_ext >&5
36256 eval "$as_ac_var=no"
36258 rm -f conftest.err conftest.$ac_objext \
36259 conftest$ac_exeext conftest.$ac_ext
36261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36263 if test `eval echo '${'$as_ac_var'}'` = yes; then
36264 cat >>confdefs.h <<_ACEOF
36265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36269 # strftime is in -lintl on SCO UNIX.
36270 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36271 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36272 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36273 echo $ECHO_N "(cached) $ECHO_C" >&6
36275 ac_check_lib_save_LIBS=$LIBS
36276 LIBS="-lintl $LIBS"
36277 cat >conftest.$ac_ext <<_ACEOF
36280 cat confdefs.h >>conftest.$ac_ext
36281 cat >>conftest.$ac_ext <<_ACEOF
36282 /* end confdefs.h. */
36284 /* Override any gcc2 internal prototype to avoid an error. */
36288 /* We use char because int might match the return type of a gcc2
36289 builtin and then its argument prototype would still apply. */
36299 rm -f conftest.$ac_objext conftest$ac_exeext
36300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36301 (eval $ac_link) 2>conftest.er1
36303 grep -v '^ *+' conftest.er1 >conftest.err
36305 cat conftest.err >&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); } &&
36308 { ac_try='test -z "$ac_c_werror_flag"
36309 || test ! -s conftest.err'
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; } &&
36315 { ac_try='test -s conftest$ac_exeext'
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; }; then
36321 ac_cv_lib_intl_strftime=yes
36323 echo "$as_me: failed program was:" >&5
36324 sed 's/^/| /' conftest.$ac_ext >&5
36326 ac_cv_lib_intl_strftime=no
36328 rm -f conftest.err conftest.$ac_objext \
36329 conftest$ac_exeext conftest.$ac_ext
36330 LIBS=$ac_check_lib_save_LIBS
36332 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36334 if test $ac_cv_lib_intl_strftime = yes; then
36335 cat >>confdefs.h <<\_ACEOF
36336 #define HAVE_STRFTIME 1
36339 LIBS="-lintl $LIBS"
36346 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36347 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36348 if test "${ol_cv_func_inet_aton+set}" = set; then
36349 echo $ECHO_N "(cached) $ECHO_C" >&6
36351 cat >conftest.$ac_ext <<_ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h. */
36358 #ifdef HAVE_SYS_TYPES_H
36359 # include <sys/types.h>
36361 #ifdef HAVE_SYS_SOCKET_H
36362 # include <sys/socket.h>
36363 # ifdef HAVE_SYS_SELECT_H
36364 # include <sys/select.h>
36366 # include <netinet/in.h>
36367 # ifdef HAVE_ARPA_INET_H
36368 # include <arpa/inet.h>
36376 int rc = inet_aton( "255.255.255.255", &in );
36381 rm -f conftest.$ac_objext conftest$ac_exeext
36382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36383 (eval $ac_link) 2>conftest.er1
36385 grep -v '^ *+' conftest.er1 >conftest.err
36387 cat conftest.err >&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); } &&
36390 { ac_try='test -z "$ac_c_werror_flag"
36391 || test ! -s conftest.err'
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; } &&
36397 { ac_try='test -s conftest$ac_exeext'
36398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36399 (eval $ac_try) 2>&5
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); }; }; then
36403 ol_cv_func_inet_aton=yes
36405 echo "$as_me: failed program was:" >&5
36406 sed 's/^/| /' conftest.$ac_ext >&5
36408 ol_cv_func_inet_aton=no
36410 rm -f conftest.err conftest.$ac_objext \
36411 conftest$ac_exeext conftest.$ac_ext
36413 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36414 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36415 if test $ol_cv_func_inet_aton != no; then
36417 cat >>confdefs.h <<\_ACEOF
36418 #define HAVE_INET_ATON 1
36424 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36425 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36426 if test "${ac_cv_func__spawnlp+set}" = set; then
36427 echo $ECHO_N "(cached) $ECHO_C" >&6
36429 cat >conftest.$ac_ext <<_ACEOF
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h. */
36435 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36437 #define _spawnlp innocuous__spawnlp
36439 /* System header to define __stub macros and hopefully few prototypes,
36440 which can conflict with char _spawnlp (); below.
36441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36442 <limits.h> exists even on freestanding compilers. */
36445 # include <limits.h>
36447 # include <assert.h>
36452 /* Override any gcc2 internal prototype to avoid an error. */
36457 /* We use char because int might match the return type of a gcc2
36458 builtin and then its argument prototype would still apply. */
36460 /* The GNU C library defines this for functions which it implements
36461 to always fail with ENOSYS. Some functions are actually named
36462 something starting with __ and the normal name is an alias. */
36463 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36466 char (*f) () = _spawnlp;
36475 return f != _spawnlp;
36480 rm -f conftest.$ac_objext conftest$ac_exeext
36481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36482 (eval $ac_link) 2>conftest.er1
36484 grep -v '^ *+' conftest.er1 >conftest.err
36486 cat conftest.err >&5
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); } &&
36489 { ac_try='test -z "$ac_c_werror_flag"
36490 || test ! -s conftest.err'
36491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36492 (eval $ac_try) 2>&5
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); }; } &&
36496 { ac_try='test -s conftest$ac_exeext'
36497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498 (eval $ac_try) 2>&5
36500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); }; }; then
36502 ac_cv_func__spawnlp=yes
36504 echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36507 ac_cv_func__spawnlp=no
36509 rm -f conftest.err conftest.$ac_objext \
36510 conftest$ac_exeext conftest.$ac_ext
36512 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36513 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36514 if test $ac_cv_func__spawnlp = yes; then
36516 cat >>confdefs.h <<\_ACEOF
36517 #define HAVE_SPAWNLP 1
36523 echo "$as_me:$LINENO: checking for _snprintf" >&5
36524 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36525 if test "${ac_cv_func__snprintf+set}" = set; then
36526 echo $ECHO_N "(cached) $ECHO_C" >&6
36528 cat >conftest.$ac_ext <<_ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h. */
36534 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36536 #define _snprintf innocuous__snprintf
36538 /* System header to define __stub macros and hopefully few prototypes,
36539 which can conflict with char _snprintf (); below.
36540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36541 <limits.h> exists even on freestanding compilers. */
36544 # include <limits.h>
36546 # include <assert.h>
36551 /* Override any gcc2 internal prototype to avoid an error. */
36556 /* We use char because int might match the return type of a gcc2
36557 builtin and then its argument prototype would still apply. */
36559 /* The GNU C library defines this for functions which it implements
36560 to always fail with ENOSYS. Some functions are actually named
36561 something starting with __ and the normal name is an alias. */
36562 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36565 char (*f) () = _snprintf;
36574 return f != _snprintf;
36579 rm -f conftest.$ac_objext conftest$ac_exeext
36580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36581 (eval $ac_link) 2>conftest.er1
36583 grep -v '^ *+' conftest.er1 >conftest.err
36585 cat conftest.err >&5
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); } &&
36588 { ac_try='test -z "$ac_c_werror_flag"
36589 || test ! -s conftest.err'
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; } &&
36595 { ac_try='test -s conftest$ac_exeext'
36596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36597 (eval $ac_try) 2>&5
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); }; }; then
36601 ac_cv_func__snprintf=yes
36603 echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36606 ac_cv_func__snprintf=no
36608 rm -f conftest.err conftest.$ac_objext \
36609 conftest$ac_exeext conftest.$ac_ext
36611 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36612 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36613 if test $ac_cv_func__snprintf = yes; then
36614 ac_cv_func_snprintf=yes
36616 cat >>confdefs.h <<\_ACEOF
36617 #define snprintf _snprintf
36624 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36625 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36626 if test "${ac_cv_func__vsnprintf+set}" = set; then
36627 echo $ECHO_N "(cached) $ECHO_C" >&6
36629 cat >conftest.$ac_ext <<_ACEOF
36632 cat confdefs.h >>conftest.$ac_ext
36633 cat >>conftest.$ac_ext <<_ACEOF
36634 /* end confdefs.h. */
36635 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36637 #define _vsnprintf innocuous__vsnprintf
36639 /* System header to define __stub macros and hopefully few prototypes,
36640 which can conflict with char _vsnprintf (); below.
36641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36642 <limits.h> exists even on freestanding compilers. */
36645 # include <limits.h>
36647 # include <assert.h>
36652 /* Override any gcc2 internal prototype to avoid an error. */
36657 /* We use char because int might match the return type of a gcc2
36658 builtin and then its argument prototype would still apply. */
36659 char _vsnprintf ();
36660 /* The GNU C library defines this for functions which it implements
36661 to always fail with ENOSYS. Some functions are actually named
36662 something starting with __ and the normal name is an alias. */
36663 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36666 char (*f) () = _vsnprintf;
36675 return f != _vsnprintf;
36680 rm -f conftest.$ac_objext conftest$ac_exeext
36681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36682 (eval $ac_link) 2>conftest.er1
36684 grep -v '^ *+' conftest.er1 >conftest.err
36686 cat conftest.err >&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); } &&
36689 { ac_try='test -z "$ac_c_werror_flag"
36690 || test ! -s conftest.err'
36691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692 (eval $ac_try) 2>&5
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); }; } &&
36696 { ac_try='test -s conftest$ac_exeext'
36697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698 (eval $ac_try) 2>&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); }; }; then
36702 ac_cv_func__vsnprintf=yes
36704 echo "$as_me: failed program was:" >&5
36705 sed 's/^/| /' conftest.$ac_ext >&5
36707 ac_cv_func__vsnprintf=no
36709 rm -f conftest.err conftest.$ac_objext \
36710 conftest$ac_exeext conftest.$ac_ext
36712 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36713 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36714 if test $ac_cv_func__vsnprintf = yes; then
36715 ac_cv_func_vsnprintf=yes
36717 cat >>confdefs.h <<\_ACEOF
36718 #define vsnprintf _vsnprintf
36726 for ac_func in vprintf
36728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36729 echo "$as_me:$LINENO: checking for $ac_func" >&5
36730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36731 if eval "test \"\${$as_ac_var+set}\" = set"; then
36732 echo $ECHO_N "(cached) $ECHO_C" >&6
36734 cat >conftest.$ac_ext <<_ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h. */
36740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36742 #define $ac_func innocuous_$ac_func
36744 /* System header to define __stub macros and hopefully few prototypes,
36745 which can conflict with char $ac_func (); below.
36746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36747 <limits.h> exists even on freestanding compilers. */
36750 # include <limits.h>
36752 # include <assert.h>
36757 /* Override any gcc2 internal prototype to avoid an error. */
36762 /* We use char because int might match the return type of a gcc2
36763 builtin and then its argument prototype would still apply. */
36765 /* The GNU C library defines this for functions which it implements
36766 to always fail with ENOSYS. Some functions are actually named
36767 something starting with __ and the normal name is an alias. */
36768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36771 char (*f) () = $ac_func;
36780 return f != $ac_func;
36785 rm -f conftest.$ac_objext conftest$ac_exeext
36786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36787 (eval $ac_link) 2>conftest.er1
36789 grep -v '^ *+' conftest.er1 >conftest.err
36791 cat conftest.err >&5
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); } &&
36794 { ac_try='test -z "$ac_c_werror_flag"
36795 || test ! -s conftest.err'
36796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797 (eval $ac_try) 2>&5
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); }; } &&
36801 { ac_try='test -s conftest$ac_exeext'
36802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803 (eval $ac_try) 2>&5
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); }; }; then
36807 eval "$as_ac_var=yes"
36809 echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36812 eval "$as_ac_var=no"
36814 rm -f conftest.err conftest.$ac_objext \
36815 conftest$ac_exeext conftest.$ac_ext
36817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36819 if test `eval echo '${'$as_ac_var'}'` = yes; then
36820 cat >>confdefs.h <<_ACEOF
36821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36824 echo "$as_me:$LINENO: checking for _doprnt" >&5
36825 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36826 if test "${ac_cv_func__doprnt+set}" = set; then
36827 echo $ECHO_N "(cached) $ECHO_C" >&6
36829 cat >conftest.$ac_ext <<_ACEOF
36832 cat confdefs.h >>conftest.$ac_ext
36833 cat >>conftest.$ac_ext <<_ACEOF
36834 /* end confdefs.h. */
36835 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36837 #define _doprnt innocuous__doprnt
36839 /* System header to define __stub macros and hopefully few prototypes,
36840 which can conflict with char _doprnt (); below.
36841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36842 <limits.h> exists even on freestanding compilers. */
36845 # include <limits.h>
36847 # include <assert.h>
36852 /* Override any gcc2 internal prototype to avoid an error. */
36857 /* We use char because int might match the return type of a gcc2
36858 builtin and then its argument prototype would still apply. */
36860 /* The GNU C library defines this for functions which it implements
36861 to always fail with ENOSYS. Some functions are actually named
36862 something starting with __ and the normal name is an alias. */
36863 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36866 char (*f) () = _doprnt;
36875 return f != _doprnt;
36880 rm -f conftest.$ac_objext conftest$ac_exeext
36881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36882 (eval $ac_link) 2>conftest.er1
36884 grep -v '^ *+' conftest.er1 >conftest.err
36886 cat conftest.err >&5
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
36889 { ac_try='test -z "$ac_c_werror_flag"
36890 || test ! -s conftest.err'
36891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892 (eval $ac_try) 2>&5
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); }; } &&
36896 { ac_try='test -s conftest$ac_exeext'
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; }; then
36902 ac_cv_func__doprnt=yes
36904 echo "$as_me: failed program was:" >&5
36905 sed 's/^/| /' conftest.$ac_ext >&5
36907 ac_cv_func__doprnt=no
36909 rm -f conftest.err conftest.$ac_objext \
36910 conftest$ac_exeext conftest.$ac_ext
36912 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36913 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36914 if test $ac_cv_func__doprnt = yes; then
36916 cat >>confdefs.h <<\_ACEOF
36917 #define HAVE_DOPRNT 1
36927 if test $ac_cv_func_vprintf = yes ; then
36930 for ac_func in snprintf vsnprintf
36932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36933 echo "$as_me:$LINENO: checking for $ac_func" >&5
36934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36935 if eval "test \"\${$as_ac_var+set}\" = set"; then
36936 echo $ECHO_N "(cached) $ECHO_C" >&6
36938 cat >conftest.$ac_ext <<_ACEOF
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h. */
36944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36946 #define $ac_func innocuous_$ac_func
36948 /* System header to define __stub macros and hopefully few prototypes,
36949 which can conflict with char $ac_func (); below.
36950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36951 <limits.h> exists even on freestanding compilers. */
36954 # include <limits.h>
36956 # include <assert.h>
36961 /* Override any gcc2 internal prototype to avoid an error. */
36966 /* We use char because int might match the return type of a gcc2
36967 builtin and then its argument prototype would still apply. */
36969 /* The GNU C library defines this for functions which it implements
36970 to always fail with ENOSYS. Some functions are actually named
36971 something starting with __ and the normal name is an alias. */
36972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36975 char (*f) () = $ac_func;
36984 return f != $ac_func;
36989 rm -f conftest.$ac_objext conftest$ac_exeext
36990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36991 (eval $ac_link) 2>conftest.er1
36993 grep -v '^ *+' conftest.er1 >conftest.err
36995 cat conftest.err >&5
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); } &&
36998 { ac_try='test -z "$ac_c_werror_flag"
36999 || test ! -s conftest.err'
37000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001 (eval $ac_try) 2>&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); }; } &&
37005 { ac_try='test -s conftest$ac_exeext'
37006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007 (eval $ac_try) 2>&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; }; then
37011 eval "$as_ac_var=yes"
37013 echo "$as_me: failed program was:" >&5
37014 sed 's/^/| /' conftest.$ac_ext >&5
37016 eval "$as_ac_var=no"
37018 rm -f conftest.err conftest.$ac_objext \
37019 conftest$ac_exeext conftest.$ac_ext
37021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37023 if test `eval echo '${'$as_ac_var'}'` = yes; then
37024 cat >>confdefs.h <<_ACEOF
37025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37152 cat >conftest.$ac_ext <<_ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h. */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37160 #define $ac_func innocuous_$ac_func
37162 /* System header to define __stub macros and hopefully few prototypes,
37163 which can conflict with char $ac_func (); below.
37164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165 <limits.h> exists even on freestanding compilers. */
37168 # include <limits.h>
37170 # include <assert.h>
37175 /* Override any gcc2 internal prototype to avoid an error. */
37180 /* We use char because int might match the return type of a gcc2
37181 builtin and then its argument prototype would still apply. */
37183 /* The GNU C library defines this for functions which it implements
37184 to always fail with ENOSYS. Some functions are actually named
37185 something starting with __ and the normal name is an alias. */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37189 char (*f) () = $ac_func;
37198 return f != $ac_func;
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205 (eval $ac_link) 2>conftest.er1
37207 grep -v '^ *+' conftest.er1 >conftest.err
37209 cat conftest.err >&5
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); } &&
37212 { ac_try='test -z "$ac_c_werror_flag"
37213 || test ! -s conftest.err'
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; } &&
37219 { ac_try='test -s conftest$ac_exeext'
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; }; then
37225 eval "$as_ac_var=yes"
37227 echo "$as_me: failed program was:" >&5
37228 sed 's/^/| /' conftest.$ac_ext >&5
37230 eval "$as_ac_var=no"
37232 rm -f conftest.err conftest.$ac_objext \
37233 conftest$ac_exeext conftest.$ac_ext
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37237 if test `eval echo '${'$as_ac_var'}'` = yes; then
37238 cat >>confdefs.h <<_ACEOF
37239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37248 for ac_func in getopt getpeereid
37250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37251 echo "$as_me:$LINENO: checking for $ac_func" >&5
37252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37253 if eval "test \"\${$as_ac_var+set}\" = set"; then
37254 echo $ECHO_N "(cached) $ECHO_C" >&6
37256 cat >conftest.$ac_ext <<_ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h. */
37262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37264 #define $ac_func innocuous_$ac_func
37266 /* System header to define __stub macros and hopefully few prototypes,
37267 which can conflict with char $ac_func (); below.
37268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37269 <limits.h> exists even on freestanding compilers. */
37272 # include <limits.h>
37274 # include <assert.h>
37279 /* Override any gcc2 internal prototype to avoid an error. */
37284 /* We use char because int might match the return type of a gcc2
37285 builtin and then its argument prototype would still apply. */
37287 /* The GNU C library defines this for functions which it implements
37288 to always fail with ENOSYS. Some functions are actually named
37289 something starting with __ and the normal name is an alias. */
37290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37293 char (*f) () = $ac_func;
37302 return f != $ac_func;
37307 rm -f conftest.$ac_objext conftest$ac_exeext
37308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37309 (eval $ac_link) 2>conftest.er1
37311 grep -v '^ *+' conftest.er1 >conftest.err
37313 cat conftest.err >&5
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
37316 { ac_try='test -z "$ac_c_werror_flag"
37317 || test ! -s conftest.err'
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; } &&
37323 { ac_try='test -s conftest$ac_exeext'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 eval "$as_ac_var=yes"
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37334 eval "$as_ac_var=no"
37336 rm -f conftest.err conftest.$ac_objext \
37337 conftest$ac_exeext conftest.$ac_ext
37339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37341 if test `eval echo '${'$as_ac_var'}'` = yes; then
37342 cat >>confdefs.h <<_ACEOF
37343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37348 "$ac_func.$ac_objext" | \
37349 *" $ac_func.$ac_objext" | \
37350 "$ac_func.$ac_objext "* | \
37351 *" $ac_func.$ac_objext "* ) ;;
37352 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37360 if test "$ac_cv_func_getopt" != yes; then
37361 LIBSRCS="$LIBSRCS getopt.c"
37364 if test "$ac_cv_func_getpeereid" != yes; then
37366 for ac_func in getpeerucred
37368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37369 echo "$as_me:$LINENO: checking for $ac_func" >&5
37370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37371 if eval "test \"\${$as_ac_var+set}\" = set"; then
37372 echo $ECHO_N "(cached) $ECHO_C" >&6
37374 cat >conftest.$ac_ext <<_ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h. */
37380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37382 #define $ac_func innocuous_$ac_func
37384 /* System header to define __stub macros and hopefully few prototypes,
37385 which can conflict with char $ac_func (); below.
37386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37387 <limits.h> exists even on freestanding compilers. */
37390 # include <limits.h>
37392 # include <assert.h>
37397 /* Override any gcc2 internal prototype to avoid an error. */
37402 /* We use char because int might match the return type of a gcc2
37403 builtin and then its argument prototype would still apply. */
37405 /* The GNU C library defines this for functions which it implements
37406 to always fail with ENOSYS. Some functions are actually named
37407 something starting with __ and the normal name is an alias. */
37408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37411 char (*f) () = $ac_func;
37420 return f != $ac_func;
37425 rm -f conftest.$ac_objext conftest$ac_exeext
37426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37427 (eval $ac_link) 2>conftest.er1
37429 grep -v '^ *+' conftest.er1 >conftest.err
37431 cat conftest.err >&5
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); } &&
37434 { ac_try='test -z "$ac_c_werror_flag"
37435 || test ! -s conftest.err'
37436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37437 (eval $ac_try) 2>&5
37439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); }; } &&
37441 { ac_try='test -s conftest$ac_exeext'
37442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37443 (eval $ac_try) 2>&5
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); }; }; then
37447 eval "$as_ac_var=yes"
37449 echo "$as_me: failed program was:" >&5
37450 sed 's/^/| /' conftest.$ac_ext >&5
37452 eval "$as_ac_var=no"
37454 rm -f conftest.err conftest.$ac_objext \
37455 conftest$ac_exeext conftest.$ac_ext
37457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37459 if test `eval echo '${'$as_ac_var'}'` = yes; then
37460 cat >>confdefs.h <<_ACEOF
37461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37467 if test "$ac_cv_func_getpeerucred" != yes ; then
37468 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37469 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37470 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37471 echo $ECHO_N "(cached) $ECHO_C" >&6
37473 cat >conftest.$ac_ext <<_ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h. */
37479 $ac_includes_default
37480 #ifdef HAVE_SYS_SOCKET_H
37481 #include <sys/socket.h>
37487 static struct msghdr ac_aggr;
37488 if (ac_aggr.msg_accrightslen)
37494 rm -f conftest.$ac_objext
37495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37496 (eval $ac_compile) 2>conftest.er1
37498 grep -v '^ *+' conftest.er1 >conftest.err
37500 cat conftest.err >&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
37503 { ac_try='test -z "$ac_c_werror_flag"
37504 || test ! -s conftest.err'
37505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37506 (eval $ac_try) 2>&5
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); }; } &&
37510 { ac_try='test -s conftest.$ac_objext'
37511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512 (eval $ac_try) 2>&5
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; }; then
37516 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37518 echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37521 cat >conftest.$ac_ext <<_ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h. */
37527 $ac_includes_default
37528 #ifdef HAVE_SYS_SOCKET_H
37529 #include <sys/socket.h>
37535 static struct msghdr ac_aggr;
37536 if (sizeof ac_aggr.msg_accrightslen)
37542 rm -f conftest.$ac_objext
37543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37544 (eval $ac_compile) 2>conftest.er1
37546 grep -v '^ *+' conftest.er1 >conftest.err
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } &&
37551 { ac_try='test -z "$ac_c_werror_flag"
37552 || test ! -s conftest.err'
37553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554 (eval $ac_try) 2>&5
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); }; } &&
37558 { ac_try='test -s conftest.$ac_objext'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; }; then
37564 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37566 echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37569 ac_cv_member_struct_msghdr_msg_accrightslen=no
37571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37576 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37577 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37579 cat >>confdefs.h <<_ACEOF
37580 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37586 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37587 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37588 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37589 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37590 echo $ECHO_N "(cached) $ECHO_C" >&6
37592 cat >conftest.$ac_ext <<_ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h. */
37598 $ac_includes_default
37599 #ifdef HAVE_SYS_SOCKET_H
37600 #include <sys/socket.h>
37606 static struct msghdr ac_aggr;
37607 if (ac_aggr.msg_control)
37613 rm -f conftest.$ac_objext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37615 (eval $ac_compile) 2>conftest.er1
37617 grep -v '^ *+' conftest.er1 >conftest.err
37619 cat conftest.err >&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); } &&
37622 { ac_try='test -z "$ac_c_werror_flag"
37623 || test ! -s conftest.err'
37624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37625 (eval $ac_try) 2>&5
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); }; } &&
37629 { ac_try='test -s conftest.$ac_objext'
37630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37631 (eval $ac_try) 2>&5
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); }; }; then
37635 ac_cv_member_struct_msghdr_msg_control=yes
37637 echo "$as_me: failed program was:" >&5
37638 sed 's/^/| /' conftest.$ac_ext >&5
37640 cat >conftest.$ac_ext <<_ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h. */
37646 $ac_includes_default
37647 #ifdef HAVE_SYS_SOCKET_H
37648 #include <sys/socket.h>
37654 static struct msghdr ac_aggr;
37655 if (sizeof ac_aggr.msg_control)
37661 rm -f conftest.$ac_objext
37662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37663 (eval $ac_compile) 2>conftest.er1
37665 grep -v '^ *+' conftest.er1 >conftest.err
37667 cat conftest.err >&5
37668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669 (exit $ac_status); } &&
37670 { ac_try='test -z "$ac_c_werror_flag"
37671 || test ! -s conftest.err'
37672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37673 (eval $ac_try) 2>&5
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); }; } &&
37677 { ac_try='test -s conftest.$ac_objext'
37678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679 (eval $ac_try) 2>&5
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); }; }; then
37683 ac_cv_member_struct_msghdr_msg_control=yes
37685 echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37688 ac_cv_member_struct_msghdr_msg_control=no
37690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37694 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37695 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37696 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37706 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37707 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37708 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37711 cat >conftest.$ac_ext <<_ACEOF
37714 cat confdefs.h >>conftest.$ac_ext
37715 cat >>conftest.$ac_ext <<_ACEOF
37716 /* end confdefs.h. */
37717 $ac_includes_default
37721 static struct stat ac_aggr;
37722 if (ac_aggr.st_fstype)
37728 rm -f conftest.$ac_objext
37729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37730 (eval $ac_compile) 2>conftest.er1
37732 grep -v '^ *+' conftest.er1 >conftest.err
37734 cat conftest.err >&5
37735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736 (exit $ac_status); } &&
37737 { ac_try='test -z "$ac_c_werror_flag"
37738 || test ! -s conftest.err'
37739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37740 (eval $ac_try) 2>&5
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); }; } &&
37744 { ac_try='test -s conftest.$ac_objext'
37745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746 (eval $ac_try) 2>&5
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); }; }; then
37750 ac_cv_member_struct_stat_st_fstype=yes
37752 echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37755 cat >conftest.$ac_ext <<_ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h. */
37761 $ac_includes_default
37765 static struct stat ac_aggr;
37766 if (sizeof ac_aggr.st_fstype)
37772 rm -f conftest.$ac_objext
37773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37774 (eval $ac_compile) 2>conftest.er1
37776 grep -v '^ *+' conftest.er1 >conftest.err
37778 cat conftest.err >&5
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); } &&
37781 { ac_try='test -z "$ac_c_werror_flag"
37782 || test ! -s conftest.err'
37783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784 (eval $ac_try) 2>&5
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); }; } &&
37788 { ac_try='test -s conftest.$ac_objext'
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 ac_cv_member_struct_stat_st_fstype=yes
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_cv_member_struct_stat_st_fstype=no
37801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37805 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37807 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37809 cat >>confdefs.h <<_ACEOF
37810 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37815 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37816 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37817 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37818 echo $ECHO_N "(cached) $ECHO_C" >&6
37820 cat >conftest.$ac_ext <<_ACEOF
37823 cat confdefs.h >>conftest.$ac_ext
37824 cat >>conftest.$ac_ext <<_ACEOF
37825 /* end confdefs.h. */
37826 $ac_includes_default
37830 static struct stat ac_aggr;
37831 if (ac_aggr.st_vfstype)
37837 rm -f conftest.$ac_objext
37838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37839 (eval $ac_compile) 2>conftest.er1
37841 grep -v '^ *+' conftest.er1 >conftest.err
37843 cat conftest.err >&5
37844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); } &&
37846 { ac_try='test -z "$ac_c_werror_flag"
37847 || test ! -s conftest.err'
37848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37849 (eval $ac_try) 2>&5
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); }; } &&
37853 { ac_try='test -s conftest.$ac_objext'
37854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855 (eval $ac_try) 2>&5
37857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858 (exit $ac_status); }; }; then
37859 ac_cv_member_struct_stat_st_vfstype=yes
37861 echo "$as_me: failed program was:" >&5
37862 sed 's/^/| /' conftest.$ac_ext >&5
37864 cat >conftest.$ac_ext <<_ACEOF
37867 cat confdefs.h >>conftest.$ac_ext
37868 cat >>conftest.$ac_ext <<_ACEOF
37869 /* end confdefs.h. */
37870 $ac_includes_default
37874 static struct stat ac_aggr;
37875 if (sizeof ac_aggr.st_vfstype)
37881 rm -f conftest.$ac_objext
37882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37883 (eval $ac_compile) 2>conftest.er1
37885 grep -v '^ *+' conftest.er1 >conftest.err
37887 cat conftest.err >&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); } &&
37890 { ac_try='test -z "$ac_c_werror_flag"
37891 || test ! -s conftest.err'
37892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893 (eval $ac_try) 2>&5
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); }; } &&
37897 { ac_try='test -s conftest.$ac_objext'
37898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899 (eval $ac_try) 2>&5
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); }; }; then
37903 ac_cv_member_struct_stat_st_vfstype=yes
37905 echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37908 ac_cv_member_struct_stat_st_vfstype=no
37910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37915 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37916 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37918 cat >>confdefs.h <<_ACEOF
37919 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37925 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37926 cat >conftest.$ac_ext <<_ACEOF
37927 struct stat st; char *ptr=st.st_fstype;
37929 rm -f conftest.$ac_objext
37930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37931 (eval $ac_compile) 2>conftest.er1
37933 grep -v '^ *+' conftest.er1 >conftest.err
37935 cat conftest.err >&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); } &&
37938 { ac_try='test -z "$ac_c_werror_flag"
37939 || test ! -s conftest.err'
37940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941 (eval $ac_try) 2>&5
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); }; } &&
37945 { ac_try='test -s conftest.$ac_objext'
37946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947 (eval $ac_try) 2>&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; }; then
37952 cat >>confdefs.h <<\_ACEOF
37953 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37957 echo "$as_me: failed program was:" >&5
37958 sed 's/^/| /' conftest.$ac_ext >&5
37961 cat >>confdefs.h <<\_ACEOF
37962 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37969 LIBSRCS="$LIBSRCS getpeereid.c"
37972 if test "$ac_cv_func_snprintf" != yes ||
37973 test "$ac_cv_func_vsnprintf" != yes; then
37974 if test "$ac_cv_func_snprintf" != yes; then
37976 cat >>confdefs.h <<\_ACEOF
37977 #define snprintf ber_pvt_snprintf
37981 if test "$ac_cv_func_vsnprintf" != yes; then
37983 cat >>confdefs.h <<\_ACEOF
37984 #define vsnprintf ber_pvt_vsnprintf
37991 if test "$ol_enable_slapi" != no ; then
37993 for ac_header in ltdl.h
37995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37997 echo "$as_me:$LINENO: checking for $ac_header" >&5
37998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38000 echo $ECHO_N "(cached) $ECHO_C" >&6
38002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38005 # Is the header compilable?
38006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38008 cat >conftest.$ac_ext <<_ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h. */
38014 $ac_includes_default
38015 #include <$ac_header>
38017 rm -f conftest.$ac_objext
38018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38019 (eval $ac_compile) 2>conftest.er1
38021 grep -v '^ *+' conftest.er1 >conftest.err
38023 cat conftest.err >&5
38024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025 (exit $ac_status); } &&
38026 { ac_try='test -z "$ac_c_werror_flag"
38027 || test ! -s conftest.err'
38028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029 (eval $ac_try) 2>&5
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); }; } &&
38033 { ac_try='test -s conftest.$ac_objext'
38034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38035 (eval $ac_try) 2>&5
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); }; }; then
38039 ac_header_compiler=yes
38041 echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38044 ac_header_compiler=no
38046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38048 echo "${ECHO_T}$ac_header_compiler" >&6
38050 # Is the header present?
38051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38053 cat >conftest.$ac_ext <<_ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h. */
38059 #include <$ac_header>
38061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38064 grep -v '^ *+' conftest.er1 >conftest.err
38066 cat conftest.err >&5
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); } >/dev/null; then
38069 if test -s conftest.err; then
38070 ac_cpp_err=$ac_c_preproc_warn_flag
38071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38078 if test -z "$ac_cpp_err"; then
38079 ac_header_preproc=yes
38081 echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38084 ac_header_preproc=no
38086 rm -f conftest.err conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38088 echo "${ECHO_T}$ac_header_preproc" >&6
38090 # So? What about this header?
38091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38097 ac_header_preproc=yes
38100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38114 ## --------------------------------------------- ##
38115 ## Report this to <http://www.openldap.org/its/> ##
38116 ## --------------------------------------------- ##
38119 sed "s/^/$as_me: WARNING: /" >&2
38122 echo "$as_me:$LINENO: checking for $ac_header" >&5
38123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38125 echo $ECHO_N "(cached) $ECHO_C" >&6
38127 eval "$as_ac_Header=\$ac_header_preproc"
38129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38134 cat >>confdefs.h <<_ACEOF
38135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38143 if test $ac_cv_header_ltdl_h != yes ; then
38144 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38145 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38146 { (exit 1); exit 1; }; }
38148 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38149 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38150 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38151 echo $ECHO_N "(cached) $ECHO_C" >&6
38153 ac_check_lib_save_LIBS=$LIBS
38154 LIBS="-lltdl $LIBS"
38155 cat >conftest.$ac_ext <<_ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h. */
38162 /* Override any gcc2 internal prototype to avoid an error. */
38166 /* We use char because int might match the return type of a gcc2
38167 builtin and then its argument prototype would still apply. */
38177 rm -f conftest.$ac_objext conftest$ac_exeext
38178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38179 (eval $ac_link) 2>conftest.er1
38181 grep -v '^ *+' conftest.er1 >conftest.err
38183 cat conftest.err >&5
38184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); } &&
38186 { ac_try='test -z "$ac_c_werror_flag"
38187 || test ! -s conftest.err'
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; } &&
38193 { ac_try='test -s conftest$ac_exeext'
38194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195 (eval $ac_try) 2>&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); }; }; then
38199 ac_cv_lib_ltdl_lt_dlinit=yes
38201 echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38204 ac_cv_lib_ltdl_lt_dlinit=no
38206 rm -f conftest.err conftest.$ac_objext \
38207 conftest$ac_exeext conftest.$ac_ext
38208 LIBS=$ac_check_lib_save_LIBS
38210 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38211 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38212 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38215 LIBSLAPI=libslapi.a
38216 LIBSLAPITOOLS=../libslapi.a
38218 cat >>confdefs.h <<\_ACEOF
38219 #define HAVE_LIBLTDL 1
38224 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38225 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38226 { (exit 1); exit 1; }; }
38231 cat >>confdefs.h <<\_ACEOF
38232 #define LDAP_SLAPI 1
38237 if test "$ol_enable_debug" != no ; then
38238 if test "$ol_enable_debug" = traditional; then
38240 cat >>confdefs.h <<\_ACEOF
38241 #define OLD_DEBUG 1
38246 cat >>confdefs.h <<\_ACEOF
38247 #define LDAP_DEBUG 1
38251 if test "$ol_enable_syslog" = yes ; then
38253 cat >>confdefs.h <<\_ACEOF
38254 #define LDAP_SYSLOG 1
38258 if test "$ol_enable_proctitle" != no ; then
38260 cat >>confdefs.h <<\_ACEOF
38261 #define LDAP_PROCTITLE 1
38265 if test "$ol_enable_referrals" != no ; then
38267 cat >>confdefs.h <<\_ACEOF
38268 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38272 if test "$ol_enable_local" != no; then
38274 cat >>confdefs.h <<\_ACEOF
38275 #define LDAP_PF_LOCAL 1
38279 if test "$ol_link_ipv6" != no; then
38281 cat >>confdefs.h <<\_ACEOF
38282 #define LDAP_PF_INET6 1
38286 if test "$ol_enable_cleartext" != no ; then
38288 cat >>confdefs.h <<\_ACEOF
38289 #define SLAPD_CLEARTEXT 1
38293 if test "$ol_enable_crypt" != no ; then
38295 cat >>confdefs.h <<\_ACEOF
38296 #define SLAPD_CRYPT 1
38300 if test "$ol_link_spasswd" != no ; then
38302 cat >>confdefs.h <<\_ACEOF
38303 #define SLAPD_SPASSWD 1
38307 if test "$ol_enable_rlookups" != no ; then
38309 cat >>confdefs.h <<\_ACEOF
38310 #define SLAPD_RLOOKUPS 1
38314 if test "$ol_enable_aci" != no ; then
38315 if test $ol_enable_dynacl = no ; then
38316 ol_enable_dynacl=yes
38317 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38318 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38320 if test "$ol_enable_aci" = mod ; then
38321 MFLAG=SLAPD_MOD_DYNAMIC
38322 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38323 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38324 { (exit 1); exit 1; }; }
38326 MFLAG=SLAPD_MOD_STATIC
38328 WITH_ACI_ENABLED=$ol_enable_aci
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_ACI_ENABLED $MFLAG
38335 WITH_ACI_ENABLED=no
38337 if test "$ol_enable_dynacl" != no ; then
38339 cat >>confdefs.h <<\_ACEOF
38340 #define SLAP_DYNACL 1
38345 if test "$ol_link_modules" != no ; then
38347 cat >>confdefs.h <<\_ACEOF
38348 #define SLAPD_MODULES 1
38352 SLAPD_MODULES_LDFLAGS="-dlopen self"
38356 cat >>confdefs.h <<\_ACEOF
38357 #define SLAPD_MOD_STATIC 1
38361 cat >>confdefs.h <<\_ACEOF
38362 #define SLAPD_MOD_DYNAMIC 2
38366 if test "$ol_enable_monitor" != no ; then
38368 BUILD_MONITOR=$ol_enable_monitor
38369 if test "$ol_enable_monitor" = mod ; then
38370 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38371 MFLAG=SLAPD_MOD_DYNAMIC
38373 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38374 MFLAG=SLAPD_MOD_STATIC
38377 cat >>confdefs.h <<_ACEOF
38378 #define SLAPD_MONITOR $MFLAG
38383 if test "$ol_enable_bdb" != no ; then
38385 BUILD_BDB=$ol_enable_bdb
38386 if test "$ol_enable_bdb" = mod ; then
38387 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38388 MFLAG=SLAPD_MOD_DYNAMIC
38390 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38391 MFLAG=SLAPD_MOD_STATIC
38394 cat >>confdefs.h <<_ACEOF
38395 #define SLAPD_BDB $MFLAG
38400 if test "$ol_enable_dnssrv" != no ; then
38402 BUILD_DNSSRV=$ol_enable_dnssrv
38403 if test "$ol_enable_dnssrv" = mod ; then
38404 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38405 MFLAG=SLAPD_MOD_DYNAMIC
38407 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38408 MFLAG=SLAPD_MOD_STATIC
38411 cat >>confdefs.h <<_ACEOF
38412 #define SLAPD_DNSSRV $MFLAG
38417 if test "$ol_enable_hdb" != no ; then
38419 BUILD_HDB=$ol_enable_hdb
38420 if test "$ol_enable_hdb" = mod ; then
38421 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38422 MFLAG=SLAPD_MOD_DYNAMIC
38424 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38425 MFLAG=SLAPD_MOD_STATIC
38428 cat >>confdefs.h <<_ACEOF
38429 #define SLAPD_HDB $MFLAG
38434 if test "$ol_enable_ldap" != no ; then
38436 BUILD_LDAP=$ol_enable_ldap
38437 if test "$ol_enable_ldap" = mod ; then
38438 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38439 MFLAG=SLAPD_MOD_DYNAMIC
38441 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38442 MFLAG=SLAPD_MOD_STATIC
38445 cat >>confdefs.h <<_ACEOF
38446 #define SLAPD_LDAP $MFLAG
38451 if test "$ol_enable_meta" != no ; then
38453 BUILD_META=$ol_enable_meta
38455 if test "$ol_enable_meta" = mod ; then
38456 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38457 MFLAG=SLAPD_MOD_DYNAMIC
38459 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38460 MFLAG=SLAPD_MOD_STATIC
38463 cat >>confdefs.h <<_ACEOF
38464 #define SLAPD_META $MFLAG
38469 if test "$ol_enable_ndb" != no ; then
38471 BUILD_NDB=$ol_enable_ndb
38472 if test "$ol_enable_ndb" = mod ; then
38473 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38474 MFLAG=SLAPD_MOD_DYNAMIC
38476 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38477 MFLAG=SLAPD_MOD_STATIC
38480 cat >>confdefs.h <<_ACEOF
38481 #define SLAPD_NDB $MFLAG
38486 if test "$ol_enable_null" != no ; then
38488 BUILD_NULL=$ol_enable_null
38489 if test "$ol_enable_null" = mod ; then
38490 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38491 MFLAG=SLAPD_MOD_DYNAMIC
38493 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38494 MFLAG=SLAPD_MOD_STATIC
38497 cat >>confdefs.h <<_ACEOF
38498 #define SLAPD_NULL $MFLAG
38503 if test "$ol_enable_passwd" != no ; then
38505 BUILD_PASSWD=$ol_enable_passwd
38506 if test "$ol_enable_passwd" = mod ; then
38507 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38508 MFLAG=SLAPD_MOD_DYNAMIC
38510 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38511 MFLAG=SLAPD_MOD_STATIC
38514 cat >>confdefs.h <<_ACEOF
38515 #define SLAPD_PASSWD $MFLAG
38520 if test "$ol_link_perl" != no ; then
38522 BUILD_PERL=$ol_enable_perl
38523 if test "$ol_enable_perl" = mod ; then
38524 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38525 MFLAG=SLAPD_MOD_DYNAMIC
38527 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38528 MFLAG=SLAPD_MOD_STATIC
38531 cat >>confdefs.h <<_ACEOF
38532 #define SLAPD_PERL $MFLAG
38537 if test "$ol_enable_relay" != no ; then
38539 BUILD_RELAY=$ol_enable_relay
38540 if test "$ol_enable_relay" = mod ; then
38541 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38542 MFLAG=SLAPD_MOD_DYNAMIC
38544 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38545 MFLAG=SLAPD_MOD_STATIC
38548 cat >>confdefs.h <<_ACEOF
38549 #define SLAPD_RELAY $MFLAG
38554 if test "$ol_enable_shell" != no ; then
38555 if test "$ol_link_threads" != no ; then
38556 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38557 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38560 BUILD_SHELL=$ol_enable_shell
38561 if test "$ol_enable_shell" = mod ; then
38562 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38563 MFLAG=SLAPD_MOD_DYNAMIC
38565 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38566 MFLAG=SLAPD_MOD_STATIC
38569 cat >>confdefs.h <<_ACEOF
38570 #define SLAPD_SHELL $MFLAG
38575 if test "$ol_enable_sock" != no ; then
38577 BUILD_SOCK=$ol_enable_sock
38578 if test "$ol_enable_sock" = mod ; then
38579 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38580 MFLAG=SLAPD_MOD_DYNAMIC
38582 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38583 MFLAG=SLAPD_MOD_STATIC
38586 cat >>confdefs.h <<_ACEOF
38587 #define SLAPD_SOCK $MFLAG
38592 if test "$ol_link_sql" != no ; then
38594 BUILD_SQL=$ol_enable_sql
38595 if test "$ol_enable_sql" = mod; then
38596 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38597 MFLAG=SLAPD_MOD_DYNAMIC
38599 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38600 MFLAG=SLAPD_MOD_STATIC
38603 cat >>confdefs.h <<_ACEOF
38604 #define SLAPD_SQL $MFLAG
38609 if test "$ol_enable_accesslog" != no ; then
38610 BUILD_ACCESSLOG=$ol_enable_accesslog
38611 if test "$ol_enable_accesslog" = mod ; then
38612 MFLAG=SLAPD_MOD_DYNAMIC
38613 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38615 MFLAG=SLAPD_MOD_STATIC
38616 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38619 cat >>confdefs.h <<_ACEOF
38620 #define SLAPD_OVER_ACCESSLOG $MFLAG
38625 if test "$ol_enable_auditlog" != no ; then
38626 BUILD_AUDITLOG=$ol_enable_auditlog
38627 if test "$ol_enable_auditlog" = mod ; then
38628 MFLAG=SLAPD_MOD_DYNAMIC
38629 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38631 MFLAG=SLAPD_MOD_STATIC
38632 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38635 cat >>confdefs.h <<_ACEOF
38636 #define SLAPD_OVER_AUDITLOG $MFLAG
38641 if test "$ol_enable_collect" != no ; then
38642 BUILD_COLLECT=$ol_enable_collect
38643 if test "$ol_enable_collect" = mod ; then
38644 MFLAG=SLAPD_MOD_DYNAMIC
38645 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38647 MFLAG=SLAPD_MOD_STATIC
38648 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38651 cat >>confdefs.h <<_ACEOF
38652 #define SLAPD_OVER_COLLECT $MFLAG
38657 if test "$ol_enable_constraint" != no ; then
38658 BUILD_CONSTRAINT=$ol_enable_constraint
38659 if test "$ol_enable_constraint" = mod ; then
38660 MFLAG=SLAPD_MOD_DYNAMIC
38661 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38663 MFLAG=SLAPD_MOD_STATIC
38664 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38667 cat >>confdefs.h <<_ACEOF
38668 #define SLAPD_OVER_CONSTRAINT $MFLAG
38673 if test "$ol_enable_dds" != no ; then
38674 BUILD_DDS=$ol_enable_dds
38675 if test "$ol_enable_dds" = mod ; then
38676 MFLAG=SLAPD_MOD_DYNAMIC
38677 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38679 MFLAG=SLAPD_MOD_STATIC
38680 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38683 cat >>confdefs.h <<_ACEOF
38684 #define SLAPD_OVER_DDS $MFLAG
38689 if test "$ol_enable_dyngroup" != no ; then
38690 BUILD_DYNGROUP=$ol_enable_dyngroup
38691 if test "$ol_enable_dyngroup" = mod ; then
38692 MFLAG=SLAPD_MOD_DYNAMIC
38693 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38695 MFLAG=SLAPD_MOD_STATIC
38696 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38699 cat >>confdefs.h <<_ACEOF
38700 #define SLAPD_OVER_DYNGROUP $MFLAG
38705 if test "$ol_enable_dynlist" != no ; then
38706 BUILD_DYNLIST=$ol_enable_dynlist
38707 if test "$ol_enable_dynlist" = mod ; then
38708 MFLAG=SLAPD_MOD_DYNAMIC
38709 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38711 MFLAG=SLAPD_MOD_STATIC
38712 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38715 cat >>confdefs.h <<_ACEOF
38716 #define SLAPD_OVER_DYNLIST $MFLAG
38721 if test "$ol_enable_memberof" != no ; then
38722 BUILD_MEMBEROF=$ol_enable_memberof
38723 if test "$ol_enable_memberof" = mod ; then
38724 MFLAG=SLAPD_MOD_DYNAMIC
38725 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38727 MFLAG=SLAPD_MOD_STATIC
38728 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38731 cat >>confdefs.h <<_ACEOF
38732 #define SLAPD_OVER_MEMBEROF $MFLAG
38737 if test "$ol_enable_ppolicy" != no ; then
38738 BUILD_PPOLICY=$ol_enable_ppolicy
38739 if test "$ol_enable_ppolicy" = mod ; then
38740 MFLAG=SLAPD_MOD_DYNAMIC
38741 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38743 MFLAG=SLAPD_MOD_STATIC
38744 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38747 cat >>confdefs.h <<_ACEOF
38748 #define SLAPD_OVER_PPOLICY $MFLAG
38753 if test "$ol_enable_proxycache" != no ; then
38754 BUILD_PROXYCACHE=$ol_enable_proxycache
38755 if test "$ol_enable_proxycache" = mod ; then
38756 MFLAG=SLAPD_MOD_DYNAMIC
38757 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38759 MFLAG=SLAPD_MOD_STATIC
38760 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38763 cat >>confdefs.h <<_ACEOF
38764 #define SLAPD_OVER_PROXYCACHE $MFLAG
38769 if test "$ol_enable_refint" != no ; then
38770 BUILD_REFINT=$ol_enable_refint
38771 if test "$ol_enable_refint" = mod ; then
38772 MFLAG=SLAPD_MOD_DYNAMIC
38773 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38775 MFLAG=SLAPD_MOD_STATIC
38776 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38779 cat >>confdefs.h <<_ACEOF
38780 #define SLAPD_OVER_REFINT $MFLAG
38785 if test "$ol_enable_retcode" != no ; then
38786 BUILD_RETCODE=$ol_enable_retcode
38787 if test "$ol_enable_retcode" = mod ; then
38788 MFLAG=SLAPD_MOD_DYNAMIC
38789 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38791 MFLAG=SLAPD_MOD_STATIC
38792 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38795 cat >>confdefs.h <<_ACEOF
38796 #define SLAPD_OVER_RETCODE $MFLAG
38801 if test "$ol_enable_rwm" != no ; then
38803 BUILD_RWM=$ol_enable_rwm
38804 if test "$ol_enable_rwm" = mod ; then
38805 MFLAG=SLAPD_MOD_DYNAMIC
38806 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38808 MFLAG=SLAPD_MOD_STATIC
38809 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38812 cat >>confdefs.h <<_ACEOF
38813 #define SLAPD_OVER_RWM $MFLAG
38818 if test "$ol_enable_seqmod" != no ; then
38819 BUILD_SEQMOD=$ol_enable_seqmod
38820 if test "$ol_enable_seqmod" = mod ; then
38821 MFLAG=SLAPD_MOD_DYNAMIC
38822 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38824 MFLAG=SLAPD_MOD_STATIC
38825 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38828 cat >>confdefs.h <<_ACEOF
38829 #define SLAPD_OVER_SEQMOD $MFLAG
38834 if test "$ol_enable_syncprov" != no ; then
38835 BUILD_SYNCPROV=$ol_enable_syncprov
38836 if test "$ol_enable_syncprov" = mod ; then
38837 MFLAG=SLAPD_MOD_DYNAMIC
38838 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38840 MFLAG=SLAPD_MOD_STATIC
38841 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38844 cat >>confdefs.h <<_ACEOF
38845 #define SLAPD_OVER_SYNCPROV $MFLAG
38850 if test "$ol_enable_translucent" != no ; then
38851 BUILD_TRANSLUCENT=$ol_enable_translucent
38852 if test "$ol_enable_translucent" = mod ; then
38853 MFLAG=SLAPD_MOD_DYNAMIC
38854 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38856 MFLAG=SLAPD_MOD_STATIC
38857 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38860 cat >>confdefs.h <<_ACEOF
38861 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38866 if test "$ol_enable_unique" != no ; then
38867 BUILD_UNIQUE=$ol_enable_unique
38868 if test "$ol_enable_unique" = mod ; then
38869 MFLAG=SLAPD_MOD_DYNAMIC
38870 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38872 MFLAG=SLAPD_MOD_STATIC
38873 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38876 cat >>confdefs.h <<_ACEOF
38877 #define SLAPD_OVER_UNIQUE $MFLAG
38882 if test "$ol_enable_valsort" != no ; then
38883 BUILD_VALSORT=$ol_enable_valsort
38884 if test "$ol_enable_valsort" = mod ; then
38885 MFLAG=SLAPD_MOD_DYNAMIC
38886 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38888 MFLAG=SLAPD_MOD_STATIC
38889 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38892 cat >>confdefs.h <<_ACEOF
38893 #define SLAPD_OVER_VALSORT $MFLAG
38898 if test "$ol_enable_rewrite" != no ; then
38900 cat >>confdefs.h <<\_ACEOF
38901 #define ENABLE_REWRITE 1
38907 if test "$ol_enable_slapi" != no ; then
38909 cat >>confdefs.h <<\_ACEOF
38910 #define ENABLE_SLAPI 1
38914 SLAPD_SLAPI_DEPEND=libslapi.a
38919 if test "$ac_cv_mingw32" = yes ; then
38921 SLAPD_MODULES_LDFLAGS=
39015 # Check whether --with-xxinstall or --without-xxinstall was given.
39016 if test "${with_xxinstall+set}" = set; then
39017 withval="$with_xxinstall"
39022 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
39025 ac_config_commands="$ac_config_commands default"
39029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39030 # Let make expand exec_prefix.
39031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39035 # trailing colons and then remove the whole line if VPATH becomes empty
39036 # (actually we leave an empty line to preserve line numbers).
39037 if test "x$srcdir" = x.; then
39038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39039 s/:*\$(srcdir):*/:/;
39040 s/:*\${srcdir}:*/:/;
39042 s/^\([^=]*=[ ]*\):*/\1/;
39048 DEFS=-DHAVE_CONFIG_H
39052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39053 # 1. Remove the extension, and $U if already installed.
39054 ac_i=`echo "$ac_i" |
39055 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39057 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39058 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39060 LIBOBJS=$ac_libobjs
39062 LTLIBOBJS=$ac_ltlibobjs
39065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39066 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39067 Usually this means the macro was only invoked conditionally." >&5
39068 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39069 Usually this means the macro was only invoked conditionally." >&2;}
39070 { (exit 1); exit 1; }; }
39072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39073 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39074 Usually this means the macro was only invoked conditionally." >&5
39075 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39076 Usually this means the macro was only invoked conditionally." >&2;}
39077 { (exit 1); exit 1; }; }
39079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39080 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39081 Usually this means the macro was only invoked conditionally." >&5
39082 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39083 Usually this means the macro was only invoked conditionally." >&2;}
39084 { (exit 1); exit 1; }; }
39087 : ${CONFIG_STATUS=./config.status}
39088 ac_clean_files_save=$ac_clean_files
39089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39090 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39091 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39092 cat >$CONFIG_STATUS <<_ACEOF
39094 # Generated by $as_me.
39095 # Run this file to recreate the current configuration.
39096 # Compiler output produced by configure, useful for debugging
39097 # configure, is in config.log if it exists.
39100 ac_cs_recheck=false
39102 SHELL=\${CONFIG_SHELL-$SHELL}
39105 cat >>$CONFIG_STATUS <<\_ACEOF
39106 ## --------------------- ##
39107 ## M4sh Initialization. ##
39108 ## --------------------- ##
39110 # Be Bourne compatible
39111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39114 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39115 # is contrary to our usage. Disable this feature.
39116 alias -g '${1+"$@"}'='"$@"'
39117 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39120 DUALCASE=1; export DUALCASE # for MKS sh
39122 # Support unset when possible.
39123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39130 # Work around bugs in pre-3.0 UWIN ksh.
39131 $as_unset ENV MAIL MAILPATH
39138 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39139 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39140 LC_TELEPHONE LC_TIME
39142 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39143 eval $as_var=C; export $as_var
39149 # Required to use basename.
39150 if expr a : '\(a\)' >/dev/null 2>&1; then
39156 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39157 as_basename=basename
39163 # Name of the executable.
39164 as_me=`$as_basename "$0" ||
39165 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39166 X"$0" : 'X\(//\)$' \| \
39167 X"$0" : 'X\(/\)$' \| \
39168 . : '\(.\)' 2>/dev/null ||
39170 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39171 /^X\/\(\/\/\)$/{ s//\1/; q; }
39172 /^X\/\(\/\).*/{ s//\1/; q; }
39176 # PATH needs CR, and LINENO needs CR and PATH.
39177 # Avoid depending upon Character Ranges.
39178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39181 as_cr_digits='0123456789'
39182 as_cr_alnum=$as_cr_Letters$as_cr_digits
39184 # The user is always right.
39185 if test "${PATH_SEPARATOR+set}" != set; then
39186 echo "#! /bin/sh" >conf$$.sh
39187 echo "exit 0" >>conf$$.sh
39189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39198 as_lineno_1=$LINENO
39199 as_lineno_2=$LINENO
39200 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39201 test "x$as_lineno_1" != "x$as_lineno_2" &&
39202 test "x$as_lineno_3" = "x$as_lineno_2" || {
39203 # Find who we are. Look in the path if we contain no path at all
39206 *[\\/]* ) as_myself=$0 ;;
39207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39208 for as_dir in $PATH
39211 test -z "$as_dir" && as_dir=.
39212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39217 # We did not find ourselves, most probably we were run as `sh COMMAND'
39218 # in which case we are not to be found in the path.
39219 if test "x$as_myself" = x; then
39222 if test ! -f "$as_myself"; then
39223 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39224 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39225 { (exit 1); exit 1; }; }
39227 case $CONFIG_SHELL in
39229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39230 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39233 test -z "$as_dir" && as_dir=.
39234 for as_base in sh bash ksh sh5; do
39237 if ("$as_dir/$as_base" -c '
39238 as_lineno_1=$LINENO
39239 as_lineno_2=$LINENO
39240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39241 test "x$as_lineno_1" != "x$as_lineno_2" &&
39242 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39243 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39244 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39245 CONFIG_SHELL=$as_dir/$as_base
39246 export CONFIG_SHELL
39247 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39255 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39256 # uniformly replaced by the line number. The first 'sed' inserts a
39257 # line-number line before each line; the second 'sed' does the real
39258 # work. The second script uses 'N' to pair each line-number line
39259 # with the numbered line, and appends trailing '-' during
39260 # substitution so that $LINENO is not a special case at line end.
39261 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39262 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39263 sed '=' <$as_myself |
39268 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39271 s,^['$as_cr_digits']*\n,,
39272 ' >$as_me.lineno &&
39273 chmod +x $as_me.lineno ||
39274 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39275 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39276 { (exit 1); exit 1; }; }
39278 # Don't try to exec as it changes $[0], causing all sort of problems
39279 # (the dirname of $[0] is not the place where we might find the
39280 # original and so on. Autoconf is especially sensible to this).
39282 # Exit status is that of the last command.
39287 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39288 *c*,-n*) ECHO_N= ECHO_C='
39290 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39291 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39294 if expr a : '\(a\)' >/dev/null 2>&1; then
39300 rm -f conf$$ conf$$.exe conf$$.file
39302 if ln -s conf$$.file conf$$ 2>/dev/null; then
39303 # We could just check for DJGPP; but this test a) works b) is more generic
39304 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39305 if test -f conf$$.exe; then
39306 # Don't use ln at all; we don't have any links
39311 elif ln conf$$.file conf$$ 2>/dev/null; then
39316 rm -f conf$$ conf$$.exe conf$$.file
39318 if mkdir -p . 2>/dev/null; then
39321 test -d ./-p && rmdir ./-p
39325 as_executable_p="test -f"
39327 # Sed expression to map a string onto a valid CPP name.
39328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39330 # Sed expression to map a string onto a valid variable name.
39331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39335 # We need space, tab and new line, in precisely that order.
39345 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39346 # report actual input values of CONFIG_FILES etc. instead of their
39347 # values after options handling. Logging --version etc. is OK.
39351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39352 ## Running $as_me. ##
39357 This file was extended by $as_me, which was
39358 generated by GNU Autoconf 2.59. Invocation command line was
39360 CONFIG_FILES = $CONFIG_FILES
39361 CONFIG_HEADERS = $CONFIG_HEADERS
39362 CONFIG_LINKS = $CONFIG_LINKS
39363 CONFIG_COMMANDS = $CONFIG_COMMANDS
39367 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39371 # Files that config.status was made for.
39372 if test -n "$ac_config_files"; then
39373 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39376 if test -n "$ac_config_headers"; then
39377 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39380 if test -n "$ac_config_links"; then
39381 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39384 if test -n "$ac_config_commands"; then
39385 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39388 cat >>$CONFIG_STATUS <<\_ACEOF
39391 \`$as_me' instantiates files from templates according to the
39392 current configuration.
39394 Usage: $0 [OPTIONS] [FILE]...
39396 -h, --help print this help, then exit
39397 -V, --version print version number, then exit
39398 -q, --quiet do not print progress messages
39399 -d, --debug don't remove temporary files
39400 --recheck update $as_me by reconfiguring in the same conditions
39401 --file=FILE[:TEMPLATE]
39402 instantiate the configuration file FILE
39403 --header=FILE[:TEMPLATE]
39404 instantiate the configuration header FILE
39406 Configuration files:
39409 Configuration headers:
39412 Configuration commands:
39415 Report bugs to <bug-autoconf@gnu.org>."
39418 cat >>$CONFIG_STATUS <<_ACEOF
39421 configured by $0, generated by GNU Autoconf 2.59,
39422 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39424 Copyright (C) 2003 Free Software Foundation, Inc.
39425 This config.status script is free software; the Free Software Foundation
39426 gives unlimited permission to copy, distribute and modify it."
39431 cat >>$CONFIG_STATUS <<\_ACEOF
39432 # If no file are specified by the user, then we need to provide default
39433 # value. By we need to know if files were specified by the user.
39439 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39440 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39448 *) # This is not an option, so the user has probably given explicit
39451 ac_need_defaults=false;;
39455 # Handling of the options.
39457 cat >>$CONFIG_STATUS <<\_ACEOF
39458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39460 --version | --vers* | -V )
39461 echo "$ac_cs_version"; exit 0 ;;
39463 # Conflict between --help and --header
39464 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39465 Try \`$0 --help' for more information." >&5
39466 echo "$as_me: error: ambiguous option: $1
39467 Try \`$0 --help' for more information." >&2;}
39468 { (exit 1); exit 1; }; };;
39469 --help | --hel | -h )
39470 echo "$ac_cs_usage"; exit 0 ;;
39471 --debug | --d* | -d )
39473 --file | --fil | --fi | --f )
39475 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39476 ac_need_defaults=false;;
39477 --header | --heade | --head | --hea )
39479 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39480 ac_need_defaults=false;;
39481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39485 # This is an error.
39486 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39487 Try \`$0 --help' for more information." >&5
39488 echo "$as_me: error: unrecognized option: $1
39489 Try \`$0 --help' for more information." >&2;}
39490 { (exit 1); exit 1; }; } ;;
39492 *) ac_config_targets="$ac_config_targets $1" ;;
39498 ac_configure_extra_args=
39500 if $ac_cs_silent; then
39502 ac_configure_extra_args="$ac_configure_extra_args --silent"
39506 cat >>$CONFIG_STATUS <<_ACEOF
39507 if \$ac_cs_recheck; then
39508 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39509 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39514 cat >>$CONFIG_STATUS <<_ACEOF
39516 # INIT-COMMANDS section.
39519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39521 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39522 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39529 cat >>$CONFIG_STATUS <<\_ACEOF
39530 for ac_config_target in $ac_config_targets
39532 case "$ac_config_target" in
39533 # Handling of arguments.
39534 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39535 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39536 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39537 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39538 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39539 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39540 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39541 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39542 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39543 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39544 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39545 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39546 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39547 "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" ;;
39548 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39549 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39550 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39551 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39552 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39553 "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" ;;
39554 "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" ;;
39555 "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
39556 "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" ;;
39557 "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
39558 "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" ;;
39559 "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" ;;
39560 "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39561 "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" ;;
39562 "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" ;;
39563 "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" ;;
39564 "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
39565 "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" ;;
39566 "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39567 "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" ;;
39568 "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" ;;
39569 "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" ;;
39570 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39571 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39572 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39573 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39574 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39575 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39576 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39577 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39578 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39579 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39581 { (exit 1); exit 1; }; };;
39585 # If the user did not use the arguments to specify the items to instantiate,
39586 # then the envvar interface is used. Set only those that are not.
39587 # We use the long form for the default assignment because of an extremely
39588 # bizarre bug on SunOS 4.1.3.
39589 if $ac_need_defaults; then
39590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39595 # Have a temporary directory for convenience. Make it in the build tree
39596 # simply because there is no reason to put it here, and in addition,
39597 # creating and moving files from /tmp can sometimes cause problems.
39598 # Create a temporary directory, and hook for its removal unless debugging.
39601 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39602 trap '{ (exit 1); exit 1; }' 1 2 13 15
39605 # Create a (secure) tmp directory for tmp files.
39608 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39609 test -n "$tmp" && test -d "$tmp"
39612 tmp=./confstat$$-$RANDOM
39613 (umask 077 && mkdir $tmp)
39616 echo "$me: cannot create a temporary directory in ." >&2
39617 { (exit 1); exit 1; }
39622 cat >>$CONFIG_STATUS <<_ACEOF
39625 # CONFIG_FILES section.
39628 # No need to generate the scripts if there are no CONFIG_FILES.
39629 # This happens for instance when ./config.status config.h
39630 if test -n "\$CONFIG_FILES"; then
39631 # Protect against being on the right side of a sed subst in config.status.
39632 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39633 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39634 s,@SHELL@,$SHELL,;t t
39635 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39636 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39637 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39638 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39639 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39640 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39641 s,@exec_prefix@,$exec_prefix,;t t
39642 s,@prefix@,$prefix,;t t
39643 s,@program_transform_name@,$program_transform_name,;t t
39644 s,@bindir@,$bindir,;t t
39645 s,@sbindir@,$sbindir,;t t
39646 s,@libexecdir@,$libexecdir,;t t
39647 s,@datadir@,$datadir,;t t
39648 s,@sysconfdir@,$sysconfdir,;t t
39649 s,@sharedstatedir@,$sharedstatedir,;t t
39650 s,@localstatedir@,$localstatedir,;t t
39651 s,@libdir@,$libdir,;t t
39652 s,@includedir@,$includedir,;t t
39653 s,@oldincludedir@,$oldincludedir,;t t
39654 s,@infodir@,$infodir,;t t
39655 s,@mandir@,$mandir,;t t
39656 s,@build_alias@,$build_alias,;t t
39657 s,@host_alias@,$host_alias,;t t
39658 s,@target_alias@,$target_alias,;t t
39659 s,@DEFS@,$DEFS,;t t
39660 s,@ECHO_C@,$ECHO_C,;t t
39661 s,@ECHO_N@,$ECHO_N,;t t
39662 s,@ECHO_T@,$ECHO_T,;t t
39663 s,@LIBS@,$LIBS,;t t
39664 s,@build@,$build,;t t
39665 s,@build_cpu@,$build_cpu,;t t
39666 s,@build_vendor@,$build_vendor,;t t
39667 s,@build_os@,$build_os,;t t
39668 s,@host@,$host,;t t
39669 s,@host_cpu@,$host_cpu,;t t
39670 s,@host_vendor@,$host_vendor,;t t
39671 s,@host_os@,$host_os,;t t
39672 s,@target@,$target,;t t
39673 s,@target_cpu@,$target_cpu,;t t
39674 s,@target_vendor@,$target_vendor,;t t
39675 s,@target_os@,$target_os,;t t
39676 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39677 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39678 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39679 s,@CYGPATH_W@,$CYGPATH_W,;t t
39680 s,@PACKAGE@,$PACKAGE,;t t
39681 s,@VERSION@,$VERSION,;t t
39682 s,@ACLOCAL@,$ACLOCAL,;t t
39683 s,@AUTOCONF@,$AUTOCONF,;t t
39684 s,@AUTOMAKE@,$AUTOMAKE,;t t
39685 s,@AUTOHEADER@,$AUTOHEADER,;t t
39686 s,@MAKEINFO@,$MAKEINFO,;t t
39687 s,@install_sh@,$install_sh,;t t
39688 s,@STRIP@,$STRIP,;t t
39689 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39690 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39691 s,@mkdir_p@,$mkdir_p,;t t
39693 s,@SET_MAKE@,$SET_MAKE,;t t
39694 s,@am__leading_dot@,$am__leading_dot,;t t
39695 s,@AMTAR@,$AMTAR,;t t
39696 s,@am__tar@,$am__tar,;t t
39697 s,@am__untar@,$am__untar,;t t
39698 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39699 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39700 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39701 s,@top_builddir@,$top_builddir,;t t
39702 s,@ldap_subdir@,$ldap_subdir,;t t
39705 s,@CFLAGS@,$CFLAGS,;t t
39706 s,@LDFLAGS@,$LDFLAGS,;t t
39707 s,@CPPFLAGS@,$CPPFLAGS,;t t
39708 s,@ac_ct_CC@,$ac_ct_CC,;t t
39709 s,@EXEEXT@,$EXEEXT,;t t
39710 s,@OBJEXT@,$OBJEXT,;t t
39711 s,@DEPDIR@,$DEPDIR,;t t
39712 s,@am__include@,$am__include,;t t
39713 s,@am__quote@,$am__quote,;t t
39714 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39715 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39716 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39717 s,@CCDEPMODE@,$CCDEPMODE,;t t
39718 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39719 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39720 s,@EGREP@,$EGREP,;t t
39721 s,@LN_S@,$LN_S,;t t
39722 s,@ECHO@,$ECHO,;t t
39723 s,@ac_ct_AR@,$ac_ct_AR,;t t
39724 s,@RANLIB@,$RANLIB,;t t
39725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39726 s,@DLLTOOL@,$DLLTOOL,;t t
39727 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39729 s,@ac_ct_AS@,$ac_ct_AS,;t t
39730 s,@OBJDUMP@,$OBJDUMP,;t t
39731 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39733 s,@LIBTOOL@,$LIBTOOL,;t t
39734 s,@PERLBIN@,$PERLBIN,;t t
39735 s,@OL_MKDEP@,$OL_MKDEP,;t t
39736 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39737 s,@LTSTATIC@,$LTSTATIC,;t t
39738 s,@MYSQL@,$MYSQL,;t t
39739 s,@LIBOBJS@,$LIBOBJS,;t t
39740 s,@LIBSRCS@,$LIBSRCS,;t t
39741 s,@PLAT@,$PLAT,;t t
39742 s,@WITH_SASL@,$WITH_SASL,;t t
39743 s,@WITH_TLS@,$WITH_TLS,;t t
39744 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39745 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39746 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39747 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39748 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39749 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39750 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39751 s,@BUILD_BDB@,$BUILD_BDB,;t t
39752 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39753 s,@BUILD_HDB@,$BUILD_HDB,;t t
39754 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39755 s,@BUILD_META@,$BUILD_META,;t t
39756 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39757 s,@BUILD_NDB@,$BUILD_NDB,;t t
39758 s,@BUILD_NULL@,$BUILD_NULL,;t t
39759 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39760 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39761 s,@BUILD_PERL@,$BUILD_PERL,;t t
39762 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39763 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39764 s,@BUILD_SQL@,$BUILD_SQL,;t t
39765 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39766 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39767 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39768 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39769 s,@BUILD_DDS@,$BUILD_DDS,;t t
39770 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39771 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39772 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39773 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39774 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39775 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39776 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39777 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39778 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39779 s,@BUILD_RWM@,$BUILD_RWM,;t t
39780 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39781 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39782 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39783 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39784 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39785 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39786 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39787 s,@BDB_LIBS@,$BDB_LIBS,;t t
39788 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39789 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39790 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39791 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39792 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39793 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39794 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39795 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39796 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39797 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39798 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39799 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39800 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39801 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39802 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39803 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39804 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39805 s,@SASL_LIBS@,$SASL_LIBS,;t t
39806 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
39807 s,@TLS_LIBS@,$TLS_LIBS,;t t
39808 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39809 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39810 s,@LIBSLAPI@,$LIBSLAPI,;t t
39811 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39812 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39813 s,@ICU_LIBS@,$ICU_LIBS,;t t
39814 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39815 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39816 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39817 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39818 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39819 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39824 cat >>$CONFIG_STATUS <<\_ACEOF
39825 # Split the substitutions into bite-sized pieces for seds with
39826 # small command number limits, like on Digital OSF/1 and HP-UX.
39827 ac_max_sed_lines=48
39828 ac_sed_frag=1 # Number of current file.
39829 ac_beg=1 # First line for current file.
39830 ac_end=$ac_max_sed_lines # Line after last line for current file.
39833 while $ac_more_lines; do
39834 if test $ac_beg -gt 1; then
39835 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39837 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39839 if test ! -s $tmp/subs.frag; then
39840 ac_more_lines=false
39842 # The purpose of the label and of the branching condition is to
39843 # speed up the sed processing (if there are no `@' at all, there
39844 # is no need to browse any of the substitutions).
39845 # These are the two extra sed commands mentioned above.
39847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39848 if test -z "$ac_sed_cmds"; then
39849 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39851 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39853 ac_sed_frag=`expr $ac_sed_frag + 1`
39855 ac_end=`expr $ac_end + $ac_max_sed_lines`
39858 if test -z "$ac_sed_cmds"; then
39861 fi # test -n "$CONFIG_FILES"
39864 cat >>$CONFIG_STATUS <<\_ACEOF
39865 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39866 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39868 - | *:- | *:-:* ) # input from stdin
39870 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39871 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39872 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39874 * ) ac_file_in=$ac_file.in ;;
39877 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39878 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39880 X"$ac_file" : 'X\(//\)[^/]' \| \
39881 X"$ac_file" : 'X\(//\)$' \| \
39882 X"$ac_file" : 'X\(/\)' \| \
39883 . : '\(.\)' 2>/dev/null ||
39885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39887 /^X\(\/\/\)$/{ s//\1/; q; }
39888 /^X\(\/\).*/{ s//\1/; q; }
39890 { if $as_mkdir_p; then
39895 while test ! -d "$as_dir"; do
39896 as_dirs="$as_dir $as_dirs"
39897 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39899 X"$as_dir" : 'X\(//\)[^/]' \| \
39900 X"$as_dir" : 'X\(//\)$' \| \
39901 X"$as_dir" : 'X\(/\)' \| \
39902 . : '\(.\)' 2>/dev/null ||
39904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39906 /^X\(\/\/\)$/{ s//\1/; q; }
39907 /^X\(\/\).*/{ s//\1/; q; }
39910 test ! -n "$as_dirs" || mkdir $as_dirs
39911 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39913 { (exit 1); exit 1; }; }; }
39917 if test "$ac_dir" != .; then
39918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39919 # A "../" for each directory in $ac_dir_suffix.
39920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39922 ac_dir_suffix= ac_top_builddir=
39926 .) # No --srcdir option. We are building in place.
39928 if test -z "$ac_top_builddir"; then
39931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39933 [\\/]* | ?:[\\/]* ) # Absolute path.
39934 ac_srcdir=$srcdir$ac_dir_suffix;
39935 ac_top_srcdir=$srcdir ;;
39936 *) # Relative path.
39937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39941 # Do not use `cd foo && pwd` to compute absolute paths, because
39942 # the directories may not exist.
39944 .) ac_abs_builddir="$ac_dir";;
39947 .) ac_abs_builddir=`pwd`;;
39948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39952 case $ac_abs_builddir in
39953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39955 case ${ac_top_builddir}. in
39956 .) ac_abs_top_builddir=$ac_abs_builddir;;
39957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39961 case $ac_abs_builddir in
39962 .) ac_abs_srcdir=$ac_srcdir;;
39965 .) ac_abs_srcdir=$ac_abs_builddir;;
39966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39970 case $ac_abs_builddir in
39971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39973 case $ac_top_srcdir in
39974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
39975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39983 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39986 if test x"$ac_file" != x-; then
39987 { echo "$as_me:$LINENO: creating $ac_file" >&5
39988 echo "$as_me: creating $ac_file" >&6;}
39991 # Let's still pretend it is `configure' which instantiates (i.e., don't
39992 # use $as_me), people would be surprised to read:
39993 # /* config.h. Generated by config.status. */
39994 if test x"$ac_file" = x-; then
39997 configure_input="$ac_file. "
39999 configure_input=$configure_input"Generated from `echo $ac_file_in |
40000 sed 's,.*/,,'` by configure."
40002 # First look for the input files in the build tree, otherwise in the
40004 ac_file_inputs=`IFS=:
40005 for f in $ac_file_in; do
40007 -) echo $tmp/stdin ;;
40009 # Absolute (can't be DOS-style, as IFS=:)
40010 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40011 echo "$as_me: error: cannot find input file: $f" >&2;}
40012 { (exit 1); exit 1; }; }
40015 if test -f "$f"; then
40018 elif test -f "$srcdir/$f"; then
40023 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40024 echo "$as_me: error: cannot find input file: $f" >&2;}
40025 { (exit 1); exit 1; }; }
40028 done` || { (exit 1); exit 1; }
40030 cat >>$CONFIG_STATUS <<_ACEOF
40034 cat >>$CONFIG_STATUS <<\_ACEOF
40036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40037 s,@configure_input@,$configure_input,;t t
40038 s,@srcdir@,$ac_srcdir,;t t
40039 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40040 s,@top_srcdir@,$ac_top_srcdir,;t t
40041 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40042 s,@builddir@,$ac_builddir,;t t
40043 s,@abs_builddir@,$ac_abs_builddir,;t t
40044 s,@top_builddir@,$ac_top_builddir,;t t
40045 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40046 s,@INSTALL@,$ac_INSTALL,;t t
40047 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40049 if test x"$ac_file" != x-; then
40050 mv $tmp/out $ac_file
40058 cat >>$CONFIG_STATUS <<\_ACEOF
40061 # CONFIG_HEADER section.
40064 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40065 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40067 # ac_d sets the value in "#define NAME VALUE" lines.
40068 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40069 ac_dB='[ ].*$,\1#\2'
40072 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40073 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40074 ac_uB='$,\1#\2define\3'
40078 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40081 - | *:- | *:-:* ) # input from stdin
40083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40087 * ) ac_file_in=$ac_file.in ;;
40090 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40091 echo "$as_me: creating $ac_file" >&6;}
40093 # First look for the input files in the build tree, otherwise in the
40095 ac_file_inputs=`IFS=:
40096 for f in $ac_file_in; do
40098 -) echo $tmp/stdin ;;
40100 # Absolute (can't be DOS-style, as IFS=:)
40101 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40102 echo "$as_me: error: cannot find input file: $f" >&2;}
40103 { (exit 1); exit 1; }; }
40104 # Do quote $f, to prevent DOS paths from being IFS'd.
40107 if test -f "$f"; then
40110 elif test -f "$srcdir/$f"; then
40115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40116 echo "$as_me: error: cannot find input file: $f" >&2;}
40117 { (exit 1); exit 1; }; }
40120 done` || { (exit 1); exit 1; }
40121 # Remove the trailing spaces.
40122 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40126 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40127 # `conftest.undefs', that substitutes the proper values into
40128 # config.h.in to produce config.h. The first handles `#define'
40129 # templates, and the second `#undef' templates.
40130 # And first: Protect against being on the right side of a sed subst in
40131 # config.status. Protect against being in an unquoted here document
40132 # in config.status.
40133 rm -f conftest.defines conftest.undefs
40134 # Using a here document instead of a string reduces the quoting nightmare.
40135 # Putting comments in sed scripts is not portable.
40137 # `end' is used to avoid that the second main sed command (meant for
40138 # 0-ary CPP macros) applies to n-ary macro definitions.
40139 # See the Autoconf documentation for `clear'.
40140 cat >confdef2sed.sed <<\_ACEOF
40145 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40147 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40150 # If some macros were called several times there might be several times
40151 # the same #defines, which is useless. Nevertheless, we may not want to
40152 # sort them, since we want the *last* AC-DEFINE to be honored.
40153 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40154 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40155 rm -f confdef2sed.sed
40157 # This sed command replaces #undef with comments. This is necessary, for
40158 # example, in the case of _POSIX_SOURCE, which is predefined and required
40159 # on some systems where configure will not decide to define it.
40160 cat >>conftest.undefs <<\_ACEOF
40161 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40164 # Break up conftest.defines because some shells have a limit on the size
40165 # of here documents, and old seds have small limits too (100 cmds).
40166 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40167 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40168 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40169 echo ' :' >>$CONFIG_STATUS
40170 rm -f conftest.tail
40171 while grep . conftest.defines >/dev/null
40173 # Write a limited-size here document to $tmp/defines.sed.
40174 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40175 # Speed up: don't consider the non `#define' lines.
40176 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40177 # Work around the forget-to-reset-the-flag bug.
40178 echo 't clr' >>$CONFIG_STATUS
40179 echo ': clr' >>$CONFIG_STATUS
40180 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40182 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40184 mv $tmp/out $tmp/in
40186 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40187 rm -f conftest.defines
40188 mv conftest.tail conftest.defines
40190 rm -f conftest.defines
40191 echo ' fi # grep' >>$CONFIG_STATUS
40192 echo >>$CONFIG_STATUS
40194 # Break up conftest.undefs because some shells have a limit on the size
40195 # of here documents, and old seds have small limits too (100 cmds).
40196 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40197 rm -f conftest.tail
40198 while grep . conftest.undefs >/dev/null
40200 # Write a limited-size here document to $tmp/undefs.sed.
40201 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40202 # Speed up: don't consider the non `#undef'
40203 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40204 # Work around the forget-to-reset-the-flag bug.
40205 echo 't clr' >>$CONFIG_STATUS
40206 echo ': clr' >>$CONFIG_STATUS
40207 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40209 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40211 mv $tmp/out $tmp/in
40213 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40214 rm -f conftest.undefs
40215 mv conftest.tail conftest.undefs
40217 rm -f conftest.undefs
40219 cat >>$CONFIG_STATUS <<\_ACEOF
40220 # Let's still pretend it is `configure' which instantiates (i.e., don't
40221 # use $as_me), people would be surprised to read:
40222 # /* config.h. Generated by config.status. */
40223 if test x"$ac_file" = x-; then
40224 echo "/* Generated by configure. */" >$tmp/config.h
40226 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40228 cat $tmp/in >>$tmp/config.h
40230 if test x"$ac_file" != x-; then
40231 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40232 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40233 echo "$as_me: $ac_file is unchanged" >&6;}
40235 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40237 X"$ac_file" : 'X\(//\)[^/]' \| \
40238 X"$ac_file" : 'X\(//\)$' \| \
40239 X"$ac_file" : 'X\(/\)' \| \
40240 . : '\(.\)' 2>/dev/null ||
40242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40244 /^X\(\/\/\)$/{ s//\1/; q; }
40245 /^X\(\/\).*/{ s//\1/; q; }
40247 { if $as_mkdir_p; then
40252 while test ! -d "$as_dir"; do
40253 as_dirs="$as_dir $as_dirs"
40254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40256 X"$as_dir" : 'X\(//\)[^/]' \| \
40257 X"$as_dir" : 'X\(//\)$' \| \
40258 X"$as_dir" : 'X\(/\)' \| \
40259 . : '\(.\)' 2>/dev/null ||
40261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40263 /^X\(\/\/\)$/{ s//\1/; q; }
40264 /^X\(\/\).*/{ s//\1/; q; }
40267 test ! -n "$as_dirs" || mkdir $as_dirs
40268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40270 { (exit 1); exit 1; }; }; }
40273 mv $tmp/config.h $ac_file
40277 rm -f $tmp/config.h
40279 # Compute $ac_file's index in $config_headers.
40281 for _am_header in $config_headers :; do
40282 case $_am_header in
40283 $ac_file | $ac_file:* )
40286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40289 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40290 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40291 X$ac_file : 'X\(//\)[^/]' \| \
40292 X$ac_file : 'X\(//\)$' \| \
40293 X$ac_file : 'X\(/\)' \| \
40294 . : '\(.\)' 2>/dev/null ||
40296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40298 /^X\(\/\/\)$/{ s//\1/; q; }
40299 /^X\(\/\).*/{ s//\1/; q; }
40300 s/.*/./; q'`/stamp-h$_am_stamp_count
40303 cat >>$CONFIG_STATUS <<\_ACEOF
40306 # CONFIG_COMMANDS section.
40308 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40309 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40310 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40311 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40312 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40313 X"$ac_dest" : 'X\(//\)[^/]' \| \
40314 X"$ac_dest" : 'X\(//\)$' \| \
40315 X"$ac_dest" : 'X\(/\)' \| \
40316 . : '\(.\)' 2>/dev/null ||
40318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40320 /^X\(\/\/\)$/{ s//\1/; q; }
40321 /^X\(\/\).*/{ s//\1/; q; }
40323 { if $as_mkdir_p; then
40328 while test ! -d "$as_dir"; do
40329 as_dirs="$as_dir $as_dirs"
40330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40332 X"$as_dir" : 'X\(//\)[^/]' \| \
40333 X"$as_dir" : 'X\(//\)$' \| \
40334 X"$as_dir" : 'X\(/\)' \| \
40335 . : '\(.\)' 2>/dev/null ||
40337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40339 /^X\(\/\/\)$/{ s//\1/; q; }
40340 /^X\(\/\).*/{ s//\1/; q; }
40343 test ! -n "$as_dirs" || mkdir $as_dirs
40344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40346 { (exit 1); exit 1; }; }; }
40350 if test "$ac_dir" != .; then
40351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40352 # A "../" for each directory in $ac_dir_suffix.
40353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40355 ac_dir_suffix= ac_top_builddir=
40359 .) # No --srcdir option. We are building in place.
40361 if test -z "$ac_top_builddir"; then
40364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40366 [\\/]* | ?:[\\/]* ) # Absolute path.
40367 ac_srcdir=$srcdir$ac_dir_suffix;
40368 ac_top_srcdir=$srcdir ;;
40369 *) # Relative path.
40370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40374 # Do not use `cd foo && pwd` to compute absolute paths, because
40375 # the directories may not exist.
40377 .) ac_abs_builddir="$ac_dir";;
40380 .) ac_abs_builddir=`pwd`;;
40381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40385 case $ac_abs_builddir in
40386 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40388 case ${ac_top_builddir}. in
40389 .) ac_abs_top_builddir=$ac_abs_builddir;;
40390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40394 case $ac_abs_builddir in
40395 .) ac_abs_srcdir=$ac_srcdir;;
40398 .) ac_abs_srcdir=$ac_abs_builddir;;
40399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40403 case $ac_abs_builddir in
40404 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40406 case $ac_top_srcdir in
40407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40414 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40415 echo "$as_me: executing $ac_dest commands" >&6;}
40417 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40418 # Strip MF so we end up with the name of the file.
40419 mf=`echo "$mf" | sed -e 's/:.*$//'`
40420 # Check whether this is an Automake generated Makefile or not.
40421 # We used to match only the files named `Makefile.in', but
40422 # some people rename them; so instead we look at the file content.
40423 # Grep'ing the first line is not enough: some people post-process
40424 # each Makefile.in and add a new line on top of each file to say so.
40425 # So let's grep whole file.
40426 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40427 dirpart=`(dirname "$mf") 2>/dev/null ||
40428 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40429 X"$mf" : 'X\(//\)[^/]' \| \
40430 X"$mf" : 'X\(//\)$' \| \
40431 X"$mf" : 'X\(/\)' \| \
40432 . : '\(.\)' 2>/dev/null ||
40434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40436 /^X\(\/\/\)$/{ s//\1/; q; }
40437 /^X\(\/\).*/{ s//\1/; q; }
40442 # Extract the definition of DEPDIR, am__include, and am__quote
40443 # from the Makefile without running `make'.
40444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40445 test -z "$DEPDIR" && continue
40446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40447 test -z "am__include" && continue
40448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40449 # When using ansi2knr, U may be empty or an underscore; expand it
40450 U=`sed -n 's/^U = //p' < "$mf"`
40451 # Find all dependency output files, they are included files with
40452 # $(DEPDIR) in their names. We invoke sed twice because it is the
40453 # simplest approach to changing $(DEPDIR) to its actual value in the
40455 for file in `sed -n "
40456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40458 # Make sure the directory exists.
40459 test -f "$dirpart/$file" && continue
40460 fdir=`(dirname "$file") 2>/dev/null ||
40461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40462 X"$file" : 'X\(//\)[^/]' \| \
40463 X"$file" : 'X\(//\)$' \| \
40464 X"$file" : 'X\(/\)' \| \
40465 . : '\(.\)' 2>/dev/null ||
40467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40469 /^X\(\/\/\)$/{ s//\1/; q; }
40470 /^X\(\/\).*/{ s//\1/; q; }
40472 { if $as_mkdir_p; then
40473 mkdir -p $dirpart/$fdir
40475 as_dir=$dirpart/$fdir
40477 while test ! -d "$as_dir"; do
40478 as_dirs="$as_dir $as_dirs"
40479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40481 X"$as_dir" : 'X\(//\)[^/]' \| \
40482 X"$as_dir" : 'X\(//\)$' \| \
40483 X"$as_dir" : 'X\(/\)' \| \
40484 . : '\(.\)' 2>/dev/null ||
40486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40488 /^X\(\/\/\)$/{ s//\1/; q; }
40489 /^X\(\/\).*/{ s//\1/; q; }
40492 test ! -n "$as_dirs" || mkdir $as_dirs
40493 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40494 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40495 { (exit 1); exit 1; }; }; }
40497 # echo "creating $dirpart/$file"
40498 echo '# dummy' > "$dirpart/$file"
40505 BACKENDSC="servers/slapd/backends.c"
40506 echo "Making $BACKENDSC"
40508 cat > $BACKENDSC << ENDX
40509 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40511 * Copyright 1998-2008 The OpenLDAP Foundation.
40512 * All rights reserved.
40514 * Redistribution and use in source and binary forms, with or without
40515 * modification, are permitted only as authorized by the OpenLDAP
40518 * A copy of this license is available in the file LICENSE in the
40519 * top-level directory of the distribution or, alternatively, at
40520 * <http://www.OpenLDAP.org/license.html>.
40522 /* This file is automatically generated by configure; please do not edit. */
40524 #include "portable.h"
40528 if test "${STATIC_BACKENDS}"; then
40529 for b in config ${STATIC_BACKENDS}; do
40530 bb=`echo "${b}" | sed -e 's/back-//'`
40531 cat >> $BACKENDSC << ENDX
40532 extern BI_init ${bb}_back_initialize;
40536 cat >> $BACKENDSC << ENDX
40538 BackendInfo slap_binfo[] = {
40541 for b in config ${STATIC_BACKENDS}; do
40542 bb=`echo "${b}" | sed -e 's/back-//'`
40543 echo " Add ${bb} ..."
40544 cat >> $BACKENDSC << ENDX
40545 { "${bb}", ${bb}_back_initialize },
40549 cat >> $BACKENDSC << ENDX
40553 /* end of generated file */
40556 OVERLAYSC="servers/slapd/overlays/statover.c"
40557 echo "Making $OVERLAYSC"
40559 cat > $OVERLAYSC << ENDX
40560 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40562 * Copyright 1998-2008 The OpenLDAP Foundation.
40563 * All rights reserved.
40565 * Redistribution and use in source and binary forms, with or without
40566 * modification, are permitted only as authorized by the OpenLDAP
40569 * A copy of this license is available in the file LICENSE in the
40570 * top-level directory of the distribution or, alternatively, at
40571 * <http://www.OpenLDAP.org/license.html>.
40573 /* This file is automatically generated by configure; please do not edit. */
40575 #include "portable.h"
40579 if test "${STATIC_OVERLAYS}"; then
40580 for o in ${STATIC_OVERLAYS}; do
40581 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40582 cat >> $OVERLAYSC << ENDX
40583 extern OV_init ${oo}_initialize;
40588 cat >> $OVERLAYSC << ENDX
40590 OverlayInit slap_oinfo[] = {
40593 if test "${STATIC_OVERLAYS}"; then
40594 for o in ${STATIC_OVERLAYS}; do
40595 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40596 echo " Add ${oo} ..."
40597 cat >> $OVERLAYSC << ENDX
40598 { "${oo}", ${oo}_initialize },
40603 cat >> $OVERLAYSC << ENDX
40607 /* end of generated file */
40610 if test "${ol_cv_mkdep}" = no; then
40611 echo '(Do not "make depend"; we do not know how to build dependencies)'
40613 echo 'Please run "make depend" to build dependencies'
40620 cat >>$CONFIG_STATUS <<\_ACEOF
40622 { (exit 0); exit 0; }
40624 chmod +x $CONFIG_STATUS
40625 ac_clean_files=$ac_clean_files_save
40628 # configure is writing to config.log, and then calls config.status.
40629 # config.status does its own redirection, appending to config.log.
40630 # Unfortunately, on DOS this fails, as config.log is still kept open
40631 # by configure, so config.status won't be able to write to it; its
40632 # output is simply discarded. So we exec the FD to /dev/null,
40633 # effectively closing config.log, so it can be properly (re)opened and
40634 # appended to by config.status. When coming back to configure, we
40635 # need to make the FD available again.
40636 if test "$no_create" != yes; then
40638 ac_config_status_args=
40639 test "$silent" = yes &&
40640 ac_config_status_args="$ac_config_status_args --quiet"
40642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40645 # would make configure fail if this is the last instruction.
40646 $ac_cs_success || { (exit 1); exit 1; }